:root {
  --bg: #ffffff;
  --bg-alt: #f3f6f9;
  --fg: #16202b;
  --muted: #566372;
  --brand: #0b4f7c;
  --brand-hover: #093f63;
  --brand-fg: #ffffff;
  --accent: #116b4f;  /* 4.5:1 or better as text, also on its own light tints (WCAG AA) */
  --accent-fg: #ffffff;  /* text on --accent */
  --border: #dbe2e9;  /* decorative lines */
  --input-border: #7d8996;  /* form fields: 3:1 against the page (WCAG 1.4.11) */
  --error: #b42318;
  --error-fg: #ffffff;
  --card: #ffffff;
  --radius: 10px;
  color-scheme: light;
}

/* Dark colors: when the device prefers dark (unless the visitor chose Light),
   or when the visitor chose Dark (theme.go sets data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f151c;
    --bg-alt: #151d26;
    --fg: #e6ebf0;
    --muted: #9aa8b6;
    --brand: #5fb2e8;
    --brand-hover: #84c6f0;
    --brand-fg: #08131c;
    --accent: #4cc79e;
    --accent-fg: #08131c;
    --border: #26323e;
    --input-border: #647586;
    --error: #f97066;
    --error-fg: #08131c;
    --card: #17202a;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .test-mode { background: #3a2f10; color: #f3d98b; }
  /* The logo's dark text needs a light backdrop in dark mode. */
  :root:not([data-theme="light"]) .brand img { background: #fff; padding: 4px 8px; border-radius: 8px; }
  :root:not([data-theme="light"]) .partner-badge { background: #fff; padding: 6px 10px; border-radius: 8px; }
  :root:not([data-theme="light"]) .card-corner img { box-sizing: content-box; background: #fff; padding: 6px 10px; border-radius: 8px; } /* Help Desk "new Ticket" graphic: the padding adds to its size */
}
:root[data-theme="dark"] {
  --bg: #0f151c;
  --bg-alt: #151d26;
  --fg: #e6ebf0;
  --muted: #9aa8b6;
  --brand: #5fb2e8;
  --brand-hover: #84c6f0;
  --brand-fg: #08131c;
  --accent: #4cc79e;
  --accent-fg: #08131c;
  --border: #26323e;
  --input-border: #647586;
  --error: #f97066;
  --error-fg: #08131c;
  --card: #17202a;
  color-scheme: dark;
}
:root[data-theme="dark"] .test-mode { background: #3a2f10; color: #f3d98b; }
/* The logo's dark text needs a light backdrop in dark mode. */
:root[data-theme="dark"] .brand img { background: #fff; padding: 4px 8px; border-radius: 8px; }
:root[data-theme="dark"] .partner-badge { background: #fff; padding: 6px 10px; border-radius: 8px; }
:root[data-theme="dark"] .card-corner img { box-sizing: content-box; background: #fff; padding: 6px 10px; border-radius: 8px; } /* Help Desk "new Ticket" graphic: the padding adds to its size */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3, h2.h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }

.container { max-width: 1080px; margin: 0 auto; padding: 0 16px; width: 100%; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; padding: 6px 0; }
.brand img { display: block; max-width: 100%; height: auto; }

/* Text-and-image header blocks (home hero, Help Desk). Images are shown at
   their native size because the originals are small. */
.with-figure { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; align-items: center; }
.with-figure.figure-left { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.with-figure > *, .split > * { min-width: 0; } /* let text columns shrink below their content's natural width on phones */
.figure { display: block; border-radius: var(--radius); box-shadow: 0 6px 24px rgb(0 0 0 / .15); max-width: 100%; height: auto; }
.page-head .with-figure { padding-bottom: 2rem; }
nav { display: flex; align-items: center; gap: 4px; }
nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; }
nav a:hover, nav a[aria-current="page"] { color: var(--fg); background: var(--bg-alt); }
nav a.nav-cta { background: var(--brand); color: var(--brand-fg); }
nav a.nav-cta:hover, nav a.nav-cta[aria-current="page"] { background: var(--brand-hover); color: var(--brand-fg); }

/* Buttons */
.button {
  display: inline-block; padding: 12px 22px; border-radius: 8px; border: 0;
  background: var(--brand); color: var(--brand-fg); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--brand-hover); color: var(--brand-fg); }
.button-secondary { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.button-secondary:hover { background: var(--bg-alt); color: var(--brand-hover); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }

/* Sections */
.hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1rem, 3vw, 2rem); background: linear-gradient(180deg, var(--bg-alt), var(--bg)); }
.hero h1 { max-width: 18ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.page-head { padding: 3rem 0 1rem; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.section { padding: 3.5rem 0; }
.hero + .section { padding-top: 2rem; } /* "What we do" sits closer to the search form */
.section-alt { background: var(--bg-alt); }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: start; }
.prose { max-width: 70ch; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.partner-badge { float: right; width: 200px; max-width: 45%; height: auto; margin: 4px 0 12px 20px; }
@media (max-width: 760px) { .partner-badge { float: none; display: block; margin: 0 0 12px; width: 170px; max-width: 100%; } }
.priority-note { font-size: .92rem; margin-top: .75rem; }
/* Specials (admin: Specials) */
.special-banner { display: flex; gap: 10px; align-items: baseline; margin: 1rem 0; padding: 12px 16px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, var(--card)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.special-tag { flex: none; display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.special-box { margin: 1.25rem 0; padding: 14px 16px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, var(--card)); }
.special-box > .special-tag { display: table; margin: 0 0 10px; }
.special-box label.agree + label.agree { margin-top: 10px; }
@media (max-width: 760px) { .special-banner { flex-direction: column; align-items: flex-start; gap: 8px; } }
.special-box p.muted { margin: 8px 0 0; }
.special-note { color: var(--accent); font-weight: 600; }
.admin-special { padding: 16px 20px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.admin-special h2 { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 0; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } /* six home page services: 3 + 3 */
.card {
  display: block; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--card); color: var(--fg); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); color: var(--fg); }
.card h3, .card h2 { color: var(--brand); }
.card p { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.contact-info a { word-break: break-word; }
.cta-box { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }

/* Services page */
.service { padding: 2rem 0; border-bottom: 1px solid var(--border); scroll-margin-top: 16px; display: flow-root; } /* flow-root: a floated photo stays inside its section */
/* A section photo (Web Hosting): on the right with the text wrapping around it;
   on phones, full width under the heading. */
.service-photo { float: right; width: 360px; max-width: 45%; height: auto; margin: 4px 0 16px 28px; border-radius: var(--radius); box-shadow: 0 6px 24px rgb(0 0 0 / .15); }
/* Business Email: a small image beside the title (top right), and logos
   in a column beside the bullet list, centered on it. On phones the logos
   sit in a row under the list. */
.service-corner { float: right; margin: 0 0 8px 16px; border-radius: 6px; background: #fff; }
.service-split { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; align-items: center; }
.service-side { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.service-side img { max-width: 100%; height: auto; border-radius: 6px; background: #fff; }
@media (max-width: 760px) { .service-split { grid-template-columns: minmax(0, 1fr); gap: 8px; } .service-side { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px 24px; margin: 4px 0 16px; } .service-side img { width: auto; max-height: 60px; } }
@media (max-width: 760px) { .service-photo { float: none; display: block; width: 100%; max-width: 100%; margin: 0 0 16px; } }
.service:first-child { padding-top: 0; }
.service:last-child { border-bottom: 0; }
.checks { list-style: none; padding: 0; margin: 0 0 1rem; }
.checks li { padding-left: 1.6em; position: relative; margin-bottom: .4em; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.card-static:hover { border-color: var(--border); transform: none; }
.card-static p { margin-bottom: .75rem; }
.click-to-call { display: inline-flex; align-items: center; gap: 8px; }
.call-back-note { margin: 8px 0 0; }
.card-action { color: var(--brand); font-weight: 600; margin-top: .75rem !important; }

/* Domain search */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: .9rem; }
.domain-search { display: flex; gap: 8px; max-width: 560px; margin-top: 1.25rem; }
.domain-search input {
  flex: 1; min-width: 0; padding: 12px 14px; font: inherit; font-size: 1.05rem; color: var(--fg);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.domain-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.hero-search { margin-top: 2rem; }
.hero-search p { margin-bottom: 0; }
.hero-search .domain-search { margin-top: .5rem; }
/* Home: the image sits right beside the text instead of at the far edge, and
   the special runs the full width under both. */
@media (min-width: 761px) { .with-figure.hero-home { grid-template-columns: minmax(0, 40rem) auto; justify-content: start; } }
.hero-special .special-banner { margin: 1.5rem 0 0; }
.test-mode { display: inline-block; margin-top: 1rem; padding: 6px 12px; border-radius: 6px; font-size: .9rem; background: #fff4d6; color: #6b4e00; }
.domain-results { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 10px; }
.domain-result {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding: 14px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card);
}
.domain-result .domain-name { flex: 1 1 200px; }
.price { text-align: right; line-height: 1.3; font-size: .95rem; }
.price strong { font-size: 1.1rem; }
.price:empty { display: none; }
.domain-result.is-available { border-color: var(--accent); }
.domain-name { font-weight: 700; font-size: 1.1rem; word-break: break-all; }
.badge { font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); white-space: nowrap; }
.badge-ok { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.badge-no { color: var(--muted); }
.badge-ours { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.domain-result.is-ours { border-color: var(--brand); }
.button-small { padding: 8px 14px; font-size: .95rem; white-space: nowrap; }
.button-quiet { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border); }
.button-quiet:hover, .button-quiet[aria-expanded="true"] { background: var(--bg-alt); color: var(--fg); }

/* WHOIS */
.whois-panel { flex-basis: 100%; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 2px; }
.whois-card { max-width: 760px; }
.whois { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0 0 12px; }
.whois dt { font-weight: 600; color: var(--muted); }
.whois dd { margin: 0; }
.whois code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .95rem; }
.plain { list-style: none; margin: 0; padding: 0; }
.whois-ours { color: var(--brand); font-weight: 600; }
.whois dd .badge { display: inline-block; margin-top: 6px; }
.whois-raw summary { cursor: pointer; color: var(--brand); font-weight: 600; margin-bottom: 8px; }
.whois-raw pre { max-height: 320px; overflow: auto; padding: 12px; background: var(--bg-alt); border-radius: 8px; font-size: .82rem; white-space: pre-wrap; word-break: break-word; }

/* FAQ */
.faq-group { margin-top: 2rem; color: var(--brand); }
details { border: 1px solid var(--border); border-radius: 8px; background: var(--card); margin-bottom: 8px; }
details summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style-position: outside; }
details summary:hover { color: var(--brand); }
details[open] summary { border-bottom: 1px solid var(--border); }
details p { padding: 12px 16px 0; max-width: 80ch; } /* full-width cards, readable answer lines */
details code { font-size: .9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }

/* Forms */
.form { display: grid; gap: 18px; max-width: 560px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
.checks-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks-field legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.checks-field .check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 8px; background: var(--card); cursor: pointer; font-weight: 400; }
.checks-field .check:hover { border-color: var(--brand); }
.checks-field .check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--card)); }
.checks-field .check input { width: 18px; height: 18px; margin: 0; padding: 0; accent-color: var(--brand); flex: none; }
.checks-field .check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.field input, .field select, .field textarea, .email-row input, .keep-row input {
  width: 100%; padding: 10px 12px; font: inherit; color: var(--fg);
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
}
.field input:focus, .field select:focus, .field textarea:focus, .email-row input:focus, .keep-row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.has-error input, .has-error textarea, .field.has-error input, .field.has-error textarea { border-color: var(--error); }
.error, .form-error { color: var(--error); margin: 6px 0 0; font-size: .95rem; }
.form-error { margin-bottom: 1rem; font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 24px; border-radius: var(--radius); background: var(--bg-alt); border-left: 4px solid var(--accent); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); color: var(--muted); font-size: .95rem; padding: 2rem 0; }
.site-footer strong { color: var(--fg); }
.site-footer p { margin: .25rem 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 2rem; }
.copyright { grid-column: 1 / -1; font-size: .85rem; }

@media (max-width: 760px) {
  .split, .footer-grid, .with-figure, .with-figure.figure-left { grid-template-columns: minmax(0, 1fr); }
  .with-figure { gap: 1.5rem; }
  .figure { width: 100%; height: 220px; object-fit: cover; object-position: 50% 45%; } /* home and About photos: a wide strip on phones */
  .brand img { width: 240px; }
  .domain-result .domain-name { flex-basis: 100%; }
  .domain-result .result-action { flex-basis: 100%; } /* Add to cart on its own line under the price */
  .price { text-align: left; flex: 1 1 auto; }
  .whois { grid-template-columns: 1fr; gap: 0; }
  .whois dd { margin-bottom: 8px; }
  nav a { padding: 6px 10px; }

  /* Hamburger menu (with JavaScript; see static/js/nav.js) */
  .has-nav-toggle .container { flex-wrap: wrap; gap: 8px; min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .has-nav-toggle nav { padding-bottom: 4px; }
  .has-nav-toggle .brand { flex: 1 1 0; min-width: 0; }
  .has-nav-toggle .brand img { width: 200px; }
  .has-nav-toggle nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 4px 0 12px; }
  .has-nav-toggle.nav-open nav { display: flex; }
  .has-nav-toggle nav a { padding: 12px 14px; font-size: 1.05rem; }
  .has-nav-toggle nav a.nav-cta { text-align: center; margin-top: 6px; }
}
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .has-nav-toggle .nav-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; }
  .nav-toggle:hover { background: var(--bg-alt); }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .15s, opacity .15s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
}

/* Cart and checkout */
.inline-form { display: inline; margin: 0; }
.nav-cart { position: relative; }
.cart-count { display: inline-block; min-width: 1.4em; padding: 0 6px; margin-left: 2px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.5; }
.notice-inline { padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 12%, var(--card)); border-left: 4px solid var(--accent); }
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.cart-table th, .cart-table td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cart-table thead th { font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.cart-table tfoot th { font-size: 1.1rem; border-bottom: 0; }
.cart-table .num { text-align: right; white-space: nowrap; }
.cart-table select { padding: 6px 8px; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: 6px; }
.cart-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; align-items: center; }
.cart-actions .cart-empty { margin-right: auto; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--error); }
.form-group { border: 0; padding: 0; margin: 0 0 8px; min-width: 0; display: grid; gap: 14px; }
.form-group legend { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { grid-template-columns: 2fr 1fr 1fr; }
.field label.agree, .special-box label.agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field label.agree input, .special-box label.agree input { width: 18px; height: 18px; margin-top: 3px; padding: 0; flex: none; accent-color: var(--brand); }
.order-summary li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.order-summary li .num { margin-left: auto; font-weight: 600; }
.order-total { display: flex; justify-content: space-between; font-size: 1.1rem; margin-top: 12px; }
@media (max-width: 760px) {
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .cart-table thead { display: none; }
  .cart-table td, .cart-table th { padding: 10px 6px; }
}

/* Admin */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.tab { padding: 7px 12px; border-radius: 8px; border: 1px solid var(--border); text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.tab[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: var(--brand-fg); }
.tab-attention:not([aria-current="page"]) { border-color: var(--accent); color: var(--accent); }
.tab-count { font-size: .8rem; opacity: .8; }
.admin-table td { font-size: .95rem; }
.nowrap { white-space: nowrap; }
.renew-page { padding-top: 1.75rem; } /* less space under the heading */
.renew-page h2 { margin-top: 0; }
.renew-ways + p { margin-top: 1.25rem; } /* note under the renewal options */
.first-logo { float: right; width: 250px; margin: .3rem 0 1rem 1.75rem; } /* About: text wraps around it */
@media (max-width: 760px) { .first-logo { float: none; width: auto; max-width: 365px; margin: .5rem 0 1.25rem; } }
.first-logo img { display: block; max-width: 100%; height: auto; background: #fff; padding: 8px; border-radius: var(--radius); border: 1px solid var(--border); }
.first-logo figcaption { margin-top: 6px; font-size: .9rem; color: var(--muted); }
.lead.lead-tight { margin-bottom: .25rem; } /* a second lead line follows directly (About) */
.card-corner { float: right; margin: -4px -6px 8px 12px; } .card-corner img { display: block; border-radius: 6px; } /* Help Desk ticket card: the old site's "new Ticket" graphic */
@media (max-width: 760px) { .card-corner { display: none; } }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--bg-alt); color: var(--muted); white-space: nowrap; }
.status-paid { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.status-approved { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); }
.status-completed { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--fg); }
.status-failed { background: color-mix(in srgb, var(--error) 15%, transparent); color: var(--error); }
.status-cancelled { text-decoration: line-through; }
.admin-action { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--border); }
.admin-action .button { white-space: nowrap; }
.admin-action p { margin: 6px 0 0; max-width: 34ch; }
.admin-action input { padding: 10px 12px; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: 8px; width: 100%; }
.history { padding-left: 1.2rem; }
.history li { margin-bottom: 6px; }
code.secret { background: var(--bg-alt); padding: 1px 6px; border-radius: 4px; user-select: all; }
@media (max-width: 760px) { .admin-action { grid-template-columns: 1fr; } }
.item-status { display: inline-block; font-size: .82rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--bg-alt); color: var(--muted); }
.item-done { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); }
.item-submitted { background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
.item-failed, .item-unknown { background: color-mix(in srgb, var(--error) 14%, transparent); color: var(--error); }
.legal-box { padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-alt); font-size: .92rem; }
.legal-box p { margin: 0; }
.field label.agree span, .special-box label.agree span { line-height: 1.5; }
.registrar-note { grid-column: 1 / -1; font-size: .85rem; margin-top: .5rem !important; }
.refresh { margin-left: 8px; vertical-align: middle; }
.field select.select { width: 100%; padding: 10px 12px; font: inherit; color: var(--fg); background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.us-form { max-width: none; margin-bottom: 1.5rem; }

/* Busy buttons (static/js/busy.js) */
.spinner { display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
.button.is-busy { cursor: progress; opacity: .85; }
.busy-status { margin: .6rem 0 0; color: var(--muted); font-size: .92rem; }
.multi-notice { padding: 12px 14px; border-left: 4px solid var(--brand); border-radius: 6px; background: var(--bg-alt); font-size: .92rem; margin: 0 0 1rem; }
.account-domains { margin-bottom: 2rem; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.dm > h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.dm > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.dm .inline-form { display: block; margin-top: .6rem; }
.why-webtent { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.why-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px 28px; }
.why-grid li { padding-left: 1.6em; position: relative; color: var(--muted); }
.why-grid li strong { color: var(--fg); }
.why-grid li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.contact-form { max-width: none; }
.contact-form .form-group { margin-bottom: 4px; }

/* Admin: customer messages */
.status-msg-ready { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); }
.status-msg-sending { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.status-msg-paused { background: color-mix(in srgb, var(--error) 12%, transparent); color: var(--error); }
.status-msg-sent { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--fg); }
.message-form textarea { font-family: inherit; min-height: 14rem; }
.message-body { white-space: pre-wrap; font-family: inherit; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 14px; }
.inline-fields { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.inline-fields .field { flex: 1 1 16rem; margin: 0; }
.message-delete { margin-top: 2.5rem; }
.admin-message h2 { margin-top: 2.75rem; }
.admin-message form + p, .admin-message form + h3 { margin-top: 1.25rem; }
.admin-message details { margin: 0 0 1rem; }
.admin-message details summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: 4px 0; }
.admin-message h2:first-of-type { margin-top: 0; }
.message-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2rem; }
.message-steps a { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; }
.message-steps a:hover { border-color: var(--brand); }
.admin-message h2 { scroll-margin-top: 90px; }
.admin-message .message-form textarea { min-height: 10rem; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.agent-link { font-size: .95rem; }

/* Privacy Policy and Usage Terms and Conditions */
.legal h2 { margin-top: 2.25rem; scroll-margin-top: 90px; }
.legal h3 { margin-top: 1.5rem; }
.legal-toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin: 1.5rem 0; }
.legal-toc ol { margin: 0; padding-left: 1.4em; columns: 2 16rem; column-gap: 2rem; }
.legal-toc li { margin: 2px 0; break-inside: avoid; }
.email-change-notice { margin-top: 1rem; padding: 12px 16px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 8px 8px 0; font-size: .92rem; }
.email-change-notice p { margin: 0 0 .6rem; }
.email-change-notice p:last-child { margin-bottom: 0; }

/* Footer visit box (date, thank-you, visitor IP, speed test), as on the previous site */
.visit-box { display: inline-block; margin-top: 1rem; padding: 12px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); text-align: center; font-size: .82rem; line-height: 1.45; }
.visit-box p { margin: 0 0 6px; }
.visit-box p:last-child { margin-bottom: 0; }
.visit-time { color: var(--muted); }
.visit-thanks { color: var(--error); font-weight: 600; }
.visit-ip { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; }

