/* =====================================================================
 * TrekMe content pages (cmsWeb SSR, plan §5.8): magazine / news /
 * notices / alerts / store / officials / posts, 404.
 * Builds on the component library in /css/site.css; markup comes from
 * functions/lib/cms_render.js. Loaded on every cmsWeb page (the shared
 * fragments — alert banners, share bar, App CTA — are used on home too).
 * ===================================================================== */

/* ---------- Page band (list headers) ---------- */

.page-band { padding: var(--sp-4) 0 var(--sp-5); border-bottom: 1px solid var(--c-line); }
.page-band .breadcrumb { margin: 0 0 var(--sp-4); }
.page-band__row { display: grid; gap: var(--sp-4); align-items: end; }
.page-band__copy { min-width: 0; }
.page-band__title { margin: 0; font-size: var(--fs-2xl); font-weight: 900; line-height: 1.25; color: var(--c-forest-900); }
.page-band__lead { margin: var(--sp-2) 0 0; max-width: 40em; color: var(--c-text-2); }
.page-band__note { margin: var(--sp-2) 0 0; color: var(--c-muted); font-size: var(--fs-sm); }
.page-band .content-chips { margin-top: var(--sp-4); }
@media (min-width: 960px) {
  .page-band { padding: var(--sp-5) 0 var(--sp-6); }
  .page-band__row { grid-template-columns: minmax(0, 1fr) auto; }
}
.content-main { padding-top: var(--sp-5); }
.content-main > .card-article--featured { margin-bottom: var(--sp-5); }
.content-grid { margin-top: 0; }
.section--cta { padding-top: var(--sp-4); }

/* Chip rows / tones */
.content-chips { flex-wrap: nowrap; }
.content-chips .chip { min-height: var(--touch); background: #fff; }
.content-chips .chip[aria-current="page"] { background: var(--c-forest-700); border-color: var(--c-forest-700); color: #fff; }
@media (min-width: 960px) { .content-chips { flex-wrap: wrap; overflow: visible; } }
.chip--sm { min-height: 24px; padding: 1px 10px; font-size: var(--fs-xs); font-weight: 700; }
.chip--tone-danger { background: var(--c-danger-soft); border-color: transparent; color: var(--c-danger); }
.chip--tone-caution { background: var(--c-caution-soft); border-color: transparent; color: var(--c-caution); }
.chip--tone-info { background: var(--c-info-soft); border-color: transparent; color: var(--c-info); }
.chip--tone-success { background: var(--c-moss-100); border-color: transparent; color: var(--c-forest-700); }
.chip--tone-moss { background: var(--c-moss-100); border-color: transparent; color: var(--c-forest-500); }
.chip--tone-muted { background: var(--c-rock-100); border-color: transparent; color: var(--c-rock-600); }
.chip--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.content-chips .chip--dot { background: #fff; border-color: var(--c-line); }
.content-chips .chip--dot[aria-current="page"] { background: var(--c-forest-700); border-color: var(--c-forest-700); color: #fff; }

/* ---------- Cards ---------- */

.media__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--c-moss-100) url("/images/brand/contour.svg") center / 360px auto;
  color: var(--c-forest-500);
}
.media__ph .icon { width: 40px; height: 40px; opacity: .7; }
.card-article .media__badges .chip--sm { backdrop-filter: blur(6px); }
.card-article .media__badges .chip--glass { background: rgba(11, 46, 34, .55); border-color: rgba(255, 255, 255, .3); }
.card-article__meta .author-row { font-size: inherit; }
.card-article--featured .eyebrow { margin: 0; }
.card-article--featured .tcard__text { -webkit-line-clamp: 3; }

/* Official post card */
.card-post .tcard__head .author-row { font-size: var(--fs-sm); }
.card-post__title { font-size: var(--fs-base); }
.card-post__text { margin: 0; color: var(--c-text-2); font-size: var(--fs-sm); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-post__media { position: relative; z-index: 2; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-sm); scrollbar-width: none; }
.card-post__media::-webkit-scrollbar { display: none; }
.card-post__pic { position: relative; flex: 0 0 100%; aspect-ratio: 4 / 3; scroll-snap-align: start; overflow: hidden; border-radius: var(--r-sm); background: var(--c-bg-2); }
.card-post__media--multi .card-post__pic { flex-basis: 86%; }
.card-post__pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-post__count { position: absolute; right: 8px; top: 8px; padding: 0 8px; border-radius: var(--r-pill); background: rgba(11, 46, 34, .6); color: #fff; font: 700 var(--fs-xs) / 1.8 var(--font-num); }
.post-grid { align-items: start; }

/* Product card */
.product-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 960px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5); } }
.card-product .tcard__title { font-size: var(--fs-base); }
.card-product__brand { margin: 0; color: var(--c-muted); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; }
.card-product .product-price { margin-top: auto; font-size: var(--fs-base); color: var(--c-trail-600); }

