:root {
  --iptuner-canvas: #0D141B;
  --iptuner-canvas-top: #111A22;
  --iptuner-surface: #151F28;
  --iptuner-surface-strong: #1A2731;
  --iptuner-program: #21303A;
  --iptuner-border: #26323B;
  --iptuner-border-strong: #35424C;
  --iptuner-accent: #61E3D0;
  --iptuner-accent-utility: #67B9AE;
  --iptuner-text-primary: #E7ECEF;
  --iptuner-text-body: #B8C2CA;
  --iptuner-text-secondary: #9AA7B2;
  --iptuner-text-quiet: #86949F;
  --iptuner-accent-soft: #86D4C8;
  --iptuner-action: #1B6762;
  --iptuner-focus-surface: #182B31;
  --iptuner-muted: #9AA7B2;
  --iptuner-subtle: #86949F;
  --iptuner-success: #7FD6A0;
  --iptuner-error: #FF9F9F;
  --iptuner-warning: #F2C56B;
  --iptuner-radius-card: 12px;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background:
    radial-gradient(circle at 8% 0%, rgba(97, 227, 208, .055), transparent 26rem),
    linear-gradient(180deg, var(--iptuner-canvas-top), var(--iptuner-canvas) 24rem);
  min-height: 100vh;
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--iptuner-accent);
  outline-offset: 3px;
}

.iptuner-site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 20, 27, .92);
  border-bottom: 1px solid rgba(255,255,255,.065);
  backdrop-filter: blur(18px);
}

.iptuner-site-footer { border-top: 1px solid rgba(255,255,255,.065); }

.iptuner-eyebrow {
  color: var(--iptuner-accent-utility);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .095em;
  text-transform: uppercase;
}

.iptuner-muted { color: var(--iptuner-muted); }
.iptuner-subtle { color: var(--iptuner-subtle); }

.iptuner-card {
  background: var(--iptuner-surface);
  border: 1px solid rgba(255,255,255,.065);
  border-radius: var(--iptuner-radius-card);
  box-shadow: 0 1px 0 rgba(255,255,255,.025) inset;
}

.iptuner-feature-card { height: 100%; }
.iptuner-feature-card .wp-block-heading { margin-top: 0; }

.iptuner-glow {
  box-shadow: 0 0 0 1px rgba(97, 227, 208, .08), 0 18px 54px rgba(0,0,0,.18);
}

.iptuner-screenshot-frame {
  overflow: hidden;
  background: #091017;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 12px;
  box-shadow: 0 18px 52px rgba(0,0,0,.24);
}

.iptuner-screenshot-frame img { display: block; width: 100%; height: auto; }

.iptuner-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.iptuner-hero::before,
.iptuner-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(116, 202, 187, .06);
  border-radius: 50%;
  width: 46rem;
  height: 46rem;
  pointer-events: none;
}
.iptuner-hero::before { right: -20rem; top: -22rem; }
.iptuner-hero::after { left: -34rem; bottom: -36rem; }

.iptuner-disclosure {
  color: var(--iptuner-muted);
  font-size: .9rem;
  border-left: 2px solid #74CABB;
  padding-left: 1rem;
}

.iptuner-section { padding-block: clamp(3rem, 5.5vw, 5rem); }

.iptuner-support-card a { text-decoration: none; }
.iptuner-support-card:hover { border-color: rgba(97, 227, 208, .28); background: var(--iptuner-surface-strong); }

