/* Palette taken from the original 2012 theme: teal #006f68, dark header gradient,
   gold #cdb248 accent (the logo underscore), mint #daf2f1 tints, Helvetica/Arial. */
:root {
  --bg: #f2f4f3;
  --surface: #ffffff;
  --surface-2: #e4f1ef;
  --mint: #daf2f1;
  --ink: #26302f;
  --ink-soft: #566463;
  --line: #cfdcda;
  --brand: #006f68;
  --brand-strong: #0d5a55;
  --brand-ink: #ffffff;
  --header-top: #182726;
  --header-bottom: #0f5f59;
  --gold: #cdb248;
  --gold-ink: #2b2405;
  --link: #006f68;
  --link-visited: #4f5f8a;
  --focus: #e9c94a;
  --warn-bg: #fbf3d2;
  --warn-line: #cdb248;
  --warn-ink: #3a2f05;
  --danger-bg: #fbe6e3;
  --danger-line: #b8362c;
  --ok-bg: #daf2f1;
  --ok-line: #006f68;
  --alert-bg: #cdb248;
  --alert-ink: #1d1803;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(0, 60, 55, .08), 0 4px 14px rgba(0, 60, 55, .06);
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1716; --surface: #172221; --surface-2: #1c2f2d; --mint: #1c2f2d; --ink: #e4ecea; --ink-soft: #a7b8b5;
    --line: #2d403e; --brand: #3fb3a8; --brand-strong: #6fcac1; --brand-ink: #06201d; --header-top: #0a1211; --header-bottom: #0e3e3a;
    --link: #6fcac1; --link-visited: #b4a8e0; --warn-bg: #352c0c; --warn-line: #cdb248; --warn-ink: #f5e6a6;
    --danger-bg: #3a1613; --danger-line: #e0665b; --ok-bg: #12302d; --ok-line: #3fb3a8; --alert-bg: #a68f2e; --alert-ink: #120f02;
    --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1716; --surface: #172221; --surface-2: #1c2f2d; --mint: #1c2f2d; --ink: #e4ecea; --ink-soft: #a7b8b5;
  --line: #2d403e; --brand: #3fb3a8; --brand-strong: #6fcac1; --brand-ink: #06201d; --header-top: #0a1211; --header-bottom: #0e3e3a;
  --link: #6fcac1; --link-visited: #b4a8e0; --warn-bg: #352c0c; --warn-line: #cdb248; --warn-ink: #f5e6a6;
  --danger-bg: #3a1613; --danger-line: #e0665b; --ok-bg: #12302d; --ok-line: #3fb3a8; --alert-bg: #a68f2e; --alert-ink: #120f02;
  --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--font);
}
img, svg { max-width: 100%; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 48rem) { .wrap { padding: 0 24px; } }

a { color: var(--link); text-underline-offset: .15em; text-decoration-thickness: 1px; }
a:visited { color: var(--link-visited); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 8px; top: -100px; z-index: 10;
  background: var(--focus); color: #000; padding: 8px 14px; font-weight: 700; border-radius: 4px;
}
.skip-link:focus { top: 8px; }

/* Urgent bar */
.alert-bar { background: var(--alert-bg); color: var(--alert-ink); font-size: .95rem; border-bottom: 1px solid rgba(0,0,0,.12); }
.alert-bar p { margin: 0; padding: 10px 0; }
.alert-bar a, .alert-bar a:visited { color: inherit; font-weight: 700; }
.alert-bar .short { display: none; }
@media (max-width: 40rem) { .alert-bar .long { display: none; } .alert-bar .short { display: inline; } }

