/* --- Entry-route switch ---------------------------------------------------
   Two words, not two boxes. Nearly everyone enters online, so that route is a
   quiet chip one shade lighter than the panel it sits on, and the postal route
   is the same small label in dimmed text beside it — present, findable, never
   competing with the question and the entry count below. No frame, no gold
   thumb: this switch is not what the page is for.                           */
.entry-routes { min-width: 0; scroll-margin-top: calc(var(--stick) + 1rem); container-type: inline-size; }
.entry-routes__tabs {
	display: flex; flex-wrap: nowrap; gap: 0.2rem;
	margin: 0.15rem 0 0.85rem;
}
.entry-routes__tabs button {
	position: relative; appearance: none; border: 0; background: transparent;
	display: inline-flex; align-items: center; gap: 0.45rem;
	min-width: 0; padding: 0.4rem 0.7rem;
	border-radius: 999px;
	color: color-mix(in srgb, var(--on-dark-dim) 78%, var(--navy)); text-align: left; cursor: pointer; font: inherit;
	transition: color var(--t-micro) var(--ease), background-color var(--t-micro) var(--ease);
}
/* The chip stays small; the target does not. Covers the gap between the two,
   so a thumb landing between them still picks the nearer one. */
.entry-routes__tabs button::after { content: ''; position: absolute; inset: -9px -1px; }
.entry-routes__icon {
	width: 15px; height: 15px; flex: none; color: currentColor;
	transition: color var(--t-micro) var(--ease);
}
.entry-routes__tabs strong {
	font-family: var(--f-display); font-weight: 800; font-size: 0.6875rem;
	line-height: 1.35; letter-spacing: 0.1em; text-transform: uppercase;
	white-space: nowrap;
}
/* Chosen: lifted off the panel by light alone — a little over 6% ivory on
   the navy, and lettering short of full ivory. Both sit close enough to the
   panel that the eye passes over them on the way to the question. */
.entry-routes__tabs button[aria-selected="true"] {
	background: color-mix(in srgb, var(--ivory) 6.5%, transparent);
	color: color-mix(in srgb, var(--on-dark) 82%, var(--navy));
}
.entry-routes__tabs button:hover:not([aria-selected="true"]) { color: var(--on-dark-dim); }
.entry-routes__tabs button:focus-visible, .entry-routes [role="tabpanel"]:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; }
/* The panel is ~300px wide on a phone and again as a narrow sidebar. Rather
   than let two short labels fall onto separate lines, tighten them until the
   pair fits across — the switch asks its own width, not the viewport's. */
