/*
Theme Name: Optical-glasses-child
Template: optical-glasses
Version: 1.0.1786015629
Updated: 2026-08-06 11:27:09

*/


/* =========================================================
   Palette + base size  (edit here to restyle the whole site)
   Palette: "Newsstand"
   ========================================================= */
#nph-page {
    --c-primary:   #2d4ea2; /* comic blue: links, brand      */
    --c-secondary: #24407f; /* deep blue: h3, cite           */
    --c-accent:    #e23b2e; /* comic red: accents, hover     */
    --c-gold:      #f2b22b; /* comic gold: third strip tone  */
    --c-ink:       #17181d; /* main text                     */
    --c-bg:        #fbf7ee; /* page background (cream)        */
    --c-bg-alt:    #f3ecdd; /* panels, zebra rows            */
    --c-muted:     #6b6256; /* secondary text, fine print    */
    --c-border:    #e4dbc8; /* borders                       */
 
    /* base size for body copy, lists and tables (NOT headings, NOT fine print) */
    --fs-base: 18px;
 
    --radius: 12px;
    --shadow: 0 10px 30px rgba(23, 24, 29, .10);
 
    color: var(--c-ink);
}
 
/* ---- Headings ---- */
#nph-page h1 { font-size: clamp(32px, 5.2vw, 46px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; margin: 0 0 12px; }
#nph-page h2 { position: relative; font-size: 29px; font-weight: 800; line-height: 1.24; margin: 52px 0 20px; padding-bottom: 14px; border: 0; }
#nph-page h3 { font-size: 21px; font-weight: 700; margin: 30px 0 10px; color: var(--c-secondary); }
 
/* signature: three-tone trade-dress strip under every h2 */
#nph-page h2::after {
    content: ""; position: absolute; left: 0; bottom: 0;
    width: 74px; height: 5px; border-radius: 3px;
    background: linear-gradient(90deg,
        var(--c-primary) 0 40%, var(--c-accent) 40% 74%, var(--c-gold) 74% 100%);
}
 
/* ---- Body copy (base size from variable) ---- */
#nph-page p  { font-size: var(--fs-base); line-height: 1.78; margin: 0 0 18px; }
#nph-page li { font-size: var(--fs-base); margin-bottom: 8px; }
#nph-page a  { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
#nph-page a:hover { color: var(--c-accent); }
#nph-page strong { font-weight: 700; }
 
/* ---- Hero ---- */
#nph-page .nph-hero {
    position: relative; isolation: isolate;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 40px 36px 34px;
    margin: 8px 0 28px;
    overflow: hidden;
}
#nph-page .nph-hero > * { position: relative; z-index: 1; }
/* trade-dress strip across the top of the hero */
#nph-page .nph-hero::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; z-index: 0;
    background: linear-gradient(90deg,
        var(--c-primary) 0 33.33%, var(--c-accent) 33.33% 66.66%, var(--c-gold) 66.66% 100%);
}
/* faint halftone dots in the corner (pure CSS, no image) */
#nph-page .nph-hero::after {
    content: ""; position: absolute; right: -18px; top: 8px; width: 200px; height: 200px; z-index: 0;
    background-image: radial-gradient(var(--c-border) 2px, transparent 2.6px);
    background-size: 14px 14px; opacity: .55; pointer-events: none;
}
#nph-page .nph-hero h1 { margin-bottom: 8px; }
#nph-page .nph-tagline { font-size: 20px; line-height: 1.5; color: var(--c-muted); margin: 0; }
#nph-page .nph-tagline em { font-style: italic; }
 
/* ---- Tables (base size from variable) ---- */
#nph-page .wp-block-table { margin: 28px 0; }
#nph-page table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-base); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--c-bg); }
#nph-page thead th { background: var(--c-ink); color: #fff; text-align: left; padding: 12px 16px; font-size: 14px; letter-spacing: .02em; }
#nph-page td { padding: 12px 16px; border-top: 1px solid var(--c-border); vertical-align: top; }
#nph-page tbody tr:nth-child(even) td { background: var(--c-bg-alt); }
#nph-page td strong { color: var(--c-ink); }
 
/* ---- Quote ---- */
#nph-page .wp-block-quote { border: 0; border-left: 4px solid var(--c-accent); background: var(--c-bg-alt); margin: 28px 0; padding: 20px 26px; border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); }
#nph-page .wp-block-quote p { margin-bottom: 10px; }
#nph-page .wp-block-quote cite { display: block; font-style: normal; font-weight: 700; color: var(--c-secondary); font-size: 14px; }
 
/* ---- FAQ (works for plain .nph-q paragraphs AND the Yoast FAQ block) ---- */
#nph-page .nph-faq { margin: 24px 0; }
 
/* plain paragraph version */
#nph-page .nph-faq .nph-q { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--c-border); font-weight: 700; }
#nph-page .nph-faq .nph-q:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#nph-page .nph-faq .nph-q strong { color: var(--c-primary); }
 
/* Yoast FAQ block: .wp-block-yoast-faq-block > .schema-faq-section (strong question + p answer) */
#nph-page .schema-faq { margin: 24px 0; }
#nph-page .schema-faq-section { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--c-border); }
#nph-page .schema-faq-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
#nph-page .schema-faq-question { display: block; font-size: var(--fs-base); line-height: 1.5; font-weight: 700; color: var(--c-primary); margin: 0 0 8px; }
#nph-page .schema-faq-answer { font-size: var(--fs-base); line-height: 1.78; margin: 0; }
 
/* ---- Fine print (own size, not the base variable) ---- */
#nph-page .nph-note { font-size: 14px; line-height: 1.7; color: var(--c-muted); }
 
/* ---- Images (no aspect-ratio cropping) ---- */
#nph-page .wp-block-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
#nph-page .wp-block-columns { align-items: center; }
 
/* ---- Responsive ---- */
@media (max-width: 781px) {
    #nph-page h1 { font-size: 32px; }
    #nph-page h2 { font-size: 24px; }
    #nph-page .nph-hero { padding: 28px 22px 24px; }
    #nph-page .nph-tagline { font-size: 18px; }
}
 