/*
Theme Name: Niagara Pros
Description: Directory theme for Niagara Pros. Yellow field, black slab headings, green only for passed checks.
Version: 0.4.2
Requires PHP: 7.4
Text Domain: niagarapros
*/

/* -------------------------------------------------------------------------
 * Tokens
 * Yellow is the brand and the main action. Green means "this check passed"
 * and is used for nothing else. Ink carries structure.
 * ---------------------------------------------------------------------- */

:root {
	--np-yellow: #FFD02E;
	--np-yellow-deep: #F3BC00;
	--np-yellow-pale: #FFF3C2;
	--np-ink: #161512;
	--np-ink-2: #45433C;
	--np-muted: #67645B;
	--np-paper: #FFFFFF;
	--np-paper-2: #F5F4EF;
	--np-line: #DDDBD2;
	--np-line-strong: #8C897E;
	--np-green: #0B6B4B;
	--np-green-pale: #DDF3E7;
	--np-red: #A12020;
	--np-red-pale: #FDECEC;
	--np-text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--np-display: Bitter, Rockwell, "Roboto Slab", Georgia, serif;
	--np-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161512' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Three Latin-only weights of Inter (about 77 KB together). Weight 500 falls back to 400. */
@font-face { font-family: Inter; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: Inter; src: url("fonts/inter-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

@font-face {
	font-family: Bitter;
	src: url("fonts/bitter-display.woff") format("woff");
	font-weight: 600 900;
	font-style: normal;
	font-display: swap;
}

/* -------------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 var(--np-text); color: var(--np-ink); background: var(--np-paper); }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
img, svg { max-width: 100%; }
img { height: auto; }
[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 3px solid var(--np-ink); outline-offset: 3px; }
.np-cta :focus-visible { outline-color: var(--np-yellow); }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.np-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 12px 16px; background: var(--np-ink); color: #fff; border-radius: 8px; }
.np-skip:focus { left: 8px; }

.np-wrap { max-width: 1208px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.np-section { padding-top: 64px; padding-bottom: 64px; }
.np-section + .np-section { padding-top: 0; }
.np-band { background: var(--np-paper-2); }
.np-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.np-section__head a { display: inline-block; padding: 8px 0; font-weight: 600; }

.np-h2 { font: 700 32px/1.15 var(--np-display); letter-spacing: -0.01em; }
.np-h3 { font: 700 24px/1.2 var(--np-display); }
.np-muted { color: var(--np-muted); font-size: 14px; }
.np-note { color: var(--np-muted); font-size: 14px; max-width: 72ch; margin-top: 20px; }

/* Text links get a highlighter stroke on hover, like marking a listing in the phone book. */
.np-content a:hover, .np-footer a:hover, .np-soon a:hover, .np-crumbs a:hover, .np-section__head a:hover, .np-hero__alt a:hover, .np-claim a:not(.np-btn):hover, .np-row__more:hover, .np-record a:hover, .np-tips a:hover, .np-empty a:hover { background: var(--np-yellow); text-decoration-color: transparent; }
.np-hero .np-hero__alt a:hover { background: var(--np-yellow-pale); }
/* The licence ledger reads like a record, so its links only underline. */
.np-ledger a { text-decoration: none; }
.np-ledger a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* -------------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------------- */

.np-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--np-ink); border-radius: 8px; background: #fff; color: var(--np-ink); font: 600 16px/1.2 var(--np-text); text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.12s ease; }
.np-btn:hover { background: var(--np-yellow-pale); }
.np-btn--ink, .np-btn--navy { background: var(--np-ink); color: #fff; }
.np-btn--ink:hover, .np-btn--navy:hover { background: #3A3832; }
.np-btn--call, .np-btn--accent { background: var(--np-yellow); font-variant-numeric: tabular-nums; }
.np-btn--call:hover, .np-btn--accent:hover { background: var(--np-yellow-deep); }
.np-btn--outline-light { background: transparent; border-color: #fff; color: #fff; }
.np-btn--outline-light:hover { background: rgba(255, 255, 255, 0.14); }
.np-btn--lg { min-height: 56px; padding: 0 28px; font-size: 18px; }

/* -------------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------------- */

.np-header { background: var(--np-yellow); border-bottom: 2px solid var(--np-ink); }
.home .np-header { border-bottom: 0; }
.np-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; padding-top: 12px; padding-bottom: 12px; }
.np-logo { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.np-logo__word { font: 600 23px/1 var(--np-display); letter-spacing: -0.01em; }
.np-logo__word b { font-weight: 900; }
.np-nav { display: flex; flex-wrap: wrap; gap: 0 26px; margin-left: auto; }
.np-nav a { padding: 11px 0 9px; border-bottom: 2px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; }
.np-nav a:hover, .np-nav a[aria-current="page"] { border-bottom-color: var(--np-ink); }
.np-topbar__add { min-height: 44px; }

/* -------------------------------------------------------------------------
 * "I need ... in ..." : the sentence is the search
 * ---------------------------------------------------------------------- */

.np-need__line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.16em 0.3em; font: 800 clamp(30px, 5.2vw, 60px)/1.14 var(--np-display); letter-spacing: -0.015em; }
.np-need__part { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.16em 0.3em; max-width: 100%; }
.np-pick { display: inline-block; max-width: 100%; }
.np-pick select { max-width: 100%; margin: 0; padding: 0.06em 1em 0.1em 0.2em; border: 0; border-radius: 0.16em; background: #fff var(--np-chevron) no-repeat right 0.32em center / 0.4em auto; color: var(--np-ink); font: inherit; letter-spacing: inherit; text-overflow: ellipsis; cursor: pointer; -webkit-appearance: none; appearance: none; }
.np-pick select option { font: 400 16px/1.4 var(--np-text); letter-spacing: 0; }
.np-need > .np-btn { margin-top: 24px; }

.np-need--compact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.np-need--compact .np-need__line { align-items: center; gap: 10px 12px; font: 600 17px/1.3 var(--np-text); letter-spacing: 0; }
.np-need--compact .np-need__part { align-items: center; gap: 10px 12px; }
.np-need--compact .np-pick select { min-height: 46px; padding: 0 40px 0 14px; border: 2px solid var(--np-ink); border-radius: 8px; background-position: right 14px center; background-size: 12px auto; }
.np-need--compact .np-pick select:hover { background-color: var(--np-yellow-pale); }
.np-need--compact > .np-btn { margin-top: 0; min-height: 46px; }

/* -------------------------------------------------------------------------
 * Home: hero
 * ---------------------------------------------------------------------- */

.np-hero { background: var(--np-yellow); padding-top: 40px; padding-bottom: 72px; }
.np-hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px 48px; align-items: center; }
.np-hero__inner--solo { grid-template-columns: minmax(0, 1fr); }
.np-hero__title { margin-bottom: 20px; font: 600 18px/1.35 var(--np-text); }
.np-hero__lede { max-width: 56ch; margin-top: 28px; font-size: 18px; line-height: 1.5; }
.np-hero__counts { margin-top: 10px; font-size: 16px; }
.np-hero__alt { margin-top: 14px; font-size: 16px; }
.np-hero__alt a { font-weight: 600; }

.np-namesearch { margin-top: 28px; max-width: 460px; }
.np-namesearch label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 600; }
.np-namesearch__row { display: flex; gap: 8px; }
.np-namesearch input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 46px; padding: 0 14px; border: 2px solid var(--np-ink); border-radius: 8px; background: #fff; color: var(--np-ink); font: inherit; -webkit-appearance: none; appearance: none; }
.np-namesearch .np-btn { min-height: 46px; }

/* The record of recent checks: proof of the promise, shown before any explanation of it. */
.np-ledger { padding: 20px 22px 6px; border: 2px solid var(--np-ink); border-radius: 14px; background: #fff; }
.np-ledger__title { font: 700 16px/1.3 var(--np-text); }
.np-ledger__list { margin-top: 12px; }
.np-ledger__item { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 0 10px; padding: 9px 0 11px; border-top: 1px solid var(--np-line); font-size: 14px; color: var(--np-muted); }
.np-ledger__item .np-ico { margin-top: 6px; }
.np-ledger__item a { display: inline-block; padding: 4px 0; color: var(--np-ink); font-size: 16px; font-weight: 600; }
.np-ledger__item span { display: block; }
.np-ledger__foot { padding: 4px 0; border-top: 1px solid var(--np-line); font-size: 14px; }
.np-ledger__foot a { display: inline-block; padding: 10px 0; font-weight: 600; }

/* -------------------------------------------------------------------------
 * Home: services index and towns
 * ---------------------------------------------------------------------- */

.np-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px; padding: 2px; }
.np-soon { max-width: 72ch; margin-top: 18px; color: var(--np-ink-2); }
.np-soon a { font-weight: 600; }
.np-soon__cta { display: block; margin-top: 4px; }
.np-index__cell { display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 168px; padding: 20px; background: #fff; box-shadow: 0 0 0 2px var(--np-ink); text-decoration: none; transition: background-color 0.12s ease; }
.np-index__cell:hover, .np-index__cell:focus-visible { background: var(--np-yellow); }
.np-index__icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; margin-bottom: 10px; border-radius: 10px; background: var(--np-yellow); transition: background-color 0.12s ease; }
.np-index__cell:hover .np-index__icon, .np-index__cell:focus-visible .np-index__icon { background: #fff; }
.np-index__name { font: 700 20px/1.2 var(--np-display); }
.np-index__desc { font-size: 14.5px; color: var(--np-ink-2); }
.np-index__count { margin-top: auto; padding-top: 10px; font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.np-index__count--none { font-weight: 400; color: var(--np-muted); }
.np-index__cell:hover .np-index__count--none { color: var(--np-ink-2); }

.np-towns { display: flex; flex-wrap: wrap; gap: 10px; }
.np-towns a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 2px solid var(--np-ink); border-radius: 999px; background: #fff; font-size: 15px; font-weight: 600; text-decoration: none; transition: background-color 0.12s ease; }
.np-towns a:hover { background: var(--np-yellow); }
.np-towns a[aria-current="page"] { background: var(--np-ink); color: #fff; }

/* -------------------------------------------------------------------------
 * Home: what the marks mean
 * ---------------------------------------------------------------------- */

.np-how { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; align-items: start; }
.np-how__intro p { max-width: 44ch; margin-top: 16px; font-size: 17px; color: var(--np-ink-2); }
.np-legend { border-top: 2px solid var(--np-ink); }
.np-legend__row { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 6px 24px; padding: 18px 0; border-bottom: 1px solid var(--np-line); }
.np-legend dt { display: flex; align-items: center; gap: 10px; align-self: start; font-weight: 600; }
.np-legend dd { color: var(--np-ink-2); }

/* -------------------------------------------------------------------------
 * Checks and tags
 * ---------------------------------------------------------------------- */

.np-ico { flex: 0 0 auto; }
.np-ico--ok { color: var(--np-green); }
.np-ico--open { color: var(--np-line-strong); }

.np-checks { display: flex; flex-direction: column; gap: 10px; }
.np-check { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.4; }
.np-check .np-ico { margin-top: 1px; }
.np-check__label { display: block; font-weight: 600; }
.np-check--open .np-check__label { font-weight: 500; color: var(--np-ink-2); }
.np-check__detail { display: block; font-size: 14px; color: var(--np-muted); }

.np-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.np-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border: 1px solid var(--np-line-strong); border-radius: 4px; background: #fff; color: var(--np-ink-2); font-size: 12.5px; font-weight: 600; line-height: 1; }
.np-tag--paid { border-color: var(--np-ink); background: var(--np-yellow); color: var(--np-ink); }

/* Badges as the core plugin names them, for any place that still prints them. */
.np-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.np-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 4px; background: var(--np-paper-2); font-size: 13px; font-weight: 600; }
.np-badge--verified { background: var(--np-green-pale); color: var(--np-green); }
.np-badge--featured { background: var(--np-yellow); }

/* -------------------------------------------------------------------------
 * Listing rows. A directory is a list: one business per row, the name first,
 * what was checked next, the phone number last.
 * ---------------------------------------------------------------------- */

.np-rows, .np-cards { container-type: inline-size; border-top: 2px solid var(--np-ink); }
.np-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(220px, auto); gap: 18px 40px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--np-line); }
.np-row--featured { margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; background: var(--np-yellow-pale); }
.np-row__name { font: 700 24px/1.2 var(--np-display); letter-spacing: -0.005em; }
.np-row__name a { text-decoration: none; }
.np-row__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.np-row__trade { margin-top: 8px; font-size: 15px; font-weight: 600; }
.np-row__area { font-size: 15px; color: var(--np-muted); }
.np-row--featured .np-row__area, .np-row--featured .np-check__detail { color: var(--np-ink-2); }
.np-row__actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: center; }
.np-row__more { align-self: center; padding: 8px 10px; font-size: 15px; font-weight: 600; }

@container (max-width: 860px) {
	.np-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.np-row__actions { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 16px; text-align: left; }
	.np-row__actions .np-btn { flex: 0 1 300px; }
}
@container (max-width: 560px) {
	.np-row { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px 0; }
	.np-row--featured { margin-left: -12px; margin-right: -12px; padding-left: 12px; padding-right: 12px; }
	.np-row__name { font-size: 22px; }
	.np-row__actions { flex-direction: column; align-items: stretch; gap: 4px; text-align: center; }
	.np-row__actions .np-btn { flex: 0 0 auto; }
}

/* -------------------------------------------------------------------------
 * Listing page
 * ---------------------------------------------------------------------- */

.np-pagehead { padding-top: 26px; padding-bottom: 30px; }
.np-pagehead h1 { font: 800 clamp(30px, 4.4vw, 46px)/1.1 var(--np-display); letter-spacing: -0.015em; }
.np-pagehead__sub { max-width: 64ch; margin-top: 12px; font-size: 17px; color: var(--np-ink-2); }
.np-pagehead .np-need { margin-top: 24px; }
.np-pagehead .np-namesearch { margin-top: 20px; }
.np-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-bottom: 14px; font-size: 14px; color: var(--np-muted); }
.np-crumbs a { padding: 6px 0; color: var(--np-ink-2); }

.np-listing { padding-bottom: 72px; }
.np-empty { padding: 28px; border: 2px dashed var(--np-line-strong); border-radius: 14px; color: var(--np-ink-2); }
.np-empty strong { display: block; margin-bottom: 4px; color: var(--np-ink); font: 700 22px/1.25 var(--np-display); }
.np-empty__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.np-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.np-pagination:empty { display: none; }
.np-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 2px solid var(--np-ink); border-radius: 8px; font-weight: 600; text-decoration: none; }
.np-pagination a.page-numbers:hover { background: var(--np-yellow); }
.np-pagination .page-numbers.current { background: var(--np-ink); color: #fff; }
.np-pagination .page-numbers.dots { border-color: transparent; }

.np-tips { margin-top: 56px; padding: 28px; border-radius: 14px; background: var(--np-paper-2); }
.np-tips > p { max-width: 74ch; margin-top: 12px; }
.np-tips__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 24px; }
.np-tips h3 { margin-bottom: 10px; font-size: 16px; font-weight: 700; }
.np-tips ul { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.np-tips li { position: relative; padding-left: 28px; color: var(--np-ink-2); }
.np-tips li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; background: no-repeat center / contain; }
.np-tips__do li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%230B6B4B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.np-tips__dont li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 5l10 10M15 5L5 15' fill='none' stroke='%23A12020' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E"); }

