/* Shared layouts for app pages (/apps/...) and setup guides (includes/guide-page.php, includes/apps.php).
   Fixed sizes live here so every guide and app page looks the same: step screenshots are at most
   320px wide, app screenshots share one height per device type. */
:root {
  --layout-gap: 1.25rem;
  --shot-border: #e5e7eb;
  --step-badge: var(--accent-color, #c93630);
  --callout-info-bg: #f3f6fb;
  --callout-info-border: #c9d6ea;
  --callout-security-bg: #fff6f5;
  --callout-security-border: #f2c4c0;
  --coming-bg: #fff4e5;
  --coming-color: #8a4b00;
}

/* ---------- Setup guides ---------- */
.guide-layout-page .guide-app-link {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.guide-layout .guide-methods-title {
  font-family: var(--heading-font);
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.75rem;
}

.guide-layout .guide-methods {
  border: 0;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.guide-layout .guide-methods .nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--surface-color);
  color: var(--heading-color);
  font-weight: 600;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.guide-layout .guide-methods .nav-link i {
  font-size: 1.25rem;
  color: var(--accent-color);
}

.guide-layout .guide-methods .nav-link:hover {
  border-color: var(--accent-color);
}

.guide-layout .guide-methods .nav-link.active {
  border-color: var(--accent-color);
  background: var(--accent-color);
  color: #fff;
  box-shadow: var(--card-shadow);
}

.guide-layout .guide-methods .nav-link.active i {
  color: #fff;
}

@media (max-width: 991.98px) {
  .guide-layout .guide-methods {
    flex-direction: row !important;
    flex-wrap: wrap;
  }

  .guide-layout .guide-methods .nav-item {
    flex: 1 1 auto;
  }

  .guide-layout .guide-methods .nav-link {
    justify-content: center;
  }
}

.guide-method {
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 18px);
  box-shadow: var(--card-shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.guide-method-head h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  margin: 0.25rem 0 0.75rem;
}

.guide-method-head .guide-method-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.guide-method .guide-version {
  color: var(--muted-color);
}

.guide-part {
  border-top: 1px solid var(--card-border);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.guide-part h3,
.guide-callout h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.guide-part h3 i {
  color: var(--accent-color);
}

.guide-part h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.25rem 0 0.5rem;
  color: var(--heading-color);
}

.guide-part ul,
.guide-part ol {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.guide-part li + li {
  margin-top: 0.35rem;
}

.guide-needs ul {
  list-style: none;
  padding-left: 0;
}

.guide-needs li {
  position: relative;
  padding-left: 1.75rem;
}

.guide-needs li::before {
  content: "\F26E"; /* bi-check2 */
  font-family: "bootstrap-icons";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-weight: 700;
}

/* Numbered steps: one counter style everywhere, with the screenshot beside the step on wide screens. */
.guide-steps {
  list-style: none;
  padding-left: 0 !important;
}

.guide-steps > .guide-step {
  counter-increment: guide-step;
  position: relative;
  padding-left: 2.75rem;
  min-height: 2rem;
}

.guide-steps > .guide-step + .guide-step {
  margin-top: 0.9rem;
}

.guide-steps > .guide-step::before {
  content: counter(guide-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--step-badge);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-step-text {
  padding-top: 0.2rem;
}

.guide-step.has-shot {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .guide-step.has-shot {
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: start;
  }

  .guide-step.has-shot .guide-shot + .guide-shot {
    grid-column: 2;
  }
}

.guide-shot {
  margin: 0;
  max-width: 320px;
}

.guide-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--shot-border);
  border-radius: 12px;
  background: #fff;
}

.guide-shot figcaption {
  font-size: 0.85rem;
  color: var(--muted-color);
  margin-top: 0.35rem;
}

.guide-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 320px));
  gap: 1rem;
  margin-top: 1rem;
}

.guide-downloads,
.app-downloads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.app-badge img {
  height: 48px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.app-download-note {
  margin: 0;
  color: var(--muted-color);
}

.guide-callout {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid var(--callout-info-border);
  background: var(--callout-info-bg);
}

.guide-callout > i {
  font-size: 1.25rem;
  color: var(--heading-color);
  line-height: 1.4;
}

.guide-callout-security {
  border-color: var(--callout-security-border);
  background: var(--callout-security-bg);
}

.guide-callout-security > i {
  color: var(--accent-color);
}

.guide-callout > div > :last-child {
  margin-bottom: 0;
}

.guide-callout h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.guide-callout ol,
.guide-callout ul {
  padding-left: 1.25rem;
}

.guide-support {
  margin: 0.75rem 0 0;
  color: var(--muted-color);
}

/* Old inner classes that some guide text still carries. */
.guide-method .guide-security-note,
.guide-method .browser-visual-note {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
}

/* ---------- App pages ---------- */
.app-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .app-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

.app-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 1rem 0 0;
}