/* Clean WP plugin integration. */
.clean-wp-faq-list__item,
.clean-wp-contacts-form,
.clean-contact-form {
  background: var(--iptuner-surface);
  border-color: var(--iptuner-border-strong) !important;
  border-radius: var(--iptuner-radius-card);
}
.clean-wp-faq-list__question { color: #E7ECEF; }
.clean-wp-faq-list__answer { color: var(--iptuner-muted); }

@media (max-width: 781px) {
  .iptuner-site-header { position: relative; }
  .iptuner-section { padding-block: 3.5rem; }
}


/* Checkpoint B — marketing system. */
.iptuner-section--tight { padding-block: clamp(2rem, 4vw, 3.5rem); }
.iptuner-section--surface {
  background: rgba(26, 39, 49, .36);
  border-block: 1px solid rgba(255,255,255,.055);
}
.iptuner-section-heading { max-width: 44rem; }
.iptuner-section-heading.is-centered { margin-inline: auto; text-align: center; }
.iptuner-lede { max-width: 44rem; }

.iptuner-feature-grid,
.iptuner-capability-grid,
.iptuner-support-grid,
.iptuner-device-grid {
  align-items: stretch;
}
.iptuner-feature-card,
.iptuner-capability-card,
.iptuner-device-card,
.iptuner-support-card {
  transition: border-color .18s ease, transform .18s ease, background-color .18s ease;
}
@media (prefers-reduced-motion: no-preference) {
  .iptuner-feature-card:hover,
  .iptuner-capability-card:hover,
  .iptuner-device-card:hover,
  .iptuner-support-card:hover { transform: translateY(-2px); }
}

.iptuner-feature-card__icon,
.iptuner-number-badge {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  border: 1px solid rgba(116,202,187,.22);
  border-radius: 10px;
  background: rgba(27,103,98,.12);
  color: var(--iptuner-accent-soft);
  font-weight: 650;
}

.iptuner-feature-list { padding-left: 1.2rem; }
.iptuner-feature-list li { margin-block: .45rem; color: var(--iptuner-muted); }
.iptuner-feature-list li::marker { color: var(--iptuner-accent); }

.iptuner-kicker-line {
  width: 3.6rem;
  height: 2px;
  background: var(--iptuner-accent-utility);
  border-radius: 999px;
}

.iptuner-shot-grid { gap: clamp(1rem, 2vw, 1.6rem); }
.iptuner-shot-card {
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.065);
  background: var(--iptuner-surface);
}
.iptuner-shot-card figure,
.wp-block-image.iptuner-shot-card { margin: 0; }
.iptuner-shot-card figcaption,
.iptuner-shot-caption { padding: .8rem 1rem 1rem; color: var(--iptuner-muted); font-size: .9rem; }

.iptuner-logo-stage {
  min-height: 22rem;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 48%, rgba(97, 227, 208, .14), transparent 18rem),
    linear-gradient(180deg, rgba(26,39,49,.72), rgba(13,20,27,.88));
}
.iptuner-logo-stage img { width: min(22rem, 68%); max-height: 20rem; }

.iptuner-platform-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .7rem;
  border: 1px solid var(--iptuner-border-strong);
  border-radius: 999px;
  color: var(--iptuner-muted);
  background: rgba(21,31,40,.72);
  font-size: .9rem;
  font-weight: 550;
}
.iptuner-platform-pill::before {
  content: '';
  width: .45rem;
  height: .45rem;
  border-radius: 50%;
  background: var(--iptuner-accent-utility);
}

.iptuner-mini-nav a {
  text-decoration: none;
  color: var(--iptuner-muted);
}
.iptuner-mini-nav a:hover,
.iptuner-mini-nav a:focus-visible { color: var(--iptuner-accent); }

.iptuner-device-matrix table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--iptuner-border-strong);
  border-radius: 12px;
  background: var(--iptuner-surface);
}
.iptuner-device-matrix th,
.iptuner-device-matrix td {
  padding: .9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--iptuner-border);
  vertical-align: top;
}
.iptuner-device-matrix tr:last-child td { border-bottom: 0; }
.iptuner-device-matrix th { color: #E7ECEF; background: rgba(33,48,58,.72); }
.iptuner-device-matrix td { color: var(--iptuner-muted); }

.iptuner-availability-note {
  padding: 1rem 1.1rem;
  border: 1px solid var(--iptuner-border-strong);
  border-radius: 10px;
  background: rgba(21,31,40,.78);
  color: var(--iptuner-muted);
}

.iptuner-remote-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: .75rem;
}
.iptuner-remote-map > div {
  padding: .85rem 1rem;
  border: 1px solid var(--iptuner-border);
  border-radius: 10px;
  background: rgba(21,31,40,.72);
}
.iptuner-remote-map strong { color: var(--iptuner-accent-soft); }