/* Official account card */
.card-official { text-align: center; }
.card-official__band { height: 72px; background: var(--c-forest-900) url("/images/brand/contour-dark.svg") center / 480px auto; }
.card-official .tcard__body { align-items: center; margin-top: -44px; }
.card-official .avatar--xl { border: 4px solid #fff; box-shadow: var(--shadow-1); background: #fff; }
.card-official .tcard__title { display: inline-flex; align-items: center; gap: 6px; }
.card-official__kind { margin: 0; display: inline-flex; align-items: center; gap: 4px; color: var(--c-forest-500); font-size: var(--fs-sm); font-weight: 700; }
.card-official__cta { margin-top: auto; }

/* ---------- Notices ---------- */

.notice-list { border-top: 1px solid var(--c-line); }
.notice-row { position: relative; padding: var(--sp-3) var(--sp-2); min-height: 64px; }
.notice-row:hover { background: var(--c-bg-2); }
.notice-row__chip { flex: none; width: 76px; }
.notice-row__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.notice-row__title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.notice-row__pin { margin-right: 6px; padding: 0 6px; border-radius: var(--r-sm); background: var(--c-trail-100); color: var(--c-trail-600); font-size: var(--fs-xs); vertical-align: 1px; }
.notice-row__excerpt { color: var(--c-muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice-row__go { color: var(--c-rock-400); }
.notice-row.is-unread .notice-row__title::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px;
  border-radius: 50%; background: var(--c-trail-500); vertical-align: 2px;
}
@media (max-width: 599px) {
  .notice-row { flex-wrap: wrap; gap: 4px var(--sp-3); }
  .notice-row__chip { width: auto; }
  .notice-row__date { margin-left: auto; }
  .notice-row__main { order: 3; flex-basis: calc(100% - 32px); }
  .notice-row__go { order: 4; }
}

/* ---------- Alerts ---------- */

.sev-counts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.sev-count { display: inline-flex; align-items: baseline; gap: 6px; min-height: var(--touch); padding: 6px 14px; border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-1); color: var(--c-text-2); font-size: var(--fs-sm); text-decoration: none; }
.sev-count b { font-size: var(--fs-xl); line-height: 1; }
.sev-count--danger b { color: var(--c-danger); }
.sev-count--caution b { color: var(--c-caution); }
.sev-count--info b { color: var(--c-info); }
.sev-badge { display: inline-flex; align-items: center; padding: 1px 10px; border-radius: var(--r-pill); font-size: var(--fs-xs); font-weight: 800; line-height: 1.8; color: #fff; background: var(--c-info); }
.sev-badge--danger { background: var(--c-danger); }
.sev-badge--caution { background: var(--c-trail-500); }
.alerts-layout { display: grid; gap: var(--sp-5); }
@media (min-width: 960px) {
  .alerts-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .alerts-layout--nomap { grid-template-columns: minmax(0, 1fr); }
  .alerts-map { position: sticky; top: calc(var(--site-header-h) + var(--sp-4)); order: 2; }
}
@media (max-width: 959px) { .alerts-map { order: -1; } }
.alert-group + .alert-group { margin-top: var(--sp-6); }
.alert-group__title { display: flex; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); font-size: var(--fs-base); color: var(--c-text-2); scroll-margin-top: calc(var(--site-header-h) + 12px); }
.alert-item { margin: 0 0 var(--sp-3); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-1); border-left: 5px solid var(--c-info); scroll-margin-top: calc(var(--site-header-h) + 12px); }
.alert-item--danger { border-left-color: var(--c-danger); }
.alert-item--caution { border-left-color: var(--c-trail-500); }
.alert-item:target, .alert-item.is-target { box-shadow: 0 0 0 3px var(--c-trail-100), var(--shadow-2); }
.alert-item__sum { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); min-height: var(--touch); cursor: pointer; list-style: none; }
.alert-item__sum::-webkit-details-marker { display: none; }
.alert-item__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c-info-soft); color: var(--c-info); }
.alert-item--danger .alert-item__icon { background: var(--c-danger-soft); color: var(--c-danger); }
.alert-item--caution .alert-item__icon { background: var(--c-trail-100); color: var(--c-trail-600); }
.alert-item__icon .icon { width: 22px; height: 22px; }
.alert-item__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.alert-item__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-item__title { font-weight: 800; font-size: var(--fs-base); line-height: 1.45; color: var(--c-text); }
.alert-item__when { display: inline-flex; align-items: center; gap: 4px; color: var(--c-muted); font-size: var(--fs-sm); }
.alert-item__chev { flex: none; margin-top: 10px; color: var(--c-rock-400); transform: rotate(90deg); transition: transform var(--dur-2) var(--ease); }
.alert-item[open] .alert-item__chev { transform: rotate(-90deg); }
.alert-item__body { display: grid; gap: var(--sp-4); padding: 0 var(--sp-4) var(--sp-4); border-top: 1px solid var(--c-rock-100); padding-top: var(--sp-3); }
@media (min-width: 600px) { .alert-item__body--map { grid-template-columns: minmax(0, 1fr) 200px; } }
.alert-item__text p { margin: 0 0 var(--sp-3); color: var(--c-text-2); }
.alert-item__facts { display: grid; gap: 4px; margin: 0; font-size: var(--fs-sm); }
.alert-item__facts > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); gap: var(--sp-2); }
.alert-item__facts dt { color: var(--c-muted); }
.alert-item__facts dd { margin: 0; }
.alert-item__map { margin: 0; }
.alert-item__map figcaption, .amap-card figcaption { margin-top: 4px; color: var(--c-muted); font-size: var(--fs-xs); }
.amap-card { margin: 0; padding: var(--sp-3); border-radius: var(--r-md); background: #fff; box-shadow: var(--shadow-1); }
.amap-card figcaption { display: grid; gap: 4px; }
.amap { display: block; width: 100%; height: auto; max-height: 520px; border-radius: var(--r-sm); background: #EAF3F7; }
.amap--focus { aspect-ratio: 13 / 10; max-height: none; }
.alerts-map .amap { aspect-ratio: 3 / 4; }
@media (max-width: 959px) { .alerts-map .amap { aspect-ratio: 4 / 3; max-height: 360px; } }
.amap__land { fill: var(--c-moss-100); stroke: var(--c-moss-300); stroke-width: 1; vector-effect: non-scaling-stroke; }
.amap__area { fill: currentColor; fill-opacity: .28; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; }
.amap__line { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.amap__halo { fill: currentColor; fill-opacity: .22; }
.amap__pt { fill: currentColor; stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.amap__shape { color: var(--c-info); }
.amap__shape--danger { color: var(--c-danger); }
.amap__shape--caution { color: var(--c-trail-500); }
.amap a:hover .amap__shape, .amap a:focus .amap__shape { filter: brightness(.8); }
.amap-legend { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; color: var(--c-text-2); }
.amap-legend li { display: inline-flex; align-items: center; gap: 4px; }
.amap-legend__sw { width: 10px; height: 10px; border-radius: 50%; background: var(--c-info); }
.amap-legend__sw--danger { background: var(--c-danger); }
.amap-legend__sw--caution { background: var(--c-trail-500); }
.alert-banner .icon { width: 18px; height: 18px; }
.alert-banner--danger .badge { background: #fff; }

/* ---------- Article page ---------- */

.read-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1200; height: 3px; pointer-events: none; }
.read-progress > span { display: block; height: 100%; width: 100%; background: var(--c-trail-500); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.article-crumbs { max-width: var(--container-narrow); margin: 0 auto; }
.article-layout { display: grid; gap: var(--sp-6); max-width: var(--container-narrow); margin: var(--sp-4) auto 0; }
@media (min-width: 1280px) { .article-crumbs--toc { max-width: calc(var(--container-narrow) + 260px + var(--sp-8)); } }
.article-main { min-width: 0; }
.article-aside { display: none; }
@media (min-width: 1280px) {
  .article-layout--toc { max-width: none; grid-template-columns: minmax(0, var(--container-narrow)) 260px; justify-content: center; gap: var(--sp-8); }
  .article-aside { display: block; }
  .article-aside .toc { position: sticky; top: calc(var(--site-header-h) + var(--sp-5)); max-height: calc(100vh - var(--site-header-h) - var(--sp-7)); overflow-y: auto; margin: 0; }
  .article-layout--toc .toc--inline { display: none; }
}
.article-head { margin: 0 0 var(--sp-5); }
.article-head__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-3); }
.article-head__title { margin: 0; font-size: var(--fs-2xl); font-weight: 900; line-height: 1.3; color: var(--c-forest-900); }
.article-head__lead { margin: var(--sp-3) 0 0; font-size: var(--fs-lg); color: var(--c-text-2); }
.article-head .byline { margin-top: var(--sp-4); }
.article-main--post .article-head .byline { margin: 0 0 var(--sp-4); }
.article-main--post .article-head__title { font-size: var(--fs-xl); }
.byline { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) 0; border-block: 1px solid var(--c-line); }
.byline .avatar--lg { flex: none; width: 48px; height: 48px; }
.byline__text { min-width: 0; display: grid; gap: 2px; }
.byline__who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--sp-2); font-weight: 800; }
.byline__who a { color: var(--c-text); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.byline__who a:hover .byline__name { text-decoration: underline; }
.byline__name + .verified { margin-left: 4px; }
.byline__role { padding: 0 8px; border-radius: var(--r-pill); background: var(--c-moss-100); color: var(--c-forest-700); font-size: var(--fs-xs); font-weight: 700; line-height: 1.8; }
.byline__meta { display: flex; flex-wrap: wrap; gap: 0 var(--sp-2); color: var(--c-muted); font-size: var(--fs-sm); }
.article-cover { margin: 0 0 var(--sp-5); }
.article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-md); background: var(--c-bg-2); }
.toc--inline { margin: 0 0 var(--sp-5); padding: 0; }
.toc--inline > summary { display: flex; align-items: center; gap: var(--sp-2); min-height: var(--touch); padding: 0 var(--sp-4); cursor: pointer; font-weight: 700; color: var(--c-forest-700); }
.toc--inline .toc__list { margin: 0; padding: 0 var(--sp-5) var(--sp-4) 2.4em; }
.toc__count { margin-left: auto; color: var(--c-muted); font-weight: 400; }
.toc--aside { background: transparent; border: 0; border-left: 2px solid var(--c-line); border-radius: 0; padding: var(--sp-2) 0 var(--sp-2) var(--sp-4); }
.toc__title { margin: 0 0 var(--sp-2); font-weight: 800; color: var(--c-text); }
.toc--aside .toc__list { list-style: none; padding: 0; margin: 0; }
.toc__item a { display: block; padding: 4px 0; color: var(--c-text-2); line-height: 1.5; }
.toc__item--l3 { padding-left: 1em; }
.toc__item--l4 { padding-left: 2em; }
.toc--aside { padding-left: 0; }
.toc--aside .toc__title { padding-left: var(--sp-4); }
.toc--aside .toc__item { padding-left: 0; }
.toc--aside .toc__item a { margin-left: -2px; padding-left: var(--sp-4); border-left: 2px solid transparent; }
.toc--aside .toc__item--l3 a { padding-left: calc(var(--sp-4) + 1em); }
.toc--aside .toc__item--l4 a { padding-left: calc(var(--sp-4) + 2em); }
.toc--aside .toc__item a.is-active { border-left-color: var(--c-forest-500); color: var(--c-forest-700); font-weight: 800; }
.article p:empty { display: none; }
.article .table-wrap { margin: var(--sp-5) 0; }
.article .table-wrap table { min-width: 480px; border: 0; }
.article .table-wrap th, .article .table-wrap td { border-width: 0 0 1px; white-space: normal; }
.article .table-wrap tr:first-child td { background: var(--c-bg-2); font-weight: 700; }
.article .callout { border-radius: var(--r-md); }
.article .cms-gallery, .carousel { scrollbar-width: none; }
.article .cms-gallery { display: flex; gap: var(--sp-2); overflow-x: auto; scroll-snap-type: x mandatory; margin: var(--sp-5) 0; }
.article .cms-gallery > figure { flex: 0 0 85%; margin: 0; scroll-snap-align: start; }
.article .cms-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.article .card--inline { position: relative; display: flex; gap: var(--sp-3); align-items: center; margin: var(--sp-5) 0; padding: var(--sp-3); border: 1px solid var(--c-line); border-radius: var(--r-md); background: #fff; color: inherit; text-decoration: none; }
.article a.card--inline:hover { border-color: var(--c-forest-500); box-shadow: var(--shadow-1); }
.article .card--inline .card__media { flex: none; width: 96px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-sm); background: var(--c-bg-2); }
.article .card--inline .card__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.article .card--inline .card__title { font-weight: 800; color: var(--c-text); }
.article .card--inline .card__meta { color: var(--c-muted); font-size: var(--fs-sm); }
.article .card--inline::after { content: "›"; margin-left: auto; color: var(--c-rock-400); font-size: 1.5em; }
.post-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3); margin: var(--sp-5) 0 0; padding: var(--sp-3) 0; border-block: 1px solid var(--c-line); }
.post-stats__app { display: inline-flex; align-items: center; gap: 2px; min-height: var(--touch); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--sp-5) 0 0; }
.series-box { margin: var(--sp-6) 0 0; padding: var(--sp-4) var(--sp-5); border-radius: var(--r-md); background: var(--c-moss-100); }
.series-box .eyebrow { margin: 0; }
.series-box__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-2); margin: 4px 0 var(--sp-2); font-weight: 800; }
.series-box__title a { color: var(--c-forest-900); }
.series-box__title span { color: var(--c-muted); font-size: var(--fs-sm); font-weight: 400; }
.series-box ol { margin: 0; padding-left: 1.4em; font-size: var(--fs-sm); }
.series-box li { padding: 2px 0; }
.series-box li[aria-current] { font-weight: 800; color: var(--c-forest-700); }
.share-bar__label { display: inline-flex; align-items: center; gap: 6px; margin-right: var(--sp-1); color: var(--c-muted); font-size: var(--fs-sm); font-weight: 700; }
.share-bar a:hover, .share-bar button:hover { border-color: var(--c-forest-700); color: var(--c-forest-700); }
.share-bar .share-bar__line { color: #06a648; }
.related-band { margin-top: var(--sp-6); background: var(--c-bg-2); }

/* Gallery (scroll-snap; /js/content.js adds arrows and thumbs) */
.gallery { position: relative; margin: 0 0 var(--sp-5); }
.gallery__track { margin: 0; }
.gallery--square .carousel__item, .gallery--1x1 .media { aspect-ratio: 1; border-radius: var(--r-md); }
.gallery .carousel__item { flex-basis: 100%; }
.gallery__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: var(--touch); height: var(--touch); margin-top: -22px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--c-forest-900); box-shadow: var(--shadow-1); cursor: pointer; }
.gallery__nav--prev { left: var(--sp-2); }
.gallery__nav--next { right: var(--sp-2); }
.gallery__nav:disabled { opacity: 0; pointer-events: none; }
.gallery--square .gallery__nav { top: calc(50% - 40px); }
.icon--flip { transform: scaleX(-1); }
.gallery__count { position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 2; padding: 0 10px; border-radius: var(--r-pill); background: rgba(11, 46, 34, .6); color: #fff; font-size: var(--fs-xs); line-height: 2; }
.gallery__thumbs { display: flex; gap: var(--sp-2); margin-top: var(--sp-2); overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--c-bg-2); cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--c-trail-500); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Official profile ---------- */

