/* Data views on the encyclopedia pages: inline SVG charts drawn at build time (filmlook/encyclopedia_charts.py).
   They read without JavaScript; each has a table beside it. Colours inside the charts come from the design tokens. */
.ency-figure { margin: 1rem 0 1.4rem; }
.ency-figure figcaption { font-size: .88rem; line-height: 1.6; color: var(--text2, #6b6460); margin: 0 0 .5rem; }
.ency-figure figcaption b { color: var(--ink, #34504b); font-weight: 600; margin-right: .4rem; }
.ency-mascot { float: left; width: 40px; height: 40px; border-radius: 50%; margin: .1rem .6rem .2rem 0; }
.ency-figure figcaption::after { content: ""; display: block; clear: both; }
.ency-chart { display: block; width: 100%; max-width: 46rem; height: auto; color: var(--text, #3f3a3b); font-family: inherit; overflow: visible; }
.ency-chart a { cursor: pointer; }
.ency-chart a circle, .ency-chart a rect { transition: stroke-width .15s ease; }
.ency-chart a:hover circle, .ency-chart a:focus-visible circle, .ency-chart a:hover rect, .ency-chart a:focus-visible rect { stroke-width: 2; }
.ency-chart a:focus-visible { outline: 2px solid var(--accent, #905760); outline-offset: 2px; }
.ency-figure details { margin-top: .5rem; font-size: .88rem; }
.ency-figure summary { cursor: pointer; color: var(--text2, #6b6460); }
.ency-figure table { margin-top: .4rem; }
.ency-lines { list-style: none; padding: 0; margin: .4rem 0; }
.ency-lines li { margin: .5rem 0; }
.ency-sort { font: inherit; font-weight: 600; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.ency-sort:hover, .ency-sort:focus-visible { color: var(--accent, #905760); text-decoration: underline; }
.ency-sort[aria-pressed="true"]::after { content: " ↑"; }
.ency-sort[aria-pressed="true"][data-dir="desc"]::after { content: " ↓"; }
.ency-compare td, .ency-compare th { white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .ency-bar { transform-box: fill-box; transform-origin: left center; animation: ency-grow .7s ease-out both; }
  @keyframes ency-grow { from { transform: scaleX(.05); } to { transform: scaleX(1); } }
}
/* Keep the search label on one line when the input fills a narrow phone column. */
.nf-filters label > span { flex-shrink: 0; }
.nf-filters input[type="search"] { min-width: 0; }
/* Photographer avatars: the hero icon links to "Why this icon?" on the same page. */
.ph-avatar { display: block; flex-shrink: 0; border-radius: 50%; line-height: 0; }
.ph-avatar:focus-visible { outline: 2px solid var(--accent, #905760); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .ph-avatar svg { transition: transform .15s ease; } .ph-avatar:hover svg { transform: scale(1.04); } }
.ph-avatar-img { display: block; width: 88px; height: 88px; }
/* Film profiles: the magazine block on a stock page, the compact/detailed index views and the comparison table. */
.fp-profile { margin: 1rem 0 1.4rem; }
.fp-head { display: grid; grid-template-columns: minmax(120px, 180px) 1fr; gap: 1rem; align-items: start; }
.fp-art svg, .fp-pack { display: block; width: 100%; max-width: 180px; height: auto; }
.fp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: .8rem; margin-top: .8rem; }
.fp-card { border: 1px solid var(--line, #e4dcd6); border-radius: 18px; padding: .8rem 1rem; background: var(--card, transparent); min-width: 0; }
.fp-card h3 { margin: 0 0 .5rem; font-size: 1rem; }
.fp-rating-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem .8rem; margin: 0; }
.fp-rating-list dt { font-weight: 600; }
.fp-rating-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.fp-stars { letter-spacing: .08em; color: var(--accent, #905760); }
.fp-basis, .fp-tag, .fp-chip { display: inline-block; font-size: .78rem; line-height: 1.4; padding: .05rem .5rem; border-radius: 999px; border: 1px solid var(--line, #e4dcd6); color: var(--text2, #6b6460); }
.fp-basis[data-basis="editorial"] { font-style: italic; }
.fp-unrated { font-size: .85rem; color: var(--text2, #6b6460); }
.fp-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .4rem; }
.fp-chip { font-size: .88rem; color: inherit; }
.fp-placeholder { display: flex; gap: .8rem; align-items: center; }
.fp-placeholder svg { flex-shrink: 0; opacity: .7; }
.fp-placeholder p { margin: 0; font-size: .88rem; color: var(--text2, #6b6460); }
.fp-sample { margin: .5rem 0; }
.fp-sample img { display: block; width: 100%; height: auto; border-radius: 12px; }
.fp-sample figcaption { font-size: .82rem; margin-top: .3rem; }
.fp-related { margin-top: .8rem; }
.fp-bar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .6rem 0; }
.fp-toggle { display: inline-flex; border: 1px solid var(--line, #e4dcd6); border-radius: 999px; overflow: hidden; }
.fp-bar button { font: inherit; font-size: .9rem; padding: .35rem .8rem; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 999px; }
.fp-toggle button[aria-pressed="true"] { background: var(--accent, #905760); color: #fff; }
.fp-compare-go, .fp-compare-clear { border: 1px solid var(--line, #e4dcd6) !important; }
.fp-bar button:disabled { opacity: .5; cursor: default; }
.fp-bar button:focus-visible, .fp-pick input:focus-visible { outline: 2px solid var(--accent, #905760); outline-offset: 2px; }
.fp-pick { display: flex; gap: .3rem; align-items: center; justify-content: center; font-size: .82rem; margin-top: .3rem; cursor: pointer; }
.fp-detail { display: none; }
.fp-list[data-fp-view="detailed"] { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.fp-list[data-fp-view="detailed"] .fp-detail { display: grid; grid-template-columns: auto 1fr; gap: .15rem .6rem; font-size: .82rem; text-align: left; margin: .4rem .2rem 0; }
.fp-detail dt { color: var(--text2, #6b6460); }
.fp-detail dd { margin: 0; overflow-wrap: anywhere; }
.fp-js-note[hidden] { display: none; }
.fp-compare { margin: 1rem 0; }
.fp-table th, .fp-table td { vertical-align: top; min-width: 8rem; }
.fp-table thead th a { display: block; }
.fp-remove { font: inherit; font-size: .75rem; margin-top: .2rem; padding: 0; border: 0; background: none; color: var(--text2, #6b6460); text-decoration: underline; cursor: pointer; }
@media (max-width: 600px) { .fp-head { grid-template-columns: 96px 1fr; } }
.fp-bar[hidden] { display: none; }
/* Film family diagram (filmlook/family_diagram.py): server-drawn SVG; nodes with a page are plain SVG links. */
.family-diagram { margin: 1rem 0 1.4rem; }
.family-diagram-svg { display: block; width: 100%; max-width: 40rem; height: auto; color: var(--text, #3f3a3b); font-family: inherit; overflow: visible; }
.family-diagram .fd-node { cursor: default; }
.family-diagram a.fd-node { cursor: pointer; }
.family-diagram a.fd-node:hover rect, .family-diagram a.fd-node:focus-visible rect { stroke-width: 2; }
.family-diagram a.fd-node:focus-visible { outline: 2px solid var(--accent, #905760); outline-offset: 2px; }
.family-diagram figcaption { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; font-size: .85rem; color: var(--text2, #6b6460); margin-top: .4rem; }
.fd-legend { display: inline-flex; flex-wrap: wrap; gap: .3rem .9rem; }
.fd-key { display: inline-flex; align-items: center; gap: .35rem; }
.fd-key svg { color: inherit; }
.fd-note { flex-basis: 100%; }