/* Internet speed test */
.speedtest { max-width: 760px; margin: 0 auto 2.5rem; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); text-align: center; }
.st-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 1.25rem; }
.st-result { display: flex; flex-direction: column; align-items: center; padding: 14px 8px; border-radius: 10px; background: var(--bg-alt); }
.st-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.st-value { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 700; color: var(--brand); line-height: 1.2; font-variant-numeric: tabular-nums; }
.st-unit { font-size: .85rem; color: var(--muted); }
.st-progress { height: 8px; border-radius: 999px; background: var(--bg-alt); overflow: hidden; margin: 0 0 1rem; }
.st-bar { height: 100%; width: 0; background: var(--accent); transition: width .3s ease; }
.st-status { min-height: 1.6em; }
.st-notes { margin: 0 auto; }
@media (max-width: 760px) { .st-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } .speedtest { padding: 16px; } }
.button:disabled { opacity: .6; cursor: progress; }

/* Domain management: unlocked domain warning */
.lock-warning { padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--error) 45%, transparent); border-left-width: 5px; border-radius: 8px; background: color-mix(in srgb, var(--error) 8%, var(--card)); margin-bottom: 1rem; }
.lock-warning p { margin: 0 0 12px; }
.button-attention { background: var(--error); border-color: var(--error); color: var(--error-fg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--error) 22%, transparent); }
.button-attention:hover { filter: brightness(1.08); }
.footer-right .visit-box { margin-top: 0; }

