/* UrgeShield guides: local typography, readable articles, and native controls. */
.guide-page {
  --guide-ink: #0b1210;
  --guide-surface: #111d18;
  --guide-surface-raised: #17271f;
  --guide-paper: #f5f5f5;
  --guide-muted: #b1c2b9;
  --guide-teal: #4fbf9f;
  --guide-link: #7adfbe;
  --guide-border: #365346;
  --guide-focus: #b0f5dd;
  margin: 0;
  background: var(--guide-ink);
  color: var(--guide-paper);
  color-scheme: dark;
  font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.guide-page *,
.guide-page *::before,
.guide-page *::after { box-sizing: border-box; }

.guide-page :where(img, svg, video) { max-width: 100%; height: auto; }
.guide-page :where(input, select, textarea, button) { font: inherit; }
.guide-page [id] { scroll-margin-top: 1.5rem; }
.guide-page ::selection { background: #b0f5dd; color: #0b1210; }

.guide-page a {
  color: var(--guide-link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}
.guide-page a:hover { color: #c2f4e2; text-decoration-thickness: 2px; }
.guide-page :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--guide-focus);
  outline-offset: 4px;
}

.guide-header,
.guide-main,
.guide-footer {
  width: min(calc(100% - 64px), 1200px);
  margin-inline: auto;
  min-width: 0;
}
.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 22px;
  border-bottom: 1px solid var(--guide-border);
}
.guide-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 0;
  color: var(--guide-paper) !important;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
}
.guide-brand img { display: block; flex: 0 0 36px; width: 36px; height: 36px; object-fit: contain; }
.guide-brand .accent { color: var(--guide-teal); }
.guide-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.guide-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--guide-paper);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.guide-header nav a:hover,
.guide-header nav a[aria-current="page"] { background: var(--guide-surface-raised); color: var(--guide-link); }
.guide-header nav a[href*="apps.apple.com"] { padding-inline: 16px; background: var(--guide-teal); color: var(--guide-ink); }
.guide-header nav a[href*="apps.apple.com"]:hover { background: #7adfbe; color: var(--guide-ink); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 24px; color: var(--guide-muted); font-size: 0.8125rem; }
.breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.breadcrumbs span { min-width: 0; }
.article-header { padding: 32px 0 44px; margin-bottom: 44px; border-bottom: 1px solid var(--guide-border); }
.eyebrow { margin: 0 0 18px; color: var(--guide-link); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; line-height: 1.5; text-transform: uppercase; }
.article-header h1 { max-width: 22ch; margin: 0; font-size: clamp(2.35rem, 5vw, 4.35rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.12; text-wrap: balance; }
.article-header .lead { max-width: 68ch; margin: 24px 0 0; color: #d2ded7; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.7; }
.byline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin: 24px 0 0; color: var(--guide-muted); font-size: 0.8125rem; line-height: 1.6; }

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; align-items: start; gap: clamp(36px, 5vw, 64px); }
.article-body,
.article-sidebar { min-width: 0; }
.article-body { max-width: 74ch; }
.article-body > :first-child { margin-top: 0; }
.article-body p { margin: 0 0 1.3em; }
.article-body :where(h2, h3) { color: var(--guide-paper); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance; }
.article-body h2 { margin: 2.2em 0 0.75em; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.article-body h3 { margin: 1.7em 0 0.7em; font-size: 1.2rem; }
.article-body :where(ul, ol) { margin: 0 0 1.5em; padding-inline-start: 1.5em; }
.article-body li { margin: 0.55em 0; padding-inline-start: 0.15em; }
.article-body li::marker { color: var(--guide-link); font-weight: 600; }
.article-body li > :where(ul, ol) { margin-block: 0.6em; }
.article-body :where(strong, b) { color: var(--guide-paper); font-weight: 700; }
.article-body hr { margin-block: 2rem; border: 0; border-top: 1px solid var(--guide-border); }
.article-body :where(blockquote, .callout) {
  margin: 1.8em 0;
  padding: 22px 26px;
  border: 1px solid var(--guide-border);
  border-inline-start: 3px solid var(--guide-teal);
  border-radius: 0 12px 12px 0;
  background: var(--guide-surface);
  color: #dce7e0;
}
.article-body :where(blockquote, .callout) > :first-child { margin-top: 0; }
.article-body :where(blockquote, .callout) > :last-child { margin-bottom: 0; }
.article-body blockquote cite { display: block; margin-top: 12px; color: var(--guide-muted); font-size: 0.875rem; font-style: normal; }
.article-body details { margin-block: 12px; padding: 0 20px; border: 1px solid var(--guide-border); border-radius: 12px; background: var(--guide-surface); }
.article-body summary { min-height: 56px; padding-block: 16px; color: var(--guide-paper); font-weight: 600; line-height: 1.5; cursor: pointer; }
.article-body summary::marker { color: var(--guide-teal); }
.article-body details[open] { padding-bottom: 18px; }
.article-body details[open] > summary { margin-bottom: 12px; border-bottom: 1px solid var(--guide-border); }
.article-body details > :last-child { margin-bottom: 0; }
.article-body table { display: block; max-width: 100%; margin-block: 1.5em; border-collapse: collapse; overflow-x: auto; font-size: 0.9rem; }
.article-body :where(th, td) { padding: 12px 16px; border: 1px solid var(--guide-border); text-align: start; vertical-align: top; }
.article-body th { background: var(--guide-surface-raised); color: var(--guide-paper); font-weight: 700; }
.article-body caption { padding-bottom: 12px; text-align: start; color: var(--guide-muted); }
.article-body :where(pre, code) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.875em; }
.article-body pre { max-width: 100%; padding: 20px; overflow-x: auto; background: var(--guide-surface); border-radius: 10px; }

.calculator { margin-block: 32px; padding: clamp(20px, 3vw, 32px); border: 1px solid #4c7663; border-radius: 16px; background: var(--guide-surface); }
.article-body .calculator > :first-child { margin-top: 0; }
.calculator label { display: block; margin: 20px 0 8px; color: var(--guide-paper); font-size: 0.9375rem; font-weight: 600; line-height: 1.55; }
.calculator :where(input, select, textarea) {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid #78998a;
  border-radius: 8px;
  background: var(--guide-ink);
  color: var(--guide-paper);
  font-size: 1rem;
  line-height: 1.5;
}
.calculator label :where(input, select, textarea) { margin-top: 8px; font-weight: 400; }
.calculator input::placeholder,
.calculator textarea::placeholder { color: #a2b9ad; opacity: 1; }
.calculator [aria-invalid="true"] { border: 2px solid #f3b3b3; }
.calculator small { display: block; margin-top: 8px; color: var(--guide-muted); font-size: 0.8125rem; line-height: 1.65; }
.calc-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; margin-top: 28px; }
.calc-result { min-width: 0; padding: 20px 16px; border: 1px solid var(--guide-border); border-radius: 10px; background: var(--guide-ink); }
.calc-result strong { display: block; color: var(--guide-link); font-size: clamp(1.5rem, 3.5vw, 2rem); line-height: 1.25; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.calc-result span { display: block; margin-top: 8px; color: var(--guide-muted); font-size: 0.8125rem; line-height: 1.5; }
.calculator output { display: block; max-width: 100%; overflow-wrap: anywhere; }

.article-sidebar { position: sticky; top: 24px; padding: 26px; border: 1px solid var(--guide-border); border-radius: 16px; background: var(--guide-surface); font-size: 0.875rem; line-height: 1.7; }
.article-sidebar h2 { margin: 0 0 14px; font-size: 1.125rem; line-height: 1.4; letter-spacing: -0.01em; }
.article-sidebar p { margin: 0 0 18px; color: var(--guide-muted); }
.article-sidebar > a:not(.button),
.article-sidebar :where(nav, li) > a { display: flex; align-items: center; min-height: 44px; padding-block: 8px; }
.article-sidebar :where(ul, ol) { margin: 16px 0; padding-inline-start: 20px; }
.article-sidebar > :last-child { margin-bottom: 0; }
.guide-page .button,
.guide-page button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  border: 1px solid var(--guide-teal);
  border-radius: 9px;
  background: var(--guide-teal);
  color: var(--guide-ink);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.guide-page .button:hover,
.guide-page button:hover { background: #7adfbe; border-color: #7adfbe; color: var(--guide-ink); }
.article-sidebar .button { width: 100%; margin-top: 8px; }
.guide-page button:disabled { background: #8aaba0; border-color: #8aaba0; color: #16231e; cursor: not-allowed; }

.related-guides { margin-top: 72px; padding-block: 44px 64px; border-top: 1px solid var(--guide-border); }
.related-guides > h2 { margin: 0 0 24px; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.3; letter-spacing: -0.02em; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.guide-page .guide-card { display: flex; flex-direction: column; min-width: 0; min-height: 44px; padding: 26px; border: 1px solid var(--guide-border); border-radius: 14px; background: var(--guide-surface); color: var(--guide-paper); text-decoration: none; }
.guide-page .guide-card:hover { border-color: var(--guide-teal); background: var(--guide-surface-raised); }
.guide-card h3 { margin: 0 0 12px; font-size: 1.15rem; line-height: 1.4; letter-spacing: -0.015em; }
.guide-card p { margin: 0 0 22px; color: var(--guide-muted); font-size: 0.875rem; line-height: 1.75; }
.guide-card > span { display: block; margin-top: auto; color: var(--guide-link); font-size: 0.875rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.guide-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 28px 40px; border-top: 1px solid var(--guide-border); color: var(--guide-muted); font-size: 0.8125rem; }
.guide-footer p { max-width: 70ch; margin: 0; }
.guide-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.guide-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .article-body { max-width: none; }
  .article-sidebar { position: static; }
  .article-sidebar .button { width: auto; }
}

@media (max-width: 760px) {
  .guide-page { font-size: 17px; }
  .guide-header,
  .guide-main,
  .guide-footer { width: calc(100% - 40px); }
  .guide-header { flex-wrap: wrap; gap: 12px; padding-block: 16px; }
  .guide-header nav { width: 100%; justify-content: flex-start; gap: 4px 8px; }
  .guide-header nav a { padding-inline: 12px; }
  .guide-header nav a:first-child { margin-inline-start: -12px; }
  .breadcrumbs { margin-top: 16px; }
  .article-header { margin-bottom: 32px; padding-block: 20px 32px; }
  .article-header h1 { max-width: none; font-size: clamp(2rem, 8.5vw, 3rem); line-height: 1.16; letter-spacing: -0.025em; }
  .article-header .lead { margin-top: 20px; font-size: 1.0625rem; }
  .byline { margin-top: 18px; }
  .article-body h2 { margin-top: 1.9em; font-size: 1.5rem; }
  .article-body :where(blockquote, .callout) { padding: 18px 20px; }
  .article-body details { padding-inline: 16px; }
  .article-sidebar { padding: 22px; }
  .related-guides { margin-top: 48px; padding-block: 32px 44px; }
  .guide-grid { gap: 16px; }
  .guide-page .guide-card { padding: 22px; }
  .guide-footer { align-items: flex-start; padding-block: 24px 32px; }
}

@media (forced-colors: active) {
  .guide-page .button,
  .guide-page button,
  .guide-page .guide-card,
  .guide-page .calculator,
  .guide-page .article-sidebar { border: 1px solid CanvasText; }
  .guide-page :focus-visible { outline-color: Highlight; }
}
/* Keep the keyboard shortcut available without adding visual clutter. */
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 1000; padding: 12px 16px; background: #f5f5f5; color: #0b1210; }
.skip-link:focus { top: 12px; }
[hidden] { display: none !important; }
.article-toc { margin: 0 0 36px; padding: 22px 26px; border: 1px solid #354b43; border-radius: 16px; background: #101c17; }
.article-toc p { margin: 0 0 10px; font-weight: 700; color: #f5f5f5; }
.article-toc ul { margin: 0; padding-left: 20px; }
.article-toc a { display: inline-block; padding: 7px 0; }
.article-body h2 { scroll-margin-top: 24px; }