.profile-band { padding: var(--sp-4) 0 var(--sp-6); }
.profile-band .breadcrumb, .profile-band .breadcrumb a { color: rgba(255, 255, 255, .75); }
.profile-band__row { display: grid; justify-items: center; gap: var(--sp-4); margin-top: var(--sp-4); text-align: center; }
.profile-band__avatar { width: 112px; height: 112px; border: 4px solid rgba(255, 255, 255, .9); background: #fff; }
.profile-band__kind { display: flex; justify-content: center; align-items: center; gap: 4px; margin: 0 0 4px; color: var(--c-moss-300); font-size: var(--fs-sm); font-weight: 700; }
.profile-band__name { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-2xl); font-weight: 900; color: #fff; }
.profile-band__bio { margin: var(--sp-2) 0 0; max-width: 40em; color: rgba(255, 255, 255, .85); }
@media (min-width: 768px) {
  .profile-band__row { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; }
  .profile-band__kind { justify-content: flex-start; }
}

/* ---------- Magazine author / series ---------- */

.author-intro { display: flex; gap: var(--sp-4); align-items: center; margin-top: var(--sp-4); }
.author-intro p { margin: 0; color: var(--c-text-2); }
.series-cover { width: min(320px, 100%); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1); }
.series-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.series-list { display: grid; gap: var(--sp-4); margin: 0; padding: 0; list-style: none; counter-reset: none; }
.series-list > li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--sp-3); align-items: start; }
.series-list__no { font-size: var(--fs-xl); font-weight: 800; color: var(--c-forest-500); line-height: 1.6; }
@media (min-width: 768px) {
  .series-list .card-article { flex-direction: row; }
  .series-list .card-article .media { flex: 0 0 240px; }
}