.app-versions div {
  display: flex;
  gap: 0.4rem;
}

.app-versions dt {
  font-weight: 600;
  color: var(--heading-color);
}

.app-versions dt::after {
  content: ":";
}

.app-versions dd {
  margin: 0;
  color: var(--muted-color);
}

.app-hero-links {
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-hero-shot {
  display: flex;
  justify-content: center;
}

.app-hero-shot img {
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  height: auto;
  max-width: 100%;
}

.app-hero-shot.app-shot-phone img {
  max-height: 520px;
  width: auto;
}

.app-feature-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--layout-gap);
}

.app-feature {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--surface-color);
  box-shadow: var(--card-shadow);
}

.app-feature > i {
  font-size: 1.5rem;
  color: var(--accent-color);
  line-height: 1.2;
}

.app-feature h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.app-feature p {
  margin: 0;
  color: var(--muted-color);
  font-size: 0.95rem;
}

.app-coming {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--coming-bg);
  color: var(--coming-color);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  vertical-align: middle;
}

/* Screenshot gallery: one row that scrolls sideways, every image the same height per device type. */
.app-shot-themes {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

.app-shot-gallery {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1rem;
  --shot-height: 480px;
}

.app-shot-gallery.app-shot-tv,
.app-shot-gallery.app-shot-tablet,
.app-shot-gallery.app-shot-desktop,
.app-shot-gallery.app-shot-browser {
  --shot-height: 340px;
}

@media (max-width: 575.98px) {
  .app-shot-gallery {
    --shot-height: 400px;
  }

  .app-shot-gallery.app-shot-tv,
  .app-shot-gallery.app-shot-tablet,
  .app-shot-gallery.app-shot-desktop,
  .app-shot-gallery.app-shot-browser {
    --shot-height: 190px;
  }
}

.app-shot {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.app-shot img {
  display: block;
  height: var(--shot-height);
  width: auto;
  max-width: none;
  border-radius: 14px;
  border: 1px solid var(--shot-border);
  box-shadow: var(--card-shadow);
}

.app-shot-gallery[data-theme-shown="light"] .app-shot[data-theme="dark"],
.app-shot-gallery[data-theme-shown="dark"] .app-shot[data-theme="light"] {
  display: none;
}

.app-shots-note {
  color: var(--muted-color);
  margin: 0.5rem 0 0;
}

.app-checklist,
.app-guide-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.app-checklist li {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.app-checklist i {
  color: var(--accent-color);
}

.app-subhead {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

.app-guide-links li + li {
  margin-top: 0.5rem;
}

.app-guide-links a {
  font-weight: 600;
}

.app-detail-page .faq .faq-container {
  margin-top: 1rem;
}

.app-detail-page .faq .faq-item {
  position: relative;
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem 3rem 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.app-detail-page .faq .faq-item h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
}

.app-detail-page .faq .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s;
}

.app-detail-page .faq .faq-item .faq-content p {
  overflow: hidden;
  margin: 0;
}

.app-detail-page .faq .faq-item.faq-active .faq-content {
  grid-template-rows: 1fr;
  padding-top: 0.6rem;
}

.app-detail-page .faq .faq-item .faq-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.app-detail-page .faq .faq-item.faq-active .faq-toggle {
  transform: rotate(90deg);
}

.app-cards {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}

.app-card {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  height: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  background: var(--surface-color);
  color: var(--default-color);
  box-shadow: var(--card-shadow);
}

.app-card:hover {
  border-color: var(--accent-color);
}

.app-card > i {
  font-size: 1.6rem;
  color: var(--accent-color);
}

.app-card > span {
  display: flex;
  flex-direction: column;
}

.app-card strong {
  color: var(--heading-color);
}

.app-card span span {
  color: var(--muted-color);
  font-size: 0.9rem;
}

.app-card .app-card-version {
  margin-top: 0.25rem;
  font-weight: 600;
}

/* main.css pads every <section>; the parts of a guide method are sections too. */
.guide-method section.guide-part {
  padding: 1.25rem 0 0;
  background: none;
  overflow: visible;
}

.app-hero .container,
.guide-layout-page .page-title .container {
  text-align: left;
}

.app-hero .breadcrumbs ol,
.app-hero .device-compatibility,
.guide-layout-page .page-title .device-compatibility {
  justify-content: flex-start;
}

.guide-layout-page .page-title .device-compatibility-note {
  text-align: left;
}

/* Guides about an app: intro in the top half, setup, then features and questions. */
.app-intro + .app-intro {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--card-border);
}

.app-intro-name {
  font-weight: 700;
  color: var(--heading-color);
  margin: 1rem 0 0;
}

.guide-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.guide-jump a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--surface-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.guide-setup-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 1.25rem;
}

.app-tagline {
  color: var(--muted-color);
  max-width: 60ch;
}

.app-features .app-subhead {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-features .app-subhead i {
  color: var(--accent-color);
}

.app-hero .app-hero-grid h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

/* ---------- Information pages (includes/page-layout.php) ---------- */
.content-hero .app-hero-grid.no-aside {
  grid-template-columns: minmax(0, 1fr);
  max-width: 860px;
}

.content-hero-note {
  margin: 1rem 0 0;
  color: var(--muted-color);
  font-size: 0.95rem;
}

.content-hero-aside {
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 18px);
  box-shadow: var(--card-shadow);
  padding: 1.5rem;
}

.content-hero-aside h2,
.content-hero-aside h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.content-hero-aside > :last-child {
  margin-bottom: 0;
}

.content-hero-aside img {
  max-width: 100%;
  height: auto;
}

.content-head {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.content-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0.25rem 0 0.5rem;
}

.content-head p {
  color: var(--muted-color);
  margin: 0;
}


.content-cards .app-feature ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted-color);
  font-size: 0.95rem;
}