.np-related { margin-top: 56px; }
.np-related h2 { margin-bottom: 16px; font-size: 18px; font-weight: 700; }

/* -------------------------------------------------------------------------
 * Profile
 * ---------------------------------------------------------------------- */

.np-profile { padding-top: 26px; padding-bottom: 72px; }
.np-profile__head { padding-bottom: 30px; border-bottom: 2px solid var(--np-ink); }
.np-profile h1 { font: 800 clamp(32px, 5vw, 52px)/1.08 var(--np-display); letter-spacing: -0.015em; }
.np-profile__meta { margin-top: 14px; font-size: 17px; }
.np-profile__meta strong { font-weight: 600; }
.np-profile__meta span { display: block; color: var(--np-ink-2); }
.np-profile__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.np-profile__body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px 56px; padding-top: 32px; }
.np-profile__main { display: flex; flex-direction: column; gap: 32px; min-width: 0; }
.np-profile__main .np-content { max-width: 68ch; font-size: 17px; }
.np-profile__side { display: flex; flex-direction: column; gap: 16px; }

.np-record h2 { margin-bottom: 14px; }
.np-record__list { border-top: 2px solid var(--np-ink); }
.np-record__row { display: grid; grid-template-columns: 20px 96px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--np-line); }
.np-record__row .np-ico { margin-top: 2px; }
.np-record__row dt { font-weight: 600; }
.np-record__row dd { color: var(--np-ink-2); }
.np-record__row a { color: var(--np-ink); font-weight: 600; }

