/* NANA'S DAILY THOUGHT (2026-09-28). The theme's own tokens (nanas.css :root):
   --field / --t-* teal, --p-* pink, --y-* yellow, --cream, --gut, --sans, --serif.
   Every rule is under .nd or .nd-home so nothing else on the site moves.
   1.3.0 (2026-09-29): Nana's article on a cream "letter" card (the theme's
   .calcwrap precedent: cream ground, #14232B ink), the checklist, the share
   row, more thoughts, the archive's search. Pink stays a FILL on the field,
   never text there (theme rule); on cream, the deep pink --p-700 is text. */

/* ── a daily page and the archive ────────────────────────────────────────── */
.nd { background: var(--field, #106A7C); color: var(--on-field, #EFE9DC); font-family: var(--sans, sans-serif);
      padding-bottom: clamp(40px, 7vw, 90px); }
/* above the theme's fixed "bloom" layer (body::after, z-index 0), as the theme's own .blk>* are */
.nd > * { position: relative; z-index: 1; }
.nd a { color: var(--y-300, #FFEAA3); }
/* left/right only: a "margin: 0 auto" here would cancel every section's margin-top below */
.nd .wrapc { margin-left: auto; margin-right: auto; }
.nd [hidden] { display: none !important; }
.nd a:focus-visible, .nd button:focus-visible, .nd input:focus-visible, .nd summary:focus-visible {
  outline: 3px solid var(--cream, #FBF6EA); outline-offset: 3px; }
.nd-hero { padding: clamp(110px, 16vw, 170px) 0 clamp(20px, 4vw, 40px); }
.nd-hero .eyebrow a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }
.nd-saying { font-size: clamp(30px, 5.6vw, 58px); line-height: 1.08; letter-spacing: -.01em; margin: 14px 0 8px;
             color: var(--cream, #FBF6EA); font-weight: 800; max-width: 22ch; }
/* was --p-300 (2.6:1 on the field, and the theme keeps pink off field text); yellow is 5.2:1 */
.nd-by { color: var(--y-300, #FFEAA3); font-weight: 800; font-size: clamp(16px, 2vw, 20px); margin: 0; }
.nd-lede { font-size: clamp(16px, 2vw, 20px); max-width: 42ch; margin: 6px 0 0; color: var(--on-field-2, #E2ECE9); }

.nd-main { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: clamp(22px, 4vw, 56px); align-items: start; }
.nd-main.nd-novideo { grid-template-columns: minmax(0, 1fr); }
.nd-media { position: sticky; top: 20px; }
.nd-body { min-width: 0; max-width: 760px; }
.nd-player { position: relative; border-radius: 22px; overflow: hidden; background: var(--t-950, #03161C);
             box-shadow: 0 18px 50px rgba(3, 22, 28, .35); aspect-ratio: 9 / 16; }
.nd-player video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* the tip, on the field */
.nd-tipbox { background: rgba(3, 22, 28, .30); border: 1px solid rgba(255, 234, 163, .22); border-left: 4px solid var(--y-500, #FFD23F);
             border-radius: 0 18px 18px 0; padding: 16px 22px 18px; }
.nd .nd-tipbox h2 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--y-300, #FFEAA3); margin: 0 0 8px; line-height: 1.3; }
.nd .nd-tip { font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--cream, #FBF6EA); font-weight: 700; margin: 0; max-width: 46ch; }

/* ── the article: Nana's letter on cream ─────────────────────────────────── */
.nd-article { background: var(--cream, #FBF6EA); color: #14232B; border-radius: 22px; margin-top: 22px;
              padding: clamp(22px, 4.2vw, 46px) clamp(20px, 4.2vw, 50px); box-shadow: 0 18px 50px rgba(3, 22, 28, .30); }
.nd .nd-article p, .nd .nd-article li { color: #1C2F36; font-size: clamp(16.5px, 1.45vw, 18px); line-height: 1.7; max-width: 64ch; }
.nd .nd-article p { margin: 0; }
.nd .nd-article p + p { margin-top: 14px; }
.nd .nd-article .nd-intro { font-family: var(--serif, Georgia, serif); font-size: clamp(19px, 2vw, 22.5px); line-height: 1.55; color: var(--t-900, #052730); }
.nd .nd-article .nd-intro + p { margin-top: 16px; }
.nd .nd-article h2 { color: var(--t-900, #052730); font-size: clamp(21px, 2.3vw, 27px); line-height: 1.2; letter-spacing: -.02em;
                     margin: 0 0 12px; font-weight: 800; }
.nd .nd-article h2::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 5px; margin-bottom: 12px;
                             background: var(--p-500, #FF2E93); }
.nd .nd-article a { color: var(--p-700, #8A0F4E); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px;
                    text-underline-offset: 3px; }
.nd .nd-article a:hover { color: var(--t-900, #052730); }
.nd .nd-article strong { color: var(--t-900, #052730); }
.nd .nd-article a:focus-visible, .nd .nd-article button:focus-visible, .nd .nd-article summary:focus-visible,
.nd .nd-article input:focus-visible + .nd-mark { outline: 3px solid var(--t-600, #0D5A6D); outline-offset: 3px; }
.nd-sec { margin-top: clamp(30px, 4vw, 42px); }
.nd .nd-article .nd-outro { margin-top: 28px; font-family: var(--serif, Georgia, serif); font-style: italic; color: var(--t-900, #052730); }

/* what it means, age by age */
.nd .nd-ages { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.nd .nd-ages li { background: #fff; border: 1px solid rgba(5, 39, 48, .10); border-top: 4px solid var(--y-500, #FFD23F);
                  border-radius: 14px; padding: 14px 16px 16px; font-size: 16px; line-height: 1.6; max-width: none; }
.nd .nd-ages li:nth-child(2) { border-top-color: var(--t-400, #1EC9CF); }
.nd .nd-ages li:nth-child(3) { border-top-color: var(--p-500, #FF2E93); }
.nd .nd-ages li:nth-child(4) { border-top-color: var(--b-500, #4A90FF); }
.nd .nd-ages li strong { display: block; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--t-700, #0A4757);
                         margin-bottom: 4px; }

/* try this tonight: a numbered list, and a checklist once the script is in */
.nd .nd-steps { list-style: none; counter-reset: ndstep; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.nd .nd-steps > li { counter-increment: ndstep; position: relative; background: #fff; border: 1px solid rgba(5, 39, 48, .12);
                     border-radius: 16px; padding: 14px 18px 14px 62px; max-width: none; }
.nd .nd-steps > li::before { content: counter(ndstep); position: absolute; left: 16px; top: 13px; width: 32px; height: 32px;
                             border-radius: 50%; background: var(--t-400, #1EC9CF); color: var(--on-teal, #03272A); font-weight: 800;
                             font-size: 16px; line-height: 32px; text-align: center; }
.nd .nd-steps.is-live > li { padding: 0; transition: background .25s, border-color .25s; }
.nd .nd-steps.is-live > li::before { content: none; }
.nd .nd-step { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px 14px 16px; cursor: pointer; }
.nd .nd-check { position: absolute; opacity: 0; width: 32px; height: 32px; margin: 0; cursor: pointer; }
.nd .nd-mark { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--t-400, #1EC9CF); background: #fff;
               color: var(--t-700, #0A4757); font-weight: 800; font-size: 16px; line-height: 28px; text-align: center;
               transition: background .25s, color .25s, transform .25s var(--ease, ease); }
.nd .nd-step-text { padding-top: 3px; }
.nd .nd-steps > li.is-done { background: #E6F6F3; border-color: rgba(30, 201, 207, .55); }
.nd .nd-steps > li.is-done .nd-mark { background: var(--t-400, #1EC9CF); color: transparent; transform: scale(1.06);
                                      position: relative; }
.nd .nd-steps > li.is-done .nd-mark::after { content: ""; position: absolute; left: 10px; top: 5px; width: 8px; height: 14px;
                                             border: solid var(--on-teal, #03272A); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.nd .nd-steps > li.is-done .nd-step-text { color: #3A5058; }
.nd .nd-steps-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 12px; min-height: 30px; }
.nd .nd-article .nd-steps-status { margin: 0; font-weight: 700; font-size: 15px; color: var(--t-700, #0A4757); }
.nd .nd-steps[data-done="all"] + .nd-steps-bar .nd-steps-status { color: var(--p-700, #8A0F4E); }
.nd .nd-steps-reset { background: none; border: 0; padding: 4px 2px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
                      color: var(--t-700, #0A4757); text-decoration: underline; text-underline-offset: 3px; }

/* words you can use: speech bubbles */
.nd .nd-phrases { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.nd .nd-phrases li { background: #fff; border: 2px solid var(--t-200, #8FE8EA); border-radius: 22px 22px 22px 6px;
                     padding: 12px 20px; font-family: var(--serif, Georgia, serif); font-style: italic;
                     font-size: clamp(18px, 1.8vw, 20px); line-height: 1.45; color: var(--t-900, #052730); max-width: 52ch; }
.nd .nd-phrases li:nth-child(even) { border-color: var(--p-200, #FFB3D8); margin-left: clamp(0px, 4vw, 40px); }

/* at Nana's Place */
.nd .nd-at { background: #E7F4F2; border-left: 4px solid var(--t-400, #1EC9CF); border-radius: 0 16px 16px 0; padding: 18px 22px 20px; }

/* questions parents ask */
.nd .nd-faq details { background: #fff; border: 1px solid rgba(5, 39, 48, .14); border-radius: 14px; margin-top: 10px; overflow: hidden; }
.nd .nd-faq summary { cursor: pointer; list-style: none; display: flex; gap: 12px; align-items: flex-start; padding: 15px 18px;
                      font-weight: 800; font-size: 17px; line-height: 1.4; color: var(--t-900, #052730); }
.nd .nd-faq summary::-webkit-details-marker { display: none; }
.nd .nd-faq summary::before { content: "+"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--t-900, #052730);
                              color: var(--cream, #FBF6EA); font-weight: 800; line-height: 23px; text-align: center; font-size: 17px; }
.nd .nd-faq details[open] summary::before { content: "\2013"; background: var(--p-700, #8A0F4E); }
.nd .nd-faq details p { padding: 0 18px 16px 54px; font-size: 16.5px; }

/* share this thought */
.nd-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 24px 0 0; }
.nd .nd-share-h { width: 100%; margin: 0 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase;
                  color: var(--on-field-2, #E2ECE9); }
.nd .nd-share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 100px; border: 0;
                    background: var(--t-800, #073744); color: var(--cream, #FBF6EA); font: inherit; font-size: 14.5px; font-weight: 700;
                    text-decoration: none; cursor: pointer; box-shadow: 0 0 0 2px rgba(143, 232, 234, .55);
                    transition: background .2s, transform .2s var(--ease, ease); }
.nd .nd-share-btn:hover { background: var(--t-700, #0A4757); transform: translateY(-1px); }
.nd .nd-share-btn svg { flex: none; }

/* more thoughts */
.nd-more { margin-top: clamp(36px, 6vw, 64px); }
.nd .nd-more h2, .nd .nd-visit h2 { font-size: clamp(22px, 2.6vw, 30px); color: var(--cream, #FBF6EA); margin: 0 0 16px; }
.nd-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nd .nd-card.nd-card-row { display: grid; grid-template-columns: 74px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 14px; row-gap: 4px;
                           align-items: center; background: var(--t-800, #073744); border-radius: 18px; padding: 10px 14px 10px 10px;
                           box-shadow: 0 0 0 1px rgba(143, 232, 234, .16); transition: background .2s; }
.nd .nd-card-row:hover { background: var(--t-700, #0A4757); }
.nd .nd-card-row .nd-thumb { grid-row: 1 / span 2; width: 74px; border-radius: 12px; }
.nd .nd-card-row .nd-play { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.nd .nd-card-row .nd-play::after { left: 12px; top: 9px; border-width: 6px 0 6px 9px; }
.nd .nd-card-row .nd-card-saying { align-self: end; font-size: 15px; }
.nd .nd-card-row time { align-self: start; }
.nd .nd-card-row .nd-card-tip { display: none; }

/* come see Nana's Place */
.nd-visit { margin-top: clamp(30px, 5vw, 56px); }
.nd-visit-in { background: var(--t-800, #073744); border: 1px solid rgba(3, 22, 28, .4); border-radius: 22px; padding: clamp(22px, 3.4vw, 36px); }
.nd .nd-visit p { font-size: 17px; line-height: 1.6; max-width: 60ch; color: var(--on-dark, #E8E2D8); }

.nd-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }
.nd .btn, .nd-home .btn { text-decoration: none; }
.nd-btn2 { background: var(--t-400, #1EC9CF) !important; color: var(--on-teal, #03272A) !important; }

.nd-pn { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: clamp(28px, 5vw, 56px);
         padding-top: 18px; border-top: 1px solid rgba(143, 232, 234, .22); font-weight: 700; }
.nd-pn a { text-decoration: none; }
.nd-pn-all { order: 2; }
.nd-pn-next { order: 3; margin-left: auto; text-align: right; }

/* ── the archive ─────────────────────────────────────────────────────────── */
.nd-tools { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: center; margin: 0 0 12px; }
.nd-search { display: flex; gap: 8px; flex: 1 1 340px; max-width: 620px; margin: 0; }
.nd-search input { flex: 1 1 auto; min-width: 0; padding: 13px 20px; border-radius: 100px; border: 0; background: var(--cream, #FBF6EA);
                   color: var(--t-950, #03161C); font: inherit; font-size: 16px; box-shadow: 0 0 0 2px rgba(143, 232, 234, .7); }
.nd-search input::placeholder { color: #4B6168; opacity: 1; }
.nd .nd-search input:focus-visible { outline-color: var(--y-300, #FFEAA3); }
.nd .nd-status { min-height: 1.6em; margin: 0 0 16px; font-weight: 700; font-size: 15px; color: var(--on-field-2, #E2ECE9); }
#nd-results { margin-bottom: 26px; }

.nd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: clamp(14px, 2.4vw, 26px); }
.nd-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--cream, #FBF6EA) !important; }
.nd-thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 16;
            background: var(--t-800, #073744); }
.nd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease, ease); }
.nd-card:hover .nd-thumb img { transform: scale(1.04); }
.nd-play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%;
           background: var(--p-500, #FF2E93); box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.nd-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid; border-width: 11px 0 11px 17px;
                  border-color: transparent transparent transparent #fff; }
.nd-card-saying { font-weight: 800; font-size: 15.5px; line-height: 1.3; }
.nd-card-tip { font-size: 14px; line-height: 1.45; color: var(--on-field-2, #E2ECE9); }
.nd-card time { font-size: 13px; color: var(--on-field-2, #E2ECE9); }
.nd .nav-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; font-weight: 700; }
.nd-empty { font-size: 18px; }

@media (max-width: 900px) {
  .nd-more-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
}
@media (max-width: 720px) {
  .nd-main { grid-template-columns: 1fr; }
  .nd-media { position: static; }
  .nd-player { max-width: 360px; width: 100%; margin: 0 auto; }
  .nd-article { border-radius: 18px; }
  .nd .nd-faq details p { padding-left: 18px; }
  .nd-pn { flex-direction: column; }
  .nd-pn-next { margin-left: 0; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .nd *, .nd *::before, .nd *::after { transition: none !important; }
}

/* ── the homepage block ───────────────────────────────────────────────────── */
.nd-home { background: var(--cream, #FBF6EA); color: var(--t-950, #03161C); padding: clamp(28px, 5vw, 56px) var(--gut, 20px);
           font-family: var(--sans, sans-serif); }
.nd-home-in { max-width: 74em; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
              gap: clamp(18px, 4vw, 48px); align-items: center; }
.nd-player-sm { border-radius: 18px; }
.nd-home .eyebrow { color: var(--p-600, #C4176B) !important; }
.nd-home-saying { font-size: clamp(24px, 3.6vw, 40px); line-height: 1.12; margin: 10px 0 12px; color: var(--t-900, #052730); font-weight: 800; }
.nd-home-links { font-weight: 700; font-size: 16px; margin: 0; }
.nd-home-links a { color: var(--p-600, #C4176B); }
@media (max-width: 640px) {
  .nd-home-in { grid-template-columns: 1fr; }
  .nd-player-sm { max-width: 240px; width: 100%; margin: 0 auto; }
  .nd-home-text { text-align: center; }
}
