/* ============ TrueWebCare Daily: the archive and an issue ============
   Public marketing pages rendered by Rails (layouts/newsletter), dressed with
   the website's shape: the dark inner-page band, white cards on the page
   gray, the website's footer. Tokens only, from base.css. The band keeps its
   own look in dark mode because everything on it is drawn in the tokens that
   do not change there (--hero-bg, --on-dark, --on-dark-dim, --navy-2) and in
   fractions of white, the way the website's inner heroes are. */
.nl-body { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.nl-main { flex: 1 0 auto; }

/* The website's signed-out header, on chrome.css's bar: the Get Started pill
   in the links row, as site/index.html has it. Its label stays white on
   hover, which the row's own link hover would otherwise take to ink. */
.app-nav-links a.btn { color: var(--on-blue); border-radius: 999px; }
.app-nav-links a.btn:hover { color: var(--on-blue); }

/* ---------- The band ---------- */
.nl-hero { background: var(--hero-bg); padding: 84px 0 88px; }
/* The eyebrow pill, turned inside out for the band. */
.nl-hero .eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: .8125rem;
  color: var(--on-dark); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 12px; padding: 4px 10px;
}
.nl-hero h1 {
  color: var(--on-dark); font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 600; line-height: 1.12;
  margin: 14px 0 18px; max-width: 760px;
}
.nl-hero .lead { color: var(--on-dark-dim); font-size: 1.125rem; max-width: 680px; margin: 0 0 28px; }
.nl-hero-note { color: var(--on-dark-dim); font-size: .85rem; margin: 12px 0 0; }
.nl-hero :focus-visible { outline-color: var(--on-dark); }
.nl-flash { margin: 0 0 16px; max-width: 520px; }

/* ---------- The sign-up form ----------
   One row: the address, then the button. The label is read, not seen. */
.nl-form { display: flex; gap: 10px; max-width: 520px; }
.nl-form-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nl-form input[type="email"] { flex: 1 1 auto; min-width: 0; }
.nl-form input[type="submit"] { flex: 0 0 auto; white-space: nowrap; }
/* On the band the field is a faint white box with light type, and the primary
   button turns white with ink type, as on every dark band. */
.nl-hero .nl-form input[type="email"] {
  color: var(--on-dark); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22);
}
.nl-hero .nl-form input[type="email"]::placeholder { color: var(--on-dark-dim); }
.nl-hero .nl-form input[type="email"]:focus {
  background: rgba(255, 255, 255, .12); border-color: var(--on-dark); box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}
.nl-hero .nl-form input[type="submit"] { background: var(--on-dark); color: var(--navy-2); box-shadow: none; }
.nl-hero .nl-form input[type="submit"]:hover { background: rgba(250, 250, 250, .86); color: var(--navy-2); }
/* The checklist's form: the same row, with its opt-in tickbox on a line below. */
.nl-form.is-wrap { flex-wrap: wrap; }
.nl-optin { flex: 1 0 100%; display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--on-dark-dim); cursor: pointer; }
.nl-optin input { margin-top: 3px; accent-color: var(--on-dark); }

/* ---------- Sections under the band ---------- */
.nl-section { padding: 48px 0; }
.nl-section h2 { font-size: 1.5rem; font-weight: 600; margin: 0 0 24px; }