.content-cards .app-feature li + li {
  margin-top: 0.3rem;
}

.content-cards.two-up {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
}

.content-cards .app-feature.is-good > i {
  color: #1a7f4b;
}

.content-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 992px) {
  .content-split {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

.content-panel {
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 18px);
  box-shadow: var(--card-shadow);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.content-panel > :last-child {
  margin-bottom: 0;
}

.content-panel h2,
.content-panel h3 {
  font-size: 1.25rem;
}

.content-panel address {
  margin-bottom: 1rem;
}

.content-timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--layout-gap);
}

.content-timeline li {
  border-left: 3px solid var(--accent-color);
  padding: 0.25rem 0 0.25rem 1rem;
}

.content-timeline span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.content-timeline h3 {
  font-size: 1.05rem;
  margin: 0.25rem 0;
}

.content-timeline p {
  margin: 0;
  color: var(--muted-color);
}

.content-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--card-radius, 18px);
  background: var(--accent-color);
  color: #fff;
}

.content-cta h2 {
  color: #fff;
  font-size: clamp(1.3rem, 2.5vw, 1.6rem);
  margin: 0 0 0.35rem;
}

.content-cta p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.content-cta p a {
  color: #fff;
  text-decoration: underline;
}

.content-cta .btn-light {
  color: var(--accent-color);
  font-weight: 600;
}

.content-faq .faq-item {
  position: relative;
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 1rem 3rem 1rem 1.15rem;
  margin-bottom: 0.75rem;
}

.content-faq .faq-item h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
  cursor: pointer;
}

.content-faq .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s;
}

.content-faq .faq-item .faq-content > * {
  overflow: hidden;
  margin: 0;
}

.content-faq .faq-item.faq-active .faq-content {
  grid-template-rows: 1fr;
  padding-top: 0.6rem;
}

.content-faq .faq-item .faq-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  transition: transform 0.2s;
}

.content-faq .faq-item.faq-active .faq-toggle {
  transform: rotate(90deg);
}

/* Legal and reference documents */
.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

@media (min-width: 992px) {
  .doc-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
  }

  .doc-toc {
    position: sticky;
    top: 110px;
  }
}

.doc-toc {
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 1.1rem 1.25rem;
  font-size: 0.92rem;
}

.doc-toc-title {
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
}

.doc-toc ol {
  padding-left: 1.1rem;
  margin: 0;
}