/* ---------- Product page ---------- */

.product-layout { display: grid; gap: var(--sp-5); margin-top: var(--sp-4); }
.product-media, .product-info { min-width: 0; }
@media (min-width: 960px) {
  .product-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--sp-7); align-items: start; }
  .product-media { position: sticky; top: calc(var(--site-header-h) + var(--sp-4)); }
}
.product-info .eyebrow { margin: 0; }
.product-info__name { margin: 4px 0 var(--sp-3); font-size: var(--fs-2xl); font-weight: 900; line-height: 1.3; }
.product-info__price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.product-info__price .product-price { font-size: var(--fs-2xl); color: var(--c-trail-600); }
.product-info__summary { color: var(--c-text-2); }
.buy-btn { min-height: 56px; margin-top: var(--sp-4); font-weight: 800; box-shadow: 0 8px 20px rgba(242, 131, 43, .3); }
.product-info__note { margin: var(--sp-2) 0 0; color: var(--c-muted); font-size: var(--fs-xs); text-align: center; }
.product-specs { margin-top: var(--sp-6); }
.product-specs h2, .product-body__title { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); font-weight: 800; }
.table--specs { min-width: 0; }
.table--specs th { width: 34%; }
.table--specs td { white-space: normal; }
.product-body .article { max-width: var(--container-narrow); }

