/* Timer target tabs and location selector. */
.pc-timer-demo {font-family:PalaceRoboto,Roboto,sans-serif;min-width:0}
.pc-timer-location-nav {display:flex;align-items:center;gap:10px;margin-bottom:18px;min-width:0}
.pc-timer-location-mode {width:35px;height:35px;flex-shrink:0;display:grid;place-items:center;background:#193d55;color:#9edcf5;border:0;clip-path:polygon(29.29% 0,70.71% 0,100% 29.29%,100% 70.71%,70.71% 100%,29.29% 100%,0 70.71%,0 29.29%);cursor:pointer}
.pc-timer-location-mode .material-icon {font-size:20px!important}
.pc-timer-location-tabs {display:flex;flex:1;min-width:0;overflow-x:auto;border-bottom:1px solid #ffffff35;scrollbar-width:thin;scrollbar-color:#537085 transparent}
.pc-timer-location-tabs > button {display:flex;justify-content:center;align-items:center;gap:6px;flex:1 0 auto;padding:14px 13px;white-space:nowrap;background:transparent;border:0;border-bottom:3px solid transparent;color:var(--story-muted);font:12px PalaceRoboto,sans-serif;cursor:pointer;transition:color .25s,border-color .25s}
.pc-timer-location-tabs .material-icon {font-size:18px!important}
.pc-timer-location-tabs > button[aria-selected="true"] {color:#9edcf5;border-bottom-color:#0e6ba8}
.pc-timer-sources-title {font-size:12px;color:#b0b0b0;margin:0 0 12px}
.pc-timer-demo [hidden] {display:none!important}
/* Finishing chapters use a shared editorial grid and quieter surfaces. */
.palace-story .story-ending {max-width:calc(100% - 8vw);padding:70px 4vw;margin:80px auto;background:linear-gradient(115deg,rgba(5,18,30,.92),rgba(5,18,30,.68));border:1px solid #d2edfa18;box-shadow:0 20px 60px #03111f22}
.palace-story .story-ending > .container {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.6fr);gap:clamp(30px,4vw,72px);align-items:start}
.palace-story .story-ending .ending-copy {text-align:left;margin:0;min-width:0}
.palace-story .story-ending .chapter-kicker {margin:0 0 25px;font-size:11px;color:#9edcf5;letter-spacing:.2em}
.palace-story .story-ending h2 {font-size:clamp(2rem,3.5vw,4rem);line-height:1.06;letter-spacing:-.055em;margin:0 0 24px}
.palace-story .story-ending h2 em {font-style:normal;color:#9edcf5}
.palace-story .story-ending .ending-copy > p:not(.chapter-kicker) {font-size:17px;line-height:1.65;color:var(--story-muted);max-width:30ch;margin:0}
.comparison-body {min-width:0}
.palace-story .compare-table-wrap {background:#071a2b;border:1px solid #bddff52b;scrollbar-width:thin;scrollbar-color:#537085 #071a2b}
.palace-story .compare-table {border-collapse:separate;border-spacing:0;width:100%;min-width:650px;margin:0;table-layout:fixed}
.palace-story .compare-table tr > :first-child {width:30%;text-align:left}
.palace-story .compare-table thead th {font:500 12px/1.4 var(--font-display);letter-spacing:0;text-transform:none;color:#bdd4e0;padding:26px 12px;background:#0b2031;vertical-align:middle;border-bottom:1px solid #bddff526}
.palace-story .compare-table tbody th,.palace-story .compare-table tbody td {font-size:13px;line-height:1.6;padding:23px 14px;border-bottom:1px solid #bddff51a;color:#d7e5ee}
.palace-story .compare-table tbody th {font-weight:500;color:#f1f7fa}
.palace-story .compare-table tbody tr:last-child > * {border-bottom:0}
.palace-story .compare-table tr > :nth-child(2) {background:#0f3c56;border-inline:1px solid #8ed4ee4d}
.palace-story .compare-table thead th.col-palace {background:#135474;color:#e2f6ff}
.compare-palace-title {display:flex;align-items:center;justify-content:center;gap:6px;font:600 19px var(--font-display)}
.compare-palace-title img {filter:drop-shadow(0 2px 4px #04101f66)}
.palace-story .compare-table th.col-palace small {display:block;font:10px/1.4 var(--font-display);letter-spacing:.01em;margin-top:8px;color:#c5e8f7}
.palace-story .compare-table .icon-cell {text-align:center}
.palace-story .compare-table .icon-yes {color:#b7ecf9;background:#54b4d91a;border-radius:50%;padding:4px;box-sizing:content-box}
.palace-story .compare-table .icon-no {color:#7995a7;opacity:.8}
.comparison-footer {display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;align-items:center;padding-top:22px;color:var(--story-muted);font-size:12px}
.comparison-footer .story-link {font-size:13px}
.comparison-scroll-hint {display:none}
.palace-story .story-ending .faq-list {width:100%;max-width:none;margin:0;min-width:0}
.palace-story .faq-item.glass {clip-path:none;background:transparent;border:0;border-top:1px solid #bddff52e;box-shadow:none;border-radius:0;margin:0;transition:background .3s}
.palace-story .faq-item.glass:last-child {border-bottom:1px solid #bddff52e}
.palace-story .faq-item.glass[open] {background:#061522aa}
.palace-story .faq-item summary {display:grid;grid-template-columns:26px minmax(0,1fr) 22px;gap:12px;font-size:17px;font-weight:500;line-height:1.5;padding:23px 15px 23px 10px;color:#edf6fa;align-items:start}
.palace-story .faq-item summary:hover {color:#a3e5f2;background:#b7eaff08}
.faq-number {font-size:10px;letter-spacing:.06em;color:#7fa9bd;padding-top:5px;font-variant-numeric:tabular-nums}
.palace-story .faq-item[open] .faq-number {color:#a3e5f2}
.palace-story .faq-item summary::after {content:'+';width:22px;height:22px;flex:none;background:none;mask:none;-webkit-mask:none;transform:none;font:300 24px/1 var(--font-display);color:#9edcf5;align-self:start}
.palace-story .faq-item[open] summary::after {content:'−';transform:none}
.palace-story .faq-item .faq-body {font-size:15px;line-height:1.8;padding:0 30px 25px 48px;color:#bcd2df}
.ending-support {display:grid;gap:8px;margin-top:36px;padding:24px 0 0;border-top:1px solid #bddff52e;text-decoration:none;color:#a3e5f2}
.ending-support > span {font-size:12px;color:#bdd4e0}
.ending-support strong {font-size:16px;font-weight:500}
.ending-support:hover strong {text-decoration:underline;text-underline-offset:5px}
.motion-ready:not(.story-motion-paused) .faq-item[open] .faq-body {animation:faqAnswerIn .3s ease both}
@keyframes faqAnswerIn {from {opacity:.45;transform:translateY(-5px)} to {opacity:1;transform:none}}
@media(max-width:1100px) {
 .palace-story .story-ending > .container {grid-template-columns:minmax(0,1fr);gap:32px}
 .palace-story .story-ending .ending-copy {max-width:760px}
 .ending-support {max-width:360px;margin-top:24px}
}
@media(max-width:700px) {
 .palace-story .story-ending {max-width:calc(100% - 36px);padding:38px 20px;margin-block:50px}
 .palace-story .story-ending h2 {font-size:clamp(2rem,8vw,3.6rem)}
 .palace-story .story-ending .ending-copy > p:not(.chapter-kicker) {font-size:15px}
 .palace-story .compare-table {min-width:620px}
 .palace-story .compare-table tr > :first-child {width:26%;position:sticky;left:0;background:#0b2031;z-index:1;box-shadow:5px 0 12px #020d1726}
 .palace-story .compare-table thead th:first-child {z-index:2}
 .palace-story .compare-table tbody th,.palace-story .compare-table tbody td {padding:20px 12px;font-size:12px}
 .comparison-scroll-hint {display:flex;justify-content:space-between;margin:0 0 12px;color:#93b3c5;font-size:11px;letter-spacing:.04em}
 .palace-story .faq-item summary {font-size:15px;padding:20px 8px;grid-template-columns:20px minmax(0,1fr) 18px;gap:8px}
 .palace-story .faq-item .faq-body {font-size:14px;padding:0 14px 23px 36px}
 .pc-timer-location-tabs > button {padding:12px 10px;font-size:11px}
 .pc-timer-location-tabs .material-icon {font-size:16px!important}
 .pc-timer-location-nav {gap:6px}
}
@media(prefers-reduced-motion:reduce) {
 .pc-timer-demo *,.palace-story .story-ending * {transition:none!important;animation:none!important}
}
