/* Additional controls within Good Find's shared topic and editorial layouts. */
.eyewear-tools { margin: 32px 0; }
.eyewear-tools [hidden] { display: none !important; }
.eyewear-tools :is(a, button, input, select, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.eyewear-tools .eye-section { padding: 28px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.eyewear-tools .eye-section > h2 { font-size: clamp(29px,3.5vw,43px); letter-spacing: -.05em; margin: 0 0 14px; }
.eyewear-tools .eye-section > p { margin: 10px 0; max-width: 76ch; }
.eye-controls { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: end; gap: 12px; margin: 12px 0; }
.eye-controls label, .eye-channel-control, .eye-compare-tools label { display: grid; gap: 5px; font-size: 13px; font-weight: 650; }
.eyewear-tools :is(input:not([type=checkbox]), select, button) { font: inherit; color: var(--ink); background: white; border: 1px solid #929aa9; padding: 8px 10px; min-height: 40px; min-width: 0; max-width: 100%; }
.eyewear-tools button { cursor: pointer; }
#eye-channel { display: flex; }
#eye-channel button { flex: 1; padding: 6px 4px; line-height: 1.15; }
#eye-channel button + button { border-left: 0; }
#eye-channel button[aria-pressed="true"] { color: white; background: var(--ink); }
#eye-channel button:focus-visible { position: relative; z-index: 1; }
.eye-feedback, .eye-compare-tools, #eye-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 15px; margin: 12px 0; }
.eye-feedback { justify-content: space-between; }
.eye-compare-tools label.eye-check { display: flex; align-items: center; gap: 6px; }
.eye-index { padding: 0; margin: 12px 0; list-style: none; }
.eye-index li { display: grid; grid-template-columns: minmax(0,2.6fr) minmax(0,1fr) minmax(0,.75fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.eye-ident { min-width: 0; display: flex; gap: 12px; align-items: center; }
.eye-ident :is(small,strong), .eye-index li > span small { display: block; }
.eye-ident small, .eye-muted, .eye-select, .eye-feedback { font-size: 13px; }
.eye-thumb img { width: 60px; height: 44px; object-fit: contain; }
.eye-scroll { overflow-x: auto; max-width: 100%; margin: 16px 0; }
.eye-table { border-collapse: separate; border-spacing: 0; min-width: 100%; color: var(--ink); }
.eye-table th, .eye-table td { vertical-align: top; text-align: left; padding: 11px; min-width: 160px; max-width: 310px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: white; }
.eye-table thead th { background: var(--topic-yellow,#ffd35a); }
.eye-table tr > :first-child { position: sticky; left: 0; z-index: 1; background: #f0f2f9; }
.eye-floating { position: fixed; right: 14px; bottom: 14px; padding: 10px 16px; z-index: 4; background: var(--ink); color: white; font-weight: 650; text-decoration: none; }
.eyewear-specifications { margin-top: 24px; }
.eyewear-spec-tables { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; align-items: start; }
.eyewear-spec-tables h3 { margin: 0 0 10px; }
.eyewear-spec-tables dl { margin: 0; }
.eyewear-spec-tables dl > div { display: grid; grid-template-columns: minmax(76px,.85fr) minmax(0,1.5fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.eyewear-spec-tables dd { margin: 0; font-weight: 600; }
.eyewear-specifications details { margin-top: 18px; }
.eyewear-source-list { margin: 0; padding-inline-start: 20px; }
.eyewear-source-list li { margin: 8px 0; }
.eyewear-spec-tables :is(dt,dd), .eyewear-source-list, .eye-index, .eye-table { overflow-wrap: anywhere; }
.editorial-page .hero:has(> .hero-copy:only-child) { grid-template-columns: minmax(0,1fr); min-height: 0; }
.editorial-page .hero > .hero-copy:only-child { margin: 0; }
.eyewear-article .topic-hero-art { background: white; }
@media (min-width:1101px) {
  .eyewear-article .topic-hero-art > img { width: 58%; margin-left: auto; height: clamp(320px,35vw,500px); object-fit: contain; }
}
@media (max-width:1100px) {
  .eyewear-article .topic-hero { display: flex; flex-direction: column; }
  .eyewear-article .topic-hero-copy { position: static; width: 100%; }
  .eyewear-article .topic-hero-art > img { width: 100%; height: clamp(185px,33vw,330px); object-fit: contain; }
}
@media (max-width:700px) {
  .eye-controls { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .eye-index li { grid-template-columns: minmax(0,1fr) auto; gap: 4px 10px; }
  .eye-ident { grid-row: span 2; }
  .eye-index li:has(label:not([hidden])) .eye-ident { grid-row: span 3; }
  .eye-select { grid-column: 2; }
  .eye-thumb img { width: 42px; height: 35px; }
  .eye-table :is(td,th) { min-width: 136px; }
  .eye-table tr > :first-child { min-width: 86px; max-width: 104px; }
  .eyewear-spec-tables { grid-template-columns: minmax(0,1fr); }
}

.eye-pixel-figure { margin: 0; background: white; }
.eye-pixel-area { display: grid; place-items: center; padding: 22px; min-height: 160px; }
.eye-pixel-area > div { width: min(100%, 195px); max-height: 200px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; border: 2px solid var(--ink); color: var(--ink); background-color: #eaf0f8; background-image: linear-gradient(#c8d7e5 1px, transparent 1px), linear-gradient(90deg, #c8d7e5 1px, transparent 1px); background-size: 12px 12px; }
.eye-pixel-area :is(strong,span) { padding: 0 5px; background: #eaf0f8; text-align: center; }
.eye-pixel-figure figcaption { padding: 10px 16px; }
.eyewear-full-comparison { margin: 16px 0; }
.eyewear-full-comparison > summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.editorial-page .hero-media > img { object-fit: scale-down; }

/* Leave room for the camera and display descriptions in the category chooser. */
@media (min-width: 1150px) {
  .eye-controls:has(#eye-category) { grid-template-columns: minmax(0,1.75fr) minmax(0,1.13fr) minmax(0,1.08fr) minmax(0,.85fr) minmax(220px,1.2fr); }
}
@media (min-width: 701px) and (max-width: 1149px) {
  .eye-controls:has(#eye-category) label:has(> #eye-category),
  .eye-controls:has(#eye-category) label:has(> #eye-status) { grid-column: span 2; }
}
@media (max-width: 700px) {
  .eye-controls label:has(> #eye-category), .eye-controls label:has(> #eye-status) { grid-column: 1 / -1; }
  .eye-compare-tools label:has(> #eye-compare-category) { width: 100%; }
}
