/* Scoped reader styles: the storefront's colors and navigation stay in charge. */
.oplatika-guide-page, .apple-turkey-article {
  --guide-bg:#f5faf7; --guide-surface:#fff; --guide-text:#172a20;
  --guide-muted:#52655a; --guide-line:#dce9e0; --guide-link:#087044;
  color:var(--guide-text);
}
html[data-theme="dark"] .oplatika-guide-page,
html[data-theme="dark"] .apple-turkey-article {
  --guide-bg:#07111f; --guide-surface:#0e1a2d; --guide-text:#f5f8ff;
  --guide-muted:#bdc9db; --guide-line:#293e54; --guide-link:#85edb3;
  color-scheme:dark;
}
@media(prefers-color-scheme:dark) {
  html:not([data-theme]) .oplatika-guide-page,
  html:not([data-theme]) .apple-turkey-article {
    --guide-bg:#07111f; --guide-surface:#0e1a2d; --guide-text:#f5f8ff;
    --guide-muted:#bdc9db; --guide-line:#293e54; --guide-link:#85edb3; color-scheme:dark;
  }
}
.oplatika-guide-page { margin:0; background:var(--guide-bg); font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; -webkit-text-size-adjust:100%; }
.oplatika-guide-page *, .apple-turkey-article *, .guide-lightbox * { box-sizing:border-box; }
.oplatika-guide-page .site-header { max-width:1056px; margin:auto; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:24px; }
.oplatika-guide-page .brand { display:flex; align-items:center; gap:10px; font-size:21px; font-weight:800; color:var(--guide-text); text-decoration:none; }
.oplatika-guide-page .brand img { border-radius:12px; }
.oplatika-guide-page .back { font-size:14px; font-weight:650; text-align:right; color:var(--guide-link); }
.oplatika-guide-page main { max-width:920px; margin:0 auto 64px; padding:0 20px; }
.apple-turkey-article { box-sizing:border-box; min-width:0; background:var(--guide-surface); border:1px solid var(--guide-line); border-radius:28px; padding:40px 36px; }
.apple-turkey-article a { color:var(--guide-link); text-underline-offset:3px; }
.apple-turkey-article a:focus-visible, .oplatika-guide-page .site-header a:focus-visible { outline:3px solid #18a55d; outline-offset:4px; }
.apple-turkey-article .article-header { margin-bottom:32px; }
.apple-turkey-article .eyebrow { color:var(--guide-link); font-size:13px; font-weight:750; letter-spacing:.04em; }
.apple-turkey-article h1 { margin:12px 0 18px; font-size:clamp(28px,4vw,42px); line-height:1.2; letter-spacing:-.025em; color:var(--guide-text); }
.apple-turkey-article .subtitle { color:var(--guide-muted); font-size:19px; }
.apple-turkey-article h2 { margin:40px 0 18px; font-size:26px; line-height:1.3; letter-spacing:-.015em; color:var(--guide-text); scroll-margin-top:24px; }
.apple-turkey-article p, .apple-turkey-article li { font-size:17px; line-height:1.7; overflow-wrap:break-word; color:var(--guide-text); }
.apple-turkey-article p { margin:0 0 18px; }
.apple-turkey-article ul, .apple-turkey-article ol { padding-left:26px; margin:12px 0 24px; }
.apple-turkey-article li+li { margin-top:7px; }
.apple-turkey-article .note { padding:14px 18px; border-left:3px solid #38bb74; background:var(--guide-bg); border-radius:0 12px 12px 0; font-size:14px; color:var(--guide-muted); }
.apple-turkey-article .contents { display:flex; flex-wrap:wrap; gap:10px 20px; padding:18px 0; margin:16px 0 28px; border-block:1px solid var(--guide-line); font-size:14px; }
.apple-turkey-article figure { margin:26px 0 30px; }
.apple-turkey-article figure img { display:block; width:100%; height:auto; border-radius:12px; background:#fff; }
.apple-turkey-article figure a { display:block; cursor:zoom-in; }
.apple-turkey-article figure.narrow { max-width:460px; margin-inline:auto; }
.apple-turkey-article figcaption { margin-top:10px; color:var(--guide-muted); font-size:13px; line-height:1.55; }
.apple-turkey-article .article-footer { padding-top:20px; margin-top:32px; border-top:1px solid var(--guide-line); }
.apple-turkey-article .cta { display:block; padding:16px 20px; border-radius:24px; text-align:center; color:#fff; background:linear-gradient(135deg,#09824b,#056438); box-shadow:inset 0 1px 1px rgba(255,255,255,.25); font-weight:750; text-decoration:none; line-height:1.5; }
@media(max-width:600px) {
  .oplatika-guide-page .site-header { padding:16px; gap:12px; }
  .oplatika-guide-page .brand { font-size:18px; }
  .oplatika-guide-page .back { font-size:12px; max-width:120px; }
  .oplatika-guide-page main { padding:0 10px; margin-bottom:24px; }
  .apple-turkey-article { border-radius:24px; padding:26px 18px; }
  .apple-turkey-article h2 { font-size:23px; margin-top:34px; }
  .apple-turkey-article p, .apple-turkey-article li { font-size:16px; line-height:1.65; }
  .apple-turkey-article .subtitle { font-size:17px; }
  .apple-turkey-article .contents { flex-direction:column; gap:12px; }
  .apple-turkey-article .cta { font-size:15px; }
}
/* A top-layer image viewer; the reader's scroll position is never replaced. */
.guide-lightbox {
  box-sizing:border-box; display:none; position:fixed; inset:0; z-index:2147483647;
  width:100%; height:100%; height:100dvh; max-width:none; max-height:none; margin:0;
  padding:calc(12px + env(safe-area-inset-top)) 12px calc(12px + env(safe-area-inset-bottom));
  border:0; background:rgba(5,12,22,.98); color:#fff;
  flex-direction:column; gap:12px; overscroll-behavior:contain;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.guide-lightbox[open] { display:flex; }
.guide-lightbox::backdrop { background:rgba(5,12,22,.85); }
.guide-lightbox-toolbar { display:flex; justify-content:space-between; gap:12px; flex-shrink:0; }
.guide-lightbox button { min-height:44px; padding:10px 16px; border:1px solid #516474; border-radius:22px; color:#fff; background:#1b3142; font:inherit; font-size:15px; font-weight:700; cursor:pointer; }
.guide-lightbox button:focus-visible, .guide-image-viewport:focus-visible { outline:3px solid #85edb3; outline-offset:2px; }
.guide-lightbox button:disabled { opacity:.5; }
.guide-image-close span { font-size:22px; line-height:1; margin-left:6px; }
.guide-image-viewport { min-height:0; min-width:0; flex:1; display:flex; align-items:center; justify-content:center; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y pinch-zoom; }
.guide-full-image { display:block; flex-shrink:0; max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }
.is-zoomed .guide-image-viewport { display:block; }
.is-zoomed .guide-full-image { max-width:none; max-height:none; margin:auto; }
.guide-image-caption { flex-shrink:0; margin:0; color:#dae6ef; font-size:13px; line-height:1.5; max-height:4.5em; overflow:auto; text-align:center; }