.doc-toc li + li {
  margin-top: 0.35rem;
}

.doc-body {
  max-width: 78ch;
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 18px);
  box-shadow: var(--card-shadow);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow-wrap: anywhere;
}

.doc-body h2 {
  font-size: 1.3rem;
  margin: 2rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--card-border);
  scroll-margin-top: 100px;
}

.doc-body h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.doc-body h3,
.doc-body h4 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.doc-updated {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--callout-info-bg);
  color: var(--heading-color);
  font-size: 0.85rem;
  font-weight: 600;
}

.doc-body table {
  width: 100%;
  display: block;
  overflow-x: auto;
}

/* The hero uses the same width as the sections below it (guides.css narrows device-guide-page heroes). */
.page-title.app-hero .container {
  max-width: none;
}

@media (min-width: 576px) { .page-title.app-hero .container { max-width: 540px; } }
@media (min-width: 768px) { .page-title.app-hero .container { max-width: 720px; } }
@media (min-width: 992px) { .page-title.app-hero .container { max-width: 960px; } }
@media (min-width: 1200px) { .page-title.app-hero .container { max-width: 1140px; } }
@media (min-width: 1400px) { .page-title.app-hero .container { max-width: 1320px; } }

.content-cards .app-feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
}

.content-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.content-cards.two-up {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}

.content-timeline {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

/* ---------- Home page (loads the slim home bundle plus this file, not guides.css) ---------- */
.home-hero {
  padding: 140px 0 56px;
  background:
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent-color), transparent 86%), transparent 28%),
    linear-gradient(135deg, var(--background-color) 0%, color-mix(in srgb, var(--accent-color), transparent 95%) 100%);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-color), transparent 84%);
}

.home-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.home-hero .accent-text {
  color: var(--accent-color);
}

.home-hero .device-page-kicker,
.index-page .device-page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--accent-color);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-hero .device-page-intro {
  font-size: 1.05rem;
  max-width: 62ch;
}

.home-price {
  font-size: 1.15rem;
}

.index-page .setup-eyebrow {
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.index-page .device-compatibility {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.5rem;
}

.index-page .device-compatibility span {
  padding: 7px 11px;
  border: 1px solid color-mix(in srgb, var(--accent-color), transparent 72%);
  border-radius: 999px;
  color: var(--heading-color);
  background: color-mix(in srgb, var(--accent-color), transparent 95%);
  font-size: 13px;
  font-weight: 700;
}

.index-page .related-guides-links,
.home-more {
  margin: 1.25rem 0 0;
}

.home-more a,
.index-page .related-guides-links a {
  font-weight: 600;
}

.home-panel-gap {
  margin-top: 1.5rem;
}

.content-panel .content-cards {
  margin-top: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.content-panel .content-cards .app-feature {
  box-shadow: none;
}

.page-title.app-hero h1 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

/* Help articles (includes/help-page.php) */
.help-prose > :last-child {
  margin-bottom: 0;
}

.help-prose li + li {
  margin-top: 0.4rem;
}

.availability-table {
  overflow-x: auto;
  background: var(--surface-color);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius, 18px);
  box-shadow: var(--card-shadow);
}

.availability-table table {
  width: 100%;
  border-collapse: collapse;
}

.availability-table caption {
  caption-side: top;
  padding: 1rem 1.25rem 0.25rem;
  font-weight: 700;
  color: var(--heading-color);
}

.availability-table th,
.availability-table td {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--card-border);
  text-align: left;
  vertical-align: top;
}

.availability-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-color);
}

.availability {
  display: inline-block;
  margin: 0 0.4rem 0.3rem 0;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(26, 127, 75, 0.12);
  color: #1a7f4b;
  font-size: 0.85rem;
  font-weight: 600;
}

.availability.is-coming {
  background: var(--coming-bg);
  color: var(--coming-color);
}

@media (prefers-color-scheme: dark) {
  .availability {
    color: #7ee2a8;
  }
}

.help-cards {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr));
}

.guide-help {
  padding-top: 0;
}

.guide-help .app-subhead {
  margin-top: 0;
}

.help-group-title i {
  color: var(--accent-color);
}

.help-search-form {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 640px;
  margin-bottom: 1.5rem;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--surface-color);
  box-shadow: var(--card-shadow);
}

.help-search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--default-color);
  outline: none;
}

.help-search-form i {
  color: var(--accent-color);
}