/* Checkboxes the customer must read: a bar down the left, like a quote */
.agree-callout { padding: 10px 14px; border-left: 4px solid var(--brand); background: var(--bg-alt); border-radius: 0 8px 8px 0; }
.agree-callout + .agree-callout { margin-top: 12px; }
.st-grade { margin-top: 6px; padding: 1px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.st-grade-0, .st-rating-0 { --g: var(--error); }
.st-grade-1, .st-rating-1 { --g: #875600; }
.st-grade-2, .st-rating-2 { --g: var(--brand); }
.st-grade-3, .st-rating-3 { --g: var(--accent); }
.st-grade { background: color-mix(in srgb, var(--g) 15%, transparent); color: var(--g); }
.st-rating { margin: 0 0 1.25rem; padding: 14px 16px; border-left: 5px solid var(--g); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--g) 9%, var(--card)); text-align: left; }
.st-rating p { margin: 0; }
.st-rating-head { font-size: 1.1rem; margin-bottom: 4px !important; }
.st-rating-head strong { color: var(--g); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-grade-1, :root:not([data-theme="light"]) .st-rating-1 { --g: #f0a640; } }
:root[data-theme="dark"] .st-grade-1, :root[data-theme="dark"] .st-rating-1 { --g: #f0a640; }

/* Footer: name and contact details on the left; menu and visit box on the
   right (desktop); registrar links and copyright across the bottom. */
.footer-menu { margin-bottom: 1rem !important; }
@media (min-width: 761px) {
  .footer-right { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
}
/* Phones: the visit box runs full width, date and thank-you on the left,
   IP address and speed test on the right. */
@media (max-width: 760px) {
  .footer-right .visit-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto; grid-auto-flow: column; column-gap: 10px; row-gap: 6px; align-items: start; width: 100%; box-sizing: border-box; padding: 10px 14px; }
  .footer-right .visit-box p { margin: 0; }
  .footer-right .visit-box .visit-time, .footer-right .visit-box .visit-thanks { text-align: left; }
  .footer-right .visit-box p:nth-child(n+3) { text-align: right; }
}

/* Sign-in code form */
.code-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 12px; }
.code-form input[name=code] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 1.2rem; letter-spacing: .15em; }
.code-details { margin-top: 1.5rem; }
.code-details summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.notice .code-form { margin: 1rem 0; }
@media (max-width: 520px) { .code-fields { grid-template-columns: minmax(0, 1fr); } }
.code-form { max-width: 560px; }
.code-details .code-form { padding: 4px 16px 16px; }
.code-form input[name=code] { font-size: 1rem; }
.field-hint { margin: 6px 0 0; }
.login-form { max-width: 680px; }
.code-details summary .summary-hint { font-weight: 400; color: var(--muted); margin-left: .35em; text-decoration: underline; }
.code-details[open] summary .summary-hint { display: none; }
.sort-link { color: inherit; text-decoration: underline dotted; }
.sort-link:hover { color: var(--brand); }
.sort-link { color: inherit; text-decoration: underline dotted; }
.sort-link:hover { color: var(--brand); }
/* Side boxes (Contact us info, order summary, Recent changes...) stay in view
   while the main column scrolls (desktop). */
@media (min-width: 761px) {
  aside.cta-box { position: sticky; top: 1.5rem; align-self: start; max-height: calc(100vh - 3rem); overflow-y: auto; }
}

/* Header profile menu (between Cart and Contact) */
.nav-profile { position: relative; border: 0; background: none; margin: 0; border-radius: 0; }
.nav-profile summary { list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; border-radius: 8px; cursor: pointer; color: var(--muted); font-weight: 600; }
.nav-profile summary::-webkit-details-marker { display: none; }
.nav-profile summary:hover, .nav-profile[open] summary { color: var(--brand); background: var(--bg-alt); }
.nav-profile[open] summary { border-bottom: 0; }
.profile-icon.is-signed-in { color: var(--accent); }
.profile-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nav-profile-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 230px; display: flex; flex-direction: column; padding: 6px; background: var(--card); border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgb(0 0 0 / .15); }
.nav-profile-menu a, .nav-profile-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 6px; background: none; color: var(--fg); font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; }
.nav-profile-menu a:hover, .nav-profile-menu button:hover { background: var(--bg-alt); color: var(--brand); }
/* Theme switch in the account menu: Auto · Light · Dark. */
.theme-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; border-top: 1px solid var(--border); margin-top: 4px; }
.theme-label { font-size: .85rem; color: var(--muted); }
.theme-buttons { display: inline-flex; border: 1px solid var(--input-border); border-radius: 8px; overflow: hidden; }
.nav-profile-menu .theme-buttons button { width: auto; padding: 4px 9px; border-radius: 0; font-size: .85rem; font-weight: 500; }
.nav-profile-menu .theme-buttons button + button { border-left: 1px solid var(--input-border); }
.nav-profile-menu .theme-buttons button[aria-pressed="true"] { background: var(--brand); color: var(--brand-fg); }
.nav-profile-menu form { margin: 0; }
.profile-who { padding: 8px 12px 4px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--border); margin-top: 4px; }
.profile-who:first-child { border-top: 0; margin-top: 0; }
.profile-agent { border-top: 1px solid var(--border) !important; margin-top: 4px; border-radius: 0 0 6px 6px !important; color: var(--muted) !important; font-size: .92rem; }
/* Phones: inside the opened menu, show it as a labeled section. */
@media (max-width: 760px) {
  .has-nav-toggle .nav-profile summary { padding: 12px 14px; font-size: 1.05rem; }
  .has-nav-toggle .profile-label { position: static; width: auto; height: auto; clip: auto; }
  .has-nav-toggle .nav-profile-menu { position: static; box-shadow: none; min-width: 0; margin: 2px 0 6px; }
}
.profile-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--accent); }
.profile-icon.has-avatar { display: none; }
.company-form { max-width: 760px; }
.email-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) minmax(0, 1fr); gap: 8px; margin-bottom: 8px; }
@media (max-width: 600px) { .email-row { grid-template-columns: minmax(0, 1fr); } }
.dm h2 { scroll-margin-top: 1.5rem; }
.domain-steps { margin-bottom: 1.5rem; }
.padlock { display: inline-block; vertical-align: -0.15em; width: 1em; height: 1em; }
.padlock-locked { color: var(--accent); }
.padlock-unlocked { color: var(--error); }
.status-mark { display: inline-block; vertical-align: -0.15em; width: 1em; height: 1em; }
.status-ok { color: var(--accent); }
.status-warn { color: #f2b100; }
.domain-status { max-width: none; }
.domain-status span { white-space: nowrap; }
.dm h2 { display: flex; align-items: center; gap: .3em; }
/* Manage page: Back to top sits above Recent changes; both stay in view (desktop). */
.to-top-side { display: block; margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); color: var(--brand); font-weight: 600; text-align: center; text-decoration: none; }
.to-top-side:hover { border-color: var(--brand); background: var(--bg-alt); }
@media (min-width: 761px) {
  .domain-side { position: sticky; top: 1.5rem; align-self: start; }
  .domain-side aside.cta-box { position: static; max-height: calc(100vh - 7rem); }
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.to-top-side[hidden] { display: none; }
/* Your domains: symbols for settings that need attention */
.domain-flags { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: middle; }
.domain-flag { display: inline-flex; line-height: 1; }
.domain-flag svg { pointer-events: none; } /* so the link's tooltip shows */
.select-col { width: 2.2rem; }
.select-col input { width: 18px; height: 18px; accent-color: var(--brand); }
.bulk-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.agent-banner { padding: 12px 16px; margin: 0 0 1.25rem; border-left: 5px solid var(--brand); border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--brand) 9%, var(--card)); }
.all-domains { margin: 1rem 0 2rem; }
.reg-settings { margin: 1rem 0; } .reg-settings .check { align-items: flex-start; }
.all-actions form { margin: 0; } .all-count { font-weight: 400; opacity: .85; }
.all-actions { margin-bottom: 2rem; }
.bulk-hint { margin: 10px 0 0; }
.all-right { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; } .all-right form { margin: 0; }

