:root {
  --pif-brand: #D65A13;
  --pif-action: #B9470B;
  --pif-accent: #315F8A;
  --pif-surface: #F5F6F7;
  --pif-header-linen: #F3EBDF;
  --pif-text: #24272B;
  --pif-text-secondary: #59616B;
  --pif-border: #D8DDE3;
  --pif-serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
  --pif-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--pif-surface); color: var(--pif-text); font: 16px/1.65 var(--pif-sans); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--pif-action); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 2; top: 10px; left: 10px; transform: translateY(-180%); padding: 10px 16px; background: var(--pif-action); color: white; }
.skip-link:focus { transform: translateY(0); }
.site-header { width: 100%; max-width: 100%; box-sizing: border-box; padding: 0 max(24px, calc((100% - 1240px) / 2)); min-height: 92px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: var(--pif-header-linen); border-bottom: 1px solid var(--pif-border); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 760; letter-spacing: -.025em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 40px; height: 40px; display: block; }
.footer-brand .brand-mark { width: 36px; height: 36px; }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.site-header nav a:hover, .site-footer nav a:hover, .site-header nav a[aria-current] { color: var(--pif-action); }
.help-main { width: min(1240px, calc(100% - 64px)); margin: auto; padding: 64px 0 0; }
.eyebrow { margin: 0 0 18px; color: var(--pif-action); font-size: .76rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, p { text-wrap: pretty; }
h1, h2 { font-family: var(--pif-serif); font-weight: 500; letter-spacing: -.04em; }
h1 { max-width: 21ch; margin: 0 0 24px; font-size: clamp(2.8rem, 5vw, 4.5rem); line-height: 1.08; }
.lede { max-width: 58ch; margin: 0 0 42px; color: var(--pif-text-secondary); font-size: 1.18rem; }
.how-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--pif-accent); font-size: .8rem; font-weight: 760; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 5px; text-transform: uppercase; }
h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.5vw, 2.75rem); line-height: 1.15; }
.site-footer { min-height: 180px; padding: 50px max(24px, calc((100% - 1240px) / 2)); display: grid; grid-template-columns: 1fr 1.5fr auto; grid-template-rows: auto auto; align-items: center; gap: 16px 32px; background: white; border-top: 1px solid var(--pif-border); }
.site-footer > p { margin: 0; color: var(--pif-text-secondary); font-size: .86rem; }
.site-footer nav { justify-content: flex-end; }
.copyright { grid-column: 3; text-align: right; }
@media (max-width: 720px) {
  .site-header { width: 100%; padding: 12px max(16px, calc((100% - 1240px) / 2)); min-height: 76px; flex-wrap: wrap; }
  .site-header nav { width: 100%; gap: 16px; }
  .site-header nav a { letter-spacing: .04em; }
  .help-main { width: calc(100% - 40px); padding-top: 48px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { justify-content: flex-start; }
  .copyright { grid-column: 1; text-align: left; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Keep the Help landing page's standalone header aligned with the shared menu. */
.site-header nav[aria-label="Primary navigation"]{gap:12px 24px}
.site-header nav[aria-label="Primary navigation"] a{font-size:1rem;letter-spacing:0;text-transform:none;font-weight:650;min-height:44px}
.site-header nav a[aria-current]{color:var(--pif-action);text-decoration:underline;text-underline-offset:5px}
@media(max-width:760px){.site-header{flex-wrap:wrap;justify-content:center;padding:16px 0;gap:10px}.site-header nav[aria-label="Primary navigation"]{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 16px}.site-header nav[aria-label="Primary navigation"] a{justify-content:center}}

/* Clean top navigation hub cards */
.help-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 36px 0 64px;
}
.help-hub-card {
  background: white;
  border: 1.5px solid var(--pif-border);
  border-radius: 16px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.help-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--pif-action);
  box-shadow: 0 12px 26px rgba(185, 71, 11, 0.1);
}
.help-hub-card .hub-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pif-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pif-action);
  margin-bottom: 16px;
  transition: background .2s ease;
}
.help-hub-card:hover .hub-icon {
  background: rgba(185, 71, 11, 0.1);
}
.help-hub-card .hub-title {
  font-family: var(--pif-sans);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--pif-text);
  line-height: 1.25;
  margin: 0 0 8px;
}
.help-hub-card .hub-action {
  font-size: .88rem;
  color: var(--pif-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.help-hub-card .hub-action .arrow {
  color: var(--pif-action);
  font-weight: 700;
  transition: transform .2s ease;
}
.help-hub-card:hover .hub-action .arrow {
  transform: translateY(3px);
}

/* Four major help sections */
.help-section {
  border-top: 1px solid var(--pif-border);
  padding: 56px 0 20px;
  scroll-margin-top: 32px;
}
.section-tag {
  display: inline-block;
  font: 800 .74rem/1.3 var(--pif-sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pif-action);
  margin-bottom: 10px;
}
.help-section h2 {
  font: 500 clamp(2rem, 3.5vw, 2.75rem)/1.15 var(--pif-serif);
  letter-spacing: -.03em;
  margin: 0 0 12px;
}
.help-section .section-intro {
  color: var(--pif-text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 66ch;
  margin: 0 0 32px;
}

/* 3-per-line topic card grid */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.topic-card {
  background: white;
  border: 1.5px solid var(--pif-border);
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  min-height: 48px;
}
.topic-card:hover {
  transform: translateY(-3px);
  border-color: var(--pif-action);
  box-shadow: 0 8px 22px rgba(185, 71, 11, 0.09);
}
.topic-card .topic-text {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--pif-text);
  transition: color .18s ease;
}
.topic-card:hover .topic-text {
  color: var(--pif-action);
}
.topic-card .topic-arrow {
  color: var(--pif-accent);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
  flex-shrink: 0;
  margin-top: 1px;
  transition: transform .18s ease, color .18s ease;
}
.topic-card:hover .topic-arrow {
  color: var(--pif-action);
  transform: translateX(4px);
}

/* Security & Policies callout banner at bottom */
.help-policies-card {
  background: white;
  border: 1px solid var(--pif-border);
  border-radius: 16px;
  padding: 32px;
  margin: 56px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}
.help-policies-card h3 {
  font: 600 1.35rem/1.2 var(--pif-serif);
  margin: 0;
  color: var(--pif-text);
}
.help-policies-card p {
  color: var(--pif-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.policies-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  margin-top: 6px;
  padding-top: 18px;
  border-top: 1px solid var(--pif-border);
}
.policies-links a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--pif-accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.policies-links a:hover {
  color: var(--pif-action);
}

/* Supported devices grid & cards */
.device-compat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 28px;
}
.device-compat-card {
  background: white;
  border: 1.5px solid var(--pif-border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.device-compat-card:hover {
  transform: translateY(-3px);
  border-color: var(--pif-action);
  box-shadow: 0 8px 22px rgba(185, 71, 11, 0.08);
}
.device-compat-card.coming-soon {
  border-style: dashed;
  background: var(--pif-surface-linen, #FBF8F3);
}
.device-compat-card .device-badge {
  display: inline-block;
  align-self: flex-start;
  font: 750 .72rem/1.3 var(--pif-sans);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pif-action);
  background: #FFE8DC;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.device-compat-card .device-badge.green {
  color: #1F6642;
  background: #D8F2E3;
}
.device-compat-card .device-badge.blue {
  color: #1E4265;
  background: #D8EBFF;
}
.device-compat-card .device-badge.muted {
  color: #6C584C;
  background: #EFE8DD;
}
.device-compat-card h3 {
  font: 600 1.35rem/1.2 var(--pif-serif);
  margin: 0 0 10px;
  color: var(--pif-text);
}
.device-compat-card .device-models {
  color: var(--pif-text-secondary);
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0 0 18px;
  flex-grow: 1;
}
.device-compat-card .device-specs {
  color: var(--pif-text-secondary);
  font-size: .88rem;
  line-height: 1.5;
  margin: 0 0 16px;
  flex-grow: 1;
}
.device-compat-card .device-specs strong {
  color: var(--pif-text);
  font-weight: 600;
}
.device-compat-card .card-link {
  font-size: .88rem;
  font-weight: 650;
  color: var(--pif-action);
  text-decoration: none;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--pif-border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.device-compat-card .card-link:hover {
  text-decoration: underline;
}

@media(max-width:960px){
  .help-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .device-compat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media(max-width:600px){
  .help-hub-grid { grid-template-columns: 1fr; gap: 14px; margin: 28px 0 44px; }
  .topic-grid { grid-template-columns: 1fr; gap: 12px; }
  .device-compat-grid { grid-template-columns: 1fr; gap: 14px; }
  .device-compat-card { padding: 20px; }
  .topic-card { padding: 18px 16px; }
  .help-section { padding: 40px 0 20px; }
  .help-policies-card { padding: 24px 20px; margin: 40px 0; }
}