/* Header – dark-to-teal gradient from the original theme */
.site-header { background: linear-gradient(180deg, var(--header-top) 0%, var(--header-bottom) 100%); color: #fff; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 16px; padding-bottom: 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; margin-right: auto; padding-bottom: 14px; }
.brand:visited { color: #fff; }
.brand-mark { width: 40px; height: 40px; color: var(--gold); flex: none; --brand-ink: var(--header-top); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.55rem; letter-spacing: -.02em; font-weight: 300; white-space: nowrap; display: inline-flex; align-items: baseline; }
.brand-name b { font-weight: 800; margin: 0 .1em 0 .18em; }
.brand-name i { display: inline-block; width: .9em; height: 3px; background: var(--gold); margin: 0 .18em 0 0; align-self: flex-end; transform: translateY(-3px); }
.brand-tag { font-size: .8rem; color: #b9d9d5; }

.site-nav { flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  display: block; padding: 11px 14px; text-decoration: none; color: #fff; font-weight: 700; font-size: .98rem;
  border-bottom: 4px solid transparent;
}
.site-nav a:visited { color: #fff; }
.site-nav a:hover { background: rgba(255,255,255,.08); border-bottom-color: rgba(255,255,255,.4); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.site-nav a.nav-cta, .site-nav a.nav-cta:visited { background: var(--gold); color: var(--gold-ink); border-radius: 4px 4px 0 0; margin-left: auto; border-bottom-color: var(--gold); }
.site-nav a.nav-cta:hover { background: #dcc35d; }

.menu-toggle, .header-cta { display: none; }
@media (max-width: 60rem) {
  .header-cta, .header-cta:visited { display: inline-block; background: var(--gold); color: var(--gold-ink); font-weight: 800; text-decoration: none;
    padding: 8px 12px; border-radius: 6px; margin-bottom: 14px; white-space: nowrap; }
}
@media (max-width: 60rem) {
  .js .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; margin-bottom: 14px;
    padding: 8px 14px; border: 1px solid rgba(255,255,255,.45); border-radius: 6px; background: transparent; color: #fff; cursor: pointer; flex: none;
  }
  .js .menu-toggle::before { content: ""; width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .js .menu-toggle[aria-expanded="true"]::before { content: "\2715"; width: 16px; height: auto; background: none; box-shadow: none; line-height: 1; text-align: center; }
  .brand { flex: 1 1 0; min-width: 0; overflow: hidden; }
  .brand-name { font-size: 1.3rem; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: 12px; }
  .site-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--gold); }
  .site-nav a.nav-cta { text-align: center; margin: 10px 0 0; border-radius: 6px; padding: 12px; }
}

/* Breadcrumbs */
.breadcrumbs { font-size: .92rem; margin: 18px 0 0; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.breadcrumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--ink-soft); }
.breadcrumbs [aria-current] { color: var(--ink-soft); }

/* Article */
main { padding-bottom: 48px; }
.content { max-width: 46rem; padding-top: 12px; }
.content-home { max-width: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4vw + .8rem, 2.75rem); margin: 18px 0 14px; }
h2 { font-size: clamp(1.35rem, 1.5vw + .9rem, 1.7rem); margin: 2.2em 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.6em 0 .4em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 42rem; }
.reviewed { margin-top: 3em; padding-top: 1em; border-top: 3px solid var(--gold); font-size: .9rem; color: var(--ink-soft); }
strong { font-weight: 700; }
abbr { text-decoration: none; }

/* Callouts */
.callout { border-left: 5px solid var(--brand); background: var(--surface-2); padding: 16px 18px; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5em 0; }
.callout > :last-child { margin-bottom: 0; }
.callout > :first-child { margin-top: 0; }
.callout.warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.callout.warn a { color: inherit; }
.callout.danger { border-color: var(--danger-line); background: var(--danger-bg); }
.callout.ok { border-color: var(--ok-line); background: var(--ok-bg); }
.callout-title { font-weight: 800; font-size: 1.08rem; margin-bottom: .35em; }

/* Numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps > li { counter-increment: step; position: relative; padding: 4px 0 18px 56px; margin: 0; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 0 0 3px var(--gold);
}
.steps > li:not(:last-child)::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 4px; width: 2px; background: var(--line); }
.steps h3 { margin: 6px 0 6px; }

/* Checklists */
.checks, .crosses { list-style: none; padding: 0; }
.checks li, .crosses li { position: relative; padding-left: 32px; }
.checks li::before, .crosses li::before {
  position: absolute; left: 0; top: .1em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 900; color: #fff;
}
.checks li::before { content: "✓"; background: var(--ok-line); }
.crosses li::before { content: "✕"; background: var(--danger-line); }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.cards li { margin: 0; }
.card-link {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
}
.card-link:visited { color: var(--ink); }
.card-link:hover { border-color: var(--brand); box-shadow: inset 0 -3px 0 var(--gold); }
.card-link:hover .card-title { text-decoration: underline; }
.card-link[data-icon]::before { content: ""; width: 36px; height: 36px; border-radius: 8px; background: var(--surface-2) var(--icon) center / 22px no-repeat; margin-bottom: 4px; }
.card-link[data-icon="laptop"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='2'/%3E%3Cpath d='M2 20h20'/%3E%3C/svg%3E"); }
.card-link[data-icon="phone"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.card-link[data-icon="alert"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20L12 3z'/%3E%3Cpath d='M12 10v4M12 17.5v.5'/%3E%3C/svg%3E"); }
.card-link[data-icon="shield"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5.5 3.8 10 8 11 4.2-1 8-5.5 8-11V5l-8-3z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }
.card-link[data-icon="book"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h6a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H4z'/%3E%3Cpath d='M20 4h-6a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h7z'/%3E%3C/svg%3E"); }
.card-link[data-icon="help"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.7.3-1 .8-1 1.5M12 17h.01'/%3E%3C/svg%3E"); }
.card-link[data-icon="question"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006f68' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v11H9l-5 4z'/%3E%3Cpath d='M9 9h6M9 12h4'/%3E%3C/svg%3E"); }
.card-title { font-weight: 700; font-size: 1.1rem; color: var(--link); line-height: 1.3; }
.card-text { color: var(--ink-soft); font-size: .97rem; }
.related { margin-top: 32px; max-width: 72rem; }
.related h2 { margin-top: 0; }

/* Report-to table */
.contacts { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); margin: 1.2em 0 1.6em; padding: 0; list-style: none; }
.contacts li { margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.contacts .what { display: block; font-size: .92rem; color: var(--ink-soft); }
.contacts .how { display: block; font-size: 1.35rem; font-weight: 800; margin: 2px 0; overflow-wrap: anywhere; }
.contacts .how a { text-decoration: none; }
.contacts .note { display: block; font-size: .92rem; }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin: 0 0 10px; }
details.faq summary { cursor: pointer; padding: 14px 18px 14px 48px; font-weight: 700; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; position: absolute; left: 18px; top: 12px; font-size: 1.3rem; line-height: 1.2; color: var(--brand); font-weight: 800; }
details.faq[open] summary::before { content: "\2212"; }
details.faq[open] summary { border-bottom: 1px solid var(--line); }
details.faq > div { padding: 14px 18px 4px; }

/* Home */
.hero { position: relative; padding: 28px 20px 24px; margin-top: 16px; border-radius: 12px; border: 1px solid var(--line);
  display: grid; gap: 24px;
  background:
    linear-gradient(135deg, var(--mint) 0%, var(--bg) 70%),
    repeating-linear-gradient(0deg, transparent 0 23px, rgba(0,111,104,.07) 23px 24px),
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(0,111,104,.07) 23px 24px);
  background-blend-mode: normal, multiply, multiply; }
@media (min-width: 48rem) { .hero { padding: 36px 32px 32px; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-link[data-icon]::before { filter: brightness(1.7); } :root:not([data-theme="light"]) .hero { background: linear-gradient(135deg, #16302d, var(--bg) 70%); } }
.hero h1 span { color: var(--brand); }
@media (min-width: 60rem) { .hero { grid-template-columns: 1.4fr 1fr; align-items: center; padding-top: 40px; } }
.hero h1 { margin-top: 0; font-size: clamp(2rem, 4.5vw + .6rem, 3.1rem); }
.hero-panel { background: var(--surface); border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.hero-panel h2 { margin: 0 0 .5em; font-size: 1.3rem; }
.hero-panel ol { padding-left: 1.2em; }
.button, a.button, a.button:visited {
  display: inline-block; background: var(--brand); color: var(--brand-ink); font-weight: 750; text-decoration: none;
  padding: 12px 20px; border-radius: 8px; border: 0; margin: 4px 8px 4px 0;
}
.button:hover { background: var(--brand-strong); }
.button.secondary, a.button.secondary:visited { background: var(--gold); color: var(--gold-ink); }
.button.secondary:hover { background: #dcc35d; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; margin: 2.4em 0 .9em; }
.section-head h2 { margin: 0; }
.section-head::after { content: ""; flex: 1 1 100%; height: 3px; background: linear-gradient(90deg, var(--gold) 0 48px, var(--line) 48px); margin-top: 8px; }
.golden { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); list-style: none; padding: 0; counter-reset: rule; }
.golden li { counter-increment: rule; margin: 0; padding: 16px 18px 16px 60px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.golden li::before { content: counter(rule); position: absolute; left: 18px; top: 14px; font-size: 1.6rem; font-weight: 900; color: var(--brand); }
.golden li { border-left: 4px solid var(--gold); }
.tools { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.tool { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.tool p { margin-bottom: .5em; }
.tag { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--ink-soft); border: 1px solid var(--line); }

.small-note { font-size: .9rem; color: var(--ink-soft); margin-top: 12px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 1.2em 0; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-2); }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
/* On phones, each table row becomes a card */
@media (max-width: 40rem) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr, .table-wrap td { display: block; width: 100%; }
  .table-wrap thead { display: none; }
  .table-wrap tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 12px; padding: 6px 0; }
  .table-wrap td { border: 0; padding: 6px 14px; }
  .table-wrap td:first-child { font-size: 1.05rem; padding-top: 10px; }
  .table-wrap td:last-child { padding-bottom: 12px; }
  .table-wrap td:last-child a { display: inline-block; margin: 2px 0; }
}

/* Site map */
.content ul ul { margin-top: .35em; }

/* Footer */
.site-footer { background: var(--header-bottom); border-top: 4px solid var(--gold); padding: 32px 0 24px; font-size: .95rem; color: #d6e8e5; }
.site-footer a, .site-footer a:visited { color: #fff; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.footer-grid > div:first-child { grid-column: span 1; }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: 2fr 1.2fr 1fr; } }
.footer-brand, .footer-heading { font-weight: 800; color: #fff; margin-bottom: .5em; }
.footer-brand { font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; }
.footer-small { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-size: .85rem; }

@media print {
  .alert-bar, .site-header nav, .menu-toggle, .related, .site-footer .footer-grid > div:not(:first-child) { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Very small phones: compact header */
@media (max-width: 30rem) {
  .brand-tag { display: none; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 32px; height: 32px; }
  .header-inner { gap: 10px; }
  .header-cta, .header-cta:visited { padding: 8px 10px; font-size: .95rem; }
  .js .menu-toggle { padding: 9px 10px; font-size: 0; gap: 0; }
  .js .menu-toggle::before { font-size: 1rem; }
}