/* Privacy Policy and Terms: text in a 3/4 column, Back to top in a sticky right sidebar (desktop). */
.legal-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 2.5rem; }
.legal-layout .legal { max-width: none; }
.legal-side { position: sticky; top: 1.5rem; align-self: start; }
.legal-side { max-height: calc(100vh - 3rem); overflow-y: auto; }
.legal-side .legal-toc { margin: 0; font-size: .9rem; }
.legal-side .legal-toc ol { columns: auto; }
@media (max-width: 760px) {
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-side { position: static; order: -1; max-height: none; } /* the index goes above the text */
  .legal-side .to-top-side { display: none; }
}
/* Terms: sidebar on the left. */
@media (min-width: 761px) {
  .legal-layout-left { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
  .legal-layout-left .legal-side { order: -1; }
}
/* Sidebar index: wrapped titles line up under their text, not the number. */
.legal-side .legal-toc ol { list-style: none; counter-reset: toc; padding: 0; }
.legal-side .legal-toc li { counter-increment: toc; display: grid; grid-template-columns: 1.7em minmax(0, 1fr); align-items: baseline; margin: 4px 0; padding: 0; line-height: 1.35; }
.legal-side .legal-toc li::before { content: counter(toc) "."; color: var(--muted); font-size: inherit; text-align: right; padding-right: .45em; }
.legal-side .legal-toc li a { padding: 0; }
.legal-toc + .to-top-side { margin: 12px 0 0; }
.domain-aside + .to-top-side { margin: 12px 0 0; }
/* Phones: pages with a sidebar end with Back to top (the side column, if it
   has one, is hidden or moves up there). The Manage page already ends with its own. */
.to-top-mobile { display: none; }
@media (max-width: 760px) {
  main:has(aside):not(:has(.domain-side)) > .to-top-mobile { display: block; margin-bottom: 2rem; }
}
/* Your domains: the status symbol sits under the checkbox. */
.account-domains .select-col { text-align: center; }
.account-domains .select-col input { display: block; margin: 0 auto; }
.account-domains .select-col .domain-flags { display: flex; justify-content: center; margin: 6px 0 0; }
/* Phones: each domain is a block; its values wrap under the name. */
@media (max-width: 760px) {
  .account-domains, .account-domains tbody { display: block; }
  .account-domains tr { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 0 12px 2.6rem; border-bottom: 1px solid var(--border); }
  .account-domains td { padding: 0; border: 0; }
  .account-domains .select-col { position: absolute; left: 4px; top: 12px; width: auto; }
  .account-domains .domain-col { flex: 0 0 100%; overflow-wrap: anywhere; }
  .account-domains td[data-label]::before { content: attr(data-label) " "; color: var(--muted); font-size: .8rem; margin-right: 4px; }
  .account-domains td.num { margin-left: auto; }
  /* Your orders: the domain and total on the first line; the date, status
     and buttons under them (the buttons drop to their own line, on the
     right, only when they don't fit). */
  .account-orders, .account-orders tbody { display: block; }
  .account-orders tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .account-orders tr::after { content: ""; flex-basis: 100%; order: 1; } /* the line break */
  .account-orders td { padding: 0; border: 0; }
  .account-orders .domain-col { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
  .account-orders .order-total { font-weight: 600; }
  .account-orders .order-date, .account-orders .order-status, .account-orders .order-actions { order: 2; }
  .account-orders .order-date { color: var(--muted); font-size: .9rem; }
  .account-orders .order-actions { margin-left: auto; display: flex; gap: 6px; }
}
/* Your account and Your profile: the customer's Gravatar on the right of the
   heading. Without one (turned off, or Gravatar answers 404; see nav.js), a
   plain icon. On Your account it links to Your profile. */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.account-avatar { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; max-width: 200px; }
a.account-avatar { text-decoration: none; color: var(--brand); border-radius: 12px; padding: 4px; }
a.account-avatar:hover .account-avatar-edit { text-decoration: underline; }
.account-avatar-edit { text-decoration: underline; text-underline-offset: 2px; }
.account-avatar-img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--accent); }
.account-avatar-none { color: var(--muted); padding: 10px; box-sizing: border-box; border: 2px dashed var(--border); border-radius: 50%; }
.account-avatar.no-avatar .account-avatar-img, .account-avatar:not(.no-avatar) .account-avatar-none { display: none; }
.account-greeting { margin-bottom: .25rem; }
.account-who { margin: 0 0 .5rem; color: var(--muted); }
.profile-form h2 { margin-top: 0; }
.profile-form h2 ~ h2 { margin-top: 2rem; }
.profile-form .inline-fields { margin-bottom: 1rem; }
.profile-check { display: flex; align-items: flex-start; gap: 10px; margin: .5rem 0 1.25rem; font-weight: 400; }
.profile-check input { margin-top: .3rem; }
.profile-page #email, .profile-page #appearance { margin-top: 2.5rem; }
@media (max-width: 520px) {
  .account-head { flex-direction: column; align-items: flex-start; }
  .account-avatar { flex-direction: row; text-align: left; max-width: none; }
  .account-avatar-img, .account-avatar-none { width: 64px; height: 64px; }
}
/* Services: a small Back to top arrow beside each section title, hidden
   while the top of the page is in view (nav.js). */