.iptuner-anchor-target { scroll-margin-top: 6.5rem; }

.iptuner-badge-row { display:flex; flex-wrap:wrap; gap:.55rem; }

.iptuner-inline-note {
  padding: .9rem 1rem;
  border-radius: 10px;
  background: rgba(23,106,101,.12);
  border: 1px solid rgba(97,227,208,.22);
  color: var(--iptuner-muted);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--iptuner-accent-soft);
  border: 1px solid var(--iptuner-border-strong);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--iptuner-focus-surface);
  border-color: var(--iptuner-accent);
  color: #E7ECEF;
}

@media (max-width: 900px) {
  .iptuner-logo-stage { min-height: 18rem; }
}
@media (max-width: 781px) {
  .iptuner-remote-map { grid-template-columns: 1fr; }
  .iptuner-device-matrix { overflow-x:auto; }
  .iptuner-logo-stage { min-height: 15rem; }
}

/* Checkpoint C — support and documentation system. */
.iptuner-support-guide { max-width: 1180px; }
.iptuner-support-guide > .wp-block-post-content { margin-top: var(--wp--preset--spacing--40); }
.iptuner-support-guide .wp-block-post-content > :where(h2) { margin-top: clamp(2.5rem, 5vw, 4rem); }
.iptuner-support-guide .wp-block-post-content > :where(h3) { margin-top: 2rem; }
.iptuner-support-guide .wp-block-post-content > :where(p, ul, ol) { max-width: 52rem; }
.iptuner-support-breadcrumb { color: var(--iptuner-subtle); }
.iptuner-support-breadcrumb a { color: var(--iptuner-accent-soft); text-decoration: none; }
.iptuner-support-breadcrumb span { margin-left: .35rem; color: var(--iptuner-border-strong); }

.iptuner-support-grid { margin-top: 1rem; }
.iptuner-support-card { padding: 1.4rem; }
.iptuner-support-card h3 { margin-top: 0; margin-bottom: .45rem; font-size: 1.15rem; }
.iptuner-support-card p { margin-bottom: 0; }

.iptuner-support-table { overflow-x: auto; }
.iptuner-support-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--iptuner-border-strong);
  border-radius: var(--iptuner-radius-card);
  background: var(--iptuner-surface);
}
.iptuner-support-table th,
.iptuner-support-table td {
  padding: .85rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--iptuner-border);
}
.iptuner-support-table th { color: #E7ECEF; background: rgba(33,48,58,.72); }
.iptuner-support-table td { color: var(--iptuner-muted); }
.iptuner-support-table tr:last-child td { border-bottom: 0; }

.iptuner-guide-footer { max-width: 52rem; }
.iptuner-guide-footer .wp-block-heading { margin-top: 0; }

.clean-wp-faq-list { margin-block: 1.25rem 2.5rem; }
.clean-wp-faq-list__item {
  border: 1px solid var(--iptuner-border-strong);
  background: rgba(21,31,40,.92);
}
.clean-wp-faq-list--accordion .clean-wp-faq-list__item + .clean-wp-faq-list__item { margin-top: .65rem; }
.clean-wp-faq-list__question { cursor: pointer; }

.ccf-form-wrap {
  padding: 0;
  border: 1px solid var(--iptuner-border-strong);
  border-radius: var(--iptuner-radius-card);
  background: var(--iptuner-surface);
  overflow: hidden;
}
.ccf-form-wrap .ccf-form { margin-top: 0; }

.iptuner-footer-links { gap: .85rem 1.35rem; }
.iptuner-footer-links a { color: var(--iptuner-muted); font-size: .9rem; text-decoration: none; }
.iptuner-footer-links a:hover,
.iptuner-footer-links a:focus-visible { color: var(--iptuner-accent); }

@media (max-width: 781px) {
  .iptuner-support-card { padding: 1.1rem; }
  .iptuner-support-table table { min-width: 38rem; }
}

/* Checkpoint D — production accessibility and conversion polish. */
.iptuner-skip-link {
  position: fixed;
  z-index: 1000;
  top: .75rem;
  left: .75rem;
  transform: translateY(-160%);
  padding: .7rem 1rem;
  border-radius: 8px;
  background: var(--iptuner-accent);
  color: var(--iptuner-canvas);
  font-weight: 650;
  text-decoration: none;
  transition: transform .12s ease;
}
.iptuner-skip-link:focus { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .iptuner-skip-link { transition: none; } }

.iptuner-release-notes-page { max-width: 1180px; }
.iptuner-release-list { list-style: none; padding-left: 0; margin-top: 2rem; }
.iptuner-release-list > li {
  padding: 1.35rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--iptuner-border-strong);
  border-radius: var(--iptuner-radius-card);
  background: var(--iptuner-surface);
}
.iptuner-release-list a { font-weight: 600; text-decoration-thickness: .08em; }
.iptuner-release-list .wp-block-latest-posts__post-date { color: var(--iptuner-subtle); }

