/* Article page: places the existing post markup (hero, story blocks, comments, route rail) on the kit grid. */
.ar-page .post-detail-layout { display: grid; grid-template-columns: minmax(0, var(--article-width)) minmax(0, 1fr); justify-content: space-between; gap: 0 48px; align-items: start; margin-top: 0; }
.ar-page .post-detail-layout > .ar-head { grid-column: 1 / -1; }
.ar-page .post-detail-layout > .post-detail-main,
.ar-page .post-detail-layout > .post-detail-lower { grid-column: 1; min-width: 0; }
.ar-page .post-detail-layout > #route-sidebar-column { grid-column: 2; grid-row: ar-main / ar-end; position: sticky; top: 88px; }
.ar-page .post-detail-layout:not(.has-route) > .post-detail-main,
.ar-page .post-detail-layout:not(.has-route) > .post-detail-lower { grid-column: 1 / -1; max-width: 780px; }
/* Editorial content follows the cover width; reports keep their route rail. */
.ar-page .post-detail-layout.ar-layout--editorial {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 1040px);
  margin-inline: auto;
}
.ar-page .post-detail-layout.ar-layout--editorial > .post-detail-main,
.ar-page .post-detail-layout.ar-layout--editorial > .post-detail-lower {
  grid-column: 1 / -1;
  justify-self: center;
  width: 100%;
  max-width: none;
}
.ar-page .ar-layout--editorial .ar-head > .ar-title,
.ar-page .ar-layout--editorial .ar-head > .ar-dek,
.ar-page .ar-layout--editorial .ar-head > .ar-byline {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}
.ar-page .ar-layout--editorial .ar-head > .ar-dek { margin-top: 20px; }
.ar-page .ar-layout--editorial .ar-head > .ar-byline { margin-top: 28px; }
.ar-page .ar-layout--editorial .ar-cover { aspect-ratio: 16 / 8; }
.ar-page .ar-layout--editorial .post-content { overflow-wrap: anywhere; }
.ar-page .ar-layout--editorial .post-content p { max-width: none; }