@container (max-width: 340px) {
	.entry-routes__tabs { gap: 0.1rem; }
	.entry-routes__tabs button { gap: 0.35rem; padding: 0.38rem 0.5rem; }
	.entry-routes__tabs strong { font-size: 0.645rem; letter-spacing: 0.07em; }
	.entry-routes__icon { width: 14px; height: 14px; }
}
/* One step further for the smallest phones, where the panel is ~282px. */
@container (max-width: 292px) {
	.entry-routes__tabs button { gap: 0.3rem; padding: 0.34rem 0.42rem; }
	.entry-routes__tabs strong { font-size: 0.615rem; letter-spacing: 0.05em; }
	.entry-routes__icon { width: 13px; height: 13px; }
}
/* And a last one for a 320px phone, so the pair never falls onto two lines. */
@container (max-width: 252px) {
	.entry-routes__tabs { gap: 0.05rem; }
	.entry-routes__tabs button { gap: 0.26rem; padding: 0.3rem 0.28rem; }
	.entry-routes__tabs strong { font-size: 0.575rem; letter-spacing: 0.02em; }
	.entry-routes__icon { width: 12px; height: 12px; }
}
.entry-routes.is-enhanced .entry-routes__fallback { display: none; }
.entry-routes__fallback { font: 800 1.2rem var(--f-display); margin: 1.5rem 0 1rem; }
.postal-guide { font-size: .9375rem; line-height: 1.65; color: var(--ivory); overflow-wrap: anywhere; }
.postal-guide p { margin: 0 0 .8rem; }
.postal-guide a { color: var(--champagne); text-decoration: underline; text-underline-offset: .2em; }
.postal-guide__heading { font: 800 1.2rem/1.4 var(--f-display); margin: 1.3rem 0 .7rem; }
.postal-guide__steps { list-style: none; counter-reset: postal; padding: 0; margin: 1.25rem 0 0; }
.postal-guide__steps > li { counter-increment: postal; padding: 1rem 0; border-top: 1px solid var(--line-dk); }
.postal-guide__steps h2, .postal-guide__steps h3 { font: 700 1rem/1.5 var(--f-body); margin: 0 0 .65rem; }
.postal-guide__steps h2::before, .postal-guide__steps h3::before { content: counter(postal) ". "; color: var(--champagne); }
.postal-guide__question { font-weight: 600; }
.postal-guide__choices { display: flex; flex-wrap: wrap; gap: .4rem 1rem; list-style: none; margin: 0 0 .8rem; padding: 0; color: var(--champagne); }
.postal-guide__address { white-space: normal; font-style: normal; padding: .85rem 1rem; border: 1px solid var(--on-dark-dim); border-radius: 8px; margin: 0 0 1rem; }
.postal-guide__terms summary { cursor: pointer; min-height: 44px; padding: .7rem 0; color: var(--champagne); }
.postal-guide__badge { border: 1px solid var(--champagne); border-radius: 6px; padding: .6rem .8rem; color: var(--champagne); font-size: .75rem; font-weight: 700; letter-spacing: .035em; }
.postal-guide__account, .postal-guide__required { margin: 1rem 0; padding: 1rem; background: var(--slate); border: 1px solid var(--line-dk); border-radius: 10px; }
.postal-guide__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.postal-guide__actions a, .postal-guide__terms-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--champagne); border-radius: 6px; font-weight: 600; text-decoration: none; }
.postal-guide a:focus-visible { outline: 3px solid var(--champagne); outline-offset: 4px; }
.postal-guide__rules { margin: .8rem 0 0; }
.postal-guide__rules > div { margin: 0 0 .8rem; }
.postal-guide__rules dt { font-weight: 700; }
.postal-guide__rules dd { margin: .15rem 0 0; }
.postal-guide__required h3 { font: 700 1rem/1.5 var(--f-body); margin: 0 0 .4rem; }
.postal-guide__required ul { margin: .8rem 0 0; padding-left: 1.2rem; }
.postal-guide__required li { margin: .35rem 0; }
.postal-guide__caption { font-size: .8125rem; }

/* --- Free postal entry: the confirmed route ---------------------------------
   (template-parts/postal-instructions.php) Four steps in the order someone
   does them, then the rules word for word as the Terms have them. Gold marks
   only what is to be acted on: the step numbers, the address card's copy, the
   answers to choose from. The rules read a step quieter than the steps.     */
.pg-steps { list-style: none; counter-reset: pg; margin: 0; padding: 0; }
.pg-step { counter-increment: pg; position: relative; padding: 1.05rem 0 1.15rem 2.4rem; border-top: 1px solid var(--line-dk); }
.pg-step:first-child { border-top: 0; padding-top: .35rem; }
/* The circle's centre sits on the title's first line (1.6rem circle, 1.4 × 1rem line). */
.pg-step::before {
	content: counter(pg); position: absolute; left: 0; top: 1.05rem;
	width: 1.6rem; height: 1.6rem; display: grid; place-items: center;
	border: 1px solid color-mix(in srgb, var(--champagne) 55%, transparent); border-radius: 50%;
	font: 800 .75rem/1 var(--f-display); color: var(--champagne); font-variant-numeric: tabular-nums;
}
.pg-step:first-child::before { top: .35rem; }
.postal-guide .pg-step__title, .postal-guide .pg-rules__title { font: 700 1rem/1.4 var(--f-body); margin: .1rem 0 .75rem; color: var(--on-dark); }

.pg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; font-size: .875rem; line-height: 1.55; color: color-mix(in srgb, var(--on-dark) 86%, var(--navy)); }
.pg-list li { position: relative; padding-left: 1.1rem; }
.pg-list li::before { content: ''; position: absolute; left: .1rem; top: .7em; width: .42rem; height: 2px; border-radius: 1px; background: color-mix(in srgb, var(--champagne) 62%, transparent); }
/* What to write is a checklist: a tick, not a dash. */
.pg-list--check { color: var(--on-dark); font-size: .9375rem; gap: .4rem; }
.pg-list--check li::before { top: .42em; width: .58rem; height: .3rem; background: none; border: solid var(--champagne); border-width: 0 0 1.5px 1.5px; border-radius: 0; transform: rotate(-45deg); }

