/* cutveyviewfinder.com: reading pages, tools and help (every page without a
   scene; see the head of site.css). A reading page opts in to the side rail by
   its markup, which scripts/pages/kit.py writes:
     <div class="doc-grid">[<details class="doc-toc-m">] <div class="prose">...</div>
       <aside class="doc-rail"><nav class="doc-toc">...</nav><div class="doc-try">...</div></aside></div>
   From 1000 px the rail sits beside the text and sticks under the header; below
   it the rail is hidden and the folded "On this page" box shows above the text.
   A table inside .table-wrap.stack whose cells carry data-label becomes stacked
   cards below 700 px, the first cell as each card's title. */

/* ---------- Reading pages ---------- */
.doc-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
.doc-rail{display:none}
@media (min-width:1000px){
  .doc-grid{grid-template-columns:minmax(0,1fr) 270px;gap:56px;align-items:start}
  .doc-rail{display:flex;flex-direction:column;gap:20px;position:sticky;top:calc(var(--header-h) + 24px);max-height:calc(100vh - var(--header-h) - 48px);overflow:auto}
  .doc-toc-m{display:none}
}
.doc-grid .prose{max-width:74ch}
.doc-toc{display:flex;flex-direction:column;border-left:1px solid #26262F}
.doc-toc-t{margin:0 0 6px;padding-left:14px;font-family:var(--font-mono);font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:#9A9AA6}
.doc-toc a{display:block;padding:6px 0 6px 14px;margin-left:-1px;border-left:1px solid transparent;font-size:14px;line-height:1.35;color:#C9C9D2;text-decoration:none}
.doc-toc a:hover{color:#FFF;border-left-color:var(--tungsten)}
.doc-try{display:flex;flex-direction:column;gap:10px;align-items:flex-start;padding:18px;background:var(--ink-card);border:1px solid #26262F;border-radius:14px}
.doc-try p{margin:0;font-size:14px;line-height:1.5;color:var(--body)}
.doc-try .t{font-weight:800;color:#F2F2F5;font-size:16px}
.doc-toc-m{border:1px solid #26262F;border-radius:12px;background:var(--ink-card)}
.doc-toc-m summary{cursor:pointer;min-height:48px;display:flex;align-items:center;padding:0 16px;font-weight:700;font-size:15px}
.doc-toc-m div{display:flex;flex-direction:column;padding:0 16px 10px}
.doc-toc-m a{display:flex;align-items:center;min-height:44px;color:#C9C9D2;text-decoration:none;border-top:1px solid #1E1E26;font-size:15px}
.prose h2{scroll-margin-top:calc(var(--header-h) + 16px);margin-top:44px}
.prose h2:first-child{margin-top:0}
.prose a{text-underline-offset:3px}
.prose .table-wrap{margin:20px 0 28px}
.callout{border-left:3px solid var(--tungsten);background:var(--ink-card);border-radius:0 12px 12px 0;padding:14px 18px;margin:20px 0;color:#E4E4EA}
.note{font-size:14px;color:#9A9AA6}
.meta-line{margin-top:14px}
.cta-band{border-top:1px solid var(--rule);padding-top:56px}
.cta-band .quiet{margin:0;max-width:60ch}
.prose .faq{margin-top:8px}
.page-head .h1{text-wrap:balance}
@media (min-width:701px){.page-head .h1{font-size:clamp(30px,3vw + 14px,48px)}}
@media (max-width:700px){.page-head .h1{font-size:clamp(25px,6.4vw,34px);font-stretch:100%;line-height:1.04}}

/* Tables: a phone reads each row as a card */
.table-wrap th,.table-wrap td{font-size:15px}
.table-wrap td.yes{color:#F2F2F5}
.table-wrap td.yes::before{content:"";display:inline-block;width:.5em;height:.5em;margin-right:.45em;border-radius:50%;background:var(--tungsten);vertical-align:.08em}
@media (max-width:700px){
  .table-wrap.stack{overflow:visible;border:0;background:none}
  .table-wrap.stack table{min-width:0;width:100%}
  .table-wrap.stack thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .table-wrap.stack tr{display:block;margin:0 0 12px;background:var(--ink-card);border:1px solid #26262F;border-radius:12px;padding:6px 14px}
  .table-wrap.stack td{display:block;position:relative;padding:8px 0 8px calc(38% + 12px);min-height:38px;border-bottom:1px solid #1E1E26}
  .table-wrap.stack td:last-child{border-bottom:0}
  .table-wrap.stack td::before{content:attr(data-label);position:absolute;left:0;top:8px;width:38%;font-size:13px;line-height:1.35;color:#9A9AA6;font-weight:600}
  .table-wrap.stack td.yes::before{content:attr(data-label);display:block;height:auto;background:none;margin:0;border-radius:0;vertical-align:baseline}
  .table-wrap.stack td:first-child{display:block;padding:10px 0 8px;font-weight:800;font-size:16px;color:#FFF;min-height:0}
  .table-wrap.stack td:first-child::before{display:none}
  .table-wrap.stack caption{text-align:left;padding-bottom:8px}
}

.formula{font-family:var(--font-mono);font-size:15px;background:var(--ink-card);border:1px solid #26262F;border-radius:10px;padding:14px 16px;color:#F2F2F5;overflow-x:auto;white-space:nowrap}

/* ---------- Field of view tool ---------- */
.fov-panel{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);grid-template-areas:"in out" "in bottom";gap:16px 28px;background:var(--ink-card);border:1px solid #26262F;border-radius:18px;padding:28px}
.fov-inputs{grid-area:in}.fov-out{grid-area:out}.fov-bottom{grid-area:bottom;display:flex;flex-direction:column;gap:10px;min-width:0}
@media (max-width:900px){
  .fov-panel{display:flex;flex-direction:column;padding:16px;gap:16px}
  .fov-out{order:1}.fov-inputs{order:2}.fov-bottom{order:3}
}
.fov-inputs{display:flex;flex-direction:column;gap:16px;min-width:0}
.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label,.field .lbl{font-size:14px;font-weight:700}
.field .hint{font-size:13px;color:#9A9AA6;margin:0}
.input{width:100%;min-height:48px;background:var(--ink);color:#F2F2F5;border:1px solid #3A3A44;border-radius:10px;padding:10px 14px;font-family:var(--font-sans);font-size:16px}
textarea.input{min-height:140px;resize:vertical}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.quick{display:flex;gap:6px;flex-wrap:wrap}
.quick button{min-height:44px;min-width:52px;border-radius:9px;cursor:pointer;font-family:var(--font-mono);font-size:14px;background:transparent;color:#F2F2F5;border:1px solid #3A3A44}
.quick button[aria-pressed="true"]{background:var(--tungsten);color:var(--ink);border-color:var(--tungsten)}
.mode-src{font-family:var(--font-mono);font-size:12px;color:#9A9AA6;line-height:1.5;margin:0}
.fov-out{display:flex;flex-direction:column;gap:16px;min-width:0}
.fov-results{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
@media (max-width:1100px){.fov-results{grid-template-columns:repeat(2,minmax(0,1fr))}}
.res{background:var(--ink);border-radius:12px;padding:12px 14px;min-width:0}
.res .k{font-family:var(--font-mono);font-size:12px;color:#9A9AA6}
.res .v{font-size:30px;font-weight:820;font-stretch:105%;line-height:1.15;white-space:nowrap}
.res.main .v{color:var(--tungsten)}
@media (max-width:700px){.res .v{font-size:26px}}
.fov-stage{position:relative;aspect-ratio:16/9;background:#000;border-radius:12px;overflow:hidden;display:flex;align-items:center;justify-content:center}
.fov-stage img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.55}
.fov-box{position:relative;border:2px solid var(--tungsten);box-shadow:0 0 0 2000px rgba(0,0,0,.45);transition:width .5s cubic-bezier(.22,.61,.36,1),height .5s cubic-bezier(.22,.61,.36,1)}
.stage-cap{position:absolute;left:10px;bottom:8px;font-family:var(--font-mono);font-size:12px;color:#FFF;background:rgba(0,0,0,.6);padding:3px 6px;border-radius:5px}
.fov-actions{display:flex;flex-wrap:wrap;gap:10px}
.unit-switch{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;color:#9A9AA6}
.status{font-size:13px;color:#9A9AA6;min-height:20px;margin:0}
.table-wrap{background:var(--ink-card);border-color:#26262F}
.table-wrap th{color:#9A9AA6;font-size:13px;font-weight:600}
.table-wrap .n{font-family:var(--font-mono);white-space:nowrap}
.table-wrap.narrow table{min-width:0}

/* ---------- Cameras and lenses ---------- */
.gear-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;align-items:flex-end}
.gear-counts{display:flex;gap:28px;flex-wrap:wrap;font-family:var(--font-mono);font-size:13px;color:#9A9AA6}
.gear-counts b{display:block;font-family:var(--font-sans);font-size:28px;color:#F2F2F5}
.gear-bar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:28px 0 16px}
.gear-bar .input{flex:1 1 280px;width:auto;background:var(--ink-card)}
.gear-list{border:1px solid #26262F;border-radius:14px;overflow:hidden}
.gear-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr) minmax(0,1fr) minmax(0,2fr);gap:4px 12px;padding:14px 18px;border-top:1px solid #1E1E26;font-size:15px;align-items:baseline}
.gear-row:first-child{border-top:0}
.gear-row.head{background:#101015;font-size:13px;color:#9A9AA6}
.gear-row .mk{color:var(--body)}
.gear-row .nm{font-weight:700}
.gear-row .c3,.gear-row .c4{font-family:var(--font-mono);font-size:14px;color:var(--body)}
.gear-row button.more{background:none;border:0;padding:0;font:inherit;color:var(--tungsten);cursor:pointer;text-align:left;min-height:24px;text-decoration:underline;text-underline-offset:3px}
.mode-cell{grid-column:1/-1}
.gear-row.detail{border-top:0;padding-top:0}
.mode-list{margin:8px 0 4px;padding:0;list-style:none;display:grid;gap:6px}
.mode-list li{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:14px;color:var(--body);border-left:2px solid #33333D;padding-left:12px}
.mode-list .sz{font-family:var(--font-mono);color:#F2F2F5}
.tag{font-family:var(--font-mono);font-size:11px;letter-spacing:.06em;text-transform:uppercase;border:1px solid #3A3A44;border-radius:999px;padding:1px 8px;color:#9A9AA6}
.tag.prov{border-color:#6E4519;color:var(--tungsten)}
.gear-more{padding:14px 18px;border-top:1px solid #1E1E26;color:var(--body);font-size:15px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.gear-empty{padding:24px 18px;color:var(--body);font-size:15px}
@media (max-width:700px){
  .gear-row{grid-template-columns:minmax(0,1fr) auto}
  .gear-row.head{display:none}
  .gear-row .mk{grid-column:1/-1;font-size:13px}
  .gear-row .c4{grid-column:1/-1}
}
.makers{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:8px;padding:0;margin:0}
.makers li{list-style:none;background:var(--ink-card);border:1px solid #26262F;border-radius:10px;padding:10px 14px;font-size:15px;display:flex;justify-content:space-between;gap:8px}
.makers li span{font-family:var(--font-mono);font-size:13px;color:#9A9AA6}
html.js .js-hide{display:none}
html:not(.js) .js-only{display:none}
.info-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:32px}
@media (max-width:800px){.info-cards{grid-template-columns:minmax(0,1fr)}}
.info-cards .card{background:var(--ink-card);border-color:#26262F}
.info-cards .card h2{font-size:20px;font-weight:800;margin-bottom:10px}
.info-cards .card p{margin:0;font-size:15px;color:var(--body)}

/* ---------- Help ---------- */
.help-hub{display:flex;flex-direction:column;gap:56px;padding-bottom:96px}
.help-search{background:var(--ink-card);border-color:#3A3A44;max-width:760px}
.help-hits{margin-top:10px;max-width:760px;background:var(--ink-card);border:1px solid #26262F;border-radius:12px;overflow:hidden}
.help-hits a{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 18px;border-top:1px solid #1E1E26;color:#F2F2F5;text-decoration:none;min-height:48px}
.help-hits a:first-child{border-top:0}
.help-hits a span{font-family:var(--font-mono);font-size:12px;color:#9A9AA6;white-space:nowrap}
.help-hits p{margin:0;padding:14px 18px;color:var(--body)}
.topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
@media (max-width:900px){.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.topic-grid{grid-template-columns:minmax(0,1fr)}}
.topic-card{display:flex;flex-direction:column;gap:8px;background:var(--ink-card);border:1px solid #26262F;border-radius:14px;padding:22px;text-decoration:none;color:#F2F2F5}
.topic-card:hover{color:#F2F2F5;border-color:#55555E}
.topic-card .t{font-size:19px;font-weight:700}
.topic-card .d{font-size:14px;line-height:1.5;color:#9A9AA6}
.topic-card .n{font-family:var(--font-mono);font-size:12px;color:var(--tungsten)}
.link-list{display:flex;flex-direction:column}
.link-list a{display:flex;align-items:center;min-height:48px;padding:8px 0;border-bottom:1px solid #1E1E26;color:#F2F2F5;text-decoration:none}
.link-list a:hover{color:var(--tungsten)}
.hub-lists{display:flex;flex-direction:column;gap:56px}
.link-list.popular{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px}
.topics-all{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 16px;align-items:start}
@media (max-width:900px){.topics-all,.link-list.popular{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.topics-all,.link-list.popular{grid-template-columns:minmax(0,1fr)}}
.topics-all h3{font-size:18px;margin-bottom:4px;scroll-margin-top:90px}
.help-page{padding:40px 0 96px}
.help-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:48px;align-items:start}
@media (max-width:1000px){.help-layout{grid-template-columns:minmax(0,1fr)}}
.help-article{background:var(--ink-card);border-color:#26262F;max-width:820px}
.help-article h1{font-size:30px;line-height:1.15}
@media (max-width:700px){.help-article h1{font-size:24px}}
html[data-theme="ink"] .help-answer{background:var(--ink);font-size:17px}
.help-article ol,.help-article ul{font-size:16px;color:var(--body)}
.help-article li{margin-bottom:6px}
.help-article p{color:var(--body);margin:0}
.help-article h2{font-size:19px;font-weight:700;margin-top:8px}
.help-article figure{margin:0}
.help-article figure img{border-radius:10px;border:1px solid #26262F}
.help-article figure.portrait{max-width:260px}
.help-article figcaption{font-size:13px;color:#9A9AA6;margin-top:6px}
.help-related{display:flex;flex-wrap:wrap;gap:0 18px;font-size:15px}
.help-related a{display:inline-flex;align-items:center;min-height:44px}
.help-side{display:flex;flex-direction:column;gap:8px}
.help-side h2{font-size:15px;font-weight:800;text-transform:uppercase;font-stretch:112%;margin-bottom:4px}

/* Contact form */
.contact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);gap:40px;border-top:1px solid #1E1E26;padding-top:48px}
@media (max-width:900px){.contact{grid-template-columns:minmax(0,1fr);gap:24px}}
.contact-copy{display:flex;flex-direction:column;gap:14px}
.contact-copy p{margin:0;color:var(--body);font-size:16px}
.contact form{display:flex;flex-direction:column;gap:14px;min-width:0}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
@media (max-width:600px){.form-row{grid-template-columns:minmax(0,1fr)}}
.hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.notice{display:none;border-radius:10px;padding:14px 16px;font-size:15px}
.notice.show,.notice:target{display:block}
.notice:target{scroll-margin-top:100px}
.notice.ok{background:#0F2A18;color:#C8F5D6}
.notice.err{background:#33110F;color:#FFD3CF}
.notice a{color:inherit}
.address{font-style:normal;color:var(--body);font-size:15px;line-height:1.6}
.contact form .btn{align-self:flex-start}


/* 404 */
.missing{padding-top:96px;padding-bottom:120px;display:flex;flex-direction:column;gap:20px;align-items:flex-start}

/* Print: the field of view answer for a call sheet */
@media print{
  .site-header,.site-footer,.no-print,.fov-stage,.fov-actions,.quick,.related,.skip-link,.doc-rail,.doc-toc-m{display:none!important}
  html,body{background:#FFF!important;color:#000!important}
  .fov-panel,.res,.table-wrap{background:#FFF!important;border-color:#999!important;color:#000!important}
  .res .v,.res.main .v,.table-wrap td,.h1,.h2,.lede,.mode-src{color:#000!important}
  .input{border:1px solid #999;background:#FFF;color:#000}
  a,.tag.prov{color:var(--tungsten-print)!important}
}