/* A route in a collection remains alongside its original text, image and links. */
.ar-page .ar-layout--editorial .article-route-info-card {
  display: grid; grid-template-columns: minmax(220px, 38%) minmax(0, 1fr);
  overflow: hidden; margin: 28px 0; border: 1px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface);
}
.ar-page .ar-layout--editorial .article-route-info-card__cover {
  display: block; min-height: 250px; overflow: hidden; background: var(--bg-soft);
}
.ar-page .ar-layout--editorial .article-route-info-card__cover img,
.ar-page .ar-layout--editorial .article-route-info-card__placeholder {
  display: block; width: 100%; height: 100%; min-height: 250px; object-fit: cover;
  border-radius: 0;
}
.ar-page .ar-layout--editorial .article-route-info-card__placeholder {
  display: grid; place-items: center; color: var(--quiet);
}
.ar-page .ar-layout--editorial .article-route-info-card__placeholder svg { width: 42px; height: 42px; }
.ar-page .ar-layout--editorial .article-route-info-card__body {
  display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(20px, 2.5vw, 32px);
}
.ar-page .ar-layout--editorial .article-route-info-card__eyebrow {
  margin: 0 0 8px; color: var(--cta); font-size: var(--fs-caption); font-weight: var(--fw-title);
}
.ar-page .ar-layout--editorial .article-route-info-card h3 { margin: 0; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ar-page .ar-layout--editorial .article-route-info-card h3 a { color: var(--ink); text-decoration: none; }
.ar-page .ar-layout--editorial .article-route-info-card h3 a:hover { color: var(--cta); }
.ar-page .ar-layout--editorial .article-route-info-card__description { margin: 12px 0 0; color: var(--copy); }
.ar-page .ar-layout--editorial .article-route-info-card__place { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--quiet); font-size: var(--fs-small); }
.ar-page .ar-layout--editorial .article-route-info-card__metrics { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 18px; }
.ar-page .ar-layout--editorial .article-route-info-card__metrics span { display: grid; gap: 3px; }
.ar-page .ar-layout--editorial .article-route-info-card__metrics small { color: var(--quiet); }
.ar-page .ar-layout--editorial .article-route-info-card__metrics strong { color: var(--ink); }
.ar-page .ar-layout--editorial .article-route-info-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.ar-page .ar-layout--editorial .article-route-info-card__actions a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 20px;
  border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); font-weight: var(--fw-ui); text-decoration: none;
}
.ar-page .ar-layout--editorial .article-route-info-card__actions a:first-child { border-color: var(--cta); background: var(--cta); color: #fff; }
.ar-page .ar-layout--editorial .article-route-info-card__actions a:hover { filter: brightness(.92); }
@media (max-width: 600px) {
  .ar-page .ar-layout--editorial .article-route-info-card { grid-template-columns: minmax(0, 1fr); }
  .ar-page .ar-layout--editorial .article-route-info-card__cover,
  .ar-page .ar-layout--editorial .article-route-info-card__cover img,
  .ar-page .ar-layout--editorial .article-route-info-card__placeholder { height: 210px; min-height: 0; }
}
/* Collection cards use a consistent preview; a photo's aspect ratio must not size the grid row. */
.ar-page .ar-layout--collection .article-route-info-card { min-height: 360px; gap: 0; }
.ar-page .ar-layout--collection .article-route-info-card__cover { position: relative; min-height: 0; }
.ar-page .ar-layout--collection .article-route-info-card__cover img,
.ar-page .ar-layout--collection .article-route-info-card__placeholder { position: absolute; inset: 0; min-height: 0; }
.ar-page .ar-layout--collection .article-route-info-card__body { padding: 20px 24px; }
.ar-page .ar-layout--collection .article-route-info-card h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ar-page .ar-layout--collection .article-route-info-card__description { display: -webkit-box; overflow: hidden; margin: 10px 0 0; font-size: var(--fs-body); line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ar-page .ar-layout--collection .article-route-info-card__place { flex-wrap: nowrap; width: 100%; min-width: 0; overflow: hidden; margin-top: 10px; }
.ar-page .ar-layout--collection .article-route-info-card__place span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-page .ar-layout--collection .article-route-info-card__metrics { margin-top: 12px; }
.ar-page .ar-layout--collection .article-route-info-card__actions { padding-top: 14px; }
@media (max-width: 600px) {
  .ar-page .ar-layout--collection .article-route-info-card { min-height: 500px; }
  .ar-page .ar-layout--collection .article-route-info-card__cover { height: 160px; min-height: 0; }
  .ar-page .ar-layout--collection .article-route-info-card__cover img,
  .ar-page .ar-layout--collection .article-route-info-card__placeholder { height: 100%; }
  .ar-page .ar-layout--collection .article-route-info-card__body { padding: 16px 18px; }
  .ar-page .ar-layout--collection .article-route-info-card__actions { gap: 6px; }
  .ar-page .ar-layout--collection .article-route-info-card__actions a { min-height: 40px; padding-inline: 13px; font-size: 14px; }
}
/* Desktop: named rows let the sticky chapter bar span both columns exactly like the cover */
@media (min-width: 960px) {
  .ar-page .post-detail-layout { grid-template-rows: [ar-head] auto [ar-toc] auto [ar-main] auto [ar-lower] auto [ar-end]; }
  .ar-page .post-detail-layout > .ar-head { grid-row: ar-head; }
  .ar-page .post-detail-layout > .ar-tocbar { grid-row: ar-toc; grid-column: 1 / -1; }
  .ar-page .post-detail-layout > .post-detail-main { grid-row: ar-main; }
  .ar-page .post-detail-layout > .post-detail-lower { grid-row: ar-lower; }
}
.ar-page .post-article-shell { border: 0; background: none; box-shadow: none; }
.ar-page .article-content-wrap { padding: 0; }
.ar-page .ar-head { margin-bottom: 40px; }
.ar-page .ar-head .menu-wrap { position: relative; }
.ar-page .ar-head .post-options-dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 200px; }
.ar-page .ar-cover .minimap-container { position: absolute; inset: 0; }
.ar-page .ar-act.is-saved, .ar-page .ar-act[aria-pressed="true"] { border-color: var(--cta); color: var(--cta); }
.ar-page .ar-act[aria-pressed="true"] .icon { fill: currentColor; }
.ar-page .ar-tocbar { min-width: 0; max-width: 100%; margin: 0 0 32px; }
.ar-page .ar-tocbar__in { min-width: 0; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.ar-page .ar-tocbar__in::-webkit-scrollbar { display: block; height: 4px; }
.ar-page .ar-tocbar__in::-webkit-scrollbar-track { background: transparent; }
.ar-page .ar-tocbar__in::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--line-2); }
.ar-page .ar-tocbar__in::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports selector(::-webkit-scrollbar) {
  /* Keep the custom track and hidden arrow buttons in Chromium/WebKit. */
  .ar-page .ar-tocbar__in { scrollbar-width: auto; scrollbar-color: auto; }
}
.ar-page .ar-tocbar .route-story-nav-link { display: inline-flex; flex: none; align-items: center; max-width: 100%; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-small); }
.ar-page .ar-tocbar .route-story-nav-link .truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-page .ar-tocbar .route-story-nav-link:hover { border-color: var(--ink); color: var(--ink); }
.ar-page .post-content > * + * { margin-top: 1.6em; }
.ar-page .post-content h2 { margin: 1.8em 0 .6em; font-size: var(--fs-h2); line-height: var(--lh-h2); }
.ar-page .post-content h3 { margin: 1.4em 0 .5em; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ar-page .post-content p + p { margin-top: 1.05em; }
.ar-page .post-content a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.ar-page .post-content img { max-width: 100%; height: auto; border-radius: var(--r); }
.ar-page .post-media-frame { overflow: hidden; border-radius: var(--r-lg); }
.ar-page .route-story-block { scroll-margin-top: 112px; }
@media (max-width: 959px) {
  .ar-page .post-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .ar-page .post-detail-layout > #route-sidebar-column { grid-column: 1; grid-row: auto; position: static; margin-top: 32px; }
}
/* the phone route bar: the same figures as the desktop rail, pinned above the tab bar */
.mobile-route-story-bar { display: none; }
@media (max-width: 959px) {
  .mobile-route-story-bar { position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 40; display: block; }
  body.page-post-detail:not(:has(.tabbar)) .mobile-route-story-bar { bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  body.page-post-detail.mobile-ux-ready .mobile-route-story-bar:not(.mobile-ux-after-hero) { opacity: 0; pointer-events: none; }
  .mobile-route-story-shell { position: relative; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-lg); cursor: pointer; overflow: visible !important; }
  .mobile-route-story-shell > div:first-child { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--cta); font-size: var(--fs-caption); font-weight: var(--fw-title); white-space: nowrap; }
  .mobile-route-story-shell > .grid { background: var(--surface); }
  .mobile-route-story-shell > .grid > div > div > span:first-child { color: var(--copy); font-size: 11px; font-weight: 500; text-transform: none; letter-spacing: normal; }
  .mobile-route-story-shell > .grid > div > div > span:last-child { color: var(--ink); font-size: 13px; }
  .mobile-route-story-map-panel { max-height: min(52dvh, 420px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); }
  .mobile-route-story-hide { display: none; }
  .mobile-route-story-bar.is-map-open .mobile-route-story-show,
  .mobile-route-story-bar.is-map-open .mobile-route-story-shell > .grid,
  .mobile-route-story-bar.is-map-open .mobile-route-weather { display: none !important; }
  .mobile-route-story-bar.is-map-open .mobile-route-story-hide { display: inline; }
  .mobile-route-story-bar.is-map-open .mobile-route-story-map-panel { margin-top: 0; }
  body:has(.mobile-route-story-bar.is-map-open) #site-scroll-to-top { visibility: hidden; opacity: 0; pointer-events: none; }
  body.page-post-detail:has(.mobile-route-story-bar.mobile-ux-after-hero:not(.is-map-open)) #site-scroll-to-top,
  body.page-post-detail:not(.mobile-ux-ready):has(.mobile-route-story-bar:not(.is-map-open)) #site-scroll-to-top {
    bottom: var(--mobile-route-story-clearance, 250px) !important;
  }
  .mobile-route-story-map-canvas { height: clamp(200px, 34dvh, 320px); min-height: 200px; background: var(--bg-soft); }
  .mobile-route-story-map-canvas > .ar-pwrap { display: block; width: 100%; height: 100%; min-height: 0; }
  .mobile-route-story-map-canvas .ar-pmap { position: absolute; inset: 0; min-height: 0; }
  .mobile-route-story-map-canvas .ar-pside { position: absolute; inset: 10px; flex-direction: row; justify-content: flex-start; align-items: flex-start; }
  .mobile-route-story-map-canvas .ar-pmap__day { flex-direction: row; gap: 8px; padding: 6px 10px; border-radius: 999px; }
}
@media (max-width: 767px) {
  .ar-page .ar-head > .ar-byline { position: relative; z-index: 2; }
  .ar-page .ar-head > .ar-title { min-height: 0; overflow-wrap: anywhere; }
  .ar-page .ar-head > .ar-cover { width: calc(100% + 32px); margin-inline: -16px; border-radius: 0; }
  .ar-page .post-content > .post-media-frame { margin-inline: -16px; border-radius: 0; }
}
.ar-route-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); margin-top: 48px; }
.ar-route-card__head { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: 16px; }
.ar-route-card__head h2 { margin: 4px 0 8px; font-size: var(--fs-h3); line-height: var(--lh-h3); }
.ar-route-card__head p.quiet { max-width: 56ch; }
.ar-route-card__actions { margin-top: 20px; gap: 8px; flex-wrap: wrap; }
/* comments */
.ar-page #comments-section { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.ar-page .comment-composer-shell { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); padding: 12px 16px; }
.ar-page .comment-composer textarea { width: 100%; min-height: 48px; border: 0; background: none; color: var(--ink); font: inherit; resize: none; outline: none; }
.ar-page .comment-composer-shell:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-a-18); }
.ar-page .comment-thread { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ar-page .comment-thread + .comment-thread { margin-top: 12px; }
.ar-page .comment-thread.border-orange-200 { border-color: var(--orange); background: var(--orange-soft); }
.ar-page .comment-level-badge { background: var(--cta); }
.ar-page .chip.comment-suggestion { cursor: pointer; }
.ar-page { --route-map-top: 10.5rem; --route-map-bottom-gap: 1.5rem; }
.ar-page #route-sidebar-column { display: none; }
@media (min-width: 960px) {
  .ar-page .has-route > #route-sidebar-column { display: block; --route-map-top: 10.5rem; height: calc(100dvh / .9 - var(--route-map-top) - var(--route-map-bottom-gap)); max-height: none; top: var(--route-map-top); overflow: hidden; }
  .ar-page #route-sidebar-panel { position: relative; height: 100%; }
}
/* the composer opens on focus; reply and route panels only when used */
.ar-page .comment-composer-extra, .ar-page .comment-route-panel, .ar-page .comment-reply-context { display: none; }
.ar-page .comment-composer-expanded .comment-composer-extra, .ar-page .comment-composer-expanded .comment-reply-context.is-visible, .ar-page .comment-route-panel.is-open { display: block; }
.ar-page #main-comment-form:focus-within .comment-composer-extra { display: block; }
.ar-page .comment-submit-btn:disabled { opacity: .45; cursor: not-allowed; }
.ar-page .comment-reply-context { margin-bottom: 8px; padding: 6px 12px; border-radius: 12px; background: var(--orange-soft); color: var(--cta); font-size: var(--fs-small); }
.ar-page .comment-composer { display: flex; gap: 12px; }
.ar-page .comment-composer > .comment-composer-shell { flex: 1; min-width: 0; }
@media (min-width: 1200px) {
  .ar-page .has-route > #route-sidebar-column, .ar-page #route-sidebar-panel { min-height: 460px !important; }
  .ar-page #route-sidebar-panel { opacity: 1 !important; transform: none !important; pointer-events: auto !important; height: 100% !important; max-height: none !important; }
}
.ar-page .eyebrow { color: var(--cta); font-size: var(--fs-caption); font-weight: var(--fw-title); letter-spacing: .06em; text-transform: uppercase; }

/* Hero byline: feed-style actions, the round options button is the far-right item. */
.ar-page .ar-head > .ar-title, .ar-page .ar-head > .ar-byline, .ar-page .ar-head > .ar-dek { max-width: none; }
.ar-page .ar-head .ar-author { margin-right: 0; }
.ar-page .ar-head .article-hero-follow { margin-right: auto; }
.ar-page .ar-head .ar-byline > .article-hero-actions:last-child { margin-left: auto; }
.ar-page .article-hero-actions { margin-left: 0; gap: 4px; }
.ar-page .article-hero-actions .post__act { min-height: 44px; color: var(--ink-2); }
.ar-page .article-hero-actions .post__act:hover { background: var(--bg-soft); color: var(--ink); }
.ar-page .article-hero-actions .post__act.is-liked,
.ar-page .article-hero-actions .post__act.is-saved,
.ar-page .article-hero-actions .post__act[aria-pressed="true"] { color: var(--cta); }
.ar-page .article-hero-actions .post__act.is-liked:hover,
.ar-page .article-hero-actions .post__act.is-saved:hover,
.ar-page .article-hero-actions .post__act[aria-pressed="true"]:hover { color: var(--cta); }
.ar-page .article-hero-actions .post__act[aria-pressed="true"] .icon { fill: currentColor; }
.ar-page .article-hero-actions .post__act--icon { width: 44px; }
.ar-page .article-hero-options { margin-left: 4px; }
.ar-page .article-hero-options-btn { width: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 50%; }
@media (max-width: 767px) {
  .ar-page .ar-head .ar-author > span:last-child,
  .ar-page .ar-head .ar-author b { min-width: 0; max-width: 100%; }
  .ar-page .ar-head .ar-author b a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ar-page .ar-head .ar-byline > .article-hero-actions:last-child {
    grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0; width: 100%; margin: 0; padding: 3px; border: 1px solid var(--line);
    border-radius: var(--r); background: var(--surface);
  }
  .ar-page .article-hero-actions > .post__act,
  .ar-page .article-hero-actions .article-hero-options-btn {
    display: flex; justify-content: center; align-items: center; width: 100%;
    min-width: 0; height: 44px; min-height: 44px; padding: 0 4px; border: 0;
    border-radius: 10px; background: transparent; box-shadow: none;
  }
  body.page-post-detail .article-hero-card--cover .article-hero-actions .article-hero-options,
  .ar-page .article-hero-actions .article-hero-options {
    position: relative !important; inset: auto !important; z-index: 4;
    grid-column: auto !important; grid-row: auto !important; justify-self: stretch !important;
    width: 100%; margin: 0;
  }
  .ar-page .ar-head .article-hero-actions .post-options-dropdown {
    position: absolute !important; top: calc(100% + 8px) !important; right: 0 !important;
    bottom: auto !important; left: auto !important; width: min(230px, calc(100vw - 32px));
    min-width: 0; max-width: calc(100vw - 32px); z-index: 260;
  }
  .ar-page .ar-head .article-hero-actions .post-options-dropdown--above {
    top: auto !important; bottom: calc(100% + 8px) !important;
  }
  .ar-page .article-hero-actions .post__act .lbl { display: none; }
  /* .ar-head is display:contents here, so its ordered children (cover 1 … dek 5)
     share the layout grid with these blocks — keep the whole page in one order */
  .ar-page .post-detail-layout > .post-detail-main { order: 10; }
  .ar-page .post-detail-layout > .post-detail-lower { order: 11; }
  /* .ar-more-sec is a direct child of .ar-story (flex), not of the layout grid */
  .ar-page .ar-story > .ar-more-sec { order: 12; }
  /* the concept rule .ar-story > .ar-facts never matches here: facts sit inside the
     display:contents header, so give them the intended slot (after byline, before dek) */
  .ar-page .ar-head > .ar-facts { order: 4; margin-top: 16px; }
  /* the chapter bar follows the subtitle, before the story text */
  .ar-page .post-detail-layout > .ar-tocbar { order: 6; }
}

/* Route rail: the panel title wraps by words only when it really does not fit. */
.ar-page .ar-panel__head b { white-space: normal; overflow-wrap: normal; word-break: normal; hyphens: none; }
.ar-page .ar-elev[hidden] { display: none !important; }
.ar-page .ar-elev__read { color: var(--quiet); font-variant-numeric: tabular-nums; }
.ar-page .ar-elev__night { transform: translateX(2px); white-space: nowrap; }
/* the SVG panel canvas: bridge.css shrinks bare viewBox svgs to 1.25em, take the size back */
.ar-page #ar-pmap #ar-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-page .ar-elev__plot #ar-elev-svg { display: block; width: 100%; height: 96px; overflow: visible; touch-action: pan-y; }
.ar-page .ar-pmap__marks { position: absolute; inset: 0; pointer-events: none; }
.ar-page .note-detail-media-shell { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.ar-page .note-detail-media-shell > iframe,
.ar-page .note-detail-media-shell > video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }

/* Concept discussion: compact heading, quiet filters and the same reply field. */
.ar-page #comments-section.ar-sec { margin-top: 0; padding-top: clamp(44px, 5vw, 68px); border-top: 0; }
.ar-page .ar-ctitle .h3 { margin: 0; }
.ar-page .ar-comment-sort { margin-left: auto; }
.ar-page #comment-filters { margin-bottom: 20px; gap: 8px; }
.ar-page .comment-filter-btn { min-height: 36px; padding: 0 12px; border-color: var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-ui); letter-spacing: 0; text-transform: none; }
.ar-page .comment-filter-btn.is-active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ar-page #comments-list { display: grid; gap: 16px; }
.ar-page .comment-thread { padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.ar-page .comment-thread + .comment-thread { margin-top: 0; }
.ar-page #comments-empty-state, .ar-page #comment-no-results, .ar-page #comments-section > .empty { border: 1px dashed var(--line-2); border-radius: var(--r); background: var(--bg-soft); color: var(--quiet); }
.ar-page .comment-composer { align-items: flex-start; }
.ar-page .comment-composer > a { width: 40px; height: 40px; flex: 0 0 40px; border: 0; border-radius: 50%; }
.ar-page .comment-composer-shell { padding: 8px 12px; border-radius: 16px; }
.ar-page .comment-composer textarea { min-height: 52px; padding: 4px; line-height: var(--lh-body); }
.ar-page .comment-text-content { color: var(--ink-2); font-size: var(--fs-body); line-height: var(--lh-body); }
.ar-page .ar-cover__btn { z-index: 3; min-height: 44px; box-shadow: var(--shadow); }
@media (max-width: 767px) {
  .ar-page #route-story-nav { margin: 0 0 32px; overflow: hidden; }
  .ar-page #route-story-nav-items { flex-direction: row; flex-wrap: nowrap; align-items: center; overflow-x: auto; padding-bottom: 0; }
  .ar-page #route-story-nav-items .route-story-nav-link { width: auto; min-height: 44px; flex: none; justify-content: center; border-radius: 999px; white-space: nowrap; }
  .ar-page .ar-ctitle { flex-wrap: wrap; }
  .ar-page .ar-comment-sort { width: 100%; margin-left: 0; }
  .ar-page .ar-comment-sort select { width: 100%; }
  .ar-page #comments-section.px-4, .ar-page .post-detail-lower > .px-4 { padding-inline: 0; }
}

/* Discussion: the same quiet surfaces, pills and type as the rest of the site. */
.ar-page #comments-section .ar-ctitle { gap: 10px; align-items: center; margin-bottom: 18px; }
.ar-page #comments-section #comments-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--bg-soft); color: var(--quiet); font-size: 12px; font-weight: 600; }
.ar-page #comments-section .ar-comment-sort { position: relative; }
.ar-page #comments-section .ar-comment-sort::after { position: absolute; top: 50%; right: 16px; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; color: var(--quiet); content: ''; pointer-events: none; transform: translateY(-70%) rotate(45deg); }
.ar-page #comments-section #comment-sort-select { appearance: none; min-height: 40px; min-width: 180px; padding: 0 38px 0 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.ar-page #comments-section #comment-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.ar-page #comments-section .comment-filter-btn { min-height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--copy); font: inherit; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.ar-page #comments-section .comment-filter-btn.is-active { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.ar-page #comments-section #original-form-location { margin-bottom: 24px; }
.ar-page #comments-section .comment-composer { gap: 12px; }
.ar-page #comments-section .comment-composer-shell { padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: none; }
.ar-page #comments-section .comment-composer-shell:focus-within { border-color: var(--quiet); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 6%, transparent); }
.ar-page #comments-section .comment-composer-expanded .comment-reply-context.is-visible { display: flex; align-items: center; gap: 5px; min-width: 0; margin: 0 0 12px; padding: 7px 8px 7px 12px; border-radius: 12px; background: color-mix(in srgb, var(--cta) 9%, var(--surface)); color: var(--cta); font-size: var(--fs-small); font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.ar-page #comments-section .comment-reply-context #replying-username { min-width: 0; overflow: hidden; color: var(--ink); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.ar-page #comments-section .comment-reply-context button[data-on-click='cancelReply'] { display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 30px; margin: 0 0 0 auto; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--quiet); font: 400 21px/1 var(--font-text); cursor: pointer; }
.ar-page #comments-section .comment-reply-context button[data-on-click='cancelReply']:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.ar-page #comments-section .comment-reply-context button[data-on-click='cancelReply']:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.ar-page #comments-section .comment-textarea,
.ar-page #comments-section .comment-textarea:focus { width: 100%; min-height: 52px; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: var(--ink); font: inherit; font-size: var(--fs-body); line-height: var(--lh-body); }
.ar-page #comments-section .comment-textarea::placeholder { color: var(--quiet); }
.ar-page #comments-section .comment-composer-extra .comment-suggestion,
.ar-page #comments-section .comment-composer-extra .btn--line { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.ar-page #comments-section .comment-composer-extra .btn--cta { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; font: inherit; font-size: var(--fs-small); font-weight: 700; text-transform: none; }
.ar-page #comments-section .comment-composer-extra button[data-on-click='cancelReply'] { min-height: 34px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: var(--quiet); font: inherit; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.ar-page #comments-section #comments-list { display: grid; gap: 12px; }
.ar-page #comments-section .comment-thread { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: none; }
.ar-page #comments-section .comment-thread.is-selected { border-color: var(--line-2); background: var(--surface); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cta) 12%, transparent); }
.ar-page #comments-section .comment-body-wrapper { min-width: 0; }
.ar-page #comments-section .comment-body-wrapper a[href*='/profile/'] { color: var(--ink); font-size: var(--fs-small); font-weight: 700; text-decoration: none; }
.ar-page #comments-section .comment-body-wrapper time { color: var(--quiet); font-size: 12px; font-weight: 500; }
.ar-page #comments-section .comment-body-wrapper span[class*='tracking-widest'] { padding: 3px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--quiet); font-size: 11px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; }
.ar-page #comments-section .comment-body-wrapper span.text-orange-500[class*='tracking-widest'] { color: var(--cta); }
.ar-page #comments-section .comment-body-wrapper > .comment-composer { margin-top: 14px; }
.ar-page #comments-section .comment-text-content { margin-top: 10px; color: var(--copy); font-size: var(--fs-body); line-height: 1.6; overflow-wrap: anywhere; }
.ar-page #comments-section .comment-like-btn,
.ar-page #comments-section button[data-on-click='showReplyForm'],
.ar-page #comments-section .comment-show-replies { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: var(--quiet); font: inherit; font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; text-transform: none; cursor: pointer; }
.ar-page #comments-section .comment-like-btn:hover,
.ar-page #comments-section .comment-like-btn.is-liked,
.ar-page #comments-section button[data-on-click='showReplyForm']:hover,
.ar-page #comments-section .comment-show-replies { color: var(--cta); }
.ar-page #comments-section .comment-like-btn .icon { flex: none; width: 18px; height: 18px; }
.ar-page #comments-section .comment-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--quiet); cursor: pointer; }
.ar-page #comments-section .comment-menu-toggle svg { width: 16px; height: 16px; }
.ar-page #comments-section .comment-menu-panel { min-width: 190px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 12px 30px rgb(15 23 42 / 12%); }
.ar-page #comments-section .comment-menu-panel button,
.ar-page #comments-section .comment-menu-panel a { display: block; width: 100%; min-height: 38px; padding: 8px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-small); text-align: left; text-decoration: none; cursor: pointer; }
.ar-page #comments-section .comment-menu-panel button:hover,
.ar-page #comments-section .comment-menu-panel a:hover { background: var(--bg-soft); }
.ar-page #comments-section .comment-replies { margin-top: 14px; padding-left: 14px; border-left: 2px solid var(--line); }
.ar-page #comments-section .comment-reply { gap: 10px; }
.ar-page #comments-section .comment-reply > div { min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); }
.ar-page #comments-section .comment-reply > div > p:first-child { margin: 0 0 6px; color: var(--quiet); font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ar-page #comments-section .comment-reply .comment-menu { margin-left: auto; }
.ar-page #comments-section #comments-empty-state,
.ar-page #comments-section #comment-no-results,
.ar-page #comments-section > .empty { padding: 32px 20px; border: 1px dashed var(--line-2); border-radius: 18px; background: var(--bg-soft); color: var(--copy); text-align: center; }
.ar-page #comments-section #comments-empty-state > svg { display: block; width: 36px; height: 36px; margin: 0 auto 12px; color: var(--quiet); }
.ar-page #comments-section #comments-empty-state p,
.ar-page #comments-section #comment-no-results p { margin: 6px 0 0; color: var(--quiet); font-size: var(--fs-small); line-height: 1.5; }
.ar-page #comments-section #comments-empty-state p:first-of-type,
.ar-page #comments-section #comment-no-results p:first-child { color: var(--ink); font-weight: 700; }
.ar-page #comments-section button:focus-visible,
.ar-page #comments-section select:focus-visible,
.ar-page #comments-section a:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
@media (max-width: 767px) {
  .ar-page #comments-section .ar-ctitle { flex-wrap: wrap; }
  .ar-page #comments-section .ar-comment-sort { width: auto; margin-left: auto; }
  .ar-page #comments-section #comment-sort-select { width: auto; min-width: 150px; }
  .ar-page #comments-section #comment-filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 0 20px; padding: 0 0 4px; }
  .ar-page #comments-section .comment-filter-btn { flex: 0 0 auto; font-size: var(--fs-small) !important; letter-spacing: 0 !important; }
  .ar-page #comments-section .comment-thread { padding: 14px !important; border-radius: 16px !important; }
  .ar-page #comments-section .comment-replies { padding-left: 10px !important; }
}
.article-collection-carousel { position: relative; margin-top: 32px; }
.article-collection-carousel__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.article-collection-carousel__track > a { position: relative; flex: 0 0 min(70%, 680px); height: clamp(240px, 30vw, 420px); overflow: hidden; border-radius: 20px; background: var(--bg-soft); scroll-snap-align: start; }
.article-collection-carousel__track img { width: 100%; height: 100%; object-fit: cover; }
.article-collection-carousel__route::after { content: ''; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(10,18,20,.8)); }
.article-collection-carousel__route > span { position: absolute; z-index: 1; right: 20px; bottom: 20px; left: 20px; display: grid; gap: 6px; color: #fff; }
.article-collection-carousel__route small { font-size: 13px; }
.article-collection-carousel__route b { font: 700 22px/1.25 var(--font-display); }
.article-collection-carousel__arrow { position: absolute; top: 50%; z-index: 2; display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); font-size: 28px; line-height: 1; transform: translateY(-50%); cursor: pointer; }
.article-collection-carousel__arrow--prev { left: 12px; } .article-collection-carousel__arrow--next { right: 12px; }
@media (max-width: 767px) { .ar-head > .article-collection-carousel { order: 1; width: 100%; margin: 0 0 24px; } .article-collection-carousel__track > a { flex-basis: 86%; height: 240px; } .article-collection-carousel__route b { font-size: 18px; } }
.article-cover-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.article-cover-photos a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; }
.article-cover-photos img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Full contents in the article; a separate compact control follows the reader. */
.ar-page #route-story-nav { position: static; height: auto; min-width: 0; margin: 0 0 32px; padding: 20px; overflow: visible; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.ar-page .ar-tocbar__title { margin: 0 0 12px; color: var(--ink); font-size: var(--fs-body); font-weight: var(--fw-heading); }
.ar-page #route-story-nav-items { display: flex; height: auto; min-width: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-items: stretch; gap: 8px; overflow: visible; padding: 0; }
.ar-page #route-story-nav-items .route-story-nav-link { display: inline-flex; width: auto; max-width: 100%; min-height: 38px; flex: 0 1 auto; justify-content: flex-start; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); background: var(--surface); line-height: 1.35; text-align: left; white-space: normal; }
.ar-page #route-story-nav-items .route-story-nav-link .truncate { overflow: visible; overflow-wrap: anywhere; text-overflow: clip; white-space: normal; }
.ar-page #route-story-nav-items .route-story-nav-link[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.ar-page #route-story-nav-items .route-story-nav-link:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
.ar-toc-compact[hidden], .ar-toc-compact__list[hidden] { display: none !important; }
.ar-toc-compact { position: fixed; z-index: 49; top: calc(var(--ar-toc-top, 0px) + 8px); left: 50%; width: min(460px, calc(100% - 32px)); transform: translateX(-50%); color: var(--ink); }
.ar-toc-compact__toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 5px 22px rgba(16,24,32,.12); cursor: pointer; font: inherit; text-align: left; }
.ar-toc-compact__label { flex: none; color: var(--quiet); font-size: var(--fs-small); font-weight: var(--fw-button); }
.ar-toc-compact__current { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-small); font-weight: var(--fw-button); }
.ar-toc-compact__toggle svg { width: 18px; height: 18px; flex: none; transition: transform .15s ease; }
.ar-toc-compact__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.ar-toc-compact__list { position: absolute; top: calc(100% + 6px); right: 0; left: 0; display: grid; gap: 4px; max-height: min(420px, calc(100dvh - var(--ar-toc-top, 0px) - 120px)); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 14px 36px rgba(16,24,32,.18); }
.ar-toc-compact__link { display: block; min-width: 0; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-size: var(--fs-small); line-height: 1.4; text-decoration: none; overflow-wrap: anywhere; }
.ar-toc-compact__link:hover { background: var(--bg-soft); color: var(--ink); }
.ar-toc-compact__link[aria-current="true"] { background: var(--bg-soft); color: var(--link); font-weight: var(--fw-button); }
.ar-toc-compact__toggle:focus-visible, .ar-toc-compact__link:focus-visible { outline: 2px solid var(--cta); outline-offset: 2px; }
@media (max-width: 767px) {
  .ar-page #route-story-nav { padding: 16px; }
  .ar-page #route-story-nav-items .route-story-nav-link { min-height: 40px; }
  .ar-toc-compact { width: calc(100% - 24px); }
  .ar-toc-compact__list { max-height: min(420px, calc(100dvh - var(--ar-toc-top, 0px) - 150px - env(safe-area-inset-bottom))); }
}
@media (prefers-reduced-motion: reduce) { .ar-toc-compact__toggle svg { transition: none; } }
