
:root{--ink:#172434;--muted:#516377;--blue:#0f5e8e;--line:#c7dfea;--soft:#eef9fc;--soft2:#e2f5fb;--deep:#153f52;--green:#6d9141;--shadow:0 18px 40px rgba(27,75,96,.08);--radius:8px}*{box-sizing:border-box}html{font-size:16px}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:linear-gradient(90deg,#effbfe 0,#fff 10%,#fff 90%,#effbfe 100%);line-height:1.75;letter-spacing:0}a{color:#0b5278;font-weight:700;text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.site-header{background:rgba(255,255,255,.96);border-bottom:1px solid #d6e9f0;position:sticky;top:0;z-index:20}.header-inner{max-width:1180px;margin:0 auto;padding:14px 20px 12px;display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:10px 18px;align-items:center}.brand{display:flex;align-items:center;gap:10px;min-width:0}.brand-image{width:42px;height:42px;border-radius:8px;display:block}.brand-title{display:block;font-weight:800;font-size:1.35rem;color:#0f4f70;line-height:1.15}.brand-subtitle{display:block;color:var(--muted);font-size:.78rem;line-height:1.35}.header-actions{justify-self:end;align-self:center}.language-button{display:inline-flex;align-items:center;justify-content:center;min-width:72px;min-height:34px;padding:6px 10px;border-radius:8px;border:2px solid #8ed0e6;background:#e8f8fc;color:#0b5278;font-weight:800;font-size:.74rem;line-height:1.05;text-align:center;box-shadow:0 1px 0 #fff inset}.nav{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center;border-top:1px solid #eef4f7;padding-top:10px}.nav a{font-size:.84rem;color:#263849;white-space:nowrap}.page{max-width:1120px;margin:0 auto;padding:30px 20px 56px}.hero{background:linear-gradient(rgba(234,247,251,.88),rgba(234,247,251,.88)),var(--castle-bg,none);background-size:cover;background-position:center;display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:28px;border-radius:8px}.hero-panel,.visual-panel,.section,.page-title,.article-body,.form-panel{background:rgba(255,255,255,.94);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.hero-panel{padding:36px}.hero h1,.page-title h1{font-size:clamp(2rem,4vw,3.3rem);line-height:1.25;margin:14px 0 18px}.tag{display:inline-block;background:#e3f6fb;color:#084b70;border-radius:999px;padding:6px 12px;font-weight:800;font-size:.82rem}.check-list{padding-left:1.2rem}.check-list li{margin:.5rem 0}.check-list li::marker{color:var(--green)}.visual-panel{display:flex;align-items:center;justify-content:center;overflow:hidden;padding:28px}.visual-panel img{width:100%;height:auto;max-height:440px;object-fit:contain;display:block}.section,.page-title,.article-body,.form-panel{margin-top:28px;padding:26px}.section-header{display:flex;align-items:end;justify-content:space-between;gap:16px;border-bottom:3px solid var(--blue);margin-bottom:20px}.section h2,.section-header h2,.article-body h2{font-size:1.75rem;margin:0 0 10px}.grid{display:grid;gap:16px}.topic-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.cols-3{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.card,.subtopic-card{display:block;border:1px solid var(--line);border-radius:8px;background:#fff;padding:20px;min-height:150px;border-left:6px solid var(--blue);color:inherit}.card:nth-child(even),.subtopic-card:nth-child(even){border-left-color:var(--green)}.card .label,.subtopic-card .label{display:block;color:#407693;font-weight:800;font-size:.8rem;margin-bottom:6px}.card h3,.subtopic-card h3{font-size:1.35rem;margin:0 0 8px;line-height:1.35}.card p,.subtopic-card p{margin:.25rem 0;color:var(--muted)}.subtopic-card{min-height:128px}.article-row-list{display:grid;gap:14px}.article-row-card{display:grid;grid-template-columns:120px minmax(0,1fr);gap:16px;align-items:center;border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff;color:inherit}.article-row-thumb{width:120px;height:72px;object-fit:cover;border-radius:8px;background:var(--soft2)}.article-row-content strong{display:block;font-size:1.12rem;color:var(--ink)}.article-row-content span{display:block;color:var(--muted);font-weight:500}.article-row-meta{display:none!important}.form-grid{display:grid;gap:16px}.field label{display:block;font-weight:800;margin-bottom:6px}.field input,.field textarea{width:100%;border:1px solid #b8d5e2;border-radius:6px;padding:13px;font:inherit;background:#fff}.field textarea{min-height:170px}.button{border:0;border-radius:7px;background:#144d70;color:#fff;font-weight:800;padding:13px 22px;font:inherit;cursor:pointer;width:max-content}.notice{display:none;border:1px solid #9ed9b2;background:#eefaf1;color:#1f6b35;border-radius:6px;padding:12px;font-weight:800}.notice.is-visible{display:block}.honeypot-field{position:absolute!important;left:-10000px!important;top:auto!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;pointer-events:none!important}.radio-group{border:1px solid #b8d5e2;border-radius:6px;padding:12px}.radio-group legend{font-weight:800}.profile-intro{display:grid;grid-template-columns:150px 1fr;gap:26px}.profile-photo{width:150px;height:150px;border-radius:50%;object-fit:cover;background:#e9f7fb}.fact-list{display:grid;gap:10px;padding:0;list-style:none}.fact-list li{background:#f4fbfd;border-left:5px solid var(--blue);border-radius:6px;padding:10px 14px;font-weight:700}.site-footer{background:#153f52;color:#fff;margin-top:40px}.footer-inner{max-width:1120px;margin:0 auto;padding:34px 20px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}.footer-brand{display:flex;align-items:center;gap:10px}.footer-brand img{width:42px;height:42px;border-radius:6px;background:#fff}.footer-title{font-size:1.35rem;font-weight:800}.footer-grid a{color:#fff;font-weight:700}.social-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.social-icon-link{width:38px;height:38px;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;color:#fff!important;text-decoration:none;font-weight:900;font-size:.92rem;border:1px solid rgba(255,255,255,.35)}.instagram{background:#c13584}.x-twitter{background:#000}.facebook{background:#315d9c}.line{background:#06c755}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.copyright{border-top:1px solid rgba(255,255,255,.2);margin-top:28px;padding-top:18px;font-size:.85rem}.sitemap-grid{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}.link-list{display:grid;gap:10px}.link-list a{border:1px solid var(--line);border-radius:7px;padding:10px 12px;background:#fff}.lang-inline{margin-top:16px}.lang-inline .language-button{min-width:96px}@media(max-width:900px){.header-inner{grid-template-columns:1fr auto;padding:12px 16px}.brand-title{font-size:1.2rem}.brand-subtitle{font-size:.74rem}.language-button{min-width:66px;min-height:30px;font-size:.68rem;padding:5px 8px}.nav{gap:8px 16px}.nav a{font-size:.82rem}.page{padding:26px 20px}.hero{grid-template-columns:1fr;padding:20px}.hero-panel{padding:28px}.visual-panel{padding:12px}.visual-panel img{max-height:none}.topic-grid,.cols-3{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr}.profile-intro{grid-template-columns:1fr}.article-row-card{grid-template-columns:92px 1fr}.article-row-thumb{width:92px;height:58px}}@media(max-width:560px){.header-inner{grid-template-columns:1fr}.header-actions{justify-self:start}.brand{align-items:flex-start}.brand-image{width:38px;height:38px}.nav{padding-top:8px}.page{padding:22px 14px}.hero h1,.page-title h1{font-size:2rem}.section,.page-title,.article-body,.form-panel{padding:20px}.article-row-card{grid-template-columns:76px 1fr;gap:12px}.article-row-thumb{width:76px;height:52px}.footer-inner{padding:28px 18px}}

.hero{--castle-bg:url('../images/castle-bg.jpeg')}

/* === Hamster Matcha production fixes 2026-07 === */
:root {
  --hm-blue: #0f5f8d;
  --hm-blue-soft: #e8f8ff;
  --hm-line: #cde6f1;
  --hm-text: #1f2b38;
}
.site-header {
  position: relative;
  z-index: 20;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid #d8e8ef;
}
.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px 14px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  grid-template-areas:
    "brand action"
    "nav nav";
  gap: 8px 18px;
  align-items: start;
}
.brand { grid-area: brand; display: flex; align-items: center; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.brand-image { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 10px; object-fit: contain; }
.brand-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; line-height: 1.25; }
.brand-name { font-weight: 800; color: #114765; font-size: 1.18rem; white-space: nowrap; }
.brand-subtitle { color: #455b68; font-size: .72rem; white-space: normal; overflow-wrap: anywhere; }
.header-actions { grid-area: action; justify-self: end; align-self: start; position: relative; z-index: 2; }
.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  max-width: 74px;
  min-height: 32px;
  padding: 5px 8px;
  border: 2px solid #73c8e8;
  background: #e7f8ff;
  color: #0b4d73;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(18,78,112,.12);
  text-decoration: none;
  font-family: inherit;
  font-weight: 800;
  font-size: .66rem;
  line-height: 1.05;
  text-align: center;
  white-space: normal;
}
.nav { grid-area: nav; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; overflow: visible; padding-top: 4px; }
.nav a { white-space: nowrap; text-decoration: none; }
@media (max-width: 720px) {
  .header-inner { padding: 10px 14px 12px; grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  .brand-name { font-size: 1.05rem; }
  .brand-subtitle { font-size: .68rem; }
  .nav { gap: 8px 16px; }
  .language-button { min-width: 58px; max-width: 66px; min-height: 30px; padding: 5px 7px; font-size: .62rem; }
}
.hero, .hero.home-hero { align-items: stretch; }
.visual-panel, .hero-visual { display: flex; align-items: center; justify-content: center; overflow: hidden; }
.visual-panel img, .hero-visual img, .site-card-image { width: 100%; height: auto; max-height: none; object-fit: contain; object-position: center; display: block; }
.home-page .visual-panel img { max-height: 420px; }
@media (max-width: 900px) { .home-page .visual-panel img { max-height: none; } }
.honeypot-field, .honeypot-input {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
.article-row-list { display: grid; gap: 12px; }
.article-row-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #cfe2ec;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  min-height: 96px;
}
.article-row-thumb { width: 112px; height: 72px; object-fit: cover; border-radius: 8px; display: block; background: #eaf7fb; }
.article-row-content { display: block; min-width: 0; }
.article-row-content h3, .article-row-title { margin: 0 0 4px; font-size: 1.02rem; }
.article-row-content p, .article-row-excerpt { margin: 0; color: #4b5d68; line-height: 1.65; }
.article-row-meta { display: none !important; }
@media (max-width: 640px) {
  .article-row-card { grid-template-columns: 84px minmax(0,1fr); gap: 10px; padding: 10px; }
  .article-row-thumb { width: 84px; height: 56px; }
}
.social-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.social-icon-link {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.35);
}
.social-icon-link.instagram { background: radial-gradient(circle at 30% 100%, #feda75 0, #fa7e1e 25%, #d62976 52%, #962fbf 72%, #4f5bd5 100%); }
.social-icon-link.x { background: #111; }
.social-icon-link.facebook { background: #1877f2; }
.social-icon-link.line { background: #06c755; font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.form-status { padding: 14px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 700; }
.form-status.success { background: #eefaf1; border: 1px solid #a7d8b4; color: #1f6732; }
.form-status.error { background: #fff2f2; border: 1px solid #e5a5a5; color: #8a2020; }


/* FINAL DEPLOY OVERRIDES 2026-07-01 */
.site-header .header-inner {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto;
  align-items: start;
  gap: 8px 18px;
}
.site-header .brand { grid-column: 1; grid-row: 1; min-width: 0; }
.site-header .brand-text small { display: block; max-width: 520px; line-height: 1.45; }
.site-header .header-actions {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  align-self: start;
  position: static;
  z-index: 4;
}
.site-header .nav {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  overflow: visible;
  white-space: normal;
  border-top: 1px solid rgba(142, 208, 238, .35);
  padding-top: 8px;
}
.site-header .nav a { white-space: nowrap; }
.language-button,
.language-inline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  max-width: 78px;
  min-height: 30px;
  padding: 4px 8px;
  border: 2px solid #8ed0ee;
  background: #e6f7ff;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(29, 105, 144, .16);
  color: #0c4f75;
  font: 800 .66rem/1.08 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.language-button:hover,
.language-inline-button:hover { background: #d7f2ff; }
.page-title-row { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.page-title-row .language-inline-button { flex: 0 0 auto; margin-top: 2px; }
.hero .visual-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero .visual-panel img,
.hero-brand-image,
.brand-card-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain !important;
  object-position: center !important;
}
.article-row-list { display: flex; flex-direction: column; gap: 12px; }
.article-row-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid #cfe2ea;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.article-row-card:hover { border-color: #8ed0ee; background: #f6fbfd; }
.article-row-thumb {
  width: 104px !important;
  height: 66px !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 8px;
  align-self: center;
}
.article-row-content { display: grid; gap: 4px; min-width: 0; }
.article-row-content strong { font-size: 1.02rem; line-height: 1.35; }
.article-row-content span:not(.article-row-meta) { color: #4b6071; line-height: 1.55; }
.article-row-meta { display: none !important; }
.honeypot-field,
.honeypot-input {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.social-links { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.social-icon-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  font-size: .78rem;
  line-height: 1;
  border: 1px solid rgba(255,255,255,.35);
}
.social-icon-link.instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0 18%, #fd5949 42%, #d6249f 62%, #285AEB 100%); }
.social-icon-link.x { background: #111; }
.social-icon-link.facebook { background: #1877f2; font-family: Arial, sans-serif; font-size: 1.05rem; }
.social-icon-link.line { background: #06c755; font-size: .6rem; letter-spacing: 0; }
.social-icon-link .social-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 980px) {
  .site-header .header-inner { grid-template-columns: minmax(210px, 1fr) auto; }
  .site-header .brand-text small { max-width: 360px; }
  .site-header .nav { gap: 8px 16px; }
}
@media (max-width: 720px) {
  .site-header .header-inner { grid-template-columns: 1fr auto; }
  .site-header .brand-text small { max-width: 300px; }
  .language-button { min-width: 54px; max-width: 68px; min-height: 28px; font-size: .6rem; padding: 4px 6px; }
  .site-header .nav { gap: 8px 14px; font-size: .86rem; }
  .hero .visual-panel img,
  .hero-brand-image,
  .brand-card-image { max-height: 280px; }
}
@media (max-width: 560px) {
  .site-header .brand-text small { max-width: 230px; }
  .article-row-card { grid-template-columns: 82px 1fr; gap: 10px; padding: 10px; }
  .article-row-thumb { width: 78px !important; height: 54px !important; }
  .page-title-row { display: block; }
  .page-title-row .language-inline-button { margin-top: 12px; }
}
/* END FINAL DEPLOY OVERRIDES 2026-07-01 */

/* Final contact spam-trap guard: keep honeypot hidden from humans. */
.honeypot-field,
.honeypot-input {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Responsive header and official-style social icons. */
.site-header .header-inner {
  grid-template-columns: minmax(0, 1fr) auto !important;
  grid-template-areas:
    "brand action"
    "nav nav" !important;
  align-items: center !important;
}
.site-header .brand { grid-area: brand !important; }
.site-header .header-actions {
  grid-area: action !important;
  justify-self: end !important;
  align-self: center !important;
  margin-left: 12px;
}
.site-header .nav {
  grid-area: nav !important;
  min-width: 0;
  justify-content: flex-start;
}
.site-header .language-button {
  min-width: 76px;
  max-width: 92px;
  min-height: 36px;
  padding: 6px 10px;
  line-height: 1.08;
  flex-shrink: 0;
}
.social-icon-link {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .45);
  background-color: transparent !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  overflow: hidden;
}
.social-icon-link > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.social-icon-link.instagram { background-image: url("../images/social-instagram.svg") !important; }
.social-icon-link.threads { background-image: url("../images/social-threads.svg") !important; }
.social-icon-link.x { background-image: url("../images/social-x.svg") !important; }
.social-icon-link.facebook { background-image: url("../images/social-facebook.svg") !important; }
.social-icon-link.line { background-image: url("../images/social-line.svg") !important; }
@media (max-width: 720px) {
  .site-header .header-inner {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px 10px !important;
  }
  .site-header .language-button {
    min-width: 70px;
    max-width: 82px;
    min-height: 34px;
    font-size: .62rem;
    padding: 5px 8px;
  }
}
@media (max-width: 420px) {
  .site-header .header-inner {
    grid-template-areas:
      "brand brand"
      "action action"
      "nav nav" !important;
  }
  .site-header .header-actions {
    justify-self: start !important;
    margin-left: 0;
  }
}
/* Sitemap */
.sitemap-overview,
.sitemap-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.sitemap-category-grid {
  align-items: start;
}

.sitemap-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  border-left: 6px solid var(--blue);
}

.sitemap-panel:nth-child(even) {
  border-left-color: var(--green);
}

.sitemap-panel h2,
.sitemap-panel h3 {
  margin: 0 0 8px;
  line-height: 1.35;
}

.sitemap-panel p {
  margin: 0 0 14px;
  color: var(--muted);
}

.sitemap-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.sitemap-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  border: 1px solid #d6e9f0;
  border-radius: 7px;
  background: #f8fdff;
  padding: 9px 12px;
  color: var(--ink);
}

.sitemap-link-list a span:first-child {
  min-width: 0;
}

.sitemap-link-list a span:last-child {
  flex: 0 0 auto;
  color: var(--blue);
}

@media(max-width:560px) {
  .sitemap-overview,
  .sitemap-category-grid {
    grid-template-columns: 1fr;
  }

  .sitemap-panel {
    padding: 16px;
  }
}

/* Compact category subtopic cards */
.subcategory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.subcategory-grid .subtopic-card {
  min-height: 112px;
  padding: 13px 14px;
  border-left-width: 5px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.subcategory-grid .subtopic-card .label {
  font-size: .72rem;
  line-height: 1.25;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}

.subcategory-grid .subtopic-card h3 {
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}

.subcategory-grid .subtopic-card p {
  font-size: .82rem;
  line-height: 1.45;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .subcategory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .subcategory-grid .subtopic-card {
    min-height: 104px;
    padding: 11px 10px;
  }

  .subcategory-grid .subtopic-card .label {
    font-size: .66rem;
  }

  .subcategory-grid .subtopic-card h3 {
    font-size: .9rem;
  }

  .subcategory-grid .subtopic-card p {
    font-size: .74rem;
  }
}

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

@media (max-width: 340px) {
  .subcategory-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer link lists need dark-surface styling. */
.site-footer .link-list a {
  display: block;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}

.site-footer .link-list a:hover {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .36);
}

.article-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-row-card[hidden] {
  display: none !important;
}

.pagination-button {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid #9bcfe1;
  border-radius: 7px;
  background: #fff;
  color: #0b5278;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.pagination-button:hover:not(:disabled) {
  background: #e8f8fc;
  border-color: #5eb6d3;
}

.pagination-button[aria-current="page"] {
  background: #144d70;
  border-color: #144d70;
  color: #fff;
}

.pagination-button:disabled {
  cursor: default;
  opacity: .42;
}

.pagination-jump {
  min-width: 62px;
}

.pagination-ellipsis,
.pagination-status {
  color: var(--muted);
  font-weight: 700;
}

.pagination-ellipsis {
  padding: 0 2px;
}

.pagination-status {
  flex-basis: 100%;
  font-size: .88rem;
}

@media (max-width: 520px) {
  .article-pagination {
    gap: 6px;
  }

  .pagination-button {
    min-width: 34px;
    min-height: 34px;
    font-size: .82rem;
  }

  .pagination-jump {
    min-width: 54px;
  }
}

/* Contact completion page */
.thanks-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 248, 252, .96), rgba(255, 255, 255, .96)),
    url("/assets/images/brand-card.jpg") center/cover no-repeat;
  box-shadow: var(--shadow);
  padding: 32px;
}

.thanks-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  background: rgba(255, 255, 255, .9);
  border: 1px solid #b8dceb;
  border-radius: 8px;
  padding: 28px;
}

.thanks-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #144d70;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 14px;
}

.thanks-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
}

.thanks-card p {
  margin: 0 0 14px;
  color: #2d4353;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.button.secondary {
  background: #e8f8fc;
  color: #0b5278;
  border: 1px solid #8ed0e6;
}

@media (max-width: 560px) {
  .thanks-hero {
    padding: 20px;
  }

  .thanks-card {
    padding: 22px;
  }
}
