/* Shared styling for static guides to match main app */
:root { color-scheme: dark; }

body.apple {
  --bg-start: #0a0a0a;
  --bg-end: #1a1a1a;
  --text: #f5f5f7;
  --muted: rgba(245,245,247,0.6);
  --card: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.12);
  background: radial-gradient(1200px 800px at 50% -200px, #202022 0%, var(--bg-start) 40%), linear-gradient(180deg, var(--bg-start), var(--bg-end));
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, Inter, "SF Pro Text", Segoe UI, Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

/* Containers align with app widths */
.apple header, .apple main { max-width: 980px; margin-left: auto; margin-right: auto; }
@media (min-width: 1280px) { .apple header, .apple main { max-width: 1100px; } }

/* Header */
.apple header { padding: 24px 16px 8px; }
.apple header .home { color: rgba(245,245,247,0.55); text-decoration: none; font-size: 14px; }
.apple header .home:hover { color: #fff; text-decoration: underline; }

/* Headings & text scale */
.apple h1 { font-weight: 700; font-size: clamp(28px, 4.2vw, 44px); line-height: 1.1; letter-spacing: -0.02em; margin: 8px 0 12px; }
.apple h2 { font-weight: 600; font-size: clamp(20px, 2.6vw, 28px); line-height: 1.18; letter-spacing: -0.015em; margin: 24px 0 12px; }
.apple h3 { font-weight: 600; font-size: clamp(18px, 2.0vw, 22px); line-height: 1.22; letter-spacing: -0.01em; margin: 18px 0 10px; }
.apple p, .apple li { font-weight: 400; line-height: 1.6; letter-spacing: -0.005em; color: rgba(245,245,247,0.92); }
.apple .muted { color: rgba(245,245,247,0.6); }

/* Article body */
.apple main { padding: 0 16px 40px; }
.apple article { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; backdrop-filter: saturate(140%) blur(10px); }
@media (min-width: 640px) { .apple article { padding: 24px; } }
/* Ad blocks */
.apple .ad { margin: 16px 0; display: flex; justify-content: center; }

/* Lists */
.apple ul { padding-left: 20px; }
.apple ul li { margin: 6px 0; }

/* Links */
.apple a { color: #93c5fd; }
.apple a:hover { color: #bfdbfe; }

/* Callouts */
.apple .callout { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.25); border-radius: 10px; padding: 12px 14px; color: rgba(16,185,129,0.9); }

/* Tables */
.apple table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.apple th, .apple td { border-bottom: 1px solid var(--border); padding: 8px 6px; text-align: left; }

/* Code */
.apple code { background: rgba(255,255,255,0.06); border: 1px solid var(--border); padding: 1px 6px; border-radius: 6px; }

/* Images */
.apple .hero { border-radius: 12px; overflow: hidden; border: 1px solid var(--border); margin: 12px 0 16px; }
.apple .hero img { display: block; width: 100%; height: auto; }
/* Responsive image container */
.apple picture img { width: 100%; height: auto; display: block; }

/* Brand row to match main page */
.apple .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.apple .brand img { display: block; height: auto; }
.apple .brand .brand-name { font-weight: 700; letter-spacing: -0.02em; }
.apple .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Footer to match main page links */
.apple footer { padding: 0 16px 40px; color: rgba(245,245,247,0.6); font-size: 14px; }
.apple footer .inner { max-width: 80rem; margin: 0 auto; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.apple footer nav.links { display: flex; gap: 16px; }
.apple footer a { color: rgba(245,245,247,0.75); text-decoration: none; }
.apple footer a:hover { color: #fff; text-decoration: underline; }