.np-claim { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 12px; background: var(--np-paper-2); }
.np-claim strong { font-size: 17px; }
.np-claim .np-muted { font-size: 15px; color: var(--np-ink-2); }
.np-claim a:not(.np-btn) { font-size: 15px; font-weight: 600; }

/* On a phone the number follows the reader down the page. */
.np-callbar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 2px solid var(--np-ink); background: #fff; }
.np-callbar .np-btn { width: 100%; }

/* -------------------------------------------------------------------------
 * Guides
 * ---------------------------------------------------------------------- */

.np-guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.np-guide { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--np-ink); text-decoration: none; }
.np-guide__title { font: 700 24px/1.2 var(--np-display); }
.np-guide:hover .np-guide__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.16em; }
.np-guide__text { max-width: 58ch; color: var(--np-ink-2); }

/* -------------------------------------------------------------------------
 * Call to action band and footer
 * ---------------------------------------------------------------------- */

.np-cta { background: var(--np-ink); color: #fff; }
.np-cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 56px; padding-bottom: 56px; }
.np-cta__text { flex: 1 1 420px; }
.np-cta h2 { font: 700 clamp(26px, 3.4vw, 36px)/1.15 var(--np-display); letter-spacing: -0.01em; }
.np-cta p { max-width: 58ch; margin-top: 12px; font-size: 17px; color: #DAD7CC; }
.np-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.np-footer { padding-top: 48px; padding-bottom: 40px; font-size: 15px; }
.np-footer__cols { display: grid; grid-template-columns: 1fr 1.9fr 1.2fr 1fr; gap: 32px 40px; }
.np-footer h2 { margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.np-footer ul { display: flex; flex-direction: column; padding: 0; list-style: none; }
.np-footer .np-footer__towns { display: block; columns: 2; column-gap: 24px; }
.np-footer__towns li { break-inside: avoid; }
.np-footer li a { display: inline-block; padding: 6px 0; color: var(--np-ink-2); text-decoration: none; }
.np-footer li a:hover { color: var(--np-ink); }
.np-footer__base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--np-ink); color: var(--np-ink-2); }
.np-footer__base .np-logo { min-height: 0; color: var(--np-ink); }
.np-footer__base .np-logo__word { font-size: 19px; }
.np-footer__base > a:not(.np-logo) { padding: 10px 0; color: var(--np-ink-2); }

