/* News list and article (FLO-982). Ported from docs/design/legal.css (.ngrid .ncard .pull .ctabox .related .byline .share),
   pages.css (.pagehead .crumbs .tourhero) and archive.css (.pager .edblock). Tokens come from the theme (--st-*, --wp--*). */

/* Something upstream (Woo block-theme CSS) makes main a flex row; keep the news pages in normal flow. */
main.np-main { display: block; }
main.np-main > * { margin-block: 0; }
.np { --st-r-card: var(--wp--custom--radius--card, 16px); --st-r-pill: var(--wp--custom--radius--pill, 999px); }
.np__wrap { max-width: var(--wp--style--global--wide-size, 72rem); margin-inline: auto; }
.np__col { max-width: 52rem; }
.np h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.05; margin: 8px 0 12px; }
.np h2 { font-size: var(--wp--preset--font-size--h-2, 1.875rem); }
.np .lead { font-size: var(--wp--preset--font-size--lead); color: var(--st-ink-2); max-width: 40rem; margin: 0 0 12px; }
.np--article .lead { margin-bottom: 28px; }
.np__head { padding-top: clamp(36px, 6vw, 64px); padding-bottom: 8px; }
.np__list { padding-top: 24px; padding-bottom: clamp(48px, 7vw, 88px); }
.np .small { font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); }

.np .crumbs { font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); display: flex; gap: 8px; flex-wrap: wrap; }
.np .crumbs a { color: inherit; text-decoration: none; }
.np .crumbs a:hover { text-decoration: underline; }

/* Filters: links, so they work without a script */
.np .filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.np .pill { padding: 6px 14px; border-radius: var(--st-r-pill); border: 1px solid var(--st-hairline-dark); background: var(--wp--preset--color--canvas); font: 600 var(--wp--preset--font-size--xs)/1 var(--wp--preset--font-family--inter); color: var(--st-ink); text-decoration: none; transition: background var(--st-ease), color var(--st-ease), border-color var(--st-ease); }
.np .pill:hover { border-color: var(--st-ink); text-decoration: none; }
.np .pill[aria-current="true"] { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-color: var(--st-ink); }

/* Card grid: every card stretches to the tallest in its row */
.np .ngrid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.np .ncard { display: flex; flex-direction: column; border: 1px solid var(--st-hairline); border-radius: var(--st-r-card); overflow: hidden; text-decoration: none; color: inherit; transition: border-color var(--st-ease); background: var(--wp--preset--color--canvas); }
.np .ncard:hover { border-color: var(--st-ink); text-decoration: none; }
.np .nimg { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--st-subtle); flex: none; }
.np .nimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 400ms ease; }
.np .ncard:hover .nimg img { transform: scale(1.04); }
.np .nbody { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.np .nmeta { display: flex; gap: 10px; align-items: center; min-height: 28px; }
.np .nd { font-family: var(--wp--preset--font-family--mono); font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); }
.np .ntag { font-size: var(--wp--preset--font-size--xs); font-weight: 600; padding: 4px 10px; border: 1px solid var(--st-hairline-dark); border-radius: var(--st-r-pill); }
.np .ncard .nt { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; }
.np .nx { font-size: var(--wp--preset--font-size--small); color: var(--st-ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.np .nmore { font-size: var(--wp--preset--font-size--small); font-weight: 600; margin-top: auto; padding-top: 6px; }
.np .npaging { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; font-size: var(--wp--preset--font-size--small); font-weight: 600; }
.np .npaging a, .np .npaging span { padding: 6px 12px; text-decoration: none; }
.np .npaging .current { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-radius: var(--st-r-pill); }

/* Article */
.np .byline { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 8px 0 0; }
.np--article h1 { font-size: clamp(2rem, 4vw + 0.5rem, 3.25rem); margin: 12px 0 20px; }
.np .tourhero { border-radius: var(--wp--custom--radius--media, 24px); overflow: hidden; aspect-ratio: 16 / 9; background: var(--st-subtle); margin-bottom: 8px; }
.np .tourhero a { display: block; height: 100%; }
.np .tourhero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np .prose { max-width: 40rem; margin-top: 28px; }
.np .prose > * { margin-block: 0 14px; }
.np .prose h2 { margin: 36px 0 12px; font-size: 1.375rem; }
.np .prose figure { margin: 24px 0; }
.np .prose figure img { width: 100%; height: auto; display: block; border-radius: var(--st-r-card); }
.np .prose figure a { display: block; }
.np .prose figcaption { font-size: var(--wp--preset--font-size--xs); color: var(--st-ink-2); margin-top: 8px; }

/* Pull quote and link box: the two insertable patterns */
.np .prose .pull, .np .pull { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; border-left: 3px solid var(--st-ink); padding-left: 20px; margin: 32px 0; }
.np .prose .pull .small { display: block; font-size: var(--wp--preset--font-size--small); font-weight: 500; letter-spacing: 0; margin-top: 8px; }
.np .ctabox { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--st-hairline-dark); border-radius: var(--st-r-card); margin: 28px 0; background: var(--st-subtle); }
.np .ctabox > * { margin: 0; }

.np .share { display: flex; gap: 10px; align-items: center; margin: 28px 0; flex-wrap: wrap; }
.np .btn { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: var(--st-r-pill); border: 1px solid var(--st-hairline-dark); background: var(--st-subtle); color: var(--st-ink); font: 600 var(--wp--preset--font-size--xs)/1 var(--wp--preset--font-family--inter); text-decoration: none; cursor: pointer; transition: background var(--st-ease), color var(--st-ease), border-color var(--st-ease); }
.np .btn:hover { background: var(--st-ink); color: var(--wp--preset--color--canvas); border-color: var(--st-ink); text-decoration: none; }

.np .edblock { padding: clamp(36px, 5vw, 64px) 0 24px; }
.np .edblock h2 { margin: 0 0 16px; }
.np .related { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .np .related { grid-template-columns: repeat(3, 1fr); } }
.np .related .nbody { padding: 14px 16px 16px; }
.np .related .nt { font-size: 1rem; }

.np .pager { display: flex; justify-content: space-between; gap: 16px; padding: 24px 0 72px; }
.np .pager a { text-decoration: none; font-weight: 600; font-size: var(--wp--preset--font-size--small); display: grid; gap: 2px; }
.np .pager small { color: var(--st-ink-2); font-weight: 500; }
.np .pager a:hover b { text-decoration: underline; }
@media (max-width: 640px) { .np .nbody { padding: 16px; } .np .pager { flex-direction: column; } .np .pager a[style] { text-align: left !important; } }