/* Avoid decorative-only motion for people who request less motion. */
@media (prefers-reduced-motion: reduce) {
  .iptuner-feature-card,
  .iptuner-capability-card,
  .iptuner-device-card,
  .iptuner-support-card { transition: none; transform: none !important; }
}


/* Checkpoint D.1 — visual/layout QA polish. */
.admin-bar .iptuner-site-header { top: 32px; }

/* Keep the marketing rhythm generous without creating page-length walls of whitespace. */
.iptuner-hero { padding-block: clamp(3.75rem, 7vw, 6rem); }
.iptuner-final-cta {
  margin-block: clamp(3rem, 5vw, 4.5rem);
  padding: clamp(2rem, 4vw, 3.5rem);
}
.iptuner-support-directory { margin-block: clamp(2.5rem, 4vw, 4rem); }

/* Long-form pages use the content width; wide media/cards opt in to alignwide. */
.iptuner-support-guide { max-width: var(--wp--style--global--content-size, 780px); }
.iptuner-support-guide .wp-block-post-content > .clean-wp-faq-list { max-width: 100%; }
.iptuner-support-guide .wp-block-post-content > :where(h2, h3) { max-width: 52rem; }

/* The plugin already provides inner form padding. Avoid a second wrapper padding layer. */
.iptuner-support-guide .ccf-form-wrap { max-width: 46rem; }
.iptuner-support-guide .ccf-form { margin-top: 0; }

/* Navigation should always read as an intentional part of the dark product UI. */
.iptuner-site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: rgba(13,20,27,.99);
  color: #E7ECEF;
  padding: 1.25rem;
}
.iptuner-site-header .wp-block-navigation__responsive-container-close,
.iptuner-site-header .wp-block-navigation__responsive-container-open { color: var(--iptuner-accent-soft); }
.iptuner-site-header .iptuner-nav-cta > .wp-block-navigation-item__content {
  padding: .58rem .82rem;
  border: 1px solid rgba(97,227,208,.24);
  border-radius: 9px;
  background: rgba(27,103,98,.12);
  color: var(--iptuner-accent-soft);
}
.iptuner-site-header .iptuner-nav-cta > .wp-block-navigation-item__content:hover,
.iptuner-site-header .iptuner-nav-cta > .wp-block-navigation-item__content:focus-visible {
  border-color: rgba(97,227,208,.46);
  background: var(--iptuner-focus-surface);
  color: #E7ECEF;
}

/* Make directory-style links look deliberately interactive rather than like loose paragraphs. */
.iptuner-mini-nav p { margin: 0; }
.iptuner-mini-nav a {
  display: block;
  padding: .7rem .85rem;
  border: 1px solid var(--iptuner-border);
  border-radius: 9px;
  background: rgba(21,31,40,.62);
}
.iptuner-mini-nav a:hover,
.iptuner-mini-nav a:focus-visible {
  border-color: rgba(97,227,208,.5);
  background: var(--iptuner-focus-surface);
}

