/* 环湖赛官网首页 v1（修订）—— 参照张雪机车国内 / 国际站：字重轻、标题短、大图、大留白 */

:root {
  --ink: #1a1a1a;
  --text: #444;
  --muted: #888;
  --line: #e8e8e8;
  --bg-alt: #f7f7f7;
  --footer: #151a1f;
  --accent: #1d5e8c;      /* 青海湖蓝，只用于激活态和关键数字 */
  --max: 1200px;
  --gap: clamp(20px, 3vw, 32px);
  --section: clamp(80px, 11vw, 140px);
  --header: 82px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: #fff;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 500; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

.feature-entry { text-align: center; }
.feature-links { display: flex; justify-content: center; margin-top: 28px; }
.feature-links a { display: inline-flex; gap: 18px; align-items: center; padding: 10px 0; color: var(--accent); border-bottom: 1px solid var(--accent); }
.feature-links a:hover { color: #17496d; border-color: #17496d; transform: translateY(-2px); }
.static-page { padding: calc(var(--header) + 72px) 0 100px; min-height: 75vh; }
.static-page h1 { font-size: clamp(34px, 5vw, 54px); margin-bottom: 12px; }
.static-page .page-lead { color: var(--muted); margin-bottom: 48px; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-card { padding: 24px; border: 1px solid var(--line); background: #fff; }
.info-card h2 { font-size: 21px; margin-bottom: 12px; }
.info-card p + p { margin-top: 8px; }
.info-card ul { list-style: disc; padding-left: 20px; }
.info-card li + li { margin-top: 6px; }
.status-note { color: var(--accent); font-weight: 600; }
.steps { counter-reset: step; }
.steps li { list-style: none; counter-increment: step; padding-left: 42px; position: relative; }
.steps li::before { content: counter(step); position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #edf0f2;
  transition: border-color .2s;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header);
}

.brand { display: flex; align-items: center; gap: 9px; line-height: 1.25; color: var(--ink); flex: 0 0 auto; }
.brand-mark { display: block; position: relative; flex: 0 0 42px; width: 42px; height: 34px; overflow: hidden; }
.brand-logo { position: absolute; left: -6px; top: -16px; display: block; width: 160px; max-width: none; height: auto; }
.brand-copy { display:flex; flex-direction:column; }
.brand-cn { font-size: 19px; font-weight: 600; letter-spacing: 1px; }
.brand-en { font-size: 10px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.site-nav { display: flex; gap: 26px; margin-left: auto; white-space: nowrap; }
.site-nav a {
  font-size: 16px;
  color: var(--ink);
  position: relative; padding: 9px 0 8px; font-weight: 400; color: var(--ink); transition: color .2s;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--accent); }
.site-nav a:hover { text-shadow: 0 0 .01px var(--accent); }
.site-nav a.is-active { font-weight: 700; }
.site-nav a.is-active::after { content:""; position:absolute; left:0; right:0; bottom:0; height:2px; background:var(--accent); }

.login-trigger { margin-left:14px; width:34px; height:34px; border:0; background:none; color:var(--ink); cursor:pointer; }
.login-trigger svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
/* 语言切换：中文 / EN，当前语言为黑字，另一项为灰字 */
.lang-switch {
  display: flex; align-items: center; gap: 6px;
  margin-left: 18px; padding-left: 16px;
  border-left: 1px solid var(--line);
  font-size: 13px; color: #ccc;
}
.lang-switch button {
  border: 0; background: none; padding: 4px 2px;
  font: inherit; letter-spacing: 1px;
  color: var(--muted); cursor: pointer;
  transition: color .2s;
}
.lang-switch button:hover { color: var(--accent); }
.lang-switch button.is-active { color: var(--ink); font-weight: 500; }

.menu-toggle {
  display: none;
  width: 36px; height: 36px;
  border: 0; background: none; padding: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block; width: 20px; height: 2px; background: #000;
  margin: 0 auto; transition: transform .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translate(-5.5px, 5px) rotate(52deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translate(5.5px, -5px) rotate(-52deg); }

/* ---------- 主视觉：整屏大图 + 短标题 ---------- */
.hero {
  position: relative;
  margin-top: var(--header);
  height: calc(100vh - var(--header));
  min-height: 520px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .1);    /* 原图已压暗，这里只再轻压一点，保证白字可读 */
}
.hero-content { position: relative; z-index: 1; }
.hero-title { color: #fff; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.3; letter-spacing: 2px; }
.hero-sub { font-size: clamp(14px, 1.5vw, 18px); opacity: .9; margin-top: 16px; }
.hero .btn { margin-top: 40px; }

/* ---------- 按钮：统一细边框 ---------- */
.btn {
  display: inline-block;
  min-width: 140px;
  padding: 10px 32px;
  font-size: 14px;
  text-align: center;
  letter-spacing: 1px;
  border: 1px solid currentColor;
  transition: background .22s, color .22s, border-color .22s, box-shadow .22s, transform .22s;
}
.btn-light { color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-dark { color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: #164f74; border-color: #164f74; color: #fff; box-shadow: 0 8px 20px #1d5e8c26; transform: translateY(-2px); }
.btn-dark:hover { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 20px #1d5e8c26; transform: translateY(-2px); }

/* ---------- 通用板块 ---------- */
.section { padding: var(--section) 0; }
.section-alt { background: var(--bg-alt); }

.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: 2px; line-height: 1.3; }
.section-head .en {
  font-size: 12px; color: var(--muted);
  letter-spacing: 2px; text-transform: uppercase; margin-top: 8px;
}
.section-head-center { text-align: center; }

.section-more { margin-top: 56px; text-align: center; }

.section-intro { color: var(--muted); text-align: center; margin: -32px auto 48px; max-width: 560px; }

/* ---------- 首页新业务板块预览 ---------- */
.feature-entry .section-head { margin-bottom: 36px; }
.preview-grid { display: grid; gap: var(--gap); text-align: left; }
.preview-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.preview-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.preview-card {
  min-height: 190px; padding: 22px 22px 20px; border: 1px solid var(--line); background: #fff;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex; flex-direction: column; align-items: flex-start;
}
.preview-card:hover, .info-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px #18364a12; border-color: #c3d7e3; }
.preview-index { color: var(--accent); font-size: 12px; letter-spacing: 1px; }
.preview-card h3 { margin-top: 10px; font-size: 17px; line-height: 1.5; }
.preview-card p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.preview-status { margin-top: auto; padding-top: 16px; color: var(--accent); font-size: 12px; }
.preview-process { max-width: 900px; margin: 26px auto 0; padding: 18px 22px; border-left: 2px solid var(--accent); background: #fff; text-align: left; font-size: 14px; }
.preview-process strong { display: block; margin-bottom: 4px; color: var(--ink); font-weight: 500; }
.preview-process span { color: var(--muted); }

/* ---------- 赛事简介 ---------- */
.about { display: block; }
.about .about-body { border-left: 0; padding-left: 0; }
.about .section-head { margin-bottom: 0; }
.about-body { border-left: 2px solid #dce9ef; padding-left: clamp(16px, 2vw, 28px); }
.about-body p { margin-bottom: 20px; max-width: 680px; }
.about-body .lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink); line-height: 1.7; margin-bottom: 28px; }

.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: 56px; padding-top: 36px;
  border-top: 2px solid #dce9ef;
}
.facts strong { display: block; font-size: clamp(22px, 2.4vw, 28px); color: var(--accent); font-weight: 500; line-height: 1.4; }
.facts span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* ---------- 最新资讯：大图 + 短标题，无卡片底色 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.news-card a { display: block; transition: transform .22s, box-shadow .22s; }
.news-card a:hover { transform: translateY(-4px); }
.news-media img, .media-item img { transition: transform .35s ease; }
.news-card a:hover .news-media img, .media-item:hover img { transform: scale(1.025); }
.news-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.news-media img { width: 100%; height: 100%; object-fit: cover; }
.tag { display: block; font-size: 13px; color: var(--muted); margin-top: 20px; }
.news-card h3 {
  font-size: 17px; line-height: 1.6; margin-top: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: color .2s;
}
.news-card a:hover h3 { color: var(--accent); }

/* ---------- 媒体中心 ---------- */
.media-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
  height: clamp(360px, 46vw, 560px);
}
.media-item { position: relative; overflow: hidden; display: block; }
.media-item:hover { box-shadow: 0 14px 32px #18364a20; }
.media-item-large { grid-row: span 2; }
.media-item img { width: 100%; height: 100%; object-fit: cover; }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 24px 20px;
  color: #fff; font-size: 16px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .45));
}

/* ---------- 品牌合作 ---------- */
.partner-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.partner-grid li {
  background: #fff;
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: #bbb;
}

/* ---------- 吉祥物 ---------- */
.mascot-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--gap); text-align: center; }
.mascot b { display: block; font-size: 16px; font-weight: 500; color: var(--ink); margin-top: 12px; }
.mascot em { display: block; font-style: normal; font-size: 12px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.mascot small { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.mascot-img {
  width: 100%; max-width: 180px; margin: 0 auto;
  aspect-ratio: 1; object-fit: contain;   /* 原图 280×280 透明底 */
}

/* ---------- 英文模式微调：英文不需要中文那样的字距；板块下方的英文小字与标题重复，隐藏 ---------- */
html[lang="en"] .section-head h2,
html[lang="en"] .hero-title { letter-spacing: 0; }
html[lang="en"] .section-head .en { display: none; }
html[lang="en"] .brand-cn { font-size: 17px; letter-spacing: 0; }
html[lang="en"] .site-nav { gap: 26px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--footer); color: rgba(255, 255, 255, .55); font-size: 13px; }
.site-footer h3 { color: #fff; font-size: 15px; }

.footer-main {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 260px;
  gap: 32px;
  padding-top: 72px; padding-bottom: 64px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; line-height: 1.3; }
/* 页脚双标识：桌面统一 64px；手机（≤760px）统一 48px。 */
.footer-logo, .footer-seal { display: block; flex: 0 0 64px; width: 64px; height: 64px; min-width: 0; object-fit: contain; margin: 0; }
@media (max-width: 760px) {
  .footer-logo, .footer-seal { flex-basis: 48px; width: 48px; height: 48px; }
}



.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col h3 { margin-bottom: 16px; }
.footer-col a, .footer-link-pending { display: block; line-height: 2.3; transition: color .2s; }
.footer-link-pending { color: rgba(255, 255, 255, .42); }
.footer-col a:hover { color: #fff; }

.footer-contact h3 { font-size: 14px; color: rgba(255, 255, 255, .7); }
.hotline { color: #fff; font-size: 26px; letter-spacing: 1px; margin-top: 4px; }
.hotline.is-placeholder { color: rgba(255, 255, 255, .35); font-size: 20px; }

.qr-list { display: flex; gap: 16px; margin-top: 28px; }
.qr-list li { display: flex; flex: 0 0 72px; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; text-align: center; }
.qr-box {
  display: flex; flex: 0 0 72px; align-items: center; justify-content: center;
  width: 72px; height: 72px; box-sizing: border-box; overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .3); font-size: 11px;
}

.video-qr-entry { display:flex; flex-direction:column; align-items:center; gap:8px; width:72px; padding:0; border:0; background:none; color:inherit; font:inherit; font-size:12px; cursor:pointer; }
.video-qr-entry .qr-box { padding:0; border:0; }
.video-qr-entry img { display:block; width:72px; height:72px; object-fit:cover; background:#fff; }
.video-qr-entry:hover span { text-decoration:underline; }
.content-subhead { margin: 0 0 22px; font-size:22px; color:var(--ink); }
#news .content-subhead { margin-top:54px; }
.mascot-section-compact { padding-top:30px; padding-bottom:30px; background:#fafcfd; }
.mascot-section-compact .section-head { margin-bottom:18px; }
.mascot-section-compact .mascot-img { max-width:110px; }
.mascot-section-compact .mascot b { margin-top:4px; }
.mascot-section-compact .mascot em, .mascot-section-compact .mascot small { display:none; }
.mascot-ip-note { margin-top:18px; color:var(--muted); font-size:14px; }
.mascot-ip-note a { color:var(--accent); text-decoration:underline; }
.login-dialog { width:min(92vw,460px); padding:28px; border:0; box-shadow:0 16px 60px #0004; }
.login-dialog::backdrop { background:#0008; }
.login-dialog h2 { margin:0 0 18px; }
.login-dialog label { display:block; margin:12px 0; }
.login-dialog input { display:block; width:100%; padding:10px; border:1px solid var(--line); }
.login-actions { display:flex; gap:12px; margin-top:18px; }
.login-close { float:right; border:0; background:none; font-size:26px; cursor:pointer; }
.video-qr-dialog {
  position: fixed; width: min(92vw, 460px); max-width: none; max-height: 92vh;
  padding: 28px; border: 0; border-radius: 4px; background: #fff; color: var(--ink);
  text-align: center; box-shadow: 0 16px 60px rgba(0, 0, 0, .28);
}
.video-qr-dialog::backdrop { background: rgba(0, 0, 0, .72); }
.video-qr-dialog img { width: 100%; height: auto; margin: 0 auto; }
.video-qr-dialog p { margin-top: 12px; font-size: 14px; }
.video-qr-close {
  position: absolute; top: 4px; right: 10px; padding: 0 6px; border: 0;
  background: transparent; color: var(--muted); font-size: 28px; line-height: 1.2; cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 24px 0 28px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, .45);
}
.footer-bottom p + p { margin-top: 4px; }
.footer-bottom em { font-style: normal; margin: 0 12px; opacity: .5; }
.footer-bottom a:hover { color: #fff; }

/* ---------- 平板 ---------- */
@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about .section-head { margin-bottom: 32px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card:last-child { display: none; }   /* 两列时只露两条，避免单条落单 */
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .mascot-row { gap: 12px; }
  .lang-switch { margin-left: 14px; padding-left: 12px; }

  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cols { grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); }
}


@media (max-width: 1100px) and (min-width: 761px) {
  /* v45: wide screens keep the inline nav, no hamburger; just tighten spacing. */
  .site-nav { gap: 16px; }
  .site-nav a { font-size: 15px; }
}

/* ---------- 手机 ---------- */
@media (max-width: 760px) {
  :root { --header: 60px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
  .site-nav {
    position: absolute; top: var(--header); left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gap) 16px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: 0; }
  .lang-switch { margin-left: auto; margin-right: 8px; padding-left: 0; border-left: 0; }
  .brand { gap: 7px; }
  .brand-mark { flex-basis: 40px; width: 40px; height: 34px; }
  .brand-logo { left: -5.8px; top: -15px; width: 150px; }

  .hero { height: calc(80vh - var(--header)); min-height: 440px; }

  .section-head { margin-bottom: 36px; }
  .section-more { margin-top: 40px; }
  .section-intro { margin: -16px auto 32px; }
  .feature-entry .section-head { margin-bottom: 28px; }
  .preview-grid { gap: 12px; }
  .preview-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-grid-two { grid-template-columns: 1fr; }
  .preview-card { min-height: 170px; padding: 16px; }
  .preview-card h3 { font-size: 15px; }
  .preview-process { margin-top: 18px; padding: 14px 16px; }

  .facts { grid-template-columns: 1fr; gap: 20px; }
  .facts li { display: flex; align-items: baseline; gap: 16px; }
  .facts strong { min-width: 110px; }

  .news-grid { grid-template-columns: 1fr; row-gap: 40px; }
  .news-card:last-child { display: block; }

  .media-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; gap: 8px; }
  .media-item { aspect-ratio: 4 / 3; }
  .media-item-large { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 10; }
  .media-caption { padding: 32px 14px 12px; font-size: 14px; }

  .partner-grid { grid-template-columns: repeat(2, 1fr); }

  .mascot-row { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .mascot small { display: none; }

  .footer-main { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 56px; padding-bottom: 48px; }
  .footer-brand { grid-column: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .footer-bottom em { display: block; height: 0; overflow: hidden; margin: 0; }
}

/* 手动收款原型弹窗 */
.buy-button { margin-top: 12px; padding: 7px 20px; border: 1px solid var(--accent); color: var(--accent); background: transparent; font: inherit; cursor: pointer; }
.buy-button:hover { color: #fff; background: var(--accent); }
.purchase-modal[hidden] { display: none; }
.purchase-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.purchase-backdrop { position: absolute; inset: 0; background: rgba(10,20,28,.58); }
.purchase-dialog { position: relative; width: min(560px, 100%); max-height: min(90vh, 850px); overflow: auto; padding: 30px; background: #fff; box-shadow: 0 18px 70px #0003; }
.purchase-dialog h2 { margin: 0 40px 22px 0; font-size: 25px; }
.purchase-dialog label { display: block; margin: 12px 0; }
.purchase-dialog select, .purchase-dialog input:not([type=radio]), .purchase-dialog textarea { display: block; width: 100%; margin-top: 5px; padding: 10px; border: 1px solid var(--line); background: white; font: inherit; }
.purchase-close { position: absolute; top: 12px; right: 16px; border: 0; background: transparent; font-size: 30px; cursor: pointer; }
.purchase-dialog fieldset { margin: 16px 0; border: 1px solid var(--line); }
.purchase-dialog fieldset label { display: inline-flex; gap: 6px; margin: 8px 14px 8px 0; }
.purchase-amount { margin: 15px 0; }
.qr-placeholder { width: 180px; height: 180px; margin: 18px auto; display: grid; place-items: center; border: 2px dashed #9baab3; color: #56636c; background: #f7f9fa; text-align: center; font-weight: 600; }
.prototype-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
#order-result p { margin: 10px 0; }
body.modal-open { overflow: hidden; }

/* Static product/event prototypes and concise factual captions */
.fact-summary { margin-top: 8px; color: var(--muted); font-size: 13px; }
.media-fact { position: absolute; left: 16px; bottom: 12px; z-index: 1; color: rgba(255,255,255,.86); font-size: 12px; line-height: 1.4; }
.partners-pending { max-width: var(--max); margin: 0 auto; padding: 28px 12px; text-align: center; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(90deg, transparent, #edf5f8 50%, transparent); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { display: flex; flex-direction: column; align-items: flex-start; }
.product-card .product-price { color: var(--accent); font-size: 20px; font-weight: 700; }
.product-price small { font-size: 12px; font-weight: 500; color: var(--muted); }
.product-art { width: 100%; margin: -4px 0 18px; overflow: hidden; border-radius: 10px; background: #f2f7fa; }
.product-art img { width: 100%; aspect-ratio: 1.14; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-art img { transform: scale(1.035); }
.product-card .buy-button { margin-top: auto; }
.event-entry-note { margin: -12px auto 28px; max-width: 760px; color: var(--muted); }
.event-entry-links { gap: 16px; flex-wrap: wrap; }
.event-modes .info-card { scroll-margin-top: calc(var(--header) + 20px); }
.footer-brand { width: 100%; max-width: 260px; overflow: visible; }

@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .product-grid { grid-template-columns: 1fr; }
  .media-fact { left: 10px; bottom: 8px; font-size: 11px; }
  .footer-brand { max-width: 100%; }

}

.media-caption { bottom: 30px; padding-bottom: 12px; }
@media (max-width: 760px) { .media-caption { bottom: 28px; padding-bottom: 8px; } }

.buy-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* v13: verified-source history, trademark and community notes */
.history-timeline, .media-report-note { margin: 36px auto 0; max-width: 900px; }
.history-timeline h3, .media-report-note h3 { color: var(--accent); margin: 0 0 18px; }
.history-timeline ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.history-timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; border-left: 2px solid var(--accent); padding: 8px 16px; }
.history-timeline time { color: var(--accent); font-weight: 700; }
.history-timeline p, .media-report-note p { margin: 0 0 10px; }
.source-note { color: var(--muted); font-size: 14px; }
.brand-name-list { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 18px 0 28px; }
.brand-name-list li { border: 1px solid #d8e1e8; border-radius: 999px; padding: 8px 16px; color: var(--accent); }
.community-entry { text-align: center; }
.community-entry h2 { margin-top: 0; }
.community-entry p { color: var(--muted); margin-bottom: 22px; }
.media-grid-confirmed { margin-top: 22px; }
.media-grid-confirmed .media-item { min-height: 240px; }
.media-grid-confirmed .media-item img { width: 100%; max-height: 480px; object-fit: cover; }
.media-grid-confirmed figcaption { position: static; display: block; padding: 14px 0 0; color: var(--ink); }
.media-report-note { padding: 22px; background: #f6f9fb; }
@media (max-width: 680px) { .history-timeline li { grid-template-columns: 1fr; gap: 4px; } }

@media (max-width: 380px) {
  .brand-cn { font-size: 16px; }
  .brand-en { font-size: 8px; letter-spacing: .5px; }
  .brand-mark { flex-basis: 40px; width: 40px; }
  .lang-switch { gap: 2px; margin-right: 4px; font-size: 12px; }
  .login-trigger { margin-left: 2px; width: 30px; padding: 0; }
  .menu-toggle { width: 34px; padding-right: 5px; padding-left: 5px; }
}

/* v16: prevent narrow viewport overflow at the source */
html, body { max-width: 100%; }
body { overflow-x: clip; }
.container, main, section, article, header, footer, nav, figure, .info-grid, .news-grid, .media-grid, .mascot-row { min-width: 0; }
p, h1, h2, h3, a, li, span { overflow-wrap: anywhere; }
img, video, iframe { max-width: 100%; }

@media (max-width: 760px) {
  .header-inner { justify-content: flex-start; gap: 5px; padding-left: 12px; padding-right: 10px; }
  .brand { min-width: 0; gap: 5px; flex: 0 1 auto; }
  .brand-copy { min-width: 0; }
  .brand-cn { font-size: 17px; letter-spacing: .3px; white-space: nowrap; }
  .brand-en { font-size: 8px; letter-spacing: .15px; white-space: nowrap; }
  .lang-switch { flex: 0 0 auto; margin: 0 0 0 auto; gap: 3px; font-size: 12px; }
  .login-trigger { flex: 0 0 32px; width: 32px; margin: 0; padding: 0; }
  .menu-toggle { flex: 0 0 36px; width: 36px; margin: 0; padding: 0; }
  .menu-toggle span { width: 20px; }
  .hero { min-height: 420px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head h2 { font-size: clamp(25px, 7vw, 34px); }
  .section-intro { padding-left: 8px; padding-right: 8px; }
  .facts strong { min-width: 0; }
  .mascot-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .mascot-img { max-width: min(100%, 145px); }
  .footer-cols { min-width: 0; }
  .footer-col { min-width: 0; }
  .footer-bottom { padding-left: 12px; padding-right: 12px; overflow-wrap: anywhere; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { padding: 18px; }
  .static-page { padding-top: calc(var(--header) + 42px); padding-bottom: 64px; }
  .static-page .page-lead { margin-bottom: 28px; }
  .purchase-modal { padding: 12px; }
  .purchase-dialog { padding: 24px 18px; }
}
@media (max-width: 360px) {
  .brand-mark { flex-basis: 32px; width: 32px; height: 30px; }
  .brand-logo { width: 132px; left: -5px; top: -13px; }
  .brand-cn { font-size: 15px; }
  .brand-en { font-size: 7px; }
  .header-inner { gap: 3px; padding-left: 9px; padding-right: 7px; }
  .login-trigger { flex-basis: 28px; width: 28px; }
  .menu-toggle { flex-basis: 32px; width: 32px; }
}
@media (max-width: 760px) {
  .preview-grid-four, .preview-grid-two { grid-template-columns: minmax(0, 1fr); }
  .media-grid { grid-template-columns: minmax(0, 1fr); }
  .media-item-large { grid-column: auto; }
  .partner-grid { grid-template-columns: minmax(0, 1fr); }
}

/* v26: tighter mobile spacing and horizontally scrollable mascot cards */
@media (max-width: 760px) {
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-head { margin-bottom: 24px; }
  .section-more { margin-top: 28px; }

}

/* v17 directory homepage */
.hero { height: 83vh; min-height: 620px; }
.hero-picture, .hero-picture img { position:absolute; inset:0; width:100%; height:100%; }
.hero-picture img { object-fit:cover; }
.hero-identity { color:#fff; font-size:clamp(18px,2vw,25px); letter-spacing:.08em; margin-bottom:18px; text-shadow:0 2px 12px #0008; }
.hero-title { text-shadow:0 3px 18px #0008; }
.hero-actions { display:flex; flex-wrap:wrap; gap:12px; margin-top:34px; }
.hero-actions .btn { margin:0; min-width:150px; }
.evidence-strip { background:#f4f8fa; border-bottom:1px solid var(--line); }
.evidence-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding-top:22px; padding-bottom:22px; }
.evidence-grid > * { display:flex; flex-direction:column; align-items:center; gap:4px; padding:8px 14px; text-align:center; border-right:1px solid var(--line); }
.evidence-grid > *:last-child { border-right:0; }
.evidence-grid b { color:var(--ink); font-size:18px; }
.evidence-grid small { color:var(--muted); font-size:13px; }
.home-about-copy { max-width:850px; margin:0 auto 30px; text-align:center; }
.home-about-copy .lead { font-size:clamp(19px,2vw,24px); color:var(--ink); line-height:1.65; }
.home-about-copy p + p { margin-top:12px; color:var(--muted); }
.home-timeline { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:32px 0; padding:0; list-style:none; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.home-timeline li { padding:22px; border-right:1px solid var(--line); display:flex; flex-direction:column; gap:8px; }
.home-timeline li:last-child { border:0; }
.home-timeline b { color:var(--accent); }
.home-timeline span { color:var(--muted); font-size:14px; }
.home-race-photos { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.home-race-photos figure { min-width:0; }
.home-race-photos img { width:100%; aspect-ratio:16/9; object-fit:cover; border-radius:20px; }
.home-race-photos figcaption { padding-top:9px; color:var(--muted); font-size:14px; }
.directory-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.directory-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--line); transition:transform .22s,box-shadow .22s; }
.directory-card:hover { transform:translateY(-4px); box-shadow:0 14px 32px #18364a18; }
.directory-card img { width:100%; height:240px; object-fit:cover; background:#eef4f7; }
.directory-card span { display:flex; flex-direction:column; align-items:flex-start; padding:20px 22px 22px; }
.directory-card b { color:var(--ink); font-size:21px; }
.directory-card small { margin-top:6px; color:var(--muted); font-size:14px; }
.directory-card em { margin-top:18px; color:var(--accent); font-style:normal; }
.home-closing { padding-top:48px; padding-bottom:46px; background:#f7fafb; text-align:center; }
.closing-line { color:var(--ink); font-size:clamp(21px,3vw,32px); }
.closing-links { display:flex; justify-content:center; flex-wrap:wrap; gap:28px; margin-top:18px; }
.closing-links a { color:var(--accent); text-decoration:underline; text-underline-offset:4px; }
.mascot-tail { display:flex; justify-content:center; align-items:flex-end; gap:20px; margin:28px auto 0; }
.mascot-tail img { width:124px; height:124px; object-fit:contain; }
.product-art img { transition:transform .32s ease, filter .32s ease; }
.product-card:hover .product-art img { transform:translateY(-3px) scale(1.045); filter:drop-shadow(0 6px 8px #17364a20); }
.product-card .product-price { display:inline-flex; align-items:baseline; gap:8px; padding:6px 10px; margin:10px 0 4px; background:#edf6fa; border-radius:4px; font-size:24px; }
.footer-contact h3 { font-size:15px; color:#fff; }
.hotline.is-placeholder { color:rgba(255,255,255,.72); font-size:22px; }
.footer-bottom { font-size:14px; color:rgba(255,255,255,.7); }
.footer-link-pending { font-size:inherit; color:rgba(255,255,255,.65); }
@media(max-width:760px) {
 .hero { height:68vh; min-height:460px; }
 .hero-actions { gap:9px; margin-top:20px; }
 .hero-actions .btn { min-width:0; padding:10px 16px; }
 .evidence-grid { grid-template-columns:repeat(2,minmax(0,1fr)); padding-top:12px; padding-bottom:12px; }
 .evidence-grid > * { border-right:0; border-bottom:1px solid var(--line); }
 .evidence-grid > *:nth-child(odd) { border-right:1px solid var(--line); }
 .evidence-grid > *:nth-last-child(-n+2) { border-bottom:0; }
 .home-timeline { grid-template-columns:1fr; }
 .home-timeline li { border-right:0; border-bottom:1px solid var(--line); padding:16px 4px; }
 .home-race-photos { grid-template-columns:1fr; gap:18px; }
 .directory-grid { grid-template-columns:1fr; gap:16px; }
 .directory-card { display:grid; grid-template-columns:38% minmax(0,1fr); min-height:150px; }
 .directory-card img { height:100%; min-height:150px; }
 .directory-card span { justify-content:center; padding:14px; }
 .directory-card b { font-size:18px; }
 .directory-card em { margin-top:10px; }
 .mascot-tail { gap:7px; }
 .mascot-tail img { width:clamp(72px,20vw,110px); height:clamp(72px,20vw,110px); }
}

/* v18: centered desktop navigation, full-row news strip, labeled mascot close */
@media (min-width: 1101px) {
  .header-inner { position: relative; }
  .site-nav { position: absolute; left: 50%; transform: translateX(-50%); margin-left: 0; gap: clamp(12px, 1.35vw, 22px); }
  .site-nav a { font-size: clamp(13px, 1.05vw, 15px); }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 1100px) {
  .site-nav a { text-align: center; }
}
.evidence-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.evidence-grid > *:nth-child(3) { border-right: 0; }
.section-news-strip { background: #f7f7f7; }
.home-news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.home-news-list a { display: block; padding: 20px 0; border-top: 1px solid var(--line); color: var(--text); }
.home-news-list b { display:block; color:var(--ink); font-size:18px; line-height:1.5; }
.home-news-list span { display:block; margin-top:10px; line-height:1.8; color:var(--muted); }
.mascot-tail { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:16px; align-items:start; }
.mascot-tail article { text-align:center; }
.mascot-tail img { display:block; margin:0 auto; }
.mascot-tail h3 { margin:8px 0 2px; font-size:17px; }
.mascot-tail p { margin:0; color:var(--muted); font-size:14px; line-height:1.7; }
.mascot-shop { margin-top:26px; text-align:center; }
@media (max-width: 760px) {
  .evidence-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .evidence-grid > * { border-bottom:0; border-right:1px solid var(--line); padding-left:6px; padding-right:6px; }
  .evidence-grid > *:nth-child(odd) { border-right:1px solid var(--line); }
  .evidence-grid > *:last-child { border-right:0; }
  .evidence-grid b { font-size:14px; }
  .evidence-grid small { font-size:11px; }
  .home-news-list { grid-template-columns:1fr; gap:0; }
  .home-news-list b { font-size:16px; }
  .mascot-tail { display:flex; width:100%; max-width:100%; min-width:0; justify-content:flex-start; align-items:flex-start; gap:14px; overflow-x:auto; overflow-y:hidden; padding:0 0 12px; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch; }
  .mascot-tail article { flex:0 0 240px; min-width:0; scroll-snap-align:start; }
  .mascot-tail article:last-child { grid-column:auto; }
  .mascot-tail img { width:110px; height:110px; }
}

/* v19: desktop navigation dropdowns with a soft reveal */
.site-nav > .nav-item { position: relative; display: flex; align-items: stretch; }
.nav-dropdown { position: absolute; z-index: 30; top: 100%; left: 50%; min-width: 190px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 28px #18364a18; opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, 8px); transition: opacity .2s ease, transform .2s ease, visibility .2s; }
.nav-dropdown a { display: block; padding: 9px 12px; color: var(--ink); font-size: 14px; line-height: 1.45; white-space: nowrap; }
.nav-dropdown a:hover { color: var(--accent); background: #f2f8fb; }
.site-nav > .nav-item:hover .nav-dropdown, .site-nav > .nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.home-race-photos figcaption { text-align: center; }
@media (max-width: 760px) {
  .site-nav > .nav-item { display: block; width: 100%; }
  .site-nav > .nav-item > a { display: block; }
  .nav-dropdown { display: none; }
}
@media (prefers-reduced-motion: reduce) { .nav-dropdown { transition: none; } }


/* v20 homepage additions and public registration form */
.hero-video-entry { display:inline-flex; flex-direction:row; align-items:center; justify-content:center; width:auto; gap:0; font-size:inherit; border:1px solid currentColor; padding:10px 32px; }
.home-product-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; }
.home-product-grid a { color:var(--ink); text-align:center; font-weight:600; }
.home-product-grid img { display:block; width:100%; aspect-ratio:1.14/1; object-fit:cover; margin-bottom:12px; }
.footer-public-emails { margin-top:20px; line-height:1.9; }
.footer-public-emails p { overflow-wrap:anywhere; }
.site-footer .footer-public-emails a { color:#fff; }
.partners-contact-card .footer-public-emails a,
.partners-contact-card .footer-public-emails a:hover,
.partners-contact-card .footer-public-emails a:focus { color:#1d5e8c; text-decoration:underline; }
.partners-contact-card .footer-public-emails a:focus-visible { outline:2px solid #1d5e8c; outline-offset:3px; }
.registration-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; margin-top:18px; }
.registration-form[hidden] { display:none; }
.registration-form label { display:block; }
.registration-form input:not([type=checkbox]), .registration-form textarea { display:block; width:100%; margin-top:5px; padding:10px; border:1px solid var(--line); background:#fff; font:inherit; }
.registration-form .registration-consent { grid-column:1/-1; display:flex; align-items:flex-start; gap:9px; }
.registration-form .registration-consent input { margin-top:6px; }
.registration-form button { justify-self:start; }
.registration-result { margin-top:14px; padding:12px; background:#eef7f4; color:var(--ink); overflow-wrap:anywhere; }
@media(max-width:760px) { .home-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } .registration-form { grid-template-columns:1fr; } .registration-form .registration-consent { grid-column:auto; } }

/* v23 edition galleries */
.edition-album-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; height: auto; grid-auto-rows: auto; }
.edition-album-grid .media-item { aspect-ratio: 4 / 3; }
.edition-album-grid .media-item img { display: block; }
.edition-album-grid .media-fact { left: 14px; bottom: 10px; color: #fff; }
.edition-gallery-page { padding: calc(var(--header) + 34px) 0 64px; }
.edition-breadcrumb { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.edition-breadcrumb a { color: var(--accent); text-decoration: none; }
.edition-head { text-align: center; margin: 0 0 28px; }
.edition-head h1 { margin: 0 0 6px; font-size: clamp(25px, 4vw, 34px); }
.edition-head p { margin: 0; color: var(--muted); }
.edition-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.edition-thumb { position: relative; display: block; width: 100%; min-width: 0; padding: 0; border: 0; background: var(--bg-alt); aspect-ratio: 4 / 3; overflow: hidden; cursor: zoom-in; }
.edition-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.edition-thumb:hover img { transform: scale(1.03); }
.edition-thumb-num { position: absolute; right: 8px; bottom: 8px; padding: 3px 7px; border-radius: 3px; background: #0009; color: #fff; font-size: 12px; }
.edition-back-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.edition-back-links a { color: var(--accent); }
.edition-lightbox { display: none; position: fixed; inset: 0; z-index: 1000; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: #000e; }
.edition-lightbox.open { display: flex; }
.edition-lightbox .edition-large { display: block; max-width: min(100%, 1400px); max-height: 78vh; object-fit: contain; }
.edition-counter, .edition-caption { color: #fff; text-align: center; }
.edition-counter { margin-bottom: 10px; }
.edition-caption { min-height: 1.7em; margin: 10px 0 0; line-height: 1.7; }
.edition-close, .edition-prev, .edition-next { position: absolute; border: 0; color: #fff; cursor: pointer; }
.edition-close { top: 12px; right: 18px; background: none; font-size: 34px; }
.edition-prev, .edition-next { top: 50%; transform: translateY(-50%); border-radius: 50%; padding: 8px 15px; background: #ffffff33; font-size: 28px; }
.edition-prev { left: 14px; }
.edition-next { right: 14px; }
@media (max-width: 760px) {
  .edition-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .edition-album-grid .media-item { aspect-ratio: 4 / 3; }
  .edition-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .edition-gallery-page { padding-top: calc(var(--header) + 24px); }
  .edition-prev { left: 6px; }
  .edition-next { right: 6px; }
}


/* v24 round 1: clearer event, partner and franchise cards */
.event-mode-cards { align-items:stretch; gap:24px; }
.event-mode-card, .franchise-card { min-width:0; border-radius:10px; box-shadow:0 8px 24px #18364a12; }
.event-card-heading { display:flex; align-items:center; gap:14px; padding-bottom:16px; margin-bottom:16px; border-bottom:1px solid var(--line); }
.event-card-heading h2 { margin:4px 0 0; }
.event-number { display:grid; place-items:center; flex:0 0 46px; width:46px; height:46px; border-radius:50%; color:var(--accent); background:var(--bg-alt); font-weight:700; }
.event-tag { display:inline-block; padding:4px 10px; border:1px solid var(--line); border-radius:999px; color:var(--accent); font-size:12px; font-weight:700; }
.event-notice { padding:12px 14px; border-left:4px solid var(--accent); background:var(--bg-alt); color:var(--text); }
.event-notice-strong { margin:12px 0; font-weight:700; }
.event-notice-strong p + p { margin-top:4px; }
.registration-form select { display:block; width:100%; margin-top:5px; padding:10px; border:1px solid var(--line); border-radius:4px; background:#fff; color:inherit; font:inherit; }
.registration-form .field-full { grid-column:1/-1; }
.field-hint { display:block; margin-top:5px; color:var(--muted); font-size:12px; }
.registration-form .registration-consent { line-height:1.7; }
.partners-contact-card { max-width:780px; margin:auto; padding:26px; border:1px solid var(--line); border-radius:10px; background:#fff; box-shadow:0 8px 24px #18364a12; }
.partners-contact-card p { margin-top:14px; }
.partners-contact-card .footer-public-emails { margin-top:14px; }
.franchise-warning { margin:14px 0; padding:14px 16px; border:1px solid var(--accent); border-left-width:5px; color:var(--accent); font-weight:700; background:var(--bg-alt); }
.pending-info-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-top:12px; }
.pending-info-grid p { min-width:0; padding:14px; border:1px dashed var(--line); border-radius:6px; background:var(--bg-alt); }
@media(max-width:760px) { .event-mode-cards { grid-template-columns:minmax(0,1fr); } .event-card-heading { gap:10px; } .pending-info-grid { grid-template-columns:1fr; } .partners-contact-card { padding:20px; } .registration-form .field-full { grid-column:auto; } }

/* v27: entity disclosure and concise event entry blocks */
.footer-entities { padding-top:18px; padding-bottom:14px; border-top:1px solid rgba(255,255,255,.12); }
.footer-entities h3 { margin:0 0 8px; font-size:14px; color:#fff; }
.footer-entities-compact { margin:0; color:rgba(255,255,255,.8); font-size:13px; line-height:1.7; }
.history-label { margin:30px auto 0; text-align:center; color:var(--accent); font-size:15px; font-weight:700; }
.events-intro-block { margin:28px 0; padding:24px; border:1px solid var(--line); border-radius:12px; }
.events-intro-block h2 { margin-top:0; }
.events-intro-block a { color:var(--accent); text-decoration:underline; }
.event-closed { font-weight:700; color:var(--accent); }
.mascot-card-link { color:inherit; text-decoration:none; }
.mascot-card-link article { height:100%; }
.mascot-card-link:hover h3 { color:var(--accent); }
.mascot-story-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px; }
.mascot-story-image { display:block; width:100%; max-width:220px; height:200px; object-fit:contain; margin:0 auto 12px; }
@media (max-width: 760px) {
  .site-footer { line-height:1.55; }
  .footer-main { gap:22px; padding-top:32px; padding-bottom:26px; }
  .footer-cols { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:18px; column-gap:14px; }
  .footer-col h3 { margin-bottom:7px; }
  .footer-col a, .footer-link-pending { line-height:1.85; }
  .footer-bottom { padding-top:10px; padding-bottom:10px; line-height:1.5; }
  .footer-entities { padding-top:12px; padding-bottom:10px; }
  .footer-cols { row-gap:12px; column-gap:12px; }
  .footer-col a, .footer-link-pending { line-height:1.65; }
  .footer-contact > h3, .footer-contact .hotline, .footer-contact .qr-list { display:none; }
  .footer-entities-compact { display:block; margin:0; color:rgba(255,255,255,.8); font-size:12px; line-height:1.5; }
  .home-about-copy p + p, .events-intro-block p + p { margin-top:8px; }
  .events-intro-block { margin:18px 0; padding:16px; }
  .mascot-story-grid { grid-template-columns:1fr; }
  /* Keep the v26 single-row horizontal mascot scroller. */
  .mascot-tail { display:flex; flex-wrap:nowrap; overflow-x:auto; }
}
@media (max-width: 760px) {
  .mascot-tail > .mascot-card-link { flex:0 0 240px; min-width:0; scroll-snap-align:start; }
}

/* v30: footer seal stack, footer entity placement, mascot card feedback, disclosures */
.footer-brand { flex-direction:column; align-items:flex-start; gap:6px; }


.footer-entities-compact { margin:10px 0 8px; color:rgba(255,255,255,.8); font-size:12px; line-height:1.55; text-align:left; }
.mascot-card-link { display:block; transition:transform .22s ease, filter .22s ease; transform-origin:center; }
.mascot-card-link:hover { transform:scale(1.04); filter:drop-shadow(0 5px 8px rgba(20,55,75,.13)); }
.event-form-disclosure, .license-apply-disclosure { margin-top:14px; }
.event-form-disclosure > summary, .license-apply-disclosure > summary { cursor:pointer; color:var(--accent); font-weight:700; padding:12px 14px; border:1px solid var(--line); border-radius:8px; list-style-position:inside; }
.event-form-disclosure[open] > summary, .license-apply-disclosure[open] > summary { margin-bottom:14px; }
.shop-fulfillment { margin-top:28px; }
@media (max-width:760px) { .footer-entities-compact { display:block; margin:8px 0 10px; font-size:12px; text-align:left; } .mascot-card-link:active { transform:scale(1.025); filter:drop-shadow(0 3px 6px rgba(20,55,75,.12)); } }
@media (hover:none) { .mascot-card-link:hover { transform:none; filter:none; } }


/* v31: compact heart mark and Chinese mascot voice affordances */

.mascot-audio-hint { color:var(--muted); font-size:13px; text-align:center; margin:0 0 14px; }
.mascot-audio-hint[hidden] { display:none; }
.spec-pending { color: var(--muted); }
.page-hero { padding: 132px 0 56px; text-align: center; background: linear-gradient(rgba(8,32,56,.58), rgba(8,32,56,.58)), url('../images/hero-desktop-1920.jpg') center 30%/cover; }
.page-hero .en { color: rgba(255,255,255,.85); letter-spacing: 2px; }
.page-hero h1, .page-hero h2 { color: #fff; margin: 8px 0 0; }
.brand-mark-showcase { display: flex; gap: 48px; justify-content: center; margin: 32px 0; }
.brand-mark-showcase figure { margin: 0; text-align: center; }
.brand-mark-showcase img { width: 120px; height: auto; }
.brand-mark-showcase figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.mascot-audio-card { cursor:pointer; }
.mascot-audio-button { display:none; }
@media (max-width:760px) {
  .page-hero { padding: 96px 0 36px; background-image: linear-gradient(rgba(8,32,56,.58), rgba(8,32,56,.58)), url('../images/hero-mobile-1200.jpg'); }

  .mascot-card-link { position:relative; }
  .mascot-audio-button { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; margin-top:8px; border:1px solid var(--line); border-radius:50%; background:#fff; cursor:pointer; }
  .mascot-audio-card { cursor:pointer; }
}

.mascot-card-navigation { display:block; color:inherit; text-decoration:none; }

/* Homepage mobile mascots: show all five complete cards without a scroller. */
@media (max-width: 760px) {
  #home-mascots .mascot-tail {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }
  #home-mascots .mascot-tail > .mascot-card-link {
    min-width: 0;
    transform: none;
  }
  #home-mascots .mascot-card-navigation,
  #home-mascots .mascot-tail article { min-width: 0; height: auto; }
  #home-mascots .mascot-tail img { width: 100%; height: auto; object-fit: contain; }
  #home-mascots .mascot-tail h3,
  #home-mascots .mascot-tail p { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
}

/* v33: aligned header controls, mobile hero actions and footer layout */
.login-trigger {
  display:flex; align-items:center; justify-content:center; padding:0;
}
.login-trigger { height:34px; }
.menu-toggle { height:34px; }
@media (max-width:760px) {
  .login-trigger { height:36px; }
  .menu-toggle { height:36px; }
  .hero-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
  .hero-actions .btn { width:100%; min-width:0; padding:13px 8px; font-size:15px; text-align:center; }
  .brand-copy { align-items:flex-start; }
  .brand-cn, .brand-en { align-self:flex-start; }
  .brand-en { font-size:7px; letter-spacing:.1px; }
  .footer-main { gap:14px; padding-top:20px; }
  .footer-brand { flex-direction:row; align-items:center; justify-content:flex-start; gap:10px; }


  .footer-cols { grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:10px; }
  .footer-col h3 { margin-bottom:6px; }
  .footer-col a, .footer-link-pending { line-height:1.55; }
  .footer-bottom { padding:8px 12px; }
}
@media (max-width:360px) {
  .brand-en { font-size:7px; letter-spacing:.08px; }
}

/* v33 verification fix: hamburger stacks vertically; desktop footer seal shares logo left edge; mobile EN brand lines share right edge */
.menu-toggle { flex-direction:column; align-items:center; }

@media (max-width:760px) {
  .brand-en { font-size:9px; letter-spacing:.1px; }
}
@media (max-width:360px) {
  .brand-en { font-size:8px; letter-spacing:.08px; }
}

/* v34: footer 3 columns on desktop/tablet; hamburger sized to person icon; toggle collapses to one line */
@media (min-width: 761px) {
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
.menu-toggle span { width: 20px; background: #000; }



@media (max-width: 760px) {
  .menu-toggle { flex-basis: 32px; width: 32px; }
}
@media (max-width: 360px) {
  .menu-toggle { flex-basis: 28px; width: 28px; }
}

/* v35: PayPal payment option shown only in English shop checkout */
.purchase-dialog .pay-overseas { display: none; }
html[lang="en"] .purchase-dialog .pay-domestic { display: none; }
html[lang="en"] .purchase-dialog label.pay-overseas { display: inline-flex; }
html[lang="en"] .purchase-dialog .qr-placeholder.pay-overseas { display: grid; }

/* v42 account access */
.login-trigger.is-authenticated { color: var(--lake, #1d5e8c); }
.auth-dialog { width: min(92vw, 430px); max-height: 90vh; max-height: 90dvh; overflow: auto; padding: 28px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 18px 60px #102b3c40; }
.auth-dialog::backdrop { background: #102b3c80; }
.auth-dialog .login-close { position: absolute; top: 12px; right: 14px; border: 0; background: transparent; font-size: 26px; cursor: pointer; }
.auth-brand { text-align: center; }
.auth-brand img { border-radius: 50%; }
.auth-brand h2 { margin: 8px 0 2px; }
.auth-brand p { margin: 0; color: #73808a; font-size: 10px; letter-spacing: .12em; }
.auth-switch { margin: 10px 0 20px; color: #5b6b76; font-size: 14px; text-align: center; }
.auth-switch-link { padding: 0; border: 0; background: transparent; color: #1f7ae0; font-size: 14px; cursor: pointer; }
.auth-switch-link:hover { text-decoration: underline; }
.auth-dialog label { display: block; margin: 12px 0; color: #34444c; font-size: 14px; }
.auth-dialog label > span:first-child { display: block; margin-bottom: 5px; }
.auth-hint { display: block; margin-top: 4px; color: #63747d; font-size: 12px; }
.auth-dialog input:not([type=checkbox]) { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #cbd7dd; border-radius: 10px; background: #fff; font-size: 16px; }
.auth-dialog input:focus { border-color: #1f7ae0; outline: 2px solid #1f7ae030; }
.auth-dialog .auth-register-only { display: none; }
.auth-dialog.is-register .auth-register-only { display: block; }
.auth-dialog .auth-captcha-row[hidden] { display: none; }
.auth-captcha-input { display: flex; align-items: center; gap: 10px; }
.auth-captcha-input input { flex: 1; width: 0 !important; }
.auth-captcha { width: 160px; height: 54px; cursor: pointer; }
.auth-dialog .auth-email-code-row[hidden] { display: none; }
.auth-email-code-input { display: flex; align-items: center; gap: 10px; }
.auth-email-code-input input { flex: 1; width: 0 !important; }
.auth-send-code { flex: 0 0 auto; }
.auth-dialog.is-register .auth-consent { display: flex !important; align-items: center; gap: 8px; }
.auth-consent span { margin: 0 !important; }
.auth-dialog input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; border: 0; margin: 0; flex: none; accent-color: #17698f; }
.auth-consent span { flex: 1; }
.auth-privacy { font-size: 12px; }
.auth-privacy, .auth-forgot { color: #63747d; font-size: 13px; }
.auth-error { min-height: 20px; margin: 8px 0; color: #c0392b; font-size: 14px; }
.auth-submit { width: 100%; min-height: 48px; border: 0; border-radius: 999px; background: #0f2f4d; color: white; font-size: 16px; font-weight: 600; }
.auth-submit:disabled { opacity: .72; cursor: wait; }
.auth-submit.is-loading::before { content: ''; display: inline-block; width: 13px; height: 13px; margin-right: 8px; border: 2px solid #ffffff80; border-top-color: #fff; border-radius: 50%; vertical-align: -2px; animation: auth-spin .7s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.account-page { padding-top: calc(var(--header) + 48px); padding-bottom: 72px; min-height: 60vh; }
.account-page > h1 { text-align: center; }
.account-card { margin: 24px 0; padding: 24px; border: 1px solid #dce5ea; border-radius: 14px; background: #fff; }
.account-card h2 { margin-top: 0; }
.account-card label { display: block; max-width: 440px; margin: 12px 0; }
.account-card label span { display:block; margin-bottom:5px; }
.account-card input { box-sizing:border-box; width:100%; min-height:42px; padding:9px 11px; border:1px solid #cbd7dd; border-radius:8px; font-size:16px; }
.account-card input:focus { border-color:#2582ad; outline:2px solid #2582ad30; }
.account-table { width:100%; border-collapse:collapse; }
.account-table th,.account-table td { padding:10px; border-bottom:1px solid #e1e8ec; text-align:left; }
@media(max-width:700px) { .account-card { overflow-x:auto; padding:16px; } .account-table { min-width:700px; } }

/* v45: compact auth dialog on phones so the register form fits one screen. */
@media (max-width: 760px) {
  .auth-dialog { padding: 20px 18px; max-height: 92vh; max-height: 92dvh; }
  .auth-brand img { width: 36px; height: 36px; }
  .auth-brand h2 { font-size: 20px; }
  .auth-switch { margin: 8px 0 16px; }
  .auth-dialog label { margin: 8px 0; }
  .auth-dialog input:not([type=checkbox]) { min-height: 40px; padding: 8px 10px; }
  .auth-captcha { width: 128px; height: 44px; }
  .auth-email-code-input { display: flex; align-items: center; gap: 8px; }
  .auth-email-code-input input { flex: 1; width: 0 !important; }
  .auth-send-code { flex: 0 0 auto; padding: 0 12px; white-space: nowrap; }
  .auth-consent span, .auth-privacy, .auth-forgot { font-size: 12px; }
}

/* v47 visual refinement: shared geometry; no content or interaction changes. */
:root {
  --design-control-radius: 12px;
  --design-card-radius: 20px;
  --design-dialog-radius: 24px;
  --design-border: #dce2e6;
  --design-shadow: 0 4px 20px rgba(20, 35, 45, .055);
  --design-dialog-shadow: 0 20px 64px rgba(20, 35, 45, .18);
}

/* Fixed header stays unchanged; content supplies its own safe offset. */
.account-page > h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.3;
  scroll-margin-top: calc(var(--header) + 24px);
  margin-bottom: 32px;
}
.account-card { margin: 0 0 24px; }
.account-card h2 { margin-bottom: 18px; font-size: 22px; line-height: 1.4; }
.account-card > p { margin-bottom: 24px; }

/* Keep the existing photographic page banners, remove doubled top spacing. */
.static-page:has(> .page-hero) { padding-top: var(--header); }
.static-page > .page-hero { padding: 64px 0 48px; margin-bottom: 40px; }
.static-page > .page-hero h1 { font-weight: 600; line-height: 1.3; }
.static-page .page-lead { font-size: 17px; line-height: 1.8; margin-bottom: 32px; }

.btn, .buy-button {
  border-radius: var(--design-control-radius);
  min-height: 44px;
  max-width: 100%;
  font-family: inherit;
  line-height: 1.5;
  cursor: pointer;
}
.auth-submit { border-radius: var(--design-control-radius); }
.info-card, .preview-card, .account-card, .events-intro-block,
.partners-contact-card, .directory-card {
  border-color: var(--design-border);
  border-radius: var(--design-card-radius);
  box-shadow: var(--design-shadow);
}
.info-card, .account-card, .partners-contact-card { padding: 32px; }
.preview-card { padding: 26px; }
.directory-card { overflow: hidden; }
.info-card h2, .events-intro-block h2 { font-weight: 600; line-height: 1.4; }
.info-card h3 { font-size: 18px; font-weight: 600; line-height: 1.5; }
.info-card h3 + p { margin-top: 10px; }
.info-card p + p { margin-top: 12px; }
.event-mode-card > h3 { margin: 28px 0 12px; }
.events-intro-block { padding: 28px; margin: 24px 0; }
.events-intro-block h2 { font-size: 23px; margin-bottom: 14px; }
.events-intro-block p + p { margin-top: 10px; }
.event-entry-cards { margin-top: 20px; gap: 20px; }
.event-entry-cards .info-card { box-shadow: none; padding: 24px; }
.event-card-heading { padding-bottom: 20px; margin-bottom: 20px; }
.event-card-heading h2 { margin-bottom: 0; }
.license-application-info { margin: 24px 0; }
.license-application-info p + h2 { margin-top: 24px; }
.franchise-cards { gap: 24px; }
.license-apply-card { margin-top: 32px; }
.license-apply-card > h2 { margin-bottom: 18px; }
.event-notice, .franchise-warning, .registration-result, .pending-info-grid p {
  border-radius: var(--design-control-radius);
}
.event-form-disclosure > summary, .license-apply-disclosure > summary {
  padding: 14px 16px;
  border-color: var(--design-border);
  border-radius: var(--design-control-radius);
}
.registration-form { gap: 20px; margin-top: 24px; }
.registration-form label { min-width: 0; }
.registration-form input:not([type=checkbox]), .registration-form select,
.registration-form textarea, .purchase-dialog input:not([type=radio]):not([type=checkbox]),
.purchase-dialog select, .purchase-dialog textarea, .account-card input,
.auth-dialog input:not([type=checkbox]) {
  border-color: var(--design-border);
  border-radius: var(--design-control-radius);
  min-width: 0;
  max-width: 100%;
}
.registration-form input:not([type=checkbox]), .registration-form select,
.registration-form textarea { padding: 12px 14px; font-size: 16px; }
.registration-form textarea, .purchase-dialog textarea { resize: vertical; }
.purchase-dialog fieldset { border-color: var(--design-border); border-radius: var(--design-control-radius); }
.login-dialog, .auth-dialog, .video-qr-dialog, .purchase-dialog {
  border-radius: var(--design-dialog-radius);
  box-shadow: var(--design-dialog-shadow);
}
.auth-brand img { margin-inline: auto; }
.auth-brand h2 { font-size: 25px; font-weight: 600; line-height: 1.4; }
.auth-dialog .auth-brand .auth-switch { font-size: 13px; letter-spacing: 0; margin: 10px 0 20px; }
.auth-dialog .auth-switch-link { font: inherit; }
.auth-dialog .auth-consent { align-items: flex-start; }
.auth-dialog .auth-consent input { margin-top: 3px; }
.news-media, .edition-thumb, .product-art, .home-product-grid img {
  border-radius: var(--design-control-radius);
  overflow: hidden;
}

@media (max-width: 760px) {
  .account-page { padding-top: calc(var(--header) + 32px); padding-bottom: 48px; }
  .account-page > h1 { margin-bottom: 24px; }
  .static-page > .page-hero { padding: 40px 0 32px; margin-bottom: 28px; }
  .static-page .page-lead { font-size: 16px; margin-bottom: 24px; }
  .info-card, .account-card, .partners-contact-card, .preview-card { padding: 20px; }
  .events-intro-block { padding: 20px; margin: 20px 0; }
  .events-intro-block h2 { font-size: 21px; }
  .event-entry-cards { gap: 16px; }
  .event-entry-cards .info-card { padding: 20px; }
  .event-card-heading { gap: 12px; padding-bottom: 16px; margin-bottom: 16px; }
  .event-card-heading h2 { font-size: 20px; }
  .registration-form { gap: 16px; margin-top: 20px; }
  .franchise-cards { gap: 20px; }
  .auth-brand h2 { font-size: 21px; }
  .auth-dialog .auth-brand .auth-switch { margin: 8px 0 14px; }
  .auth-dialog .auth-send-code { min-width: 0; min-height: 40px; font-size: 13px; letter-spacing: 0; }
}

/* v47 navigation content design, 2026-11-04.
   Additive page-scoped layout only. Keep v47 geometry, content and behavior. */

/* Shop: image, details, then a shared price/action baseline. */
#shop-products { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; }
#shop-products .product-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto auto auto auto 1fr auto;
  align-content: start;
  align-items: start;
  padding: 24px;
}
#shop-products .product-art { grid-column: 1 / -1; margin: 0 0 24px; }
#shop-products .product-art img { aspect-ratio: 1; object-fit: contain; }
#shop-products h2 { grid-column: 1 / -1; margin: 0 0 16px; font-size: 23px; }
#shop-products .product-card > p:not(.product-price) {
  grid-column: 1 / -1; margin: 0; padding: 5px 0; font-size: 14px; line-height: 1.7;
}
#shop-products .product-card > p:not(.product-price) b { font-weight: 500; }
#shop-products .product-card > .product-price {
  grid-column: 1; grid-row: 7; align-self: end; background: transparent; padding: 20px 0 0;
  margin: 20px 0 0; font-size: 30px; line-height: 1.5; border-top: 1px solid var(--line);
  border-radius: 0;
}
#shop-products .buy-button {
  grid-column: 2; grid-row: 7; align-self: end; margin-top: 20px; padding: 10px 16px;
  background: var(--accent); color: #fff;
}
.shop-fulfillment {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 8px;
  margin-top: 40px;
}
.shop-fulfillment h2 { font-size: 18px; margin: 0; }
.shop-fulfillment h2:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.shop-fulfillment > p { margin: 0; }
.shop-fulfillment > p:last-child { grid-column: 2; grid-row: 2; }

/* Events: compact context, distinct current status, then intent entries. */
.static-page > .container:has(> .events-intro-block) {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px;
}
.static-page > .container:has(> .events-intro-block) > * { grid-column: 1 / -1; }
.static-page > .container > .events-intro-block { margin: 0; }
.static-page > .container > .events-intro-block.event-context {
  grid-column: span 2; padding: 8px 24px 24px 0; border: 0; box-shadow: none; background: transparent;
}
.static-page > .container > .events-intro-block.event-context h2 { font-size: 20px; }
.static-page > .container > .events-intro-block.event-current {
  display: grid; grid-template-columns: 1fr 2fr; column-gap: 32px; row-gap: 8px;
  background: var(--bg-alt); border-left: 4px solid var(--accent); box-shadow: none;
}
.static-page > .container > .events-intro-block.event-current h2 { grid-row: span 2; margin: 0; }
.static-page > .container > .events-intro-block.event-current p { margin: 0; }
.static-page > .container > .events-intro-block.event-entry {
  padding: 24px 0 8px; border: 0; box-shadow: none;
}
.event-entry-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.event-entry-cards .info-card { display: flex; flex-direction: column; gap: 12px; background: var(--bg-alt); }
.event-entry-cards .info-card h3, .event-entry-cards .info-card p { margin: 0; }
.event-entry-cards .info-card > a { margin-top: auto; padding-top: 8px; font-weight: 600; }
.event-mode-cards { margin-top: 24px; align-items: start; gap: 32px; }
.event-mode-card > h3 { padding-top: 24px; border-top: 1px solid var(--line); }
.event-mode-card > p { line-height: 1.9; }
.event-mode-card .event-form-disclosure > summary {
  background: var(--accent); color: #fff; border-color: var(--accent); padding: 18px 20px;
}

/* About: readable narrative beside facts; archive gets its own chapter. */
#about .about-body { display: grid; grid-template-columns: 1.4fr .8fr; column-gap: 72px; }
#about .about-body > p { grid-column: 1; max-width: none; }
#about .facts {
  grid-column: 2; grid-row: 1 / span 2; align-self: start; grid-template-columns: 1fr;
  gap: 28px; padding: 32px; margin: 0; border-top: 0; background: var(--bg-alt);
  border-radius: var(--design-card-radius);
}
#about .history-timeline { grid-column: 1 / -1; width: 100%; max-width: none; margin-top: 64px; }
#about .history-timeline h3 { font-size: 28px; margin-bottom: 32px; }
#about .history-timeline ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 40px; }
#about .history-timeline li { grid-template-columns: 112px 1fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
#about .history-timeline .source-note { margin-top: 24px; }

/* News: opening story, supporting stories, then archive and source notes. */
#news .content-subhead { font-size: 28px; margin: 64px 0 28px; }
#news .content-subhead:first-child { margin-top: 0; }
#news .news-grid { grid-template-columns: 1.1fr 1.1fr 1fr; gap: 32px; }
#news .news-card { display: block; }
#news .news-card:first-child { grid-column: span 2; grid-row: span 2; }
#news .news-card:first-child .news-media { aspect-ratio: 5 / 4; }
#news .news-card:first-child h3 { font-size: 26px; line-height: 1.5; }
#news .news-card:nth-child(2) .news-media, #news .news-card:nth-child(3) .news-media { aspect-ratio: 16 / 9; }
#news .news-card h3 { display: block; overflow: visible; -webkit-line-clamp: unset; }
#news .news-card:nth-child(n+4) { border-top: 1px solid var(--line); padding: 20px 0; }
#news .news-card:nth-child(n+4) h3 { margin: 0; }
#news .fact-summary { line-height: 1.8; }
#news .edition-album-grid { gap: 24px; }
#news .edition-album-grid .media-item { border-radius: var(--design-control-radius); }
#news .media-grid-confirmed { display: block; height: auto; margin: 48px 0 0; }
#news .media-grid-confirmed figure { margin: 0; min-height: 0; aspect-ratio: auto; }
#news .media-grid-confirmed .media-item img { height: auto; max-height: none; object-fit: contain; }
#news .media-grid-confirmed figcaption { background: none; padding: 16px 0 0; }
#news .media-report-note {
  display: grid; grid-template-columns: 1fr 2fr; gap: 12px 40px;
  max-width: none; margin-top: 48px; padding: 32px; border-top: 1px solid var(--line);
  border-radius: var(--design-card-radius);
}
#news .media-report-note h3 { grid-row: span 2; margin: 0; font-size: 22px; }
#news .media-report-note p { margin: 0; }

/* Brand: marks and the unmodified name inventory sit in distinct columns. */
#brand-trademarks > .container { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px 56px; align-items: start; }
#brand-trademarks .section-intro:first-child {
  grid-column: 2; margin: 0; max-width: none; text-align: left; font-size: 22px; color: var(--ink);
}
#brand-trademarks .brand-name-list {
  grid-column: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px; margin: 0;
}
#brand-trademarks .brand-name-list li { border-radius: var(--design-control-radius); padding: 12px 16px; background: #fff; }
#brand-trademarks .brand-mark-showcase {
  grid-column: 1; grid-row: 1 / span 2; align-self: stretch; align-items: center;
  gap: 28px; margin: 0; padding: 32px; background: #fff; border-radius: var(--design-card-radius);
}
#brand-trademarks .brand-mark-showcase figure { flex: 1; min-width: 0; }
#brand-trademarks .brand-mark-showcase img { width: 150px; margin: auto; }
#brand-trademarks .brand-mark-showcase figcaption { margin-top: 20px; }
#brand-trademarks .section-intro:not(:first-child), #brand-trademarks .source-note {
  grid-column: 1 / -1; max-width: 840px; margin: 0; text-align: left; line-height: 1.9;
}
#brand-trademarks .section-intro:not(:first-child) { border-top: 1px solid var(--line); padding-top: 32px; }

/* Galleries: one larger image per nine, retaining DOM order and all imagery. */
.edition-head { text-align: left; margin: 32px 0 40px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.edition-gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 18vw, 210px); gap: 24px 20px; }
.edition-gallery-grid .edition-thumb { aspect-ratio: auto; height: 100%; }
.edition-gallery-grid .edition-thumb:nth-child(9n+1) { grid-column: span 2; grid-row: span 2; }
.edition-gallery-grid .edition-thumb img { object-fit: contain; }

/* Small omissions on the already-refined franchise and character pages. */
.license-application-info { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 48px; }
.license-application-info h2 { margin: 0; }
.license-application-info h2:nth-of-type(2) { grid-column: 2; grid-row: 1; margin: 0; }
.license-application-info p { margin: 0; }
.license-application-info p:nth-of-type(2) { grid-column: 2; grid-row: 2; }
.license-application-info p:last-child { grid-column: 1 / -1; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.mascot-story-grid > .info-card:first-child { display: grid; grid-template-columns: 240px 1fr; column-gap: 40px; grid-column: 1 / -1; }
.mascot-story-grid > .info-card:first-child > .mascot-story-image { grid-column: 1; grid-row: 1 / span 4; align-self: center; height: 240px; margin: 0; }
.mascot-story-grid > .info-card:first-child > :not(.mascot-story-image) { grid-column: 2; justify-self: start; }
.mascot-story-grid > .info-card:first-child > h2 { align-self: end; font-size: 28px; }

@media (max-width: 1000px) {
  #shop-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #about .about-body { column-gap: 40px; }
  #about .history-timeline li { grid-template-columns: 1fr; gap: 8px; }
  #brand-trademarks > .container { column-gap: 28px; }
  #brand-trademarks .brand-mark-showcase { gap: 16px; padding: 24px; }
}
@media (max-width: 760px) {
  #shop-products { grid-template-columns: 1fr; gap: 28px; }
  #shop-products .product-card { padding: 20px; }
  #shop-products .product-art { margin-bottom: 20px; }
  #shop-products h2 { font-size: 22px; }
  #shop-products .product-card > .product-price { font-size: 28px; }
  #shop-products .buy-button { font-size: 14px; padding: 10px 14px; }
  .shop-fulfillment { grid-template-columns: 1fr; gap: 8px; margin-top: 32px; }
  .shop-fulfillment h2:nth-of-type(2) { grid-column: 1; grid-row: auto; margin-top: 16px; }
  .shop-fulfillment > p:last-child { grid-column: 1; grid-row: auto; }
  .static-page > .container:has(> .events-intro-block) { grid-template-columns: 1fr; gap: 24px; }
  .static-page > .container > .events-intro-block.event-context { grid-column: 1; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
  .static-page > .container > .events-intro-block.event-current { grid-template-columns: 1fr; gap: 12px; }
  .static-page > .container > .events-intro-block.event-current h2 { grid-row: auto; }
  .static-page > .container > .events-intro-block.event-entry { padding-top: 8px; }
  .event-entry-cards { grid-template-columns: 1fr; gap: 16px; }
  .event-mode-cards { margin-top: 8px; gap: 24px; }
  .event-mode-card .event-form-disclosure > summary { padding: 16px; }
  #about .about-body { grid-template-columns: 1fr; }
  #about .facts { grid-column: 1; grid-row: auto; margin-top: 20px; padding: 24px; gap: 24px; }
  #about .history-timeline { margin-top: 48px; }
  #about .history-timeline h3 { font-size: 24px; margin-bottom: 24px; }
  #about .history-timeline ol { grid-template-columns: 1fr; gap: 16px; }
  #about .history-timeline li { padding: 12px 20px; }
  #news .content-subhead { font-size: 24px; margin: 48px 0 24px; }
  #news .news-grid { grid-template-columns: 1fr; gap: 28px; }
  #news .news-card:first-child { grid-column: auto; grid-row: auto; }
  #news .news-card:first-child .news-media { aspect-ratio: 4 / 3; }
  #news .news-card:first-child h3 { font-size: 22px; }
  #news .news-card:nth-child(2) > a, #news .news-card:nth-child(3) > a { display: grid; grid-template-columns: 112px 1fr; column-gap: 16px; align-items: start; }
  #news .news-card:nth-child(2) .news-media, #news .news-card:nth-child(3) .news-media { grid-row: span 3; aspect-ratio: 1; }
  #news .news-card:nth-child(2) .tag, #news .news-card:nth-child(3) .tag { margin-top: 0; }
  #news .news-card:nth-child(2) h3, #news .news-card:nth-child(3) h3 { font-size: 16px; }
  #news .news-card:nth-child(2) .fact-summary, #news .news-card:nth-child(3) .fact-summary { grid-column: 2; }
  #news .news-card:nth-child(n+4) { padding: 18px 0 0; }
  #news .edition-album-grid { gap: 16px; }
  #news .media-grid-confirmed { margin-top: 32px; }
  #news .media-report-note { grid-template-columns: 1fr; gap: 16px; padding: 24px 20px; margin-top: 32px; }
  #news .media-report-note h3 { grid-row: auto; }
  #brand-trademarks > .container { grid-template-columns: 1fr; gap: 24px; }
  #brand-trademarks .section-intro:first-child, #brand-trademarks .brand-name-list { grid-column: 1; }
  #brand-trademarks .brand-mark-showcase { grid-column: 1; grid-row: auto; padding: 28px 20px; }
  #brand-trademarks .brand-name-list { grid-template-columns: 1fr; }
  #brand-trademarks .brand-name-list li { padding: 12px 16px; }
  .edition-head { margin: 24px 0 28px; padding-bottom: 20px; }
  .edition-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 20px 12px; }
  .edition-gallery-grid .edition-thumb { aspect-ratio: 4 / 3; height: auto; }
  .edition-gallery-grid .edition-thumb:nth-child(9n+1) { grid-row: auto; aspect-ratio: 16 / 10; }
  .license-application-info { grid-template-columns: 1fr; gap: 12px; }
  .license-application-info h2:nth-of-type(2), .license-application-info p:nth-of-type(2) { grid-column: 1; grid-row: auto; }
  .license-application-info h2:nth-of-type(2) { margin-top: 16px; }
  .mascot-story-grid > .info-card:first-child { display: block; }
  .mascot-story-grid > .info-card:first-child > .mascot-story-image { height: 200px; margin: 0 auto 12px; }
  .mascot-story-grid > .info-card:first-child > h2 { font-size: 21px; }
}

/* CART 20261104 — additive, keeps DESIGN and NAVDESIGN layers intact. */
.cart-page,.account-page{padding-top:calc(var(--header-height,88px) + 52px);padding-bottom:72px}
.cart-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.cart-heading h1{margin:6px 0}.cart-eyebrow{font-size:12px;letter-spacing:.2em;color:#767676;font-weight:700}
.cart-policy{color:#666;line-height:1.8}.cart-layout{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(300px,1fr);gap:24px;align-items:start;margin-top:28px}
.cart-layout .account-card{min-width:0;margin:0;padding:28px}.cart-checkout form,.record-form{display:grid;gap:16px}
.cart-checkout label,.record-form label,.product-cart-controls label{display:grid;gap:7px;font-weight:600;font-size:14px}
.cart-checkout input,.cart-checkout select,.cart-checkout textarea,.record-form input,.record-form select,.record-form textarea,.product-cart-controls select,.cart-line select{width:100%;border:1px solid #d7d7d7;border-radius:8px;padding:11px;background:#fff;color:#222;font:inherit;min-height:44px}
.cart-checkout textarea,.record-form textarea{min-height:92px;resize:vertical}.cart-total{font-size:25px;font-weight:750;margin:20px 0}
.cart-line{display:flex;justify-content:space-between;gap:20px;padding:24px 0;border-bottom:1px solid #e9e9e9}.cart-line h3{font-size:18px;margin:0 0 8px}.cart-line p{color:#666;margin:0}
.cart-line-controls{display:flex;align-items:center;gap:16px}.cart-line-controls label{font-size:12px;color:#666}.cart-line select{display:block;width:72px;margin-top:4px}.cart-remove{border:0;background:none;text-decoration:underline;color:#555;padding:12px;cursor:pointer}
.cart-actions,.cart-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px}.cart-actions .btn{min-height:44px;padding:10px 16px;font-size:14px}.cart-toolbar{justify-content:space-between;margin:0 0 24px}.cart-notice{margin:0}.product-cart-controls{display:grid;gap:16px;margin-top:16px}.product-cart-controls .cart-actions .btn{flex:1}
.record-card{padding:22px 0;border-bottom:1px solid #e6e6e6}.record-card h3{font-size:18px;margin:10px 0}.record-id{font-size:12px;letter-spacing:.04em;color:#666;overflow-wrap:anywhere}.record-status{display:inline-block;font-size:13px;padding:5px 10px;background:#f2f5ed;color:#455331;border-radius:20px}.record-card>.cart-actions{margin-top:18px}.account-card>div>.cart-actions{margin-top:20px}
.record-dialog{position:fixed;inset:0;width:min(620px,calc(100vw - 32px));max-height:calc(100dvh - 40px);padding:32px;border:0;border-radius:16px;box-shadow:0 24px 80px #0003;overflow:auto}.record-dialog::backdrop{background:#0008}.record-dialog h2{margin:0 0 16px}.record-close{float:right;margin-bottom:16px;border:0;background:#eee;border-radius:6px;padding:10px;cursor:pointer}.record-form{clear:both}.record-form input:disabled,.record-form textarea:disabled,.record-form select:disabled{background:#f4f4f4;color:#444;opacity:1}.cart-page [hidden],.record-dialog [hidden]{display:none!important}
.cart-page button:disabled,.record-dialog button:disabled{opacity:.5;cursor:wait}
@media(max-width:760px){.cart-page,.account-page{padding-top:120px}.cart-layout{grid-template-columns:1fr}.cart-heading{align-items:flex-start}.cart-heading h1{font-size:30px}.cart-layout .account-card{padding:20px}.cart-line{flex-direction:column;gap:16px}.cart-line-controls{justify-content:space-between}.record-dialog{padding:22px}.record-card .cart-actions .btn{flex:1}.cart-total{font-size:22px}}
.cart-checkout form{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cart-checkout form>label{margin:0;max-width:none}.cart-checkout label>span{margin:0}.cart-checkout form>label:has(textarea),.cart-checkout form>p,.cart-checkout form>button{grid-column:1/-1}.cart-layout.cart-is-empty{grid-template-columns:1fr}
@media(max-width:760px){.cart-checkout form{grid-template-columns:1fr}.cart-checkout input,.cart-checkout textarea,.cart-checkout select,.record-form input,.record-form textarea,.record-form select{font-size:16px}}

/* Personal account: reuse cart controls inside the draft section. */
[data-account-cart] [hidden]{display:none!important}

/* Visible authenticated header sign-out; account-center entry keeps its existing style. */
.header-logout { flex: 0 0 auto; margin-left: 8px; padding: 6px; border: 1px solid #d9e2e8; border-radius: 4px; background: #fff; color: #243746; font: inherit; font-size: 13px; line-height: 1.25; cursor: pointer; }
.header-logout[hidden] { display: none; }
@media (max-width: 760px) { .header-logout { flex: 0 0 44px; width: 44px; margin-left: 0; padding: 4px; font-size: 12px; white-space: normal; } }

/* USER5: only the five primary navigation landing banners. */
.page-hero h1.nav-landing-title { font-size:36px; font-weight:600; line-height:1.3; }

/* USER5: account navigation and compact record workspace, scoped to this page. */
.account-page { max-width:1200px; padding-top:calc(var(--header) + 28px); padding-bottom:48px; }
.account-page > h1 { text-align:left; font-size:30px; line-height:1.3; margin:0 0 24px; }
.account-page [hidden] { display:none!important; }
.account-page #account-content { display:grid; grid-template-columns:210px minmax(0,1fr); gap:24px; align-items:start; }
.account-page .account-nav { display:flex; flex-direction:column; gap:4px; position:sticky; top:calc(var(--header) + 24px); }
.account-page .account-nav a { padding:12px 16px; border-radius:8px; color:#354454; }
.account-page .account-nav a[aria-current="page"] { background:#e9eff5; color:#163b60; font-weight:600; }
.account-page .account-workspace { min-width:0; }
.account-page .account-card { background:#f6f7f9; border:1px solid #e2e6ea; border-radius:10px; box-shadow:none; padding:24px; margin:0 0 20px; }
.account-page .account-panel > h2 { font-size:22px; margin:0 0 16px; }
.account-page .account-panel > h3 { font-size:17px; }
.account-page .cart-layout { grid-template-columns:1fr; gap:20px; margin-top:16px; }
.account-page .cart-layout .account-card { padding:0; border:0; border-radius:0; background:transparent; margin:0; }
.account-page .cart-checkout { border-top:1px solid #e2e6ea!important; padding-top:20px!important; }
.account-page .record-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 16px; padding:18px 0; border-bottom:1px solid #e2e6ea; }
.account-page .record-card p,.account-page .record-card h3 { margin:0; }
.account-page .record-id { grid-column:1; grid-row:2; }
.account-page .record-card h3 { grid-column:1; grid-row:1; font-size:17px; overflow-wrap:anywhere; }
.account-page .record-status { grid-column:2; grid-row:1; align-self:start; }
.account-page .record-date { grid-column:2; grid-row:2; font-size:13px; color:#66717d; }
.account-page .record-total { grid-column:1/-1; }
.account-page .record-card > .cart-actions { grid-column:1/-1; margin-top:4px; }
.account-page .status-pending { background:#fff0cd; color:#755010; }
.account-page .status-confirmed { background:#e4effb; color:#25557c; }
.account-page .status-shipped { background:#e9e6fb; color:#514487; }
.account-page .status-completed { background:#e4f2e8; color:#346447; }
.account-page .status-cancelled,.account-page .status-neutral { background:#e9ecef; color:#535d66; }
.account-page #change-password-form { max-width:460px; }
.account-page #change-password-form label { max-width:none; }
.account-page #change-password-form .auth-submit { width:auto; min-width:140px; min-height:44px; justify-self:start; }
.account-page .account-table { min-width:0; width:100%; }
.account-page .account-table th,.account-page .account-table td { overflow-wrap:anywhere; }

/* USER5: browse public activities before the separate application workspaces. */
.events-page > .container { max-width:1200px; }
.events-page .event-section { margin:0; padding:24px 0; border-top:1px solid var(--line); min-width:0; }
.events-page .event-section h2 { font-size:26px; margin:0 0 16px; }
.events-page .event-process { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:24px; padding-left:24px; }
.events-page .event-faq details { padding:12px 0; border-bottom:1px solid var(--line); }
.events-page .event-faq summary { cursor:pointer; font-weight:600; }
.events-page #start-event { padding:24px; border:1px solid var(--line); border-radius:10px; box-shadow:none; background:#f6f7f9; }
.events-page #event-proposal-form { max-width:960px; margin:24px auto 0; }
.events-page #event-proposal-form > h3,.events-page #event-proposal-form > p,.events-page #event-route-preview,.events-page #event-proposal-form > label:has(textarea),.events-page #event-proposal-form > label:has([type=checkbox]) { grid-column:1/-1; }
.events-page #event-proposal-form > h3 { margin:16px 0 0; padding-top:16px; border-top:1px solid var(--line); font-size:20px; }
.events-page #event-proposal-form > h3:first-child { margin-top:0; padding-top:0; border:0; }
.events-page [hidden] { display:none!important; }
.events-page pre { white-space:pre-wrap; overflow-wrap:anywhere; }
@media (min-width:761px) and (max-width:1023px) {
 .account-page #account-content { grid-template-columns:1fr; }
 .account-page .account-nav { position:static; flex-direction:row; overflow-x:auto; }
 .account-page .account-nav a { flex-shrink:0; }
}
@media (max-width:760px) {
 .page-hero h1.nav-landing-title { font-size:28px; }
 .account-page { padding-top:calc(var(--header) + 24px); padding-right:16px; padding-bottom:32px; padding-left:16px; }
 .account-page > h1 { font-size:28px; margin-bottom:20px; }
 .account-page #account-content { grid-template-columns:1fr; gap:16px; }
 .account-page .account-nav { position:static; flex-direction:row; overflow-x:auto; gap:4px; }
 .account-page .account-nav a { flex-shrink:0; padding:10px 12px; }
 .account-page .account-card { padding:16px; margin-bottom:16px; }
 .account-page .record-card { gap:6px 10px; padding:14px 0; }
 .account-page .record-date { grid-column:1/-1; grid-row:auto; }
 .account-page .record-card > .cart-actions { gap:8px; }
 .account-page input,.account-page textarea,.account-page select { font-size:16px; min-height:44px; }
 .account-page .account-table,.account-page .account-table tbody,.account-page .account-table tr,.account-page .account-table td { display:block; }
 .account-page .account-table thead { display:none; }
 .account-page .account-table td { padding:4px 0; }
 .account-page .account-table tr { padding:12px 0; border-bottom:1px solid #e2e6ea; }
 .events-page > .container { padding-left:16px; padding-right:16px; gap:32px!important; }
 .events-page .event-process { grid-template-columns:1fr; gap:12px; }
 .events-page .event-section { padding:16px 0; }
 .events-page #start-event { padding:16px; }
 .events-page #event-proposal-form { grid-template-columns:1fr; gap:16px; }
}

/* FIX2: cart-only visual polish; account cart and order behavior are unchanged. */
.cart-page .cart-layout .account-card{padding:28px;border:1px solid #dce5ee;border-radius:20px;background:#fff;box-shadow:0 8px 28px rgba(22,59,96,.045)}
.cart-page .cart-layout .cart-checkout{border-top:1px solid #dce5ee!important;padding-top:28px!important;background:#f8fafc}
.cart-page .cart-layout .account-card>h2{display:flex;align-items:center;gap:12px;margin:0 0 22px;font-size:22px;color:#163b60;line-height:1.4}
.cart-page .cart-layout .account-card>h2::before{content:"";width:36px;height:36px;flex:0 0 36px;border:1px solid #d7e6f2;border-radius:10px;background:#eaf3fa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163b60' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l1 13H4L5 8ZM8 8V6a4 4 0 0 1 8 0v2'/%3E%3C/svg%3E") no-repeat center / 21px}
.cart-page .cart-layout .cart-checkout>h2::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163b60' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h9l4 4v14H6ZM14 3v5h5M9 12h7M9 16l2 2 4-4'/%3E%3C/svg%3E")}
.cart-page .cart-total{padding:20px 22px;margin:0 0 24px;border-radius:12px;background:#163b60;color:#fff;line-height:1.5;overflow-wrap:anywhere}
.cart-page .cart-checkout form{gap:20px}
.cart-page .cart-checkout label{gap:8px;color:#354b60}
.cart-page .cart-checkout :is(input,select,textarea){border-color:#ccd9e5;border-radius:10px;box-shadow:0 1px 2px rgba(22,59,96,.025)}
.cart-page .cart-checkout :is(input,select,textarea):focus-visible{outline:2px solid #1d5e8c;outline-offset:2px}
.cart-page .cart-checkout form>p{margin:0;color:#617183;font-size:14px;line-height:1.8}
.cart-page .cart-line:first-child{padding-top:0}
.cart-page .cart-line:last-child{border-bottom:0;padding-bottom:0}
.cart-page .cart-line-controls strong{color:#163b60}
@media(max-width:760px){.cart-page .cart-layout .account-card{padding:20px}.cart-page .cart-layout .cart-checkout{padding-top:20px!important}.cart-page .cart-total{padding:18px}.cart-page .cart-layout .account-card>h2{font-size:20px}}
/* Reuse news-card image geometry, with a vertical stack at every viewport. */
#home-news .home-news-image{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:var(--design-control-radius);margin:0 0 16px}
#home-news .home-news-list>a{min-width:0;overflow-wrap:anywhere}

/* AUDIT2 R1: scoped presentation only; no navigation, titles or chat changes. */
#home-services .directory-card { border-color:#dce5ee; box-shadow:0 6px 20px rgba(22,59,96,0.03); }
#home-services .directory-card > span { flex:1; gap:8px; }
#home-services .directory-card small { color:#586b7c; margin:0; }
#home-services .directory-card em { margin-top:auto; padding-top:12px; font-weight:500; }
#home-services .directory-card:focus-visible,
#home-news .home-news-list > a:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
#home-news .home-news-list { gap:24px; }
#home-news .home-news-list > a { padding:18px; border:1px solid #dce5ee; border-radius:16px; background:#fff; box-shadow:0 6px 20px rgba(22,59,96,0.03); }
#home-news .home-news-list > a:hover { border-color:#a8c1d5; }
#home-news .home-news-list span { color:#586b7c; font-size:14px; }
.cart-page > .cart-policy,
.account-page #account-orders > .cart-policy { padding:18px 20px; margin:16px 0; border:1px solid #dce5ee; border-left:3px solid var(--accent); border-radius:12px; background:#edf4f9; color:#354b60; font-size:14px; }
.cart-page #cart-message:not(:empty),
.account-page #cart-message:not(:empty) { padding:14px 18px; margin:16px 0; border:1px solid #ddcba4; border-radius:10px; background:#fff8e9; color:#644d22; overflow-wrap:anywhere; }
.account-page #account-orders > .record-card,
.account-page #account-applications > .record-card,
.account-page #account-registrations > .record-card { padding:20px; margin:14px 0; border:1px solid #dce5ee; border-radius:14px; background:#fff; }
.account-page .record-status { max-width:100%; overflow-wrap:anywhere; }
.account-page .record-total { color:#163b60; font-weight:500; padding-top:8px; }
#partners .partners-pending { max-width:780px; padding:22px; border:1px solid #dce5ee; border-radius:14px; background:#fff; color:#586b7c; }
.site-footer .footer-public-emails { padding:14px 16px; border:1px solid #ffffff29; border-radius:12px; background:#ffffff08; overflow-wrap:anywhere; }
.site-footer .footer-public-emails a { text-decoration:underline; text-underline-offset:4px; }
.site-footer .footer-link-pending { color:#b7bec5; cursor:default; }
.site-footer a:focus-visible,
.site-footer button:focus-visible { outline:2px solid #c1dff3; outline-offset:4px; }
@media(max-width:760px) {
 #home-news .home-news-list { gap:16px; }
 #home-news .home-news-list > a { padding:16px; }
 .account-page #account-orders > .record-card,
 .account-page #account-applications > .record-card,
 .account-page #account-registrations > .record-card { padding:16px; }
 .cart-page > .cart-policy,
 .account-page #account-orders > .cart-policy { padding:14px 16px; }
}

/* AUDIT2 R2: scoped card grammar and a two-action home hero. */
#home-services .directory-card,
#home-news .home-news-list > a,
#news .news-card,
.static-page .franchise-card,
.static-page .license-apply-card,
#partners .partners-pending,
.partners-contact .partners-contact-card,
.account-page #account-orders > .record-card,
.account-page #account-applications > .record-card,
.account-page #account-registrations > .record-card {
 border:1px solid #dce5ee; border-radius:16px;
 box-shadow:0 6px 20px rgba(22,59,96,0.03);
}
#home-services .directory-card:hover,
#home-news .home-news-list > a:hover,
#news .news-card:hover,
.static-page .franchise-card:hover,
.static-page .license-apply-card:hover {
 border-color:#dce5ee; box-shadow:0 6px 20px rgba(22,59,96,0.03);
}
#home-services .directory-card > span { justify-content:flex-start; }
#home-news .home-news-list > a { display:flex; flex-direction:column; align-items:stretch; }
#news .news-card { padding:20px; background:#fff; min-width:0; }
#news .news-card:nth-child(n+4) { padding:20px; }
#news .news-card > a { height:100%; }
#news .news-card h3 { margin-left:0; margin-right:0; }
.static-page .franchise-card { display:flex; flex-direction:column; align-items:stretch; }
.static-page .franchise-card .event-card-heading { align-items:flex-start; }
.static-page .franchise-card > .feature-links { margin-top:auto; padding-top:16px; }
.hero::after { background:rgba(0,0,0,.6); }
.hero .hero-actions { display:flex; flex-wrap:wrap; gap:12px; }
.hero .hero-actions .btn { margin:0; min-width:160px; font-weight:500; }
.hero .hero-actions .btn:focus-visible { outline:2px solid #fff; outline-offset:4px; }
.price-rule { font-size:12px; font-weight:400; line-height:1.5; }
.cart-total-row { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px 14px; margin:0 0 24px; }
.cart-total-row .cart-total { margin:0; font-weight:500; }
.cart-page .cart-total-row { padding:20px 22px; border-radius:12px; background:#163b60; color:#fff; }
.cart-page .cart-total-row .cart-total { padding:0; margin:0; background:transparent; color:inherit; }
@media(max-width:760px) {
 .hero .hero-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; width:100%; }
 .hero .hero-actions .btn { width:100%; min-width:0; }
 .cart-page .cart-total-row { padding:18px; }
}
/* Align article media, title starts and full-card links without changing title typography. */
#news .news-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
#news .news-grid .news-card { grid-column:auto; grid-row:auto; }
#news .news-grid .news-card > a { display:flex; flex-direction:column; align-items:stretch; }
#news .news-grid .news-card .news-media { aspect-ratio:4/3; grid-row:auto; }
#news .news-grid .news-card .tag { margin-top:16px; }
#news .news-grid .news-card .fact-summary { grid-column:auto; }
@media(min-width:761px) and (max-width:1000px) {
 #news .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:760px) {
 #news .news-grid { grid-template-columns:minmax(0,1fr); }
}

/* Stock display only; does not participate in pricing or availability. */
.product-stock { margin:6px 0 14px; font-size:14px; line-height:1.5; color:#56636c; }
