/* Page-level hooks for the page scripts, and the few parts the shared stylesheet (gna-site.css) does not draw.
   Tokens from gna-theme.css only: no city names, no hex colors, no gradients, no shadows.
   Text color follows the surface: ink on ground and paper, white on deep. */

/* skip link */
.gna-skip{position:absolute;left:-999px;top:8px;z-index:30;padding:10px 14px;background:var(--paper);color:var(--ink);border-radius:var(--r)}
.gna-skip:focus{left:8px}

/* the signup overlay is opened by the script (class "active"); its two steps show one at a time */
.gna-modal-bg.active{display:grid}
.gna-modal-bg .signup-step{display:none}
.gna-modal-bg .signup-step.active{display:block}
.gna-modal-bg .gna-signup--modal{position:relative}
.gna-modal-bg .gna-field{margin-top:6px}
.gna-modal-bg #nameField{margin-top:var(--s-3)}
.gna-modal-bg .gna-signup-extras{margin-top:var(--s-2)}
.gna-modal-bg .row .gna-btn{width:100%}
.gna-modal-bg .small{margin-top:var(--s-4);font-size:14px;text-align:center;color:var(--muted)}

/* subscriber goal (shown only with numbers the site really returns) */
.gna-goal{margin-top:var(--s-4);font-size:14px;color:var(--muted)}
.gna-goal[hidden]{display:none}
.gna-goal .bar{height:8px;border-radius:99px;background:var(--hair);overflow:hidden;margin-top:var(--s-2)}
.gna-goal .bar>i{display:block;height:100%;width:0;background:var(--deep);transition:width .6s ease}

/* thanks list (the outlets that reported today's stories) */
.gna-card.thanks ul{display:flex;flex-wrap:wrap;gap:var(--s-2);margin-top:var(--s-3)}
.gna-card.thanks li{padding:4px 12px;border:1px solid var(--line);border-radius:99px;font-weight:600;font-size:14px;background:var(--paper)}
.gna-card.thanks li span{margin-left:6px;color:var(--muted);font-weight:500}
.gna-card.thanks{margin-top:var(--s-6)}

/* closing note under the stories */
.gna-about{margin-top:var(--s-6);padding-top:var(--s-4);border-top:1px solid var(--line);font-size:15px;color:var(--ink);max-width:62ch}
.gna-about a{font-weight:600}

/* status line while stories load or when they could not */
.gna-status{padding:var(--s-5) 0;color:var(--ink)}

/* a story with an inline picture: only ever the story's own cleared photo */
.gna-story__photo img{display:block}

/* the stored email of an older issue (shown only when the issue's stories cannot be listed) */
.gna-email{overflow-x:auto;overflow-wrap:anywhere;margin-top:var(--s-5)}
.gna-email img{max-width:100%;height:auto}
.gna-article #newsletterContent:empty{display:none}
.gna-article .gna-signup{margin-top:var(--s-6)}

/* digest and archive rows inside a card */
.gna-card .gna-rows{border:0;padding:0;margin-top:var(--s-2)}

/* link-in-bio page */
.gna-linklist{display:grid;gap:var(--s-3);max-width:560px;margin:var(--s-7) auto 0}
.gna-linkbtn{display:block;padding:var(--s-4) var(--s-5);min-height:56px;border:1px solid var(--line);border-radius:var(--r);background:var(--paper);color:var(--ink);text-decoration:none;font:700 19px/1.2 var(--display);letter-spacing:-.015em}
.gna-linkbtn small{display:block;margin-top:2px;font:400 14px/1.35 var(--body);letter-spacing:0;color:var(--muted)}
.gna-linkbtn:hover,.gna-linkbtn:focus-visible{text-decoration:underline}
.gna-linkbtn--primary{background:var(--deep);border-color:var(--deep);color:#fff}
.gna-linkbtn--primary small{color:#fff}
.gna-linkfoot{max-width:560px;margin:var(--s-6) auto 0;font-size:15px}

/* reading page (how this is made) */
.gna-prose{margin:var(--s-7) auto 0;padding:var(--s-5)}
@media (min-width:820px){.gna-prose{padding:var(--s-7)}}
.gna-prose h2{font:800 var(--t-h3)/1.15 var(--display);letter-spacing:-.02em;margin:var(--s-6) 0 var(--s-2)}
.gna-prose h2:first-child{margin-top:0}
.gna-prose p,.gna-prose li{margin-top:var(--s-3);max-width:65ch}
.gna-prose ul{list-style:disc;padding-left:var(--s-5)}
.gna-prose .lead-note{font:700 22px/1.25 var(--display);letter-spacing:-.02em}

/* the small public pages the server writes (change how often, link not found) */
.gna-simple{margin:var(--s-7) auto;max-width:560px}
.gna-simple h1{font:800 var(--t-h2)/1.05 var(--display);letter-spacing:-.03em}
.gna-simple p{margin-top:var(--s-3)}
.gna-simple form{margin-top:var(--s-4)}
.gna-simple .gna-btn+.gna-btn{margin-left:var(--s-2)}

/* a button inside the empty-state field keeps white text on its deep fill (the field sets links to deep) */
.gna-empty a.gna-btn{color:#fff}

/* the result line under a form (error with a pop dot, or the thanks box) */
#msg:not(:empty){margin-top:var(--s-4)}
.gna-empty .gna-simple{margin:0;max-width:560px}
.gna-simple h1{margin-top:var(--s-2)}

/* owner change 1: no dead deep field under the home hero. The pattern band is pushed down so its solid foot is cropped by the hero, the hero is shorter and the greeting bar sits right under the pattern. */
.gna-hero--home{min-height:0}
.gna-hero--home .gna-pattern{height:210px;bottom:-115px}
.gna-hero--home .gna-hero__in{padding-bottom:110px}
.gna-greet{padding:var(--s-4) 0 var(--s-5)}
@media (max-width:819px){.gna-hero--home .gna-pattern{height:140px;bottom:-44px}.gna-hero--home .gna-hero__in{padding-bottom:104px}}
