/* ============================================================
   CHP 官网复刻 - 前台样式 (Front-end styles)
   复刻自 www.chp.ca.gov 的 CA.gov 州政府模板视觉风格
   Visual style cloned from the CA.gov state template (www.chp.ca.gov)
   颜色由 site.json 中的 colors 变量驱动，可在后台编辑器修改
   Colors are driven by CSS variables from site.json, editable in admin
   ============================================================ */

:root {
  --primary: #0b3d73;
  --primary-dark: #082d55;
  --primary-light: #1663b5;
  --highlight: #ffd100;
  --text: #222;
  --muted: #666;
  --gray-bg: #f2f2f2;
  --card-bg: #fff;
  --radius: 0;
  --font-main: 'Public Sans', 'Helvetica Neue', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------------- 顶部工具条 / Utility header ---------------- */
.utility-header {
  background: #000;
  color: #fff;
  font-size: 13px;
}
.utility-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  gap: 16px;
  flex-wrap: wrap;
}
.flex-row { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 16px; flex-wrap: wrap; }
.social-media-links {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-cagov-logo .cagov-logo-link {
  display: flex;
  align-items: center;
  gap: 7px;
}
.header-cagov-logo .cagov-logo-flag {
  display: block;
  height: 17px;
  width: auto;
}
.header-cagov-logo .cagov-logo-text {
  color: #fff;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
}
.official-tag { color: #fff; font-size: 12.5px; margin: 0; }
.official-tag .desktop-only { opacity: .75; }
.settings-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.settings-links a { color: #fff; font-size: 13px; }
.settings-links a:hover { text-decoration: underline; }
.utility-header__drawer-toggle {
  color: #fff; border: none; background: none; cursor: pointer;
  font-size: 15px; padding: 4px;
  display: inline-flex; align-items: center;
}
.utility-header__drawer-toggle:hover { text-decoration: none; opacity: .85; }
.globe-icon { display: inline-flex; }

/* 翻译抽屉 / translate drawer */
.utility-header__drawer { display: none; }
.utility-header__drawer.open { display: block; }
.google-translate-section { background: #f2f4f6; border-bottom: 1px solid #e0e4e8; }
.google-translate {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 16px 0;
}
.google-translate__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}
.google-translate__box { margin-top: 6px; min-height: 36px; }
.google-translate__box .goog-te-combo {
  padding: 6px 10px;
  border: 1px solid #b9c4d4;
  border-radius: 4px;
  font-size: 13.5px;
  background: #fff;
}
.btn-close {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 4px;
}
.btn-close:hover { color: #222; }
.translate-fallback { display: none; color: #b02a2a; font-size: 13px; margin-top: 8px; }
.translate-fallback.show { display: block; }

/* ---------------- 品牌区 / Branding ---------------- */
.section-default { background: #fff; border-bottom: 1px solid #eee; }
.section-default.bg-primary { background: var(--primary); border-bottom: none; }
.branding { padding: 18px 20px; }
.header-organization-banner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}
.header-organization-banner a { display: flex; align-items: center; }
.logo-img { max-height: 55px; aspect-ratio: 260 / 55; object-fit: contain; }
.logo-img.badge-img { max-height: 55px; aspect-ratio: auto; }
.ms-4 { margin-left: 24px; }

/* 移动端菜单按钮 / mobile menu button */
.mobile-controls { display: none; }
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 40px;
  padding: 8px;
  background: none;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 5px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------------- 主导航 / Main navigation ---------------- */
.navigation-search {
  background: var(--primary);
}
.top-level-nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
}
.top-level-nav .nav-item { position: relative; }
.first-level-link {
  display: inline-block;
  color: #fff;
  padding: 16px 18px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .2px;
}
.first-level-link:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

/* 搜索区 / Search */
.search-container.featured-search {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,.12);
}
.search-container .container { padding: 8px 20px; }
.search-textfield {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 14px;
  border-radius: 3px;
}
.search-textfield::placeholder { color: rgba(255,255,255,.65); }
.gsc-search-button {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; color: #fff; cursor: pointer; font-size: 15px;
}
.search-container { position: relative; }

/* ---------------- Hero 横幅 / Hero banner ---------------- */
.hero-banner {
  background-color: var(--primary);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: #fff;
}
.hero-banner .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 30px;
  padding-top: 48px;
  padding-bottom: 48px;
}
.hero-banner .hero-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 0;
}
.hero-banner .hero-graphic {
  background-position: center right;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 520px;
}
.hero-banner h1 {
  font-size: clamp(28px, 3.8vw, 50px);
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 22px;
}
.hero-banner p.hero-sub { color: rgba(255,255,255,.85); font-size: 17px; max-width: 560px; margin-bottom: 22px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* 按钮 / Buttons */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .4px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}
.btn-highlight { background: var(--highlight); color: #111; border-color: var(--highlight); }
.btn-highlight:hover { background: #e6bc00; text-decoration: none; color: #111; }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.15); text-decoration: none; color: #fff; }

/* ---------------- 区块背景工具类 / Section backgrounds ---------------- */
.bg-primary { background: var(--primary); color: #fff; }
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary p { color: #fff; }
.bg-highlight { background: var(--highlight); }
.bg-highlight h1, .bg-highlight h2, .bg-highlight h3 { color: #111; }
.bg-highlight .card p { color: #444; }
.bg-gray { background: var(--gray-bg); }
.bg-white { background: #fff; }
.py-5 { padding-top: 56px; padding-bottom: 56px; }
.py-3 { padding-top: 28px; padding-bottom: 28px; }

/* ---------------- 区块通用排版 / Section typography ---------------- */
.section-title { margin-bottom: 26px; }
.section-title h2 { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.section-title.center { text-align: center; }

/* ---------------- 卡片组 / Card deck ---------------- */
.cards-grid {
  display: grid;
  gap: 24px;
}
.cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.card .card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 4px solid var(--primary);
}
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; color: var(--primary); }
.card-text { color: var(--muted); font-size: 15px; flex: 1; margin-bottom: 14px; }
.card-link { color: var(--primary); font-weight: 700; font-size: 14.5px; }

/* Programs 风格卡片（官网 carddeckwithicon）/ program cards (chp.ca.gov style) */
.cards-programs { gap: 32px; }
.card-program {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
  padding: 28px 16px 24px;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s;
}
.card-program:hover { background: #eef0f3; text-decoration: none; }
.card-program-icon { width: auto; height: 64px; max-width: 80px; object-fit: contain; margin: 0 0 16px; display: block; }
.card-program-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}
.card-program:hover .card-program-title { color: var(--primary-dark); }

/* ---------------- 图标卡片组 / Icon cards (notify-chp 样式) ---------------- */
.icon-cards-wrap { padding: 56px 0; }
.icon-cards-wrap.bg-primary { background: var(--primary); }
.icon-cards-wrap.bg-primary .icon-cards-title { color: var(--highlight); }
.icon-cards-title {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 28px;
  color: var(--primary);
}
.icon-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.icon-card {
  display: block;
  background: #f5f6f8;
  padding: 28px 22px 24px;
  text-align: center;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.icon-card:hover { background: var(--highlight); transform: translateY(-3px); }
.icon-card-img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
  display: block;
}
.icon-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--primary);
}
.bg-primary .icon-card h3 { color: var(--primary); }
.icon-card:hover h3 { color: var(--primary); }

/* ---------------- 双栏 / Two columns ---------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.two-col.wide-left { grid-template-columns: 1.4fr 1fr; }
.two-col .block:not(:last-child) { margin-bottom: 28px; }

/* 侧栏布局（办公室详情页）/ sidebar layout (office detail pages) */
.two-col-sidebar .two-col { grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.two-col-sidebar .two-col-right { min-width: 0; }

/* 官网侧边导航 / chp.ca.gov side navigation */
.side-navigation { border-top: 1px solid #f3f3f4; }.side-navigation ul { list-style: none; margin: 0; padding: 0; }
.side-navigation ul li a {
  position: relative;
  display: block;
  text-decoration: none;
  color: #5e5e6a;
  padding: .7rem 1rem;
  border-bottom: 1px solid #f3f3f4;
  transition: background .15s, color .15s;
}
.side-navigation ul li a:hover { background: #fafafa; color: #3b3a48; }
.side-navigation ul li a.landing { font-weight: 700; }
.side-navigation ul li a.active {
  background: #f3f3f4;
  color: #4a4958;
  font-weight: 700;
}
.side-navigation ul li a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--highlight);
}
.side-navigation ul li ul li a { padding-left: 2.5rem; font-weight: 400; }

/* 官网浮动图片间距（chp-custom.css 同款）/ floating image spacing (matches chp.ca.gov) */
.two-col-right img[style*="right"], .richtext-block img[style*="right"] { margin-left: 40px; }
.two-col-right img[style*="left"], .richtext-block img[style*="left"] { margin-right: 40px; }

/* ---------------- 寻找办公室 / Find an Office (chp.ca.gov 样式) ---------------- */
.office-intro { text-align: center; padding: 56px 0 10px; }
.office-intro h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 18px;
}
.office-intro p {
  max-width: 860px;
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}
.office-section { padding: 36px 0 64px; }
.office-links h2 { font-size: 26px; font-weight: 700; margin-bottom: 18px; color: var(--primary); }
.office-links .link-grid {
  display: block;
  color: var(--primary);
  font-size: 17px;
  font-weight: 700;
  padding: 15px 4px;
  border-bottom: 1px solid #e2e6ec;
  border-top: none;
  border-left: none;
  border-right: none;
  transition: color .2s, padding-left .2s;
}
.office-links .link-grid:hover {
  color: var(--primary);
  padding-left: 12px;
  text-decoration: underline;
  background: transparent;
}
.office-map .ib-img {
  border: 1px solid #e2e6ec;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(11,36,71,.1);
  border-bottom: 4px solid var(--primary);
}
.office-map .ib-text { font-size: 14.5px; color: var(--muted); margin-top: 14px; }

/* 列表区块 (新闻/活动) / List blocks (news/events) */
.list-block { text-align: left; }
.list-block h2 { font-size: 26px; font-weight: 700; margin-bottom: 18px; color: var(--primary); }
.list-item { margin-bottom: 18px; }
.list-item h3 { font-size: 16px; line-height: 1.45; margin-bottom: 4px; }
.list-item h3 a, .list-item h3 .list-no-nav { color: var(--primary); font-weight: 700; transition: color .2s; cursor: pointer; }
.list-item h3 a:hover, .list-item h3 .list-no-nav:hover { color: var(--highlight); text-decoration: underline; }
.list-item p { font-size: 14.5px; color: var(--muted); margin-bottom: 4px; }
.list-item .list-date { font-size: 13.5px; color: var(--muted); }
.list-divider { border: none; border-top: 1px solid #ddd; margin: 18px 0; }
.list-view-all { color: var(--primary); font-weight: 700; font-size: 14.5px; }

/* ---------------- 链接网格 / Link grid ---------------- */
.link-grid-wrap { padding: 56px 0; }
.link-grid-wrap h2 { margin-bottom: 26px; font-size: 26px; }
.link-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.link-grid-item {
  display: block;
  border: 1px solid #d4d4d7;
  border-radius: 5px;
  padding: 14px 36px 14px 16px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--primary);
  position: relative;
  min-height: 52px;
  display: flex;
  align-items: center;
  transition: background .2s, border-color .2s;
}
.link-grid-item::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 0;
  height: 0;
  border-left: 6px solid var(--primary);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
}
.link-grid-item:hover { background: #f3f3f4; border-color: var(--primary); text-decoration: none; }
.bg-primary .link-grid-item { color: #fff; border-color: rgba(255,255,255,.4); }
.bg-primary .link-grid-item::after { border-left-color: #fff; }
.bg-primary .link-grid-item:hover { background: rgba(255,255,255,.12); }
.bg-gray .link-grid-item { background: #fff; }

/* ---------------- 图文框 / Image box ---------------- */
.image-box .ib-img { width: 100%; border-bottom: 4px solid var(--primary); }
.image-box .ib-body { padding: 18px 0; }
.image-box .ib-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.image-box .ib-text { color: var(--muted); font-size: 15px; }
.image-box .ib-link { color: var(--primary); font-weight: 700; }

/* ---------------- 视频嵌入 / Video embed ---------------- */
.video-frame-wrap {
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-frame {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}
.video-frame.video-local { object-fit: contain; }
.video-frame-wrap.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  background: var(--primary-dark);
  border-bottom: 4px solid var(--primary);
}
.video-placeholder p { color: rgba(255,255,255,.8); font-size: 14px; }
.video-body { padding: 18px 0; }
.video-title { font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.video-text { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.video-link { color: var(--primary); font-weight: 700; }

/* ---------------- 领导人简介 / Executive profile ---------------- */
.executive-profile {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 16px;
  margin-bottom: 14px;
  align-items: flex-start;
}
.executive-profile img {
  width: 96px; height: 96px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.executive-profile-body p { font-size: 13.5px; color: var(--muted); margin-bottom: 2px; }
.executive-profile-body .executive-name { font-size: 17px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.executive-profile-body a { font-size: 13.5px; font-weight: 700; }

/* ---------------- 富文本 / Rich text ---------------- */
.richtext-block h2 { color: var(--primary); font-size: 26px; margin: 24px 0 10px; }
.richtext-block h2:first-child { margin-top: 0; }
.richtext-block p { margin-bottom: 14px; color: var(--text); }
.richtext-block ul { list-style: disc; padding-left: 24px; margin-bottom: 14px; }
.richtext-block a { text-decoration: underline; }

/* ---------------- Policy 链接条 / Policy link bars ---------------- */
/* 面包屑 / Breadcrumb */
.breadcrumb-bar { padding: 24px 0 8px; margin-bottom: 8px; }
.breadcrumb-bar ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.breadcrumb-bar li { display: flex; align-items: center; }
.breadcrumb-bar li::after { content: "\203A"; margin-left: 6px; color: #999; font-size: 18px; line-height: 1; }
.breadcrumb-bar li:last-child::after { content: none; }
.breadcrumb-bar a { color: var(--primary); text-decoration: none; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .active { color: var(--text); font-weight: 600; }

/* 居中标题 / Centered page title */
.policy-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 28px;
}

/* 居中内容页（commend, contact, etc）*/
.center-content {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
  font-size: 16px;
  color: var(--text);
}
.center-content h2 {
  color: var(--primary);
  font-size: 22px;
  margin: 28px 0 12px;
}
.center-content h3 { color: var(--primary); margin: 20px 0 8px; font-size: 18px; }
.center-content p { margin-bottom: 16px; }
.center-content a { color: var(--primary); text-decoration: underline; }
.center-content ul { padding-left: 22px; margin-bottom: 16px; }
.center-content ul li { margin-bottom: 6px; }
.richtext-block a.link-grid-bar { text-decoration: none; }
.link-grid-bar {
  display: block;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--primary);
  border: 1px solid #0b3058;
  border-bottom: 3px solid #071e38;
  padding: 16px 24px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}
.link-grid-bar:hover {
  background: #0f3566;
  border-color: #0a2648;
  border-bottom-color: #051830;
  text-decoration: none;
  color: #fff;
}

/* ---------------- FAQ 手风琴 / FAQ Accordion ---------------- */
.faq-accordion { margin: 20px 0; }
.faq-section { border-bottom: 1px solid #dee2e6; }
.faq-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 18px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary);
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-main);
  text-align: left;
  line-height: 1.3;
}
.faq-toggle:hover { color: #0a2f5a; }
.faq-toggle .icon {
  font-size: 28px;
  font-weight: 300;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s;
  width: 28px;
  text-align: center;
}
.faq-toggle[aria-expanded="true"] .icon { transform: rotate(45deg); }
.faq-body { display: none; padding-bottom: 20px; }
.faq-body.show { display: block; }
.faq-body h3 {
  font-size: 17px;
  color: #333;
  margin: 16px 0 6px;
}
.faq-body h3:first-child { margin-top: 0; }
.faq-body p {
  margin-bottom: 14px;
  line-height: 1.7;
  color: var(--text);
}
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--primary); text-decoration: underline; }

/* ---------------- 页脚 / Footer ---------------- */
.site-footer {
  background: var(--gray-bg);
  padding: 40px 0 28px;
  border-top: 4px solid var(--primary);
}
.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.footer-col h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 2px solid var(--highlight);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--primary);
  font-size: 15px;
  margin-bottom: 10px;
}
.footer-col a:hover { text-decoration: underline; }

.global-footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,.85);
}
.global-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 22px;
  padding-bottom: 22px;
}
.cagov-logo {
  display: inline-flex; align-items: center;
  width: 130px;
}
.cagov-logo img { display: block; width: 100%; height: auto; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: #fff; font-size: 14px; }
.socialsharer-container { display: flex; gap: 14px; }
.socialsharer-container a {
  color: #fff; font-size: 20px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12);
  border-radius: 50%;
}
.copyright {
  background: #000;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  padding: 12px 20px;
  text-align: right;
}

/* 简单的社交图标 (纯文本) */
.social-icon { font-weight: 700; font-size: 12px !important; }

/* ---------------- 通用页面 / Generic page ---------------- */
.page-hero { background: var(--primary); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: 40px; font-weight: 600; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 640px; }
.page-body { padding: 48px 0; }

/* 建设中页面 / Under construction */
.construction {
  text-align: center;
  padding: 100px 20px;
  color: var(--muted);
}
.construction h1 { color: var(--primary); font-size: 34px; margin-bottom: 14px; }

/* ---------------- 响应式 / Responsive ---------------- */
@media (max-width: 1199.98px) {
  /* 与官网一致：xl 以下隐藏 hero 配图 / hide hero graphic below xl, matching chp.ca.gov */
  .hero-banner .container { grid-template-columns: 1fr; }
  .hero-banner .hero-graphic { min-height: 0; display: none; }
}
@media (max-width: 992px) {
  .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .link-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-cards { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 30px; }
  .cards-grid.cols-2, .cards-grid.cols-3, .cards-grid.cols-4 { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .icon-cards { grid-template-columns: 1fr; }
  .two-col-sidebar .two-col { grid-template-columns: 1fr; }
  .utility-header .container { justify-content: center; }
  .settings-links { justify-content: center; }
  .top-level-nav { padding: 0; }
  .navigation-search { display: none; }
  .navigation-search.open { display: block; }
  .first-level-link { display: block; width: 100%; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .mobile-controls {
    display: flex;
    justify-content: flex-end;
    background: var(--primary);
    padding: 8px 20px;
  }
  .global-footer .container { flex-direction: column; align-items: flex-start; }
  .copyright { text-align: center; }
  .cards-programs { gap: 16px; }

/* ---------------- Traffic 页 / Traffic page ---------------- */
.traffic-tool-link { text-align: center; margin: 20px 0 8px; }
.traffic-tool-link a { display: inline-block; padding: 14px 32px; background: var(--primary); color: #fff; border-radius: 4px; text-decoration: none; transition: background .2s; }
.traffic-tool-link a:hover { background: var(--primary-dark); text-decoration: none; color: #fff; }
.traffic-tool-link small { color: rgba(255,255,255,.7); font-size: 12.5px; }
.traffic-content { padding: 20px 0 48px; }
.traffic-content h2 { color: var(--primary); }
.traffic-content ul li { margin-bottom: 10px; }

.traffic-map-iframe { width: 100%; max-width: 100%; height: 500px; border: 1px solid #e0e0e0; margin: 24px 0; }
}