/* The support-card hover treatment implies the whole card is clickable; make that true. */
.iptuner-support-card { position: relative; }
.iptuner-support-card h3 a::after { content: ""; position: absolute; inset: 0; }
.iptuner-support-card:has(h3 a:focus-visible) { border-color: var(--iptuner-accent); }

.iptuner-footer-links p { margin: 0; }
.iptuner-site-footer .wp-block-navigation-item__content { color: var(--iptuner-muted); }
.iptuner-site-footer .wp-block-navigation-item__content:hover,
.iptuner-site-footer .wp-block-navigation-item__content:focus-visible { color: var(--iptuner-accent); }

.iptuner-page-extras {
  max-width: var(--wp--style--global--content-size, 780px);
  margin-block: clamp(2.5rem, 5vw, 4rem);
  margin-inline: auto;
}
.iptuner-page-extras:empty { display: none; margin: 0; }

/* FAQ spacing is intentionally tighter than marketing sections. */
.clean-wp-faq-list { margin-block: 1rem 2rem; }

/* Explicit accessible status colors for Clean WP integrations on the dark surface. */
.ccf-block,
.ccf-form-wrap {
  --clean-wp-success: var(--iptuner-success);
  --clean-wp-error: var(--iptuner-error);
}

@media (max-width: 781px) {
  .iptuner-hero { padding-block: 3.25rem; }
  .iptuner-final-cta { margin-block: 2.5rem; padding: 1.75rem; }
  .iptuner-support-directory { margin-block: 2.5rem; }
  .iptuner-site-header { position: sticky; }
  .admin-bar .iptuner-site-header { top: 46px; }
}

/* FAQ accordion should look like a deliberate IPTuner control, not a browser-default disclosure. */
.iptuner-support-guide .clean-wp-faq-list--accordion summary.clean-wp-faq-list__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
  color: #E7ECEF;
}
.iptuner-support-guide .clean-wp-faq-list--accordion summary.clean-wp-faq-list__question::-webkit-details-marker { display: none; }
.iptuner-support-guide .clean-wp-faq-list--accordion summary.clean-wp-faq-list__question::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--iptuner-accent);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}
.iptuner-support-guide .clean-wp-faq-list--accordion details[open] > summary.clean-wp-faq-list__question::after { content: "−"; }
.iptuner-support-guide .clean-wp-faq-list--accordion details[open] > .clean-wp-faq-list__answer {
  padding-top: 1rem;
  border-top: 1px solid var(--iptuner-border);
}
.iptuner-support-guide .clean-wp-faq-list--accordion details[open] {
  border-color: rgba(97, 227, 208, .38) !important;
  background: rgba(26,39,49,.72);
}