.to-top-arrow { display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; margin-left: .35em; vertical-align: middle; border: 1px solid var(--border); border-radius: 50%; background: var(--card); color: var(--brand); font-size: .55em; font-weight: 700; text-decoration: none; }
.to-top-arrow:hover { border-color: var(--brand); background: var(--bg-alt); }
.top-in-view .to-top-arrow { visibility: hidden; }
/* Text pages (and admin pages) line up with the page heading on the left
   instead of sitting in a narrow centered column. Admin pages use more width. */
.container.prose { max-width: 1080px; }
.container.prose > * { max-width: 70ch; }
.container.admin-wide > * { max-width: 960px; }
/* Account banner (Admin → Specials and account banner): across the bottom of
   the gray heading on Your account. */
.account-head { flex-wrap: wrap; }
.account-banner { --b: var(--brand); flex: 1 0 100%; box-sizing: border-box; padding: 12px 16px; border-left: 5px solid var(--b); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--b) 10%, var(--card)); }
.account-banner-important { --b: #d99a00; }
.account-banner-critical { --b: var(--error); }
.account-banner p { margin: 0; }
.account-banner p + p { margin-top: .6em; }
.admin-special + .admin-special { margin-top: 1.5rem; }
.admin-special .account-banner { margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .account-banner-important { --b: #f0a640; } }
:root[data-theme="dark"] .account-banner-important { --b: #f0a640; }
@media (max-width: 520px) { .account-head .account-banner { flex: none; width: 100%; } }
/* Admin → Speed tests */
.speed-filter { margin: 0 0 1rem; align-items: center; }
.speed-tests .st-grade { display: inline-block; margin: 0; }
/* Admin cards: icons for things that are on (e.g. Website notices). */
.card-icons { display: inline-flex; gap: 6px; margin-left: 10px; vertical-align: -0.15em; }
.card-external { font-size: .85em; color: var(--muted); font-weight: 400; } /* marks a link to another site (new tab) */
/* Admin: Helpful links is a bar across the bottom of the cards: a gray
   square with the title and note, then a white square for each link. */
.admin-links { grid-column: 1 / -1; display: flex; padding: 0; overflow: hidden; }
.admin-links-head { flex: 0 0 230px; padding: 20px 24px; background: var(--bg-alt); border-right: 1px solid var(--border); }
.admin-links-head p { margin: .35rem 0 0; }
.admin-links ul { flex: 1 1 auto; display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.admin-links li { flex: 0 0 230px; padding: 20px 24px; background: var(--card); overflow-wrap: anywhere; } /* same size as the title square; room for more to the right */
.admin-links li a { font-weight: 600; }
.admin-links li p { margin: .35rem 0 0; }
.form.links-form { max-width: 1000px; }
/* Admin → QuickBooks: a square beside the connection details that opens QuickBooks Online. */
.qbo-layout { display: flex; gap: 32px; align-items: flex-start; }
.qbo-main { flex: 0 1 auto; min-width: 0; max-width: 640px; } /* the square sits right beside the details, not at the far edge */
.qbo-outs { flex: 0 0 auto; }
.qbo-out-row { display: flex; gap: 12px; }
.qbo-out-row .qbo-out { width: 250px; }
.qbo-current { border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--card)); } /* the company this site uses */
.qbo-legend { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; }
.qbo-swatch { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--brand); border-radius: 4px; background: color-mix(in srgb, var(--brand) 6%, var(--card)); }
.card.qbo-out h2.h3 { white-space: nowrap; flex-wrap: nowrap; } /* title and arrow stay together */
.qbo-out p { margin: 0; }
@media (max-width: 760px) { .qbo-layout { flex-direction: column; } .qbo-outs { align-self: stretch; } .qbo-out-row { flex-direction: column; } .qbo-out-row .qbo-out { width: auto; } }
.link-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1.4fr); gap: 8px; margin-bottom: 8px; }
.link-row input { width: 100%; padding: 10px 12px; border: 1px solid var(--input-border); border-radius: 8px; background: var(--card); color: var(--fg); font: inherit; }
.link-row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
@media (max-width: 600px) { .link-row { grid-template-columns: minmax(0, 1fr); margin-bottom: 16px; } }
@media (max-width: 760px) { .admin-links, .admin-links ul { flex-direction: column; } .admin-links li { flex-basis: auto; } .admin-links-head { flex-basis: auto; border-right: 0; border-bottom: 1px solid var(--border); } }
.card-icon { display: inline-flex; color: var(--accent); }
.card-icon svg { pointer-events: none; } /* so the tooltip shows */
/* Website notices: saved banner texts */
.keep-notice { margin: 1.25rem 0 1.75rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.keep-notice label { display: block; font-weight: 600; margin-bottom: 6px; }
.keep-row { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.keep-row input { flex: 1 1 260px; width: auto; min-width: 0; }
.admin-special h3 { margin-top: 1.5rem; }
.saved-notices { list-style: none; padding: 0; margin: 0; }
.saved-notices li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.saved-notices li:first-child { border-top: 0; }
.saved-notice-text { flex: 1 1 320px; min-width: 0; }
.saved-notice-text p { margin: 4px 0 0; overflow-wrap: anywhere; }
.saved-notice-actions { display: flex; align-items: center; gap: 12px; }
.saved-notice-actions form { margin: 0; }
.saved-style { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.saved-style-important { background: color-mix(in srgb, #d99a00 18%, transparent); color: #8a5a00; }
.saved-style-critical { background: color-mix(in srgb, var(--error) 14%, transparent); color: var(--error); }
/* Speed test: waiting for a turn */
.st-status.st-queued { color: #8a5a00; font-weight: 600; }
.st-status.st-queued::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .5em; border-radius: 50%; background: #d99a00; vertical-align: .05em; animation: st-pulse 1.2s ease-in-out infinite; }
@keyframes st-pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .st-status.st-queued::before { animation: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .st-status.st-queued { color: #f0c060; } }
:root[data-theme="dark"] .st-status.st-queued { color: #f0c060; }
.speed-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; margin-top: 1rem; }
.card-icon-speed-off { color: var(--error); }
.card-icon-link { color: var(--brand); }
.speed-usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 .5rem; }
.speed-usage > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--bg-alt); }
.speed-usage strong { font-size: 1.4rem; color: var(--brand); }
.speed-usage .speed-off { color: var(--error); }
/* Section menus sit at the bottom of the gray page heading. */
.message-steps.head-steps { margin: 1.25rem 0 .25rem; }
.head-steps a { background: var(--card); }
.head-steps a:hover { background: var(--bg); }
/* Four cards across (Help Desk self-service tools); two, then one, on smaller screens. */
.cards.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .cards.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards.cards-4 { grid-template-columns: minmax(0, 1fr); } }
/* Help Desk downloads: a green tinted "Download ↓". */
.card p.card-download { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, var(--card)); color: var(--accent); font-weight: 700; }
.card:hover p.card-download { background: color-mix(in srgb, var(--accent) 20%, var(--card)); }
.download-note { margin: 16px 0 0; padding: 12px 16px; border-left: 5px solid var(--accent); border-radius: 0 10px 10px 0; background: color-mix(in srgb, var(--accent) 9%, var(--card)); font-size: .95rem; }
/* Speed test page: wider, lined up on the left with the page heading. */
.speedtest { max-width: 960px; margin: 0 0 2.5rem; text-align: left; }
.st-result { align-items: flex-start; padding: 14px 18px; }
.st-notes { margin: 0; max-width: 960px; }

/* ---- Accessibility (WCAG 2.2 AA) ---- */
/* A clear keyboard focus ring on everything you can tab to. */
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.card:focus-visible, .button:focus-visible { outline-offset: 3px; }
/* Form fields stand out from the page (3:1). */
.field input, .field select, .field textarea, .field select.select, .email-row input, .keep-row input,
.domain-search input, .cart-table select, .admin-action input { border-color: var(--input-border); }
::placeholder { color: var(--muted); opacity: 1; }
/* Icons keep 3:1 against the page: the warning triangle gets a dark edge, and
   the checkmark inside the green circle follows the theme. */
.status-warn path:first-of-type { stroke: #8a6100; }
.status-ok path { stroke: var(--accent-fg); }
/* Small controls get at least a 24 x 24 px target (WCAG 2.5.8). */
.to-top-arrow { min-width: 24px; min-height: 24px; }
.link-button { min-height: 24px; padding: 2px 0; }
/* Less motion for people who ask their system for it. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .card:hover { transform: none; }
}
/* Accessibility statement and conformance report */
.a11y-page .a11y-form { margin-top: 1rem; max-width: 640px; }
.acr-facts { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px 20px; margin: 0 0 1rem; }
.acr-facts dt { font-weight: 700; }
.acr-facts dd { margin: 0; }
@media (max-width: 760px) { .acr-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .acr-facts dd { margin-bottom: 10px; } }
.acr h2 { margin-top: 2.25rem; }
.acr-table th[scope=row] { font-weight: 600; text-align: left; vertical-align: top; min-width: 14rem; }
.acr-table td { vertical-align: top; }
.acr-level { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.acr-supports { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.acr-partially-supports { background: color-mix(in srgb, #875600 15%, transparent); color: #875600; }
.acr-does-not-support { background: color-mix(in srgb, var(--error) 15%, transparent); color: var(--error); }
.acr-not-applicable { background: var(--bg-alt); color: var(--muted); }
.table-scroll { overflow-x: auto; }
@media (max-width: 760px) {
  .acr-table thead { display: none; }
  .acr-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .acr-table th[scope=row], .acr-table td { display: block; border: 0; padding: 4px 0; min-width: 0; }
}
@media print { .site-header, .site-footer, .head-steps, .to-top-arrow, .skip { display: none !important; } .acr-table { font-size: 11pt; } }

/* Footer: copyright on the left, the accessibility icon in the right corner. */
.footer-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.footer-bottom .copyright { margin: 0; }
.a11y-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; margin-right: -7px; border-radius: 50%; color: var(--brand); }
.a11y-link:hover { color: var(--brand-hover); background: var(--bg); }
/* A legal-style page that starts with a heading lines up with its sidebar. */
.legal > h2:first-child { margin-top: 0; }
.acr > h2:first-child { margin-top: 0; }
.form-error:first-child { margin-top: 0; } /* first thing on the page: no extra gap under the heading */
.page-head .lead { max-width: none; } /* the intro under a page title uses the full width */

/* Footer: contact details | email updates sign-up | menu and visit box.
   Tablets: the sign-up goes under both; phones: one column. */
.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(260px, 320px); grid-template-areas: "info right signup"; }
.footer-info { grid-area: info; }
.footer-signup { grid-area: signup; }
.footer-right { grid-area: right; }
@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "info right" "signup signup"; }
  .footer-signup { max-width: 480px; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "signup" "right"; }
  .footer-signup { max-width: none; }
}
.footer-signup { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); align-self: start; }
.footer-signup-title { font-size: 1rem; margin: 0 0 4px; color: var(--fg); }
.footer-signup-note, .footer-signup-privacy, .footer-signup-more { font-size: .85rem; margin: 0 0 10px !important; }
.footer-signup-more { margin: 8px 0 0 !important; }
.footer-signup-privacy { margin: 4px 0 0 !important; }
.footer-signup label { display: block; font-size: .85rem; font-weight: 600; color: var(--fg); margin-bottom: 4px; }
.footer-signup-row { display: flex; gap: 8px; }
.footer-signup-row input { flex: 1 1 auto; min-width: 0; padding: 8px 10px; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--input-border); border-radius: 8px; }
.footer-signup-row .button { flex: none; }
.admin-subscribers h2 { margin-top: 2.25rem; }
/* Email updates: how to make sure our emails reach the inbox */
.inbox-tips { margin: 1.5rem 0; padding: 14px 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); }
.inbox-tips h2 { margin: 0 0 6px; }
.inbox-tips details { margin: 0; border: 0; }
.inbox-tips summary { padding: 6px 0; color: var(--brand); }
.inbox-tips ul { margin: 6px 0 0; }
.inbox-tips li { margin-bottom: 6px; }
/* Wider text pages (Email updates): content up to 960px, forms stay narrower. */
.container.wide-text > * { max-width: 960px; }
.container.wide-text > form { max-width: 640px; }
/* Desktop, three columns: the menu and visit box sit centered in the middle column. */
@media (min-width: 1001px) {
  .footer-right { align-items: center; text-align: center; }
}
.container.wide-text > .feedback-form { max-width: 640px; }
.tools-feedback { margin: 1.25rem 0 0; }
/* Formatting toolbar (static/js/richtext.js) */
.rt { border: 1px solid var(--input-border); border-radius: 8px; background: var(--card); }
.rt:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
.rt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--border); background: var(--bg-alt); border-radius: 8px 8px 0 0; }
.rt-btn { min-width: 32px; min-height: 32px; padding: 4px 9px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--fg); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.rt-btn:hover { background: var(--card); border-color: var(--border); }
.rt-btn[aria-pressed="true"] { background: color-mix(in srgb, var(--brand) 15%, var(--card)); border-color: var(--brand); color: var(--brand); }
.rt-btn:disabled { opacity: .45; cursor: default; }
.rt-b { font-weight: 800; } .rt-i { font-style: italic; } .rt-u { text-decoration: underline; }
.rt-sep { width: 1px; align-self: stretch; margin: 2px 4px; background: var(--border); }
.rt-area { padding: 10px 12px; line-height: 1.6; overflow-wrap: anywhere; }
.rt-area:focus { outline: none; }
.rt-area > :first-child { margin-top: 0; }
.rt-area h2 { font-size: 1.35rem; margin: .8em 0 .4em; } .rt-area h3 { font-size: 1.1rem; margin: .8em 0 .4em; }
.rt-area blockquote, .message-body-rich blockquote, .account-banner blockquote { margin: 0 0 1em; padding-left: 12px; border-left: 4px solid var(--border); color: var(--muted); }
.field .rt-source { border: 0; border-radius: 0 0 8px 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; min-height: 12em; }
.message-body-rich { white-space: normal; }
.account-banner ul, .account-banner ol { margin: .4em 0; }
.account-banner h2, .account-banner h3 { margin: 0 0 .3em; font-size: 1.05rem; }
/* Forms with a formatting toolbar are wide enough for it to fit on one line. */
.form.rich-form { max-width: 800px; }
.rt-bar { flex-wrap: wrap; }
@media (min-width: 900px) { .rich-form .rt-bar { flex-wrap: nowrap; } }
.admin-special .keep-notice { max-width: 800px; }
/* Admin cards: count badges and status icons */
.card-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; font-size: .8rem; font-weight: 700; line-height: 1; vertical-align: .1em; }
.card-badge-info { background: color-mix(in srgb, var(--brand) 14%, var(--card)); color: var(--brand); }
.card-badge-ok { background: color-mix(in srgb, var(--accent) 16%, var(--card)); color: var(--accent); }
.card-badge-warn { background: color-mix(in srgb, #d99a00 22%, var(--card)); color: #875600; }
.card-badge-bad { background: color-mix(in srgb, var(--error) 15%, var(--card)); color: var(--error); }
.card-icon-ok { color: var(--accent); }
.card-icon-bad { color: var(--error); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .card-badge-warn { color: #f0c060; } }
:root[data-theme="dark"] .card-badge-warn { color: #f0c060; }
/* Admin card titles: badges and icons centered on the title's line. */
.card h2.h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.card h2.h3 .card-icons { margin-left: 0; display: inline-flex; align-items: center; gap: 6px; vertical-align: baseline; }
.card h2.h3 .card-badge, .card h2.h3 .card-icon { vertical-align: baseline; }
.card-icon svg { display: block; }
/* Admin → Speed tests: limits in the left sidebar (Privacy layout). */
.speed-limits-box { padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-alt); }
.speed-limits-box h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.speed-limits-box .form { gap: 12px; max-width: none; }
.speed-limits-box .field-hint { margin-top: 4px; }
.speed-limits-box + .to-top-side { margin: 12px 0 0; }
.speed-main { min-width: 0; }
.speed-admin .speed-usage { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