/* ---------- 404 / 500 ---------- */

.lost { padding: var(--sp-7) 0 var(--sp-8); }
.lost__inner { display: grid; justify-items: center; text-align: center; max-width: 640px; }
.lost__art { width: min(360px, 90%); height: auto; margin-bottom: var(--sp-4); }
.lost__contour { fill: none; stroke: var(--c-moss-300); stroke-width: 1.5; }
.lost__halo { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; }
.lost__trail { fill: none; stroke: var(--c-trail-500); stroke-width: 4; stroke-linecap: round; }
.lost__trail--gone { stroke-dasharray: 2 10; opacity: .7; }
.lost__start { fill: var(--c-forest-500); stroke: #fff; stroke-width: 3; }
.lost__post { fill: var(--c-rock-600); }
.lost__sign { fill: var(--c-forest-700); }
.lost__q { fill: #fff; font: 900 20px var(--font-num); text-anchor: middle; }
.lost__title { margin: 0; font-size: var(--fs-2xl); font-weight: 900; color: var(--c-forest-900); }
.lost__text { margin: var(--sp-3) 0 0; color: var(--c-text-2); }
.lost__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.lost__actions .btn { background: #fff; }
.lost__actions .btn--primary { background: var(--c-forest-700); }
.lost__links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2) var(--sp-4); margin-top: var(--sp-5); font-size: var(--fs-sm); }
.lost__links a { display: inline-flex; align-items: center; min-height: var(--touch); }

/* ---------- Legacy home (until cms_home.js renders the page) ---------- */

.hero img { width: 100%; height: auto; display: block; }

@media print {
  .read-progress, .article-aside, .toc--inline, .related-band, .section--cta, .gallery__nav { display: none !important; }
}