/* Give form controls their own visual plane inside the support card. */
.iptuner-support-guide .ccf-input,
.iptuner-support-guide .ccf-select,
.iptuner-support-guide .ccf-textarea {
  background: var(--iptuner-canvas-top);
  border-color: var(--iptuner-border-strong);
}
.iptuner-support-guide .ccf-label { color: #E7ECEF; }

/* Regular navigation links need the same deliberate hit area as the CTA. */
.iptuner-site-header .wp-block-navigation__container { gap: .2rem .35rem; }
.iptuner-site-header .wp-block-navigation-item:not(.iptuner-nav-cta) > .wp-block-navigation-item__content {
  padding: .55rem .65rem;
  border-radius: 8px;
}
.iptuner-site-header .wp-block-navigation-item:not(.iptuner-nav-cta) > .wp-block-navigation-item__content:hover,
.iptuner-site-header .wp-block-navigation-item:not(.iptuner-nav-cta) > .wp-block-navigation-item__content:focus-visible {
  background: rgba(24,43,49,.78);
  color: #E7ECEF;
}


/* Checkpoint D.2 — Soft Dark / Broadcast Premium visual system. */
::selection {
  background: rgba(97, 227, 208, .28);
  color: var(--iptuner-text-primary);
}

body {
  color: var(--iptuner-text-body);
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

/* Long-form copy needs a calmer measure than media-oriented layouts. */
.iptuner-support-guide .wp-block-post-content > :where(p, ul, ol, blockquote) {
  max-width: 68ch;
}
.iptuner-support-guide .wp-block-post-content > :where(h2, h3) {
  max-width: 28ch;
}

/* Content links remain obviously interactive without relying on color alone. */
:where(.wp-block-post-content, .iptuner-section) :where(p, li) > a:not(.wp-element-button),
.iptuner-disclosure a {
  color: var(--iptuner-accent-soft);
  text-decoration-line: underline;
  text-decoration-thickness: .065em;
  text-underline-offset: .18em;
  text-decoration-color: rgba(134, 212, 200, .48);
}
:where(.wp-block-post-content, .iptuner-section) :where(p, li) > a:not(.wp-element-button):hover,
.iptuner-disclosure a:hover {
  color: var(--iptuner-accent);
  text-decoration-color: currentColor;
}

/* Keep the site chrome quiet so product screenshots carry the visual energy. */
.iptuner-card,
.iptuner-feature-card,
.iptuner-capability-card,
.iptuner-device-card,
.iptuner-support-card,
.iptuner-release-list > li {
  border-color: rgba(255,255,255,.065);
}
.iptuner-feature-card:hover,
.iptuner-capability-card:hover,
.iptuner-device-card:hover,
.iptuner-support-card:hover {
  border-color: rgba(97,227,208,.28);
  background: var(--iptuner-surface-strong);
}

.iptuner-section-heading { max-width: 44rem; }
.iptuner-lede { max-width: 42rem; }

.iptuner-kicker-line {
  background: var(--iptuner-accent-utility);
  opacity: .9;
}

.iptuner-logo-stage {
  background:
    radial-gradient(circle at 50% 48%, rgba(97, 227, 208, .075), transparent 19rem),
    var(--iptuner-surface-strong);
}

.iptuner-platform-pill,
.iptuner-availability-note,
.iptuner-remote-map > div,
.iptuner-mini-nav a,
.iptuner-inline-note {
  border-color: rgba(255,255,255,.065);
}

.iptuner-platform-pill { color: var(--iptuner-text-secondary); }
.iptuner-remote-map strong { color: var(--iptuner-accent-soft); font-weight: 600; }

/* Tables use tonal depth, not hard outlines, for hierarchy. */
.iptuner-device-matrix table,
.iptuner-support-table table {
  border-color: rgba(255,255,255,.07);
}
.iptuner-device-matrix th,
.iptuner-support-table th {
  color: var(--iptuner-text-primary);
  background: var(--iptuner-program);
  font-weight: 600;
}
.iptuner-device-matrix td,
.iptuner-support-table td { color: var(--iptuner-text-secondary); }
.iptuner-device-matrix tbody tr:nth-child(even),
.iptuner-support-table tbody tr:nth-child(even) { background: rgba(255,255,255,.018); }

/* FAQ: one calm reading surface, with focus/open state providing the contrast jump. */
.clean-wp-faq-list__item {
  background: var(--iptuner-surface);
  border-color: rgba(255,255,255,.07) !important;
}
.clean-wp-faq-list__question { color: var(--iptuner-text-primary); font-weight: 600; }
.clean-wp-faq-list__answer { color: var(--iptuner-text-body); }
.iptuner-support-guide .clean-wp-faq-list--accordion details[open] {
  border-color: rgba(97,227,208,.26) !important;
  background: var(--iptuner-surface-strong);
}
.iptuner-support-guide .clean-wp-faq-list--accordion details[open] > .clean-wp-faq-list__answer {
  border-top-color: rgba(255,255,255,.065);
}

/* Forms: labels are strong, controls are separate but not bright boxes. */
.iptuner-support-guide .ccf-label { color: var(--iptuner-text-primary); font-weight: 600; }
.iptuner-support-guide .ccf-input,
.iptuner-support-guide .ccf-select,
.iptuner-support-guide .ccf-textarea {
  background: #111A22;
  color: var(--iptuner-text-body);
  border-color: rgba(255,255,255,.11);
}
.iptuner-support-guide .ccf-input:hover,
.iptuner-support-guide .ccf-select:hover,
.iptuner-support-guide .ccf-textarea:hover { border-color: rgba(134,212,200,.28); }

/* Buttons carry the strongest brand accent; supporting controls remain quieter. */
.wp-block-button .wp-block-button__link { box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--iptuner-accent-soft);
  border-color: rgba(134,212,200,.22);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--iptuner-surface-strong);
  border-color: rgba(97,227,208,.45);
  color: var(--iptuner-text-primary);
}