/* -------------------------------------------------------------------------
 * Pages, guides and forms
 * ---------------------------------------------------------------------- */

.np-page { max-width: 808px; padding-top: 40px; padding-bottom: 72px; }
.np-page > h1 { margin-bottom: 20px; font: 800 clamp(30px, 4.4vw, 44px)/1.1 var(--np-display); letter-spacing: -0.015em; }
.np-page__after { margin-top: 36px; }
.np-content > * + * { margin-top: 1em; }
.np-content a { font-weight: 500; }
.np-article { font-size: 17.5px; line-height: 1.65; }
.np-article h2 { margin-top: 1.7em; font: 700 26px/1.2 var(--np-display); }
.np-article ul, .np-article ol { display: flex; flex-direction: column; gap: 8px; padding-left: 24px; }
.np-article .np-muted { font-size: 14px; }

.np-form { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.np-content > .np-form { margin-top: 28px; }
.np-form__intro { font-size: 18px; color: var(--np-ink-2); }
.np-form__group { display: flex; flex-direction: column; gap: 18px; width: 100%; min-width: 0; margin: 0; padding: 14px 0 0; border: 0; border-top: 2px solid var(--np-ink); }
.np-form__group legend { padding: 0 12px 0 0; font: 700 22px/1.2 var(--np-display); }
.np-form__row { display: flex; flex-direction: column; gap: 6px; }
.np-form__row label, .np-form__label { font-size: 15px; font-weight: 600; }
.np-form__opt { font-weight: 400; color: var(--np-muted); }
.np-form__hint, .np-form__static { margin: 0; font-size: 14px; color: var(--np-muted); }
.np-form__static { font-size: 16px; color: var(--np-ink); }
.np-form input[type="text"], .np-form input[type="email"], .np-form input[type="tel"], .np-form input[type="url"], .np-form select, .np-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1.5px solid var(--np-line-strong); border-radius: 8px; background-color: #fff; color: var(--np-ink); font: inherit; font-size: 16px; }
.np-form select { padding-right: 40px; background-image: var(--np-chevron); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px auto; -webkit-appearance: none; appearance: none; }
.np-form input:hover, .np-form select:hover, .np-form textarea:hover { border-color: var(--np-ink); }
.np-form__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 20px; }
.np-form__checks label { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 400; }
.np-form__consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; }
.np-form__row > .np-form__consent { margin-top: 6px; font-weight: 400; }
.np-form input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--np-ink); }
.np-form__checks input[type="checkbox"] { margin-top: 0; }
.np-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.np-form .np-btn { min-height: 54px; padding: 0 28px; }

