:root {
  --navy: #17324d;
  --navy-2: #0f253a;
  --coral: #e85d48;
  --coral-soft: #fff0ec;
  --teal: #277f78;
  --gold: #e4a33b;
  --ink: #1d2b38;
  --muted: #687682;
  --line: #dce3e8;
  --paper: #ffffff;
  --canvas: #f4f6f8;
  --cream: #fbf8f1;
  --shadow: 0 20px 55px rgba(23, 50, 77, 0.1);
  --container: 1200px;
  --radius-lg: 28px;
  --radius-md: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  min-width: 280px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 93, 72, .055), transparent 420px),
    var(--canvas);
  font: 17px/1.7 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, iframe, object, embed { max-width: 100%; height: auto; }
img { display: block; }
a { color: #1b6577; text-decoration-thickness: 1px; text-underline-offset: .18em; overflow-wrap: anywhere; }
a:hover { color: var(--coral); text-decoration-thickness: 2px; }
p, ul, ol, table, figure, blockquote { margin-top: 0; margin-bottom: 1.1em; }
h1, h2, h3, h4 {
  max-width: 100%;
  margin: 1.45em 0 .58em;
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.16;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}
h1 { margin-top: 0; font-size: clamp(2rem, 4.3vw, 4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.5rem); }
blockquote { margin-left: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--coral); background: var(--coral-soft); border-radius: 0 12px 12px 0; }
pre, code { white-space: pre-wrap; overflow-wrap: anywhere; }
table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
th, td { min-width: 130px; padding: .7rem .8rem; border: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: #edf2f5; }

.skip-link { position: fixed; z-index: 999; top: .5rem; left: .5rem; transform: translateY(-150%); padding: .7rem 1rem; border-radius: 10px; color: #fff; background: var(--navy); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: relative; z-index: 20; border-top: 5px solid var(--coral); border-bottom: 1px solid rgba(23,50,77,.12); background: rgba(255,255,255,.95); backdrop-filter: blur(16px); }
.header-inner, .page-shell, .home-shell, .footer-inner { width: min(calc(100% - 32px), var(--container)); margin: 0 auto; }
.header-inner { display: flex; min-height: 86px; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .72rem; color: var(--navy); text-decoration: none; }
.brand-mark { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 13px 13px 4px 13px; color: #fff; background: var(--coral); box-shadow: 0 9px 20px rgba(232,93,72,.24); font-weight: 850; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.brand-copy small { margin-top: .25rem; color: var(--muted); font-size: .75rem; font-weight: 600; }
.desktop-nav { display: flex; flex: 1 1 auto; justify-content: flex-end; align-items: center; gap: .08rem; }
.desktop-nav a { padding: .62rem .72rem; border-radius: 10px; color: #31485b; font-size: .91rem; font-weight: 720; text-decoration: none; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--navy); background: #edf2f5; }
.desktop-nav .accent-link { color: #fff; background: var(--coral); }
.desktop-nav .accent-link:hover { color: #fff; background: #cf4937; }
.mobile-nav { display: none; margin-left: auto; }
.mobile-nav summary { padding: .62rem .82rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); cursor: pointer; font-weight: 750; list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav-links { position: absolute; top: calc(100% - .2rem); right: 12px; left: 12px; display: grid; gap: .28rem; padding: .8rem; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: var(--shadow); }
.mobile-nav-links a { padding: .68rem .75rem; border-radius: 9px; color: var(--ink); font-weight: 680; text-decoration: none; }
.mobile-nav-links a:hover { background: #edf2f5; }

.home-shell { padding-top: clamp(30px, 5vw, 68px); padding-bottom: clamp(45px, 7vw, 88px); }
.home-hero { display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 65px); }
.home-hero h1 { max-width: 13ch; }
.home-hero .lead { max-width: 42rem; }
.hero-media { position: relative; overflow: hidden; border: 1px solid rgba(23,50,77,.12); border-radius: 30px; box-shadow: var(--shadow); background: var(--paper); }
.hero-media img { width: 100%; aspect-ratio: 1.78; object-fit: cover; }
.hero-badge { position: absolute; right: 18px; bottom: 18px; padding: .6rem .8rem; border-radius: 10px; color: #fff; background: rgba(15,37,58,.9); font-size: .82rem; font-weight: 750; }
.eyebrow, .article-meta { color: var(--coral); font-size: .84rem; font-weight: 820; letter-spacing: .09em; text-transform: uppercase; }
.lead { color: #405363; font-size: clamp(1.08rem, 1.7vw, 1.27rem); }
.button-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.35rem 0 0; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: .72rem 1.15rem; border: 1px solid var(--coral); border-radius: 12px; color: #fff; background: var(--coral); font-weight: 780; text-decoration: none; }
.button:hover { color: #fff; background: #cf4937; }
.button.secondary { color: var(--navy); border-color: var(--navy); background: transparent; }
.button.secondary:hover { color: #fff; background: var(--navy); }

.section-block { margin-top: clamp(48px, 7vw, 85px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.section-head p { max-width: 38rem; margin: 0; color: var(--muted); }
.category-grid, .article-grid, .link-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 17px; }
.category-card, .article-card, .link-card { display: block; min-width: 0; border: 1px solid rgba(23,50,77,.13); border-radius: var(--radius-md); color: var(--ink); background: var(--paper); text-decoration: none; box-shadow: 0 10px 28px rgba(23,50,77,.055); transition: transform .18s ease, box-shadow .18s ease; }
.category-card:hover, .article-card:hover, .link-card:hover { transform: translateY(-3px); color: var(--ink); box-shadow: 0 17px 35px rgba(23,50,77,.11); }
.category-card { padding: 1.25rem; border-top: 5px solid var(--card-accent, var(--coral)); }
.category-card strong, .link-card strong { display: block; margin-bottom: .35rem; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.16rem; }
.category-card span, .link-card span { display: block; color: var(--muted); font-size: .91rem; }
.article-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; }
.article-card img { width: 100%; aspect-ratio: 1.9; object-fit: cover; background: #edf2f5; }
.article-card-copy { display: block; min-width: 0; flex: 1 1 auto; padding: 1.05rem 1.1rem 1.2rem; }
.article-card small { display: block; margin-bottom: .45rem; color: var(--coral); font-weight: 780; }
.article-card strong { display: block; max-width: 100%; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; line-height: 1.27; overflow-wrap: anywhere; hyphens: auto; }
.article-card p { margin: .55rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }

.page-shell { display: grid; grid-template-columns: minmax(0,1fr) 285px; gap: 30px; padding-top: clamp(28px,5vw,60px); padding-bottom: clamp(45px,7vw,85px); }
.page-shell-wide { grid-template-columns: minmax(0,1fr); }
.content-card, .sidebar-card, .legal-nav { border: 1px solid rgba(23,50,77,.13); background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.content-card { min-width: 0; padding: clamp(24px,4.5vw,58px); border-radius: var(--radius-lg); }
.breadcrumbs { margin-bottom: 1.1rem; color: var(--muted); font-size: .9rem; }
.breadcrumbs a { color: var(--muted); }
.article-meta { display: flex; flex-wrap: wrap; gap: .55rem 1rem; margin: 0 0 1rem; }
.article-body { min-width: 0; overflow-wrap: anywhere; }
.article-body > :first-child { margin-top: 0; }
.article-body img { width: auto; max-width: 100%; max-height: 580px; margin: 1.45rem auto; border-radius: 14px; object-fit: contain; }
.article-body table { display: block; width: 100%; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article-body ul, .article-body ol { padding-left: 1.35rem; }
.article-body li + li { margin-top: .42rem; }
.article-cover { margin: 0 0 1.6rem; }
.article-cover img { width: 100%; max-height: none; margin: 0; border-radius: 18px; object-fit: cover; }
.article-cover figcaption { margin-top: .55rem; color: var(--muted); font-size: .78rem; text-align: right; }
.archive-note, .note, .case { margin: 1.45rem 0; padding: 1.05rem 1.2rem; border-radius: 14px; }
.archive-note { border: 1px solid #f0d7a4; background: #fff8e7; }
.note { border: 1px solid #cfe3df; background: #edf8f6; }
.case { border: 1px solid #d9d0ea; background: #f6f2fb; }
.case h2 { margin-top: 0; }
.check-list { padding-left: 0 !important; list-style: none; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 900; }
.link-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.link-card { padding: 1.05rem 1.1rem; }
form { display: grid; gap: .85rem; }
label { display: grid; gap: .3rem; color: var(--navy); font-weight: 680; }
input, select, textarea { width: 100%; min-height: 44px; padding: .65rem .75rem; border: 1px solid #bdc8d0; border-radius: 9px; color: var(--ink); background: #fff; font: inherit; }
textarea { min-height: 130px; resize: vertical; }
input[type="radio"], input[type="checkbox"] { width: auto; min-height: 0; }
input[type="submit"], button { width: auto; min-height: 45px; padding: .7rem 1.1rem; border: 0; border-radius: 10px; color: #fff; background: var(--coral); font-weight: 780; cursor: pointer; }

.sidebar { align-self: start; position: sticky; top: 20px; }
.sidebar-card { padding: 1.2rem; border-radius: var(--radius-md); box-shadow: 0 12px 30px rgba(23,50,77,.07); }
.sidebar-card + .sidebar-card { margin-top: 15px; }
.sidebar-card h2 { margin: 0 0 .8rem; font-size: 1.17rem; }
.sidebar-card ul { margin: 0; padding: 0; list-style: none; }
.sidebar-card li + li { border-top: 1px solid var(--line); }
.sidebar-card a { display: block; padding: .58rem 0; color: #385063; font-size: .91rem; font-weight: 680; text-decoration: none; }
.sidebar-card a:hover { color: var(--coral); }
.legal-nav { margin: 1rem 0 1.6rem; padding: 1rem 1.15rem; border-radius: 13px; background: #f2f5f7; box-shadow: none; }
.legal-nav ul { margin-bottom: 0; }

.site-footer { color: #dbe5eb; background: var(--navy-2); }
.footer-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px 60px; padding-top: 45px; padding-bottom: 34px; }
.footer-title { margin: 0 0 .55rem; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.footer-text { max-width: 36rem; margin: 0; color: #c3d1da; font-size: .93rem; }
.footer-contact { margin-top: .85rem; color: #c3d1da; }
.footer-contact a, .footer-links a { color: #f3f6f8; }
.footer-links { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .5rem 1rem; }
.footer-bottom { grid-column: 1/-1; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); color: #9fb2bf; font-size: .84rem; }

@media (max-width:1080px) {
  .desktop-nav a:nth-child(4), .desktop-nav a:nth-child(5) { display: none; }
  .page-shell { grid-template-columns: minmax(0,1fr) 245px; gap: 22px; }
  .category-grid, .article-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:820px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .header-inner { min-height: 72px; }
  .page-shell { display: block; padding-top: 25px; }
  .sidebar { position: static; margin-top: 20px; }
  .sidebar-card ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 14px; }
  .home-hero { grid-template-columns: 1fr; }
  .home-hero h1 { max-width: none; }
  .hero-media { max-width: 720px; }
}
@media (max-width:560px) {
  body { font-size: 16px; line-height: 1.65; }
  .header-inner, .page-shell, .home-shell, .footer-inner { width: min(calc(100% - 24px),var(--container)); }
  .brand-copy strong { font-size: 1.2rem; }
  .brand-copy small { display: none; }
  .brand-mark { width: 39px; height: 39px; }
  .content-card { padding: 21px 17px; border-radius: 20px; }
  h1 { font-size: clamp(1.75rem,9.2vw,2.45rem); text-wrap: pretty; }
  .category-grid, .article-grid, .link-grid, .sidebar-card ul, .footer-links, .footer-inner { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .section-head p { margin-top: .6rem; }
  .footer-inner { gap: 24px; }
  .footer-bottom { grid-column: 1; }
  .article-body img { max-height: 340px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