.iptuner-site-header .wp-block-navigation-item:not(.iptuner-nav-cta) > .wp-block-navigation-item__content,
.iptuner-site-footer .wp-block-navigation-item__content,
.iptuner-footer-links a { color: var(--iptuner-text-secondary); }
.iptuner-site-header .wp-block-navigation-item:not(.iptuner-nav-cta) > .wp-block-navigation-item__content:hover,
.iptuner-site-header .wp-block-navigation-item:not(.iptuner-nav-cta) > .wp-block-navigation-item__content:focus-visible,
.iptuner-site-footer .wp-block-navigation-item__content:hover,
.iptuner-site-footer .wp-block-navigation-item__content:focus-visible,
.iptuner-footer-links a:hover,
.iptuner-footer-links a:focus-visible {
  color: var(--iptuner-text-primary);
}

/* Users who explicitly ask for more contrast get a stronger palette without changing layout. */
@media (prefers-contrast: more) {
  :root {
    --iptuner-text-primary: #FFFFFF;
    --iptuner-text-body: #E2E8EE;
    --iptuner-text-secondary: #BEC9D3;
    --iptuner-text-quiet: #AAB7C2;
    --iptuner-muted: #BEC9D3;
    --iptuner-subtle: #AAB7C2;
    --iptuner-border: #44525E;
    --iptuner-border-strong: #586773;
    --wp--preset--color--text: #FFFFFF;
    --wp--preset--color--text-body: #E2E8EE;
    --wp--preset--color--text-muted: #BEC9D3;
    --wp--preset--color--text-subtle: #AAB7C2;
  }

  .iptuner-card,
  .iptuner-feature-card,
  .iptuner-capability-card,
  .iptuner-device-card,
  .iptuner-support-card,
  .iptuner-release-list > li,
  .clean-wp-faq-list__item,
  .iptuner-device-matrix table,
  .iptuner-support-table table {
    border-color: #586773 !important;
  }

  :where(.wp-block-post-content, .iptuner-section) :where(p, li) > a:not(.wp-element-button) {
    text-decoration-thickness: .1em;
    text-decoration-color: currentColor;
  }
}

/* Checkpoint D.2.1 — viewport gutters, wide-layout rhythm, and responsive column repair. */
:root {
  --iptuner-page-gutter: clamp(1.5rem, 4vw, 4rem);
  --iptuner-wide-max: 80rem; /* 1280px */
  --iptuner-reading-max: 48.75rem; /* 780px */
  --iptuner-column-gap: clamp(1.25rem, 2.4vw, 2rem);
}

/*
 * WordPress alignwide intentionally grows beyond contentSize. On a 1360px
 * wideSize this left only ~20px at a 1400px viewport. Enforce a real page
 * gutter and a slightly calmer 1280px maximum for all IPTuner wide regions.
 */
.wp-site-blocks .alignwide {
  box-sizing: border-box;
  width: 100% !important;
  max-width: min(var(--iptuner-wide-max), calc(100vw - (2 * var(--iptuner-page-gutter)))) !important;
  margin-inline: auto !important;
}