.np-form.np-form--inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.np-form--inline .np-form__row { flex: 1 1 220px; }
.np-form--inline .np-btn { min-height: 48px; }
.np-content > .np-h3 { margin-top: 40px; }
.np-content > .np-cards { margin-top: 16px; }
.np-content > .np-cards ~ p { margin-top: 20px; }

.np-notice { padding: 16px 20px; border-radius: 12px; font-size: 16px; }
.np-notice--ok { background: var(--np-green-pale); color: var(--np-green); }
.np-notice--error { background: var(--np-red-pale); color: var(--np-red); }

/* -------------------------------------------------------------------------
 * Smaller screens
 * ---------------------------------------------------------------------- */

@media (max-width: 960px) {
	.np-hero__inner { grid-template-columns: minmax(0, 1fr); }
	.np-ledger { max-width: 520px; }
	.np-index { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
	.np-how { grid-template-columns: minmax(0, 1fr); }
	.np-profile__body { grid-template-columns: minmax(0, 1fr); }
	.np-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
	.np-wrap { padding-left: 20px; padding-right: 20px; }
	.np-section { padding-top: 44px; padding-bottom: 44px; }
	.np-topbar { gap: 0 16px; padding-top: 8px; padding-bottom: 4px; }
	.np-logo { order: 1; }
	.np-topbar__add { order: 2; margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 15px; }
	.np-nav { order: 3; flex-basis: 100%; margin-left: 0; gap: 0 22px; }
	.np-logo__word { font-size: 21px; }
	.np-hero { padding-top: 24px; padding-bottom: 44px; }
	.np-hero__title { margin-bottom: 14px; font-size: 16px; }
	.np-hero__lede { margin-top: 22px; font-size: 17px; }
	.np-need > .np-btn { width: 100%; margin-top: 18px; }
	.np-need--compact > .np-btn { width: auto; margin-top: 0; }
	.np-h2 { font-size: 26px; }
	.np-index__cell { min-height: 0; padding: 16px; }
	.np-index__name { font-size: 18px; }
	.np-legend__row { grid-template-columns: minmax(0, 1fr); }
	.np-guides { grid-template-columns: minmax(0, 1fr); }
	.np-tips { margin-top: 40px; padding: 20px; }
	.np-tips__cols { grid-template-columns: minmax(0, 1fr); }
	.np-record__row { grid-template-columns: 20px minmax(0, 1fr); }
	.np-record__row dd { grid-column: 2; }
	.np-profile__actions .np-btn { flex: 1 1 100%; }
	.np-cta__inner { padding-top: 44px; padding-bottom: 44px; }
	.np-cta__actions .np-btn { flex: 1 1 auto; }
	.np-page { padding-top: 28px; padding-bottom: 56px; }
	.np-footer li a { padding: 11px 0; }
	.np-crumbs a { padding: 10px 0; }
	.np-pick select { min-height: 44px; }
	.np-row__more { padding: 12px 10px; }
	.np-callbar.is-visible { display: block; }
	.np-has-callbar .np-footer { padding-bottom: 104px; }
}

@media (max-width: 420px) {
	.np-footer__cols { grid-template-columns: minmax(0, 1fr); }
	.np-namesearch__row { flex-wrap: wrap; }
	.np-namesearch .np-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.np-btn, .np-index__cell, .np-index__icon, .np-towns a { transition: none; }
}