/* The band's two halves: the pitch, and the newest issue as a white card. */
.nl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.nl-hero-grid .nl-hero-pitch { min-width: 0; }
.nl-latest { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.nl-latest-pic { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.nl-latest-in { padding: 20px 22px 22px; }
.nl-latest h2 { font-size: 1.3rem; line-height: 1.3; margin: 6px 0 8px; }
.nl-latest h2 a { color: var(--navy); }
.nl-latest p { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.nl-latest .nl-chip { margin: 0; color: var(--link); font-size: .72rem; }
.nl-latest-go { font-weight: 700; color: var(--link); }
.nl-latest :focus-visible { outline-color: var(--blue); }

/* A topic label: small green capitals over a title. */
.nl-chip { color: var(--link); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 4px; }

/* The weekday rota: one strip of seven, pulled up over the band's foot,
   today's day in ink. */
.nl-rota {
  list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin: -28px 0 0; position: relative;
}
.nl-rota li { padding: 14px 14px; border-right: 1px solid var(--line); }
.nl-rota li:last-child { border-right: 0; }
.nl-rota-day { display: block; color: var(--faint); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.nl-rota strong { color: var(--navy); font-size: .92rem; font-weight: 600; line-height: 1.3; }
.nl-rota li.is-today { background: var(--hero-bg); }
.nl-rota li.is-today .nl-rota-day { color: var(--amber); }
.nl-rota li.is-today strong { color: var(--on-dark); }

/* The archive: one list, a row per issue with its picture. */
.nl-archive { padding-top: 40px; }
.nl-issues { list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.nl-issue-row {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.nl-issue-row:last-child { border-bottom: 0; }
.nl-issue-row.is-bare { grid-template-columns: minmax(0, 1fr) auto; }
.nl-thumb { display: block; width: 96px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--blue-soft); }
.nl-issue-row h3 { font-size: 1.05rem; line-height: 1.3; margin: 0; }
.nl-issue-row h3 a { color: var(--navy); }
.nl-issue-row h3 a:hover { color: var(--link); }
.nl-date { color: var(--faint); font-size: .85rem; white-space: nowrap; }
.nl-empty { color: var(--muted); }

/* ---------- One issue ---------- */
.nl-read { padding-top: 32px; }
.nl-issue { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* The header picture first, the card's full width, cropped to a steady
   landscape so a tall photo can't push the title off a phone's screen. */
.nl-issue-header { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* Date and title in ink on the white card, the title sized to leave room for
   the first lines of the body on a phone. */
.nl-masthead { padding: 32px 40px 0; }
.nl-masthead-date { color: var(--muted-2); font-size: .85rem; margin: 0 0 8px; }
.nl-masthead h1 { color: var(--navy); font-size: clamp(1.375rem, 2.6vw, 1.875rem); font-weight: 600; line-height: 1.25; margin: 0; }
/* The body in readable type: 17px on every screen. Links in ink, underlined,
   so a reader can tell them from the bold runs. */
.nl-issue-body { padding: 8px 40px 40px; font-size: 17px; line-height: 1.65; color: var(--text); }
.nl-issue-body h2 { font-size: 1.25rem; line-height: 1.3; margin: 28px 0 10px; text-align: left; }
.nl-issue-body h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.nl-issue-body p { margin: 0 0 14px; }
.nl-issue-body :is(ul, ol) { margin: 0 0 14px; padding-left: 22px; }
.nl-issue-body li { margin-bottom: 6px; }
.nl-issue-body li > p { margin: 0; }
.nl-issue-body a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.nl-issue-body a:hover { color: var(--blue-dark); }
.nl-issue-body strong { color: var(--navy); }
.nl-issue-body img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.nl-issue-body blockquote { border-left: 2px solid var(--line-strong); padding-left: 16px; color: var(--muted); margin: 0 0 14px; }
.nl-issue-body hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
/* The sign-up line under every issue, in the body's own type. */
.nl-referral { padding: 0 40px 40px; margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); }
.nl-referral a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.nl-referral strong { color: var(--navy); }

/* The way to the issue's Facebook post, where readers comment. */
.nl-discuss { padding: 0 40px 16px; margin: 0; font-size: 17px; line-height: 1.65; color: var(--text); }
.nl-discuss a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }

/* The sign-up card under an issue. */
.nl-next { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; margin: 24px 0; }
.nl-next h2 { margin-bottom: 6px; }
.nl-next > p { color: var(--muted); margin: 0 0 18px; }

/* ---------- The website's footer ----------
   site/css/style.css's .footer rules, restated because that stylesheet is a
   build artefact this app serves and does not load here. */
.footer { background: var(--card); border-top: 1px solid var(--line); padding: 40px 0; }
.footer-inner { text-align: center; color: var(--muted-2); font-size: .92rem; }
.footer-inner strong { color: var(--navy); }
.footer-vet { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 4px; }
.footer-vet .ico { width: 1.05em; height: 1.05em; flex: none; color: var(--muted-2); }
.footer-vet a, .footer-fine a { color: var(--muted-2); text-decoration: none; transition: color var(--ease); }
.footer-vet a:hover, .footer-fine a:hover { color: var(--navy); text-decoration: none; }
.footer-fine { color: var(--muted-2); font-size: .83rem; margin-top: 8px; }

/* ---------- Phones ---------- */
@media (max-width: 900px) {
  .nl-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .nl-rota { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nl-rota li { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .nl-hero { padding: 56px 0 60px; }
  .nl-form { flex-direction: column; }
  .nl-form input[type="submit"] { width: 100%; }
  .nl-section { padding: 36px 0; }
  .nl-rota { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nl-rota li { padding: 12px 14px; }
  .nl-issue-row { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px 16px; }
  .nl-thumb { width: 72px; height: 52px; }
  .nl-issue-row .nl-date { grid-column: 2; }
  .nl-issue-row.is-bare { grid-template-columns: minmax(0, 1fr); }
  .nl-issue-row.is-bare .nl-date { grid-column: 1; }
  .nl-masthead { padding: 22px 20px 0; }
  .nl-issue-body { padding: 4px 20px 28px; }
  .nl-discuss { padding: 0 20px 16px; }
  .nl-referral { padding: 0 20px 28px; }
}