/* Full-width sections keep their background edge-to-edge; their wide children
 * receive the gutter above. A wide section itself also receives the same rule. */
.wp-site-blocks .alignfull {
  box-sizing: border-box;
}

/* Prevent headings and copy from visually touching the viewport on templates
 * restored from older Site Editor markup. */
.iptuner-section:not(.alignfull),
.iptuner-hero > .wp-block-columns,
.iptuner-site-header > .wp-block-group,
.iptuner-site-footer > .wp-block-columns,
.iptuner-site-footer > .iptuner-footer-links {
  box-sizing: border-box;
}

/* Consistent column rhythm instead of inheriting whichever Core gap a block
 * happened to be created with. */
.iptuner-section .wp-block-columns,
.iptuner-hero .wp-block-columns,
.iptuner-site-footer .wp-block-columns {
  column-gap: var(--iptuner-column-gap);
  row-gap: var(--iptuner-column-gap);
}

/* Marketing card rows should degrade 3 -> 2 -> 1 naturally rather than hold
 * three narrow columns until Core's phone breakpoint. */
.iptuner-feature-grid,
.iptuner-capability-grid,
.iptuner-support-grid,
.iptuner-device-grid {
  flex-wrap: wrap !important;
}
.iptuner-feature-grid > .wp-block-column,
.iptuner-capability-grid > .wp-block-column,
.iptuner-support-grid > .wp-block-column,
.iptuner-device-grid > .wp-block-column {
  flex: 1 1 18rem !important;
  min-width: 0;
}

/* Media/text splits become a single readable column before either side gets
 * cramped. This directly fixes the Playback/Settings and similar sections. */
@media (max-width: 980px) {
  .iptuner-section > .wp-block-columns.are-vertically-aligned-center,
  .iptuner-hero > .wp-block-columns.are-vertically-aligned-center {
    flex-wrap: wrap !important;
  }
  .iptuner-section > .wp-block-columns.are-vertically-aligned-center > .wp-block-column,
  .iptuner-hero > .wp-block-columns.are-vertically-aligned-center > .wp-block-column {
    flex-basis: 100% !important;
    width: 100% !important;
  }

  .iptuner-section > .wp-block-columns.are-vertically-aligned-center .iptuner-screenshot-frame,
  .iptuner-hero > .wp-block-columns.are-vertically-aligned-center .iptuner-logo-stage {
    margin-top: .5rem;
  }
}

/* At small widths, maintain a real 24px edge gutter even if a saved Global
 * Style predates the current theme.json root padding. */
@media (max-width: 640px) {
  :root { --iptuner-page-gutter: 1.5rem; }

  .iptuner-section { padding-block: 2.75rem; }
  .iptuner-section--tight { padding-block: 2.25rem; }

  .iptuner-feature-card,
  .iptuner-capability-card,
  .iptuner-device-card,
  .iptuner-support-card {
    min-width: 0;
  }

  .iptuner-section-heading,
  .iptuner-lede {
    max-width: 100%;
  }
}

/* Wide capability tables should not run against desktop browser edges, while
 * remaining horizontally scrollable on genuinely narrow displays. */
.iptuner-device-matrix,
.iptuner-support-table {
  max-width: 100%;
}
.iptuner-device-matrix table,
.iptuner-support-table table {
  table-layout: auto;
}
.iptuner-device-matrix th,
.iptuner-device-matrix td,
.iptuner-support-table th,
.iptuner-support-table td {
  padding: 1rem 1.1rem;
}
@media (max-width: 781px) {
  .iptuner-device-matrix,
  .iptuner-support-table {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .iptuner-device-matrix table,
  .iptuner-support-table table {
    min-width: 42rem;
  }
}

/* Large section headings need room to breathe but should never read like they
 * start at the physical screen edge. */
.iptuner-section-heading > :first-child,
.iptuner-section > .wp-block-columns > .wp-block-column > :first-child {
  margin-top: 0;
}
.iptuner-section-heading > :last-child {
  margin-bottom: 0;
}
