* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 16px/1.7 var(--font-body); }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none!important; }
header { height: var(--header); padding: 0 clamp(18px,6vw,95px); display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--rule); gap: 10px; }
.brand { display: flex; align-items: baseline; gap: 5px; font: 400 31px var(--font-display); letter-spacing: -.06em; }
.brand span { margin-left: 9px; padding-left: 12px; border-left: 1px solid var(--rule); font: 600 14px sans-serif; letter-spacing: .04em; }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
header nav a:last-child { background: var(--brand-action); color: var(--on-action); border-radius: var(--r-pill); padding: 8px 18px; }
main { position: relative; isolation: isolate; height: calc(100svh - var(--header)); min-height: 340px; overflow: hidden; }
.wall { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 28px; padding: 0 28px; overflow: hidden; mask-image: linear-gradient(transparent,#000 6%,#000 94%,transparent); }
.reading-backdrop { position:absolute; inset:0; width:100%; height:100%; border:0; pointer-events:none; }
.focused > .wall { pointer-events:none; }
.col { min-width: 0; overflow: hidden; }
.track:where(:has(> div:nth-child(2))) { animation: stream 155s linear infinite; }
.col:nth-child(even) .track { animation-direction: reverse; }
.col:nth-child(3n+1) .track { animation-delay: -38s; }
.col:nth-child(3n+2) .track { animation-delay: -68s; }
.track>div { display: grid; gap: 28px; padding-bottom: 28px; }
@keyframes stream { to{transform:translateY(-50%)} }
.focused .track { animation-play-state: paused; }
.wall-card { display: grid; align-content: start; min-height: 0; background: color-mix(in srgb, var(--species-wash) 45%, #FFFDF9); border: 0; border-radius: var(--r-lg); padding: 24px 22px 26px; box-shadow: none; gap: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.wall-card small { color: var(--mute); font-size: 12px; }
.result small { color: var(--mute); font-size: 12px; }
.crumb { color: var(--mute); font-size: 12px; }
.count { color: var(--species-ink); font-size: 13px; display: inline-block; padding: 2px 12px; border-radius: var(--r-pill); background: var(--species-wash); }
.wall-card .species-icon { justify-self: start; display: grid; place-items: center; width: 7px; height: 7px; border-radius: 50%; background: var(--species-ink); font-size: 0; line-height: 1; color: transparent; opacity: .4; }
.wall-card span { display: none; }
.explore { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; padding: 12px 18px; pointer-events: none; }
.welcome { position: relative; top:var(--search-offset,0px); max-height:100%; overflow-y:auto; isolation: isolate; width: min(680px, 100%); text-align: center; pointer-events: auto; background: var(--paper); border: 1px solid rgb(58 44 34 / .07); border-radius: var(--r-xl); box-shadow: var(--shadow-stage); padding: 30px 44px 20px; }
.welcome h1 { font-size: clamp(24px,2.6vw,38px); font-weight: 400; margin: 0 0 14px; line-height: 1.45; }
.search { display: flex; align-items: center; pointer-events: auto; background: var(--card); border: 1px solid var(--outline); border-radius: var(--r-pill); box-shadow: inset 0 1px 2px rgb(58 44 34 / .06); padding: 6px 6px 6px 24px; min-width: 0; }
.search input { flex: 1; min-width: 0; height: 48px; background: transparent; border: 0; color: var(--ink); font: inherit; }
.welcome .search input { height: 50px; }
.search input:focus { outline: 0; }
.search:focus-within { outline: 0; box-shadow: 0 0 0 4px var(--accent-wash); border-color: var(--accent); }
.search button { background: var(--accent); width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.search i { width: 15px; height: 15px; position: relative; border: 2px solid white; border-radius: 50%; }
.search i:after { content: ""; position: absolute; width: 8px; height: 2px; background: white; right: -6px; bottom: -3px; transform: rotate(45deg); }
.scene { height: 210px; position: relative; display: grid; place-items: end center; }
.cat { width: 215px; pointer-events: auto; }
.cat picture { display: block; width: 100%; height: auto; }
.cat img { display: block; width: 100%; height: auto; }
.bubble { position: absolute; max-width: 178px; border-radius: var(--r-md); border: 1px solid rgb(58 44 34 / .28); background: var(--card); padding: 10px 14px; font-size: 13px; margin: 0; text-align: left; font-family: var(--font-body); font-weight: 400; font-synthesis: none; letter-spacing: .01em; line-height: 1.5; color: var(--ink); box-shadow: 0 2px 6px rgb(58 44 34 / .05); }
.bubble:empty { visibility: hidden; }
.bubble:after { content: ""; position: absolute; bottom: -6px; width: 10px; height: 10px; background: var(--card); border: solid var(--rule); border-width: 0 1px 1px 0; transform: rotate(45deg); border-color: rgb(58 44 34 / .28); }
.left { left: 1%; top: 20%; transform: rotate(-2deg); }
.right { right: 1%; top: 49%; transform: rotate(2deg); }
.dim { position: absolute; inset: 0; background: var(--scrim); }
.focus-panel { position: absolute; inset: 12px clamp(12px,3vw,48px); max-width: 1520px; margin: auto; overflow: auto; overscroll-behavior: contain; background: var(--paper); border-radius: var(--r-lg); box-shadow: var(--shadow-stage); scrollbar-width: thin; animation: rise .24s ease-out; scroll-padding-top: 90px; --gutter: clamp(18px,3vw,42px); --rail: min(26vw,300px); --gap: clamp(18px,2.3vw,32px); --primary: 780px; --brand-width: clamp(74px,10vw,120px); border: 1px solid var(--rule); }
@keyframes rise { from { transform: translateY(14px); opacity: .92; } }
.close { font-size: 30px; line-height: 1; padding: 8px; }
.discover-title { font-size: 24px; font-weight: 400; font-family: var(--font-display); font-synthesis: none; letter-spacing: .01em; line-height: 1.4; color: var(--ink); }
.topics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.topics section { border-top: 0; padding: 20px 22px 22px; background: var(--species-wash); border: 0; border-radius: var(--r-lg); }
.topics h2 { font-size: 22px; margin: 0; color: var(--species-ink); font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.result h2 { font-size: 20px; margin: 0 0 6px; line-height: 1.5; font-weight: 400; font-family: var(--font-display); font-synthesis: none; letter-spacing: .01em; }
.topics p { font-size: 14px; color: var(--ink-soft); margin: 5px 0 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips a { padding: 7px 14px; border: 1px solid transparent; border-radius: var(--r-pill); background: var(--card); font-size: 14px; border-color: var(--species-rule,var(--rule)); color: var(--species-ink); }
.pagination a { padding: 8px 14px; border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--card); font-size: 14px; min-width: 40px; text-align: center; }
.chips a:is(:hover,:focus-visible) { background: var(--species-ink); color: #fff; text-decoration: none; }
:is(.result-layout,.category-layout) h1 { font-size: clamp(28px, 3vw, 36px); margin: 8px 0 10px; color: var(--ink); font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; display: flex; align-items: center; gap: 12px; line-height: 1.35; }
.result-layout aside { border-left: 1px solid var(--rule); padding-left: 20px; }
.summary { padding: 16px 20px; border-left: 4px solid var(--ci-brand); background: var(--note); border-radius: var(--r-sm); }
.result { padding: 22px 0; border-top: 1px solid var(--rule); display: flex; align-items: flex-start; gap: 24px; block-size: auto; }
.result p { color: var(--ink-soft); font-size: 14px; line-height: 1.8; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.empty { color: var(--mute); text-align: center; padding: 32px 0; }
mark { background: var(--accent-wash); color: inherit; border-radius: 4px; padding: 0 .1em; }
#directory { height: 100svh; }
.home-heading:focus { outline: none; }
.welcome .home-heading { text-wrap: balance; font-size: clamp(28px, 2.5vw, 36px); font-weight: 400; margin: 0 0 24px; line-height: 1.4; letter-spacing: .05em; color: var(--ink); font-family: var(--font-display); font-synthesis: none; }
.brand-logo { flex: none; display: flex; align-items: center; }
.brand-logo img { display: block; width: clamp(90px,11vw,150px); height: auto; }
.topics h2 span { font-size: 0; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--species-icon) center / 24px no-repeat, rgb(255 255 255 / .8); }
.all-results { display: inline-flex; margin-top: 22px; text-decoration: none; color: var(--accent-strong); padding: 6px 16px; border-radius: var(--r-pill); background: var(--accent-wash); font-weight: 500; }
.result>div { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.result h2 a { display: -webkit-box; white-space: normal; overflow: hidden; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.thumbnail { width: clamp(120px, 13vw, 160px); flex: none; }
.thumbnail img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; border-radius: var(--r-md); }
.pagination a[aria-current] { background: var(--accent-strong); color: #fff; border-color: var(--accent-strong); }
.reading { max-width: 780px; margin-inline: auto; overflow-wrap: anywhere; }
.discussion { max-width: 780px; margin-inline: auto; overflow-wrap: anywhere; border-top: 1px solid var(--rule); margin-top: 28px; }
.related { max-width: 780px; margin-inline: auto; overflow-wrap: anywhere; border-top: 1px solid var(--rule); margin-top: 28px; }
.article-footer { max-width: 780px; margin-inline: auto; overflow-wrap: anywhere; border-top: 1px solid var(--rule); margin-top: 28px; display: flex; justify-content: center; text-align: center; gap: 12px 22px; flex-wrap: wrap; font-size: 13px; padding: 20px 0; }
.article-layout .chips { max-width: 780px; margin-inline: auto; overflow-wrap: anywhere; }
.reading h1 { font-family: var(--font-display); font-size: clamp(28px, 3vw, 40px); line-height: 1.45; margin: 12px 0 10px; font-weight: 400; font-synthesis: none; letter-spacing: .01em; color: var(--ink); text-wrap: pretty; }
.reading img { width: 100%; height: auto; border-radius: var(--r-lg); }
.reading h2 { font-size: 24px; margin: 2em 0 .7em; font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; line-height: 1.45; color: var(--ink); }
.discussion h2 { font-size: 22px; margin: 2em 0 .7em; font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; line-height: 1.45; color: var(--ink); }
.related h2 { font-size: 22px; margin: 2em 0 .7em; font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; display: flex; align-items: center; gap: 10px; line-height: 1.45; color: var(--ink); }
.reading p { line-height: 1.9; font-size: 17px; color: var(--ink-soft); }
.reading li { line-height: 1.9; font-size: 17px; color: var(--ink-soft); }
.reading .lead { padding: 18px 22px; background: var(--species-wash); border-radius: var(--r-lg); color: var(--ink); }
.reading details { padding: 16px 20px; background: var(--card); border-radius: var(--r-md); margin: 10px 0; border: 1px solid var(--rule); }
.references { padding: 14px 20px 14px 44px; background: var(--card); border-radius: var(--r-md); padding-left: 42px; font-size: 14px; border: 1px solid var(--rule); }
.reading summary { cursor: pointer; font-weight: 600; }
.reading summary::marker { color: var(--species-accent); }
.reading details[open] { border-color: transparent; background: var(--species-wash); }
.reading a { text-decoration: underline; text-underline-offset: .22em; color: var(--accent-strong); text-decoration-thickness: 1px; }
.article-footer a { text-decoration: underline; text-underline-offset: .2em; color: var(--mute); }
.related a { text-decoration: underline; text-underline-offset: .2em; display: block; padding: 9px 0; }
.search button:is(:hover,:focus-visible) { background: var(--accent-strong); }
.discussion button:is(:hover,:focus-visible) { background: color-mix(in srgb, var(--accent-strong) 85%, black); }
.stamp { color: var(--mute); font-size: 13px; }
.comment small { color: var(--mute); font-size: 13px; }
.discussion label { display: grid; gap: 8px; font-size: 14px; }
.discussion textarea { resize: vertical; width: 100%; font: inherit; border: 1.5px solid var(--outline); border-radius: var(--r-md); padding: 12px 14px; background: var(--card); }
.discussion button { margin: 10px 0; background: var(--accent-strong); color: #fff; border: 0; border-radius: var(--r-pill); padding: 10px 24px; cursor: pointer; font-size: 15px; font-weight: 500; }
.comment { padding: 15px 0; border-top: 1px solid var(--rule); }
.comment p { white-space: pre-wrap; margin: 4px 0; }
.owner-reply { margin: 12px 0 0 12px; padding: 10px 16px; border-left: 3px solid var(--accent); border-radius: 0; }
.panel-body>h1 { grid-column: 1; }
.panel-body>.chips { grid-column: 1; }
.panel-head .brand-logo img { width: 100%; }
.article-layout>.rail-boundary { grid-column: 2; grid-row: 1; align-self: stretch; }
.article-layout>div { min-width: 0; grid-column: 1; }
.result-layout>section { min-width: 0; grid-column: 1; }
.article-layout .ad-rail { grid-column: 2; grid-row: 1; align-self: start; display: grid; gap: 30px; padding: 0; border: 0; }
.result-layout .ad-rail { grid-column: 2; grid-row: 1; align-self: start; display: grid; gap: 30px; padding: 0; border: 0; }
.mobile-ad { display: none!important; }
.ad-rail:empty { display: none!important; }
.house-display { max-width: 728px; margin: 20px auto; color: var(--mute); container-type: inline-size; }
.ad-rail .house-display { width: 100%; margin: 0; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow-card); }
[data-ad-slot] .pr-caption { position: absolute; z-index: 2; top: 6px; right: 7px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: var(--r-pill); background: rgb(255 255 255 / .92); color: var(--ink-soft); font: 500 11px/1.4 var(--font-body); white-space: nowrap; letter-spacing: .04em; }
.house-art .pr-caption { top: auto; right: auto; bottom: 5px; left: 5px; }
.pr-invite { --pr-ground: var(--accent-wash); position: relative; isolation: isolate; overflow: hidden; display: grid; align-content: space-between; justify-items: start; aspect-ratio: 6/5; padding: 8cqw; color: var(--ink); border: 0; border-radius: 12px; background: var(--pr-ground); }
[data-ad-slot="sidebar-bottom"] .pr-invite { --pr-ground: var(--species-wash); }
[data-ad-slot="article-end"] .pr-invite { --pr-ground: var(--species-wash); aspect-ratio: auto; min-height: 96px; grid-template-columns: auto 1fr auto; align-items: center; align-content: center; gap: 4%; padding: 20px 12% 20px 4%; }
.pr-invite::before { content: ""; position: absolute; z-index: -1; border: 1px solid var(--rule); border-radius: 50%; width: 65%; aspect-ratio: 1; right: -26%; top: 18%; border-color: rgb(255 255 255 / .7); }
.pr-invite::after { content: ""; position: absolute; z-index: -1; border: 1px solid var(--rule); border-radius: 50%; width: 74%; aspect-ratio: 1; right: -30.5%; top: 13%; border-color: rgb(255 255 255 / .7); }
.pr-signature { width: 27%; height: auto; display: block; }
.pr-title { position: relative; z-index: 1; max-width: 65%; font: 400 clamp(18px,9cqw,29px)/1.35 var(--font-display); letter-spacing: .02em; text-wrap: balance; font-family: var(--font-display); font-weight: 400; font-synthesis: none; }
.pr-action { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--brand-action); border-bottom: 1px solid currentColor; }
.pr-monogram { position: absolute; right: 6%; bottom: 16%; width: 22%; height: auto; transform: rotate(-8deg); opacity: .76; }
a.pr-invite { text-decoration: none; }
a.pr-invite:hover { text-decoration: none; }
.pr-invite:hover { border-color: var(--ci-brand); }
.pr-invite:focus-visible { border-color: var(--ci-brand); }
.pr-invite:hover .pr-action { color: var(--action-hover); }
.pr-invite:focus-visible .pr-action { color: var(--action-hover); }
.article-layout [data-ad-slot="article-end"] { width: 100%; max-width: var(--primary); margin: 24px auto; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow-card); }
[data-ad-slot="article-end"] .pr-signature { width: clamp(55px,9cqw,98px); }
[data-ad-slot="article-end"] .pr-title { max-width: none; font-size: clamp(20px,3.1cqw,32px); }
[data-ad-slot="article-end"] .pr-monogram { width: 6%; right: 3%; bottom: auto; top: 50%; transform: translateY(-50%) rotate(-8deg); }
.panel-body>.topics { grid-column: 1/-1; }
.panel-body>.all-results { grid-column: 1/-1; }
.home-heading { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; }
.related-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: start; gap: 16px; }
.related .related-card { display: grid; align-content: start; padding: 0; gap: 9px; text-decoration: none; color: var(--ink); }
.related .house-native { display: grid; align-content: start; padding: 0; gap: 9px; text-decoration: none; color: var(--ink); }
.house-native { display: grid; align-content: start; padding: 0; gap: 9px; text-decoration: none; color: var(--ink); }
.related-card img { display: block; width: 100%; aspect-ratio: 8/5; border-radius: var(--r-md); overflow: hidden; object-fit: cover; height: auto; }
.house-art { display: block; width: 100%; aspect-ratio: 8/5; border-radius: var(--r-md); overflow: hidden; position: relative; background: var(--tint); }
.related-card strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 15px; font-weight: 400; line-height: 1.55; font-family: var(--font-display); font-synthesis: none; letter-spacing: .01em; color: var(--ink); }
.house-native strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; font-size: 15px; font-weight: 400; line-height: 1.55; font-family: var(--font-display); font-synthesis: none; letter-spacing: .01em; color: var(--ink); }
.related-card:hover strong { text-decoration: none; text-underline-offset: .2em; color: var(--accent-strong); }
.house-native:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.native-placement { scroll-margin-top: 100px; }
.house-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
#search-first { margin: 14px 0 20px; container-type: inline-size; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow-card); }
#search-first .house-art { height: 100px; aspect-ratio: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--accent-wash); overflow: hidden; }
#search-first .house-art img { mix-blend-mode: multiply; }
#search-first .house-native:hover .house-art { border-color: var(--ci-brand); }
[data-sponsor="fikago"] .fika-display { --ground: #f2e7da; --ink-ad: #372b22; display: grid; grid-template-columns: minmax(0,1fr) 47%; align-items: stretch; width: 100%; aspect-ratio: 6/5; border-radius: 10px; overflow: hidden; background: var(--ground); color: var(--ink-ad); text-decoration: none; }
.fika-display .fika-photo { grid-area: 1/2; display: block; min-width: 0; min-height: 0; overflow: hidden; }
[data-sponsor="fikago"] .fika-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; object-position: 65% center; }
.fika-display .fika-copy { grid-area: 1/1; min-width: 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(7px,4cqw,15px); gap: clamp(3px,1.6cqw,7px); }
.fika-model { font: 600 clamp(9px,3.5cqw,11px)/1.25 system-ui,sans-serif; letter-spacing: .04em; }
.fika-model b { display: block; font-size: 1.35em; letter-spacing: -.035em; }
.fika-copy strong { font: 650 clamp(17px,7.7cqw,26px)/1.35 "Songti TC","Noto Serif TC",serif; text-wrap: balance; }
.fika-action { font: 600 clamp(10px,3.7cqw,12px)/1.35 system-ui,sans-serif; }
.fika-display:is(:hover,:focus-visible) .fika-action { text-decoration: underline; text-underline-offset: 3px; }
[data-sponsor] .fika-copy .pr-caption { position: static; align-self: flex-start; max-width: 100%; margin-top: 2px; padding: 1px 0; border-radius: 0; background: none; color: inherit; font: 10px/1.25 system-ui,sans-serif; opacity: .84; }
[data-ad-slot="sidebar-bottom"] .fika-display { --ground: #263c31; --ink-ad: #fffaf2; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; }
[data-ad-slot="sidebar-bottom"] .fika-photo { grid-area: 1/1; }
[data-ad-slot="sidebar-bottom"] .fika-photo img { object-position: 60% 51%; }
[data-ad-slot="sidebar-bottom"] .fika-copy { grid-area: 2/1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 6px; padding: 3% 5%; }
[data-ad-slot="sidebar-bottom"] .fika-model { grid-column: 1/-1; }
[data-ad-slot="sidebar-bottom"] .fika-model b { display: inline; }
[data-ad-slot="article-end"] .fika-model b { display: inline; }
[data-ad-slot="sidebar-bottom"] .fika-copy strong { grid-column: 1/-1; font-size: clamp(17px,6.7cqw,23px); }
[data-ad-slot="sidebar-bottom"] .fika-copy .pr-caption { justify-self: end; align-self: center; margin: 0; }
[data-ad-slot="article-end"] .fika-display { --ground: #483529; --ink-ad: #fff9f0; aspect-ratio: auto; grid-template-columns: minmax(0,1fr) 36%; min-height: 90px; }
[data-ad-slot="article-end"] .fika-copy { display: grid; grid-template-columns: minmax(0,1fr) auto; align-content: center; align-items: end; gap: 4px 10px; padding: 8px 5%; }
[data-ad-slot="article-end"] .fika-copy strong { grid-column: 1/-1; grid-row: 2; font-size: clamp(16px,3.4cqw,25px); }
[data-ad-slot="article-end"] .fika-copy .pr-caption { grid-column: 2; grid-row: 1; align-self: center; margin: 0; }
[data-ad-slot="article-end"] .fika-action { grid-column: 1/-1; }
[data-ad-slot="article-end"] .fika-photo { position: relative; }
[data-ad-slot="article-end"] .fika-photo img { position: absolute; inset: 0; object-position: 74% 26%; }
[data-species="cats"] [data-ad-slot="article-end"] .fika-photo img { object-position: 50% 31%; }
#search-first .fika-panorama img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: cover; object-position: center 30%; mix-blend-mode: normal; }
#search-first .fika-panorama img:nth-child(2) { object-position: 54% center; }
#search-first .fika-panorama img:last-of-type { object-position: 60% 32%; }
[data-sponsor="fikago"] .fika-cover .pr-caption { top: auto; right: auto; bottom: 4px; left: 4px; }
.list-intro { color: var(--ink-soft); font-size: 15px; line-height: 1.75; margin: 10px 0 18px; }
.panel-body>.browse-heading { grid-column: 1/-1; font-size: 24px; margin: 0 0 14px; line-height: 1.4; color: var(--ink); }
.reading .question { padding: 18px 20px; border-bottom: 1px solid var(--rule); margin: 14px 0; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--card); }
.reading .opinion-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.reading .question h3 { min-width: 0; font-size: 18px; line-height: 1.55; margin: 0; font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; color: var(--ink); }
.reading .question p:last-child { margin-bottom: 0; }
.opinion-sources { display: flex; flex-wrap: wrap; justify-content: flex-end; flex: 0 0 auto; max-width: 36%; padding-left: 5px; }
.reading .opinion-sources a { display: grid; place-items: center; position: relative; margin-left: -5px; width: 30px; height: 30px; box-sizing: border-box; border: 2px solid var(--card); border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--rule); font: 600 11px/1 system-ui; text-decoration: none; }
.opinion-sources a:is(:hover,:focus-visible) { z-index: 1; }
.reading .references summary { padding: 3px 0; line-height: 1.55; font-weight: 500; }
.reading .references details p { margin: 3px 0 8px; }
.question-number { color: #fff; font-size: .85em; margin-inline-end: 8px; display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: var(--r-pill); background: var(--accent-strong); font: 600 12px/1 var(--font-body); vertical-align: 3px; }
:root { --header: 78px; --species-wash: var(--accent-wash); --species-ink: var(--accent-strong); --species-accent: var(--species-ink); --species-rule: var(--rule); --link: var(--accent-strong); --action-hover: var(--accent-strong); }
[data-species="cats"] { --species-wash: var(--cat-wash); --species-ink: var(--cat-ink); --species-icon: url("/icons/icon-cat.svg"); }
[data-species="dogs"] { --species-wash: var(--dog-wash); --species-ink: var(--dog-ink); --species-icon: url("/icons/icon-dog.svg"); }
[data-species="birds"] { --species-wash: var(--bird-wash); --species-ink: var(--bird-ink); --species-icon: url("/icons/icon-bird.svg"); }
[data-species="rabbits-and-rodents"] { --species-wash: var(--small-wash); --species-ink: var(--small-ink); --species-icon: url("/icons/icon-rabbit-rodent.svg"); }
[data-species] { --species-accent: var(--species-ink); --species-rule: color-mix(in srgb, var(--species-ink) 25%, var(--paper)); }
.browse-heading { font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; }
.reading .lead::before { font-family: var(--font-display); font-weight: 400; font-synthesis: none; letter-spacing: .01em; content: "重點整理"; display: block; margin-bottom: 6px; padding-left: 36px; min-height: 28px; line-height: 28px; font-size: 16px; color: var(--species-ink); background: url("/icons/icon-summary.svg") left center / 28px no-repeat; }
.wall-card:focus-visible { text-decoration: none; }
.welcome::before { content: ""; display: block; width: 104px; height: 36px; margin: 0 auto 12px; background: url("/pro-logo.webp") center / contain no-repeat; }
.search input::placeholder { color: var(--mute); }
.topics h2 a { color: inherit; }
.topics .chips:empty { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 10px 14px; border-radius: var(--r-md); background: rgb(255 255 255 / .6); }
.topics .chips:empty::before { content: ""; width: 56px; height: 56px; flex: none; background: url("/icons/empty-category.svg") center / contain no-repeat; }
.topics .chips:empty::after { content: "這個分類的主題整理中，先用上方搜尋找找看"; font-size: 13px; color: var(--species-ink); }
.result>div>small { order: 3; margin-top: 8px; font-size: 12px; color: var(--mute); }
.result h2 a:hover { color: var(--accent-strong); text-decoration: none; }
.pagination a:hover { background: var(--accent-wash); text-decoration: none; }
.empty::before { content: ""; display: block; width: 120px; height: 120px; margin: 0 auto 12px; background: url("/icons/empty-search.svg") center / contain no-repeat; }
.reading sup a { display: inline-block; margin-left: 2px; padding: 0 4px; border-radius: var(--r-sm); background: var(--accent-wash); color: var(--accent-strong); font-size: 11px; line-height: 1.6; text-decoration: none; }
.reading h2.section-qa::before { content: ""; width: 30px; height: 30px; flex: none; background-position: center; background-size: contain; background-repeat: no-repeat; background-image: url("/icons/icon-opinions.svg"); }
.reading h2.section-sources, .reading h2:has(+ .references), .reading .references li { font-size: 14px; }
.reading .references :is(p, a), .reading .source-note { font-size: 13px; }
.reading h2.section-sources::before { content: ""; width: 20px; height: 20px; flex: none; background-position: center; background-size: contain; background-repeat: no-repeat; background-image: url("/icons/icon-references.svg"); }
.discussion h2::before { content: ""; width: 30px; height: 30px; flex: none; background-position: center; background-size: contain; background-repeat: no-repeat; background-image: url("/icons/icon-discussion.svg"); }
.related h2::before { content: ""; width: 30px; height: 30px; flex: none; background-position: center; background-size: contain; background-repeat: no-repeat; background-image: url("/icons/icon-related.svg"); }
.reading .question p { font-size: 16px; }
.reading .references summary::marker { color: var(--accent); }
.article-layout .chips a { background: var(--species-wash); color: var(--species-ink); }
.discussion textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-wash); }
.article-footer a:hover { color: var(--accent-strong); }
.house-display.mobile-ad { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 8px; box-shadow: var(--shadow-card); }
.fika-display { border-radius: 12px; overflow: hidden; }
.result-layout[data-species]:not([data-species=""]) h1 { color: var(--species-ink); }
.result-layout[data-species]:not([data-species=""]) h1::before { content: ""; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--species-icon) center / 30px no-repeat, var(--species-wash); }
.wall-card strong { margin: 0; font-size: 15px; line-height: 1.7; font-weight: 500; color: color-mix(in srgb, var(--species-ink) 60%, #FFFDF9); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-body); font-synthesis: none; letter-spacing: .02em; }
.wall-card:focus-visible strong { color: var(--species-ink); }
.panel-head .brand-logo { position: static; width: var(--brand-width); transform: none; z-index: 1; grid-column: 1; grid-row: 1; }
.panel-head .search { width: 100%; margin: 0; flex: 1; grid-column: 2; grid-row: 1; padding-left: 20px; }
.reading .references details { margin: 0; padding: 6px 2px; border: 0; background: transparent; }
.reading .opinion-sources img { display: block; width: 22px; height: 22px; border-radius: 50%; object-fit: contain; }
.house-art.fika-cover img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: 52% 30%; }
#search-first .house-art.fika-panorama { height: 120px; display: grid; grid-template-columns: minmax(0,1fr) min(49%,285px) minmax(0,1fr); grid-template-rows: minmax(0,1fr); gap: 2px; border: 0; border-radius: 8px; background: #f7f1e9; }
.panel-body { padding: 24px clamp(20px,3.5vw,52px) 42px; max-width: calc(var(--primary) + var(--rail) + var(--gap)); margin: 0 auto; box-sizing: content-box; width: auto; margin-inline: auto; padding-inline: var(--gutter); display: grid; grid-template-columns: minmax(0,1fr) var(--rail); column-gap: var(--gap); }
.result-layout { display: grid; grid-template-columns: minmax(0,1fr) var(--rail); gap: var(--gap); grid-column: 1/-1; width: 100%; max-width: none; margin: 0; }
.article-layout { grid-column: 1/-1; display: grid; grid-template-columns: minmax(0,1fr) var(--rail); width: 100%; max-width: none; margin: 0; gap: var(--gap); }
.panel-head { position: sticky; top: 0; z-index: 3; display: grid; align-items: center; gap: clamp(14px,3vw,42px); background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px clamp(16px,3vw,44px); box-sizing: content-box; width: auto; max-width: calc(var(--primary) + var(--rail) + var(--gap)); margin-inline: auto; padding-inline: var(--gutter); grid-template-columns: var(--brand-width) minmax(0, 1fr); column-gap: 20px; }

@media (min-width: 761px) and (max-width: 1599px) {
  .wall { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .col:nth-child(n+6) { display: none; }
}
@media (min-width: 1600px) and (max-width: 1919px) {
  .wall { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col:nth-child(n+7) { display: none; }
}

@media(max-width:1100px) {
  .topics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media(max-width:760px) {
  :root { --header: 62px; }
  header { padding: 0 14px; }
  .brand { font-size: 24px; }
  .brand span { font-size: 12px; margin-left: 4px; padding-left: 7px; }
  nav { gap: 9px; font-size: 12px; }
  header nav a:last-child { padding: 5px 9px; }
  .wall-card { padding: 16px 14px 18px; min-height: 0; gap: 10px; border-radius: var(--r-md); }
  .wall-card strong { font-size: 14px; }
  .explore { padding: max(10px,env(safe-area-inset-bottom)) 10px; }
  .bubble { max-width: 121px; font-size: 12px; padding: 8px 11px; }
  .left { top: 8%; }
  .right { top: 20%; }
  .search input { height: 40px; }
  .search button { width: 36px; height: 36px; }
  .focus-panel { inset: 6px 8px; border-radius: var(--r-lg); scroll-padding-top: 70px; --gutter: 16px; --brand-width: 68px; }
  .result-layout { grid-template-columns: minmax(0,1fr); }
  .result-layout aside { border: 0; padding: 0; }
  .panel-body { padding: 14px var(--gutter) 28px; grid-template-columns: minmax(0,1fr); }
  .brand-logo img { width: 74px; }
  .panel-head input { font-size: 16px; }
  .result { block-size: auto; padding-block: 18px; }
  .result h2 { font-size: 18px; }
  .result p { font-size: 12px; }
  .thumbnail { display: none; }
  .welcome .home-heading { font-size: 22px; margin-bottom: 18px; }
  .track>div { gap: 12px; padding-bottom: 12px; }
  .article-layout { grid-template-columns: minmax(0,1fr); }
  .article-layout>.rail-boundary { display: none; }
  .article-layout .ad-rail { display: none; }
  .result-layout .ad-rail { display: none; }
  .house-display.mobile-ad { display: block!important; }
  .house-display { width: min(320px,100%); }
  .result-layout .mobile-ad { width: auto; max-width: none; margin: 24px 0; }
  .mobile-ad .pr-invite { aspect-ratio: auto; min-height: 100px; display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: center; gap: 4px 12px; padding: 12px 16px; background-color: var(--pr-ground); }
  [data-ad-slot="article-end"] .pr-invite { aspect-ratio: auto; min-height: 100px; display: grid; grid-template-columns: 1fr auto; align-content: center; align-items: center; gap: 4px 12px; padding: 12px 16px; background-color: var(--pr-ground); }
  .mobile-ad .pr-signature { width: 58px; grid-row: 1; grid-column: 1; }
  [data-ad-slot="article-end"] .pr-signature { width: 58px; grid-row: 1; grid-column: 1; }
  .mobile-ad .pr-title { grid-column: 1; grid-row: 2; font-size: 20px; max-width: none; }
  [data-ad-slot="article-end"] .pr-title { grid-column: 1; grid-row: 2; font-size: 20px; max-width: none; }
  .mobile-ad .pr-action { grid-column: 2; grid-row: 2; }
  [data-ad-slot="article-end"] .pr-action { grid-column: 2; grid-row: 2; }
  .mobile-ad .pr-monogram { display: none; }
  [data-ad-slot="article-end"] .pr-monogram { display: none; }
  .result-layout .mobile-ad .pr-invite { border-radius: 12px; }
  .related-grid { gap: 18px 12px; }
  .related-card strong { font-size: 13px; }
  .house-native strong { font-size: 13px; }
  .reading .house-display.mobile-ad[data-sponsor="fikago"] { width: 100%; max-width: none; }
  [data-sponsor="fikago"].mobile-ad .fika-display { grid-template: minmax(0,1fr) / minmax(0,55fr) minmax(0,45fr); aspect-ratio: 16/5; min-height: 90px; }
  [data-sponsor="fikago"][data-ad-slot="article-end"] .fika-display { grid-template: minmax(0,1fr) / minmax(0,55fr) minmax(0,45fr); aspect-ratio: 16/5; min-height: 90px; }
  [data-sponsor="fikago"].mobile-ad .fika-copy { grid-area: 1/1; display: flex; align-items: flex-start; gap: 2px; padding: 5px clamp(8px,3.4cqw,22px); }
  [data-sponsor="fikago"][data-ad-slot="article-end"] .fika-copy { grid-area: 1/1; display: flex; align-items: flex-start; gap: 2px; padding: 5px clamp(8px,3.4cqw,22px); }
  .mobile-ad .fika-model b { display: inline; }
  [data-sponsor="fikago"] .fika-copy strong { font-size: clamp(15px,5cqw,26px); line-height: 1.28; }
  [data-sponsor="fikago"] .fika-copy .pr-caption { align-self: flex-start; margin: 1px 0 0; }
  [data-sponsor="fikago"].mobile-ad .fika-photo { grid-area: 1/2; }
  [data-ad-slot="sidebar-bottom"].mobile-ad .fika-display { grid-template-columns: minmax(0,45fr) minmax(0,55fr); }
  [data-ad-slot="sidebar-bottom"].mobile-ad .fika-photo { grid-area: 1/1; }
  [data-ad-slot="sidebar-bottom"].mobile-ad .fika-copy { grid-area: 1/2; }
  .result-layout .mobile-ad .fika-display { border-radius: 12px; }
  .welcome { padding: 22px 18px 12px; border-radius: 24px; }
  .welcome::before { width: 84px; height: 30px; margin-bottom: 8px; }
  .panel-head { padding: 9px var(--gutter); gap: 10px; grid-template-columns: var(--brand-width) minmax(0,1fr); column-gap: 10px; }
  .panel-head .search { padding-left: 14px; }
}

@media(max-width:600px) {
  .topics { grid-template-columns: 1fr; gap: 5px; }
  .chips a { min-height: 44px; }
  header nav a:nth-child(2) { display: none; }
}

@media(prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none!important; transition: none!important; scroll-behavior: auto!important; }
}

@media(min-width:761px) {
  .article-layout .ad-rail { position: sticky; top: min(96px,calc(100dvh - min(43.334vw,500px) - 118px)); }
  .result-layout .ad-rail { position: sticky; top: min(96px,calc(100dvh - min(43.334vw,500px) - 118px)); }
}

@media(max-width:1050px) {
  .related-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@container (max-width:459px) {
  #search-first .house-art.fika-panorama { grid-template-columns: minmax(0,2fr) minmax(0,1fr); }
  #search-first .fika-panorama img:first-of-type { display: none; }
}

@media(min-width:761px) and (max-height:780px) {
  .welcome { padding-top: 22px; }
}

:root {
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in: cubic-bezier(.4, 0, 1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}


.wall-card[data-variant="image"] {
  padding: 0; gap: 0; overflow: hidden;
  background: #fff;
  border: 1px solid rgb(58 44 34 / .06);
}
.wall-card[data-variant="image"] .species-icon { display: none; }
.wall-card .wall-img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 8 / 5; object-fit: cover;
  opacity: .7;
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out);
}
.wall-card[data-variant="image"] strong {
  margin: 14px 18px 18px;
  color: color-mix(in srgb, var(--ink) 62%, #FFFDF9);
}


.wall-card[data-variant="excerpt"] span {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  font-size: 13px; line-height: 1.75;
  color: color-mix(in srgb, var(--ink) 42%, #FFFDF9);
}


.wall-card[data-variant="quote"] {
  background: color-mix(in srgb, var(--species-wash) 60%, #FFFDF9);
  padding: 22px 22px 28px; gap: 6px;
}
.wall-card[data-variant="quote"] .species-icon { display: none; }
.wall-card[data-variant="quote"]::before {
  content: "\201C";
  height: 30px;
  font: 400 54px/1 var(--font-display);
  color: var(--species-ink); opacity: .3;
}
.wall-card[data-variant="quote"] strong {
  font-family: var(--font-display); font-weight: 400; font-synthesis: none;
  font-size: 18px; line-height: 1.55; letter-spacing: .02em;
  -webkit-line-clamp: 4;
  color: color-mix(in srgb, var(--species-ink) 58%, #FFFDF9);
}

@media (hover: hover) and (pointer: fine) {
  main:has(.wall-card:hover) .track { animation-play-state: paused; }
}

main:has(.wall-card:focus-visible) .track { animation-play-state: paused; }

.track { will-change: transform; }
.col { contain: paint; }

@media (max-width: 760px) {
  .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0; }
  .col:nth-child(3) { display: block; }
  .col:nth-child(n+4) { display: none; }
  .track > div { gap: 10px; padding-bottom: 10px; }

  .wall-card { padding: 12px 11px 14px; border-radius: 14px; gap: 8px; }
  .wall-card strong { font-size: 13px; line-height: 1.6; -webkit-line-clamp: 4; }

  .wall-card[data-variant="excerpt"] span { display: none; }
  .wall-card .wall-img { aspect-ratio: 1; }
  .wall-card[data-variant="image"] strong { margin: 10px 11px 12px; -webkit-line-clamp: 3; }
  .wall-card[data-variant="quote"] { padding: 12px 11px 16px; }
  .wall-card[data-variant="quote"]::before { font-size: 36px; height: 20px; }
  .wall-card[data-variant="quote"] strong { font-size: 15px; }


  .welcome { padding: 18px 16px 10px; }
  .welcome::before { margin-bottom: 4px; }
  .scene { height: 130px; }
  .cat { width: 130px; }
}

@media (min-width: 761px) {
  .welcome { width: min(680px, 100%); padding: 26px 40px 20px; }
  .welcome .search { max-width: none; }
  .welcome::before { width: 92px; height: 32px; margin-bottom: 8px; }
  .welcome .home-heading { font-size: clamp(26px, 2.2vw, 32px); margin-bottom: 18px; }
  .scene { height: clamp(180px, 24vh, 220px); }
  .cat { width: clamp(190px, 16vw, 240px); }
  .bubble { font-size: 12.5px; }
}
@media (min-width: 761px) and (max-height: 780px) {
  .scene { height: 180px; }
  .cat { width: 195px; }
}

@keyframes wall-in  { from { opacity: 0; transform: translateY(40px); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(32px) scale(.97); } }
@keyframes fade-up  { from { opacity: 0; transform: translateY(12px); } }

.col { animation: wall-in 1.1s var(--ease-out) both; }
.col:nth-child(2) { animation-delay: .08s; }
.col:nth-child(3) { animation-delay: .16s; }
.col:nth-child(4) { animation-delay: .24s; }
.col:nth-child(5) { animation-delay: .32s; }
.col:nth-child(6) { animation-delay: .40s; }
.col:nth-child(7) { animation-delay: .48s; }

.welcome                  { animation: stage-in .9s var(--ease-out) .25s both; }
.welcome::before          { animation: fade-up .7s var(--ease-out) .45s both; }
.welcome > .home-heading  { animation: fade-up .7s var(--ease-out) .55s both; }
.welcome > .search        { animation: fade-up .7s var(--ease-out) .65s both; }
.welcome > .scene         { animation: fade-up .8s var(--ease-out) .75s both; }

[data-entered] .col,
[data-entered] .welcome,
[data-entered] .welcome::before,
[data-entered] .welcome > * { animation: none; }

@keyframes float { to { translate: 0 -6px; } }
.bubble { animation: float 3.2s ease-in-out infinite alternate; }
.bubble.right { animation-delay: -1.6s; }

.search { transition: border-color .25s, box-shadow .3s var(--ease-out); }
.search button { transition: background .2s, transform .3s var(--ease-spring); }
.search button:active { transform: scale(.93); }
@media (hover: hover) and (pointer: fine) { .search button:hover { transform: scale(1.07); } }

.welcome { transition: box-shadow .4s var(--ease-out); }
.welcome:has(.search:focus-within) {
  box-shadow: 0 1px 2px rgb(58 44 34 / .05), 0 16px 40px rgb(58 44 34 / .12), 0 48px 110px rgb(58 44 34 / .16);
}

.wall-card { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.wall-card strong { transition: color .25s; }

@media (hover: hover) and (pointer: fine) {
  .wall-card:hover {
    text-decoration: none;
    transform: translateY(-4px);
    box-shadow: 0 2px 4px rgb(58 44 34 / .05), 0 14px 30px rgb(58 44 34 / .10);
  }
  .wall-card:hover strong { color: var(--species-ink); }
  .wall-card[data-variant="image"]:hover .wall-img { transform: scale(1.05); opacity: 1; }

  .thumbnail { overflow: hidden; border-radius: var(--r-md); }
  .thumbnail img { transition: transform .6s var(--ease-out); }
  .result:hover .thumbnail img { transform: scale(1.04); }

  .related .related-card { transition: transform .35s var(--ease-out); }
  .related .related-card:hover { transform: translateY(-3px); }
}
.wall-card:focus-visible { transform: translateY(-4px); }


:where(a, button, .chips a, .pagination a, .all-results) {
  transition: color .16s, background-color .16s, border-color .16s, box-shadow .2s;
}
:where(button, .chips a, .pagination a):active { transform: scale(.97); }

.focus-panel { view-transition-name: panel; }
.dim         { view-transition-name: dim; }
.welcome     { view-transition-name: stage; }


::view-transition-old(root),
::view-transition-new(root) { animation: none; }
::view-transition-group(*) { animation-duration: .42s; animation-timing-function: var(--ease-out); }


::view-transition-new(panel):only-child { animation: vt-panel-in .46s var(--ease-out) both; }

::view-transition-old(panel):only-child { animation: vt-panel-out .28s var(--ease-in) both; }

::view-transition-old(panel) { animation: vt-fade-out .18s var(--ease-in) both; }
::view-transition-new(panel) { animation: vt-content-in .32s var(--ease-out) .05s both; }

::view-transition-new(dim):only-child   { animation: vt-fade-in .3s var(--ease-out) both; }
::view-transition-old(dim):only-child   { animation: vt-fade-out .25s var(--ease-in) both; }
::view-transition-old(stage):only-child { animation: vt-fade-out .2s var(--ease-in) both; }
::view-transition-new(stage):only-child { animation: vt-stage-in .5s var(--ease-out) both; }

@keyframes vt-panel-in   { from { opacity: 0; transform: translateY(28px) scale(.98); } }
@keyframes vt-panel-out  { to   { opacity: 0; transform: translateY(16px) scale(.985); } }
@keyframes vt-stage-in   { from { opacity: 0; transform: translateY(20px); } }
@keyframes vt-content-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes vt-fade-in    { from { opacity: 0; } }
@keyframes vt-fade-out   { to   { opacity: 0; } }


@supports (view-transition-name: a) {
  .focus-panel { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

@supports (animation-timeline: scroll()) {

  .focus-panel:has(.article-layout) .panel-head { position: sticky; }
  .focus-panel:has(.article-layout) .panel-head::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--accent);
    transform-origin: left; transform: scaleX(0);
    animation: read-progress linear both;
    animation-timeline: scroll(nearest block);
  }
  @keyframes read-progress { to { transform: scaleX(1); } }


  .reading h2, .reading .question, .related-card, .discussion {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  @keyframes reveal { from { opacity: 0; transform: translateY(18px); } }
}

@media (max-width: 760px) { .welcome { padding-bottom: 28px; } }
.wall-card[data-variant="image"]:focus-visible .wall-img { opacity: 1; }

html { -webkit-tap-highlight-color: transparent; }


html[data-loading]::after {
  content: ""; position: fixed; z-index: 1000; top: 0; left: 0;
  width: 40%; height: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  animation: loadbar 1.1s var(--ease-out) .12s infinite both;
}
@keyframes loadbar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }


.focus-panel[aria-busy="true"] .panel-body { opacity: .5; pointer-events: none; transition: opacity .2s .12s; }


#directory .is-pending { animation: pending-pulse .9s ease-in-out .1s infinite alternate; }
@keyframes pending-pulse { to { opacity: .6; transform: scale(.98); } }


:is(a, button, input, textarea):focus-visible { animation: focus-snap .25s var(--ease-out); }
@keyframes focus-snap { from { outline-offset: 8px; } }

.wall-card { position: relative; }
.wall-card::after {
  content: "閱讀 →";
  position: absolute; right: 14px; bottom: 10px;
  font: 500 12px/1 var(--font-body); color: var(--species-ink);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .25s, transform .35s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .wall-card:hover::after { opacity: 1; transform: none; }
  .wall-card:hover strong { color: var(--species-ink); }
}
.wall-card:focus-visible::after { opacity: 1; transform: none; }
.wall-card:active { transform: translateY(-1px) scale(.97); transition-duration: .08s; }
@media (max-width: 760px) { .wall-card::after { display: none; } }   


.cat { transition: transform .45s var(--ease-spring); }
@media (hover: hover) and (pointer: fine) { .cat:hover { transform: translateY(-6px) rotate(-1.5deg); } }
.cat:active { transform: scale(.96); transition-duration: .1s; }


.search:has(input:not(:placeholder-shown)) button {
  transform: scale(1.08);
}

.result {
  position: relative;
  border-radius: 0;
  transition: background-color .25s;
}
.result h2 a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.result h2 a::after {
  content: "→";
  display: inline-block; margin-left: 6px;
  color: var(--accent-strong);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .2s, transform .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .result:hover { background: color-mix(in srgb, var(--species-wash, var(--accent-wash)) 45%, transparent); }
  .result:hover h2 a { color: var(--accent-strong); text-decoration: none; }
  .result:hover h2 a::after { opacity: 1; transform: none; }
}
.result:active { background: color-mix(in srgb, var(--species-wash, var(--accent-wash)) 60%, transparent); }

.reading sup a { transition: background-color .16s, color .16s; }
@media (hover: hover) and (pointer: fine) { .reading sup a:hover { background: var(--accent-strong); color: #fff; } }


.references li { border-radius: var(--r-sm); scroll-margin-top: 96px; }
.references li:target { animation: target-flash 1.8s var(--ease-out); }
@keyframes target-flash { 0%, 30% { background: var(--accent-wash); } 100% { background: transparent; } }


.related .related-card:active { transform: scale(.98); }
.discussion button { transition: background-color .16s, transform .2s var(--ease-spring), box-shadow .2s; }
@media (hover: hover) and (pointer: fine) {
  .discussion button:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgb(168 78 27 / .25); }
}
.discussion button:active { transform: scale(.96); }

.ad-rail .house-display, .article-layout [data-ad-slot="article-end"], #search-first {
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ad-rail .house-display:hover, .article-layout [data-ad-slot="article-end"]:hover, #search-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgb(58 44 34 / .05), 0 14px 32px rgb(58 44 34 / .12);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-loading]::after { width: 100%; opacity: .6; transform: none; }   
  .is-pending { opacity: .6; }
}

main:has(.wall-card.is-pending) .track { animation-play-state: paused; }
.panel-head .search { position: relative; box-shadow:none; }
.panel-head .search button,.panel-head .popular-search { box-shadow:none; }
.popular-search { position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 5; max-height: 42dvh; overflow: auto; padding: 5px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-card); }
.popular-search [role="option"] { display: flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: var(--r-sm); cursor: pointer; overflow-wrap: anywhere; }
.popular-search [aria-selected="true"],.popular-search [role="option"]:hover { background: var(--accent-wash); }

/* The ordered list owns the number. The disclosure control has its own trailing gutter. */
.reading .references summary {
  display: block;
  position: relative;
  list-style: none;
  min-height: 44px;
  align-content: center;
  padding: 8px 28px 8px 2px;
  overflow-wrap: anywhere;
}
.reading .references summary::-webkit-details-marker { display: none; }
.reading .references summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 5px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: translateY(-65%) rotate(45deg);
}
.reading .references details[open] > summary::after { transform: translateY(-25%) rotate(225deg); }

.reading .editorial-viewpoint {
  color: var(--ink);
  font-weight: 700;
  padding: 0 .08em;
  background-image: linear-gradient(
    transparent 60%,
    color-mix(in srgb, var(--species-wash) 95%, var(--accent-wash)) 60%,
    color-mix(in srgb, var(--species-wash) 95%, var(--accent-wash)) 92%,
    transparent 92%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
@supports (animation-timeline: view()) {
  .reading .editorial-viewpoint {
    animation: hl-sweep linear both;
    animation-timeline: view();
    animation-range: entry 30% cover 40%;
  }
  @keyframes hl-sweep { from { background-size: 0% 100%; } }
}

.reader-poll { width: 100%; max-width: 780px; margin: 28px auto; color: var(--ink); scroll-margin-block-start: 96px; }
.reader-poll h3 { font: 400 1.3rem/1.45 var(--font-display); }
.poll-options { display: grid; margin: 0; }
.poll-options button {
  display: grid; grid-template-columns: 1rem minmax(0,1fr); align-items: center; gap: 12px;
  width: 100%; color: inherit; font: inherit; text-align: start; overflow-wrap: anywhere;
  cursor: pointer; touch-action: manipulation;
}
.poll-options button::before { content: ""; width: 1rem; height: 1rem; border: 1.5px solid; border-radius: 50%; box-sizing: border-box; }
.poll-options button:disabled { cursor: wait; }
.poll-result { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: baseline; gap: 4px 10px; }
.poll-result small, .poll-total { font-variant-numeric: tabular-nums; }
.poll-total, .poll-status { margin: 12px 0 0; font-size: .9rem; }
.poll-status:empty { display: none; }
.reader-poll {
  background: color-mix(in srgb, var(--species-wash) 55%, var(--card));
  border: 0; border-radius: var(--r-lg);
  padding: 24px 26px 22px;
}
.reader-poll h2 {                       
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 3px 12px;
  border-radius: var(--r-pill); background: var(--card);
  font: 600 12px/1.7 var(--font-body); letter-spacing: .06em;
  color: var(--species-ink);
}
.reader-poll h2::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: live-dot 2s ease-out infinite;
}
@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgb(221 110 44 / .55); }
  70%, 100% { box-shadow: 0 0 0 7px rgb(221 110 44 / 0); }
}
.reader-poll h3 { font-size: clamp(19px, 2.3vw, 23px); margin: 0 0 18px; color: var(--ink); }

.poll-options { gap: 10px; }
.poll-options button {
  min-height: 50px; padding: 12px 16px;
  border: 1.5px solid transparent; border-radius: var(--r-md);
  background: var(--card);
  box-shadow: 0 1px 2px rgb(58 44 34 / .06);
  transition: transform .25s var(--ease-spring), border-color .15s, background-color .15s, box-shadow .2s;
}
.poll-options button::before {
  border-color: var(--outline);
  transition: border-width .25s var(--ease-spring), border-color .15s;
}
@media (hover: hover) {
  .poll-options button:hover {
    border-color: var(--accent); background: var(--card);
    transform: translateX(4px);
    box-shadow: 0 4px 14px rgb(58 44 34 / .08);
  }
  .poll-options button:hover::before { border-color: var(--accent); }
}
.poll-options button:active { transform: scale(.98); }
.poll-options button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); }
.poll-options button[aria-pressed="true"]::before { border: 5px solid var(--accent); }
.poll-options button:disabled:not([aria-pressed="true"]) { opacity: .5; }


.poll-result {
  padding: 12px 16px 14px;
  background: var(--card);
  border: 1.5px solid transparent; border-radius: var(--r-md);
  animation: fade-up .45s var(--ease-out) both;
}
.poll-result:nth-child(2) { animation-delay: .06s; }
.poll-result:nth-child(3) { animation-delay: .12s; }
.poll-result:nth-child(4) { animation-delay: .18s; }
.poll-result:nth-child(5) { animation-delay: .24s; }
.poll-result small { font-weight: 600; color: var(--ink-soft); }
.poll-result progress {
  -webkit-appearance: none; appearance: none;
  height: 10px; margin-top: 6px;
  border: 0; border-radius: var(--r-pill); overflow: hidden;
  background: color-mix(in srgb, var(--species-wash) 70%, var(--rule));
}
.poll-result progress::-webkit-progress-bar { background: transparent; }
.poll-result progress::-webkit-progress-value {
  background: color-mix(in srgb, var(--species-ink) 40%, var(--card));
  border-radius: var(--r-pill);

}
.poll-result progress::-moz-progress-bar {
  background: color-mix(in srgb, var(--species-ink) 40%, var(--card));
  border-radius: var(--r-pill);
}
@keyframes bar-grow { from { transform: scaleX(0); } }
.poll-result.is-mine { border-color: var(--accent); }
.poll-result.is-mine progress::-webkit-progress-value { background: var(--accent); }
.poll-result.is-mine progress::-moz-progress-bar { background: var(--accent); }
.poll-choice {
  margin-left: 8px; padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--accent-wash); color: var(--accent-strong);
  font-size: 12px; font-weight: 600; vertical-align: 1px;
}
.poll-total {
  display: flex; align-items: center; gap: 8px;
  color: var(--ink-soft); font-weight: 500;
  animation: fade-up .45s var(--ease-out) .4s both;
}
.poll-total::before {
  content: "✓";
  display: grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px;
}
.poll-track { grid-column: 1/-1; height: 10px; margin-top: 6px; border-radius: var(--r-pill); overflow: hidden; background: color-mix(in srgb, var(--species-wash) 70%, var(--rule)); }
.poll-result .poll-track progress { display: block; width: 100%; margin: 0; background: transparent; transform-origin: left; animation: bar-grow 1s var(--ease-out) .2s both; }
@media (max-width: 760px) { .reader-poll { padding: 18px 14px; } }
.welcome .article-footer{border:0;margin:6px 0 0;padding:0;gap:4px 12px;font-size:12px}
.collection-guide{margin:12px 0 18px}.collection-guide summary{cursor:pointer;color:var(--accent-strong)}.collection-guide li{margin:.45em 0}
.reading .context-link{padding:.65em 1em;border-inline-start:3px solid var(--rule);font-size:.92em}
.welcome .home-heading{display:block}.welcome .home-heading small{display:block;font:500 .75rem/1.4 var(--font-body,sans-serif);letter-spacing:.12em;color:var(--mute);margin-bottom:.35rem}

/* Inventory uses the width available inside the reading panel. */
.panel-body { container: panel / inline-size; }
.focus-panel { --rail:336px; --sponsor-rule:1px dashed color-mix(in srgb,var(--rule) 60%,transparent); }
.article-column,.result-layout>section { width:100%; min-width:0; }
.article-layout .ad-rail,.result-layout .ad-rail {
  display:flex; flex-direction:column; gap:14px; position:sticky; top:var(--rail-top,90px); align-self:start; padding:0; border:0;
}
.ad-slot { display:flex; flex-direction:column; align-items:center; margin:28px 0; container: ad / inline-size; }
.ad-framed,.ad-pair,.inline-ad-row { padding-bottom:18px; border-bottom:var(--sponsor-rule); }
.sponsor-label { display:flex; width:100%; align-items:center; gap:12px; margin-bottom:16px; color:var(--mute); font:500 11px/1.4 var(--font-body); letter-spacing:.12em; }
.sponsor-label::before,.sponsor-label::after { content:""; flex:1; border-top:var(--sponsor-rule); }
.ad-badge { position:absolute; top:6px; left:6px; padding:2px 7px; border-radius:12px; background:rgba(255,255,255,.94); color:#514338; font:500 11px/1.4 var(--font-body); }
.related-img .ad-badge { top:auto; bottom:6px; }
.sticky-start-rule { margin:24px 0 16px; }
.sticky-end-rule { margin-top:18px; border-top:var(--sponsor-rule); }
.ad-rail .ad-slot,.ad-pair .ad-slot { margin:0; }
.inline-ad-row,.ad-slot:is([data-device="mobile"],[data-device="phone"],[data-device="tablet"]) { display:none; }
.ad-pair { display:flex; flex-wrap:wrap; justify-content:center; column-gap:24px; margin:32px 0; }
.ad-pair .ad-slot { flex:1 1 0; min-width:0; }
.ad-slot .ad-unit {
  position:relative; display:grid; grid-template:62.4% minmax(0,1fr) / minmax(0,1fr) auto; align-items:center;
  width:300px; height:250px; overflow:hidden; background:#faf2e8; color:#302821;
  text-decoration:none; text-align:left; border-radius:8px; outline:1px solid var(--rule); outline-offset:-1px;
}
.ad-unit img { display:block; width:100%; height:100%; min-width:0; object-fit:cover; grid-column:1/-1; border-radius:0; }
.ad-copy { display:grid; gap:4px; padding-left:14px; }
.ad-copy small { font:600 11px/1.2 var(--font-body); color:#745d4d; }
.ad-copy strong { font:600 16px/1.35 var(--font-body); }
.ad-cta { margin:0 12px; padding:5px 9px; background:#5a4838; color:white; border-radius:20px; font:500 12px/1.35 var(--font-body); }
.ad-unit { flex:none; }
.reading { position:relative; }
.sticky-trigger { display:block; height:1px; pointer-events:none; }
.ad-sticky { position:relative; padding:0; margin:0; pointer-events:none; }
.ad-sticky.is-pinned { position:sticky; bottom:0; z-index:4; }
.ad-sticky:not(.is-pinned) .ad-close { display:none; }
.ad-sticky > :is(a,button) { pointer-events:auto; }
.ad-sticky.is-pinned { animation:ad-rise .28s ease-out; }
@keyframes ad-rise { from { transform:translateY(100%); } }
@media(prefers-reduced-motion:reduce){ .ad-sticky.is-pinned { animation:none; } }
.ad-close { position:absolute; top:-6px; right:max(0px,calc((100% - 728px)/2 - 6px)); width:30px; height:30px; border-radius:50%; border:1px solid var(--rule); background:var(--paper); color:var(--ink); cursor:pointer; line-height:1; font-size:18px; }
@container ad (width < 728px){ .ad-close { right:max(0px,calc((100% - 320px)/2 - 6px)); } }
.related-grid { grid-template-columns:repeat(4,minmax(0,1fr)); row-gap:22px; }
.related-img { position:relative; display:block; aspect-ratio:8/5; border-radius:var(--r-md); overflow:hidden; background:var(--species-wash); }
.related-img img { height:100%; }
@container panel (width < 1060px) {
  .article-layout,.result-layout { grid-template-columns:minmax(0,1fr); }
  .article-column,.result-layout>section { max-width:780px; margin-inline:auto; }
  .article-layout>.rail-boundary,.result-layout .ad-rail,.ad-pair,.ad-slot[data-device="desktop"] { display:none; }
  .inline-ad-row { display:flex; flex-wrap:wrap; column-gap:clamp(12px,2vw,24px); margin:28px 0; }
  .inline-ad-row .ad-slot { flex:1 1 0; min-width:0; margin:0; }
  .ad-slot[data-device="mobile"] { display:flex; }
  @media(min-width:761px){
    .ad-slot[data-device="tablet"] { display:flex; }
  }
  @media(max-width:760px){
    .ad-slot[data-device="phone"] { display:flex; }
    .inline-ad-row:not(:has(> [data-device="mobile"])) { display:none; }
  }
}
@media(max-width:760px){
  .focus-panel:has(.article-layout,.result-layout) { inset-inline:0; border-inline:0; }
  .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(min-width:761px) and (max-width:820px){
  .focus-panel { inset-inline:6px; }
}
/* Only the ad row may use the panel gutters when the text column is too narrow. */
@media(max-width:370px){
  .focus-panel { container: ad-space / inline-size; }
}
@container panel (width < 320px){
  .ad-slot[data-ad-slot="top"],.article-column>.ad-sticky { margin-inline:calc(-1 * var(--gutter)); }
}
@container panel (width < 300px){
  .inline-ad-row,.ad-slot[data-device="phone"],.result-layout>section>.ad-slot[data-device="mobile"] { margin-inline:calc(-1 * var(--gutter)); }
}
@container ad-space (width < 320px){
  .ad-slot[data-ad-slot="top"],.ad-slot.ad-sticky,.sticky-start-rule,.sticky-end-rule { display:none; }
}
@container ad-space (width < 300px){
  .ad-slot[data-ad-slot]:has(.ad-unit[data-size="300x250"]),.inline-ad-row { display:none; }
}
/* House campaign: editorial photographs, live copy and a single text link. */
.ad-slot[data-sponsor="procrustes"] { --ad-paper:#f1ece1; --ad-ink:#363d31; }
.ad-slot[data-sponsor="procrustes"]:is([data-ad-slot="b"],[data-ad-slot="d"]) { --ad-paper:#334b41; --ad-ink:#fff9eb; }
.ad-slot[data-sponsor="procrustes"] .ad-unit { background:var(--ad-paper); color:var(--ad-ink); outline:none; }
[data-sponsor="procrustes"] .ad-copy { padding:0; gap:6px; }
[data-sponsor="procrustes"] .ad-copy small { font:600 10px/1.2 var(--font-body); letter-spacing:.12em; color:inherit; }
[data-sponsor="procrustes"] .ad-copy strong { color:inherit; font:500 21px/1.35 var(--font-display); text-wrap:balance; }
[data-sponsor="procrustes"] .ad-cta { justify-self:start; margin:0; padding:0 0 2px; border-radius:0; background:none; color:inherit; border-bottom:1px solid currentColor; font:600 12px/1.3 var(--font-body); }
[data-sponsor="procrustes"] .ad-unit[data-size="300x250"] { grid-template:133px 1fr 28px / 1fr; }
[data-sponsor="procrustes"] .ad-unit[data-size="300x250"] :is(.ad-copy,.ad-cta) { margin-inline:18px; }
[data-sponsor="procrustes"]:is([data-ad-slot="b"],[data-ad-slot="d"]) .ad-unit { grid-template:1fr auto / 49% 1fr; }
[data-sponsor="procrustes"]:is([data-ad-slot="b"],[data-ad-slot="d"]) .ad-unit img { grid-area:1 / 1 / 3 / 2; }
[data-sponsor="procrustes"]:is([data-ad-slot="b"],[data-ad-slot="d"]) .ad-copy { align-self:end; }
[data-sponsor="procrustes"]:is([data-ad-slot="b"],[data-ad-slot="d"]) .ad-cta { margin-block:18px; }
/* Width is measured inside each placement, including each half of an inline pair. */
@container panel (min-width:1060px) {
  .article-layout,.result-layout { grid-template-columns:minmax(0,1fr) clamp(300px,calc(100% - var(--primary) - var(--gap)),336px); }
}
@container ad (min-width:336px) {
  .ad-slot .ad-unit[data-size="300x250"] { zoom:1.12; }
  .panel-body:not([data-roomy-rail]) .ad-rail .ad-unit[data-size="300x250"] { zoom:1; }
}
.ad-slot .photo-banner { width:728px; height:90px; grid-template:100% / 170px minmax(0,1fr) auto; }
.photo-banner img { grid-column:1; }
[data-sponsor="procrustes"] .photo-banner { grid-template-columns:25% minmax(0,1fr) auto; column-gap:18px; padding-right:24px; box-sizing:border-box; }
@container ad (width < 728px) {
  .ad-slot .photo-banner { width:320px; height:100px; grid-template-columns:90px minmax(0,1fr) auto; }
  .ad-sticky .photo-banner { height:50px; grid-template-columns:72px minmax(0,1fr) auto; }
  .photo-banner .ad-copy { padding-left:8px; gap:2px; }
  .photo-banner .ad-copy strong { font-size:14px; }
  .photo-banner .ad-cta { margin:0 5px; padding:4px 6px; font-size:11px; }
  [data-sponsor="procrustes"] .photo-banner { column-gap:7px; padding-right:8px; }
  .ad-sticky[data-sponsor="procrustes"] .photo-banner { grid-template-columns:58px minmax(0,1fr) auto; }
  [data-sponsor="procrustes"] .photo-banner .ad-copy { padding:0; }
  [data-sponsor="procrustes"] .photo-banner .ad-cta { margin:0; padding:0; }
  .ad-sticky .photo-banner .ad-copy strong { font-size:13px; line-height:1.22; }
}
.ad-slot .brand-banner[data-size] {
  width:728px; height:90px; padding:0 32px; box-sizing:border-box; grid-template:1fr / 136px 1fr auto;
  column-gap:32px; background:#f5f1e9; color:#39392f; border:1px solid var(--rule); outline:0;
}
.ad-slot[data-sponsor="fikago"] .brand-banner { background:#f0eee6; }
.brand-banner img { grid-column:1; object-fit:contain; }
.brand-message { border-left:1px solid var(--rule); padding-left:26px; display:grid; gap:3px; }
.brand-message strong { font:600 24px/1.3 var(--font-display); }
.brand-message small { font:400 13px/1.4 var(--font-body); color:var(--ink-soft); }
.brand-arrow { font:500 22px/1 var(--font-body); }
@container ad (width < 728px) {
  .ad-slot .brand-banner[data-size] { width:320px; height:100px; padding:0 15px; grid-template-columns:82px 1fr auto; column-gap:12px; }
  .ad-sticky .brand-banner[data-size] { height:50px; }
  .brand-message { padding-left:12px; }
  .brand-message strong { font-size:18px; }
  .ad-sticky .brand-message strong { font-size:14px; }
  .brand-message small { display:none; }
  .brand-arrow { font-size:14px; }
}
/* A network image keeps the exact dimensions of the accepted response. */
.ad-slot .ad-unit.network-banner { display:block; width:auto; height:auto; padding:0; background:transparent; outline:0; border:0; border-radius:0; }
.ad-slot .network-banner[data-network-size="728x90"] { width:728px; height:90px; }
.ad-slot .network-banner[data-network-size="320x100"] { width:320px; height:100px; }
.ad-slot .network-banner[data-network-size="320x50"] { width:320px; height:50px; }
.ad-slot .network-banner[data-network-size="336x280"] { width:336px; height:280px; }
.ad-slot .network-banner[data-network-size="300x250"] { width:300px; height:250px; }
.ad-slot .network-banner img { display:block; width:100%; height:100%; padding:0; }
.site-footer { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; border-top:1px solid var(--rule); margin:56px 0 0; padding:20px 0 4px; }
.sf-logo { width:auto; height:24px; }
.sf-cats,.sf-about { display:flex; align-items:center; flex-wrap:wrap; gap:6px; }
.sf-cats a { padding:5px 12px; border-radius:var(--r-pill); background:var(--species-wash); color:var(--species-ink); font:500 13px/1.4 var(--font-body); }
.sf-about { margin-left:auto; gap:6px 14px; }
.sf-about a { display:inline-flex; align-items:center; gap:3px; font-size:13px; color:var(--mute); }
.sf-about a:hover { color:var(--accent-strong); }
.sf-about span[aria-hidden] { font-size:11px; }
.sf-copy { font-size:12px; color:var(--mute); }
.sf-top { width:34px; height:34px; border:1px solid var(--rule); border-radius:50%; background:var(--card); color:var(--ink-soft); cursor:pointer; }
.sf-sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.panel-body h1:focus { outline:none; }
.welcome .article-footer { border:0; margin:12px 0 0; padding:0; gap:0; font-size:12px; }
.welcome .article-footer a { padding:2px 10px; line-height:1.2; color:var(--mute); text-decoration:none; }
.welcome .article-footer a+a { border-left:1px solid var(--rule); }
@media(max-width:760px){
  .welcome .article-footer { display:grid; grid-template-columns:repeat(2,minmax(0,max-content)); gap:4px 0; }
  .welcome .article-footer a { padding:6px 12px; white-space:nowrap; }
  .welcome .article-footer a:nth-child(odd) { border-left:0; }
  .site-footer { gap:14px 12px; margin-top:40px; }
  .sf-copy { margin-left:auto; }
  .sf-cats { order:3; width:100%; }
  .sf-about { order:4; width:100%; display:grid; grid-template-columns:1fr 1fr; margin-left:0; }
  .sf-about a { min-height:28px; }
}

/* Article and category inventory share the same viewport tiers. */
.focus-panel:has(.story-layout) {
  --story-width:300px; --layout-width:var(--story-width); --tile:300px; --tile-height:250px;
  inset-inline:0; max-width:min(100%,calc(var(--layout-width) + 64px)); border-inline:0;
}
.focus-panel:has(.story-layout) :is(.panel-body,.panel-head) {
  width:min(100%,var(--layout-width)); max-width:none; padding-inline:0; box-sizing:border-box;
}
.panel-body:has(.story-layout) { display:block; }
.story-layout {
  --card-mode:phone; --rec-width:var(--tile); --rec-height:var(--tile-height);
  display:grid; width:100%; grid-template-columns:minmax(0,1fr);
  grid-template-areas:"title" "body" "related"; align-items:start;
}
.story-heading { grid-area:title; }
.story-main { grid-area:body; min-width:0; }
.story-heading,.story-main .reading,.related.story-related { width:100%; max-width:none; margin-inline:0; }
.story-layout .chips { margin-block:22px; }
.story-related { grid-area:related; }
.story-layout > .story-ad[data-ad-slot="billboard"],.story-rail,.story-toc { display:none; }
.story-layout .story-ad,.story-layout .story-card {
  text-decoration:none; color:var(--ink); display:grid; position:relative; box-sizing:border-box; align-content:start;
  width:var(--tile); height:var(--tile-height); min-width:0; overflow:hidden; padding:0; border:0; border-radius:0;
}

.story-layout :is(.story-ad,.story-card) { border-radius:var(--r-md); }
.story-layout :is(.story-ad,.story-card) > :is(img,video) {
  display:block; position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:inherit;
}
.story-card strong {
  position:absolute; inset:auto 0 0; padding:35px 14px 12px;
  color:white; background:linear-gradient(transparent,rgba(19,18,15,.83));
  font:500 16px/1.45 var(--font-display); overflow-wrap:anywhere;
}
.story-card strong span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.story-zone,.story-native { display:flex; align-items:start; justify-content:space-between; }
.story-zone { margin:28px 0; }
.story-zone>.story-card,.story-zone>.story-ad~.story-ad { display:none; }
.story-cards { display:grid; grid-template-columns:repeat(var(--rec-cols,1),var(--rec-width)); justify-content:space-between; gap:20px 0; }
.story-cards .story-card,.story-cards .story-ad { width:var(--rec-width); height:var(--rec-height); }
.story-card:hover strong { text-decoration:underline; }
.story-cards:not([data-ready])>.story-card:nth-child(n+5) { display:none; }
.story-layout .story-toc,.story-layout .story-rail { position:sticky; top:90px; align-self:start; }
.story-toc-track { display:none; grid-area:toc; align-self:stretch; }
.story-layout .story-native[hidden] { display:none; }
.story-toc { flex-direction:column; align-items:stretch; gap:3px; max-height:calc(100dvh - 130px); overflow:auto; font:400 14px/1.5 var(--font-body); }
.story-toc strong { margin-bottom:8px; }
.story-toc a { color:var(--mute); padding:6px 9px; border-left:2px solid transparent; text-decoration:none; }
.story-toc a[aria-current] { border-color:var(--accent); color:var(--ink); background:var(--species-wash); }
.story-main h2 { scroll-margin-top:15px; }
.story-layout .story-rail { grid-area:rail; flex-direction:column; gap:16px; --tile:300px; --tile-height:250px; }
.story-layout [data-ad-slot="rail-tall"] { height:600px; }
.story-layout > .story-ad[data-ad-slot="billboard"] { grid-area:bill; width:970px; height:250px; margin-bottom:20px; }

@media (min-width:368px) {
  .focus-panel:has(.story-layout) { --story-width:336px; --tile:336px; --tile-height:280px; }
}
@media (min-width:431px) and (max-width:655.98px) {
  .focus-panel:has(.story-layout) { --story-width:calc(100vw - 32px); --tile:250px; --tile-height:250px; }
  .story-layout { --card-mode:fold; }
  .story-zone,.story-native { gap:16px; }
  .story-zone>.story-card,.story-native>.story-card:last-child { display:grid; flex:1; width:auto; }
  .story-cards { grid-template-columns:minmax(0,1fr); }
  .story-cards>.story-card { width:100%; height:108px; }
}
@media (min-width:506px) and (max-width:655.98px) {
  .focus-panel:has(.story-layout) { --tile:300px; }
}
@media (min-width:522px) and (max-width:655.98px) {
  .focus-panel:has(.story-layout) { --story-width:calc(100vw - 48px); }
}
.category-layout .story-zone > .story-ad[data-ad-slot$="-middle"] { display:none; }
@media (min-width:656px) {
  .focus-panel:has(.story-layout) { --story-width:624px; --tile:300px; --tile-height:250px; }
  .story-layout { --card-mode:pair; --rec-cols:2; }
  .story-zone>.story-ad~.story-ad { display:grid; }
  .zone-opinions { display:none; }
  .story-cards:not([data-ready])>.story-card:nth-child(-n+6) { display:grid; }
}
@media (min-width:744px) and (max-width:1099.98px) {
  .focus-panel:has(.story-layout) { --story-width:696px; --tile:336px; --tile-height:280px; }
}
@media (min-width:900px) and (max-width:1099.98px) {
  .focus-panel:has(.story-layout) { --story-width:728px; }
}
@media (min-width:1100px) {
  .focus-panel:has(.story-layout) { --layout-width:970px; }
  .story-layout { grid-template-columns:var(--story-width) 300px; justify-content:space-between; grid-template-areas:"bill bill" "title rail" "body rail" "related rail"; }
  .story-layout .story-rail { display:flex; }
  .story-layout > .story-ad[data-ad-slot="billboard"] { display:grid; }
}
@media (min-width:1100px) and (max-width:1439.98px) {
  .story-rail.has-tall .story-ad:not([data-ad-slot="rail-tall"]) { display:none; }
}
@media (min-width:1280px) {
  .focus-panel:has(.story-layout) { --layout-width:1068px; --story-width:728px; --tile:336px; --tile-height:280px; }
  .story-layout { grid-template-areas:"title rail" "body rail" "related rail"; }
  .story-layout > .story-ad[data-ad-slot="billboard"] { display:none; }
}
@media (min-width:1440px) {
  .focus-panel:has(.story-layout) { --layout-width:1310px; }
  .story-layout { --card-mode:wide; --rec-cols:3; --rec-width:300px; --rec-height:250px; grid-template-columns:202px 728px 300px; grid-template-areas:"title title rail" "bill bill rail" "toc body rail" "related related rail"; }
  .story-layout > .story-ad[data-ad-slot="billboard"] { display:grid; }
  .story-layout.category-layout {
    --tile:300px; --tile-height:250px;
    grid-template-columns:970px 300px;
    grid-template-areas:"title rail" "bill rail" "body rail";
  }
  .category-layout .story-zone > .story-ad[data-ad-slot$="-middle"] { display:grid; }
  .story-layout .story-toc-track { display:block; }
  .story-layout .story-toc { display:flex; }
  .story-rail.has-pair [data-ad-slot="rail-tall"],.story-rail.has-tall:not(.has-pair) .story-ad:not([data-ad-slot="rail-tall"]) { display:none; }
}

/* Keep the legacy search and tag positions, with the same media-only presentation. */
.result-layout .ad-slot .ad-unit.media-only {
  display:block; padding:0; border:0; outline:0; background:transparent; border-radius:var(--r-md);
}
.result-layout .media-only img { width:100%; height:100%; object-fit:cover; }
.category-layout .result { padding-inline:0; }
.category-layout .story-toc a:hover { color:var(--ink); text-decoration:underline; }