.pg-comp { margin: .95rem 0 0; padding: .85rem 1rem .95rem; border-radius: 10px; background: color-mix(in srgb, var(--ivory) 4.5%, transparent); border: 1px solid var(--line-dk); }
.postal-guide .pg-comp p { margin: 0; }
.postal-guide .pg-comp__label { font: 800 .625rem/1.4 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-dim); }
.postal-guide .pg-comp__title { margin-top: .2rem; font-weight: 700; color: var(--on-dark); }
.postal-guide .pg-comp__q { margin-top: .6rem; font-size: .875rem; color: var(--on-dark-dim); }
.pg-comp__answers { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: .5rem 0 0; padding: 0; }
.pg-comp__answers li { padding: .2rem .65rem; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--champagne) 42%, transparent); color: var(--champagne); font-size: .8125rem; line-height: 1.45; }

.pg-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.pg-actions .btn { padding: .72rem 1.25rem; font-size: .875rem; }
.postal-guide a.btn { text-decoration: none; }
.postal-guide a.btn--gold { color: var(--navy); }
.postal-guide a.btn--ghost { color: var(--on-dark); }
.postal-guide .pg-signed { display: flex; align-items: center; gap: .45rem; margin: 0; color: var(--on-dark-dim); }
.pg-signed__icon, .pg-closes__icon { width: 18px; height: 18px; flex: none; color: var(--champagne); }

/* The address is what gets written on the envelope, so it stands alone. */
.pg-address { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border-radius: 10px; background: var(--slate); border: 1px solid var(--line-dk); }
.pg-address__text { min-width: 0; font-style: normal; font-weight: 600; line-height: 1.6; color: var(--on-dark); }
.pg-copy {
	position: relative; flex: none; display: inline-grid; appearance: none; cursor: pointer;
	margin: -.1rem -.25rem 0 0; padding: .3rem .7rem; border-radius: 999px;
	border: 1px solid var(--line-dk); background: transparent; color: var(--on-dark-dim);
	font: 600 .75rem/1.3 var(--f-body);
	transition: transform var(--t-micro) var(--ease), color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease);
}
.pg-copy[hidden] { display: none; }
.pg-copy::after { content: ''; position: absolute; inset: -9px -6px; } /* a 44px target around a small chip */
.pg-copy:active { transform: scale(.97); transition-duration: var(--t-press); }
.pg-copy:focus-visible { outline: 2.5px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
	.pg-copy:hover { color: var(--on-dark); border-color: color-mix(in srgb, var(--ivory) 32%, transparent); }
}
/* Copy and Copied share one cell, so the chip keeps its width; a short blur
   joins the two words instead of showing both at once. */
.pg-copy > span { grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; transition: opacity 180ms var(--ease), filter 180ms var(--ease), transform 180ms var(--ease); }
.pg-copy__icon { width: 14px; height: 14px; }
.pg-copy__done { opacity: 0; filter: blur(2px); transform: scale(.94); color: var(--champagne); }
.pg-copy[data-state="done"] { border-color: color-mix(in srgb, var(--champagne) 45%, transparent); }
.pg-copy[data-state="done"] .pg-copy__idle { opacity: 0; filter: blur(2px); transform: scale(.94); }
.pg-copy[data-state="done"] .pg-copy__done { opacity: 1; filter: none; transform: none; }

.postal-guide .pg-closes { display: flex; align-items: flex-start; gap: .5rem; margin: 0 0 .8rem; }
.pg-closes__icon { margin-top: .2rem; } /* on the first line when the date wraps */
.pg-closes strong { color: var(--on-dark); font-weight: 700; }

.pg-rules { margin: .35rem 0 0; padding: 1.1rem 0 0; border-top: 1px solid var(--line-dk); }
.postal-guide .pg-source { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; margin: 1rem 0 0; font-size: .8125rem; }
.postal-guide .pg-source a { display: inline-flex; align-items: center; min-height: 32px; }
@media (prefers-reduced-motion: reduce) {
	.pg-copy { transition: color var(--t-micro) var(--ease), border-color var(--t-micro) var(--ease); }
	.pg-copy > span { transition: opacity 140ms var(--ease); }
	.pg-copy__done, .pg-copy[data-state="done"] .pg-copy__idle { filter: none; transform: none; }
}
.buy__title { overflow-wrap: anywhere; }
@media (prefers-reduced-motion: no-preference) {
	.entry-routes [role="tabpanel"]:not([hidden]) { animation: postal-panel-in 170ms ease-out; }
	@keyframes postal-panel-in { from { opacity: .65; } to { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
	.entry-routes__tabs button, .entry-routes__icon { transition: none; }
}
