/* The homepage sections added in 0.16: section links, the road-trip map, more to explore, our story.
   Loaded after home.css and road-trips-index.css. Everything is filled in from WordPress; see inc/home.php. */
.home .pf-hero-media .pf-hero__img { height: clamp(260px, 34vw, 470px); }
.pf-hp.pf-home { gap: clamp(56px, 7vw, 96px); font-family: var(--wp--preset--font-family--body); font-size: 17px; line-height: 1.55; }
.pf-hp .pf-hero h1 { font-size: clamp(44px, 6.6vw, 92px); }

/* Where to go from here: plain links to each section */
.pf-hp-offer { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--wp--preset--color--gum-green); border-bottom: 1px solid var(--wp--preset--color--gum-green); }
.pf-hp-offer a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 58px; padding: 0 14px 0 0; border-top: 1px solid var(--wp--preset--color--line); border-left: 1px solid var(--wp--preset--color--line); font-family: var(--wp--preset--font-family--heading); font-weight: 800; text-transform: uppercase; font-size: 19px; line-height: 1; letter-spacing: 0.01em; color: var(--wp--preset--color--gum-green); text-decoration: none; }
.pf-hp-offer a:nth-child(-n+2) { border-top: 0; }
.pf-hp-offer a:nth-child(odd) { border-left: 0; }
.pf-hp-offer a:nth-child(even) { padding-left: 14px; }
.pf-hp-offer svg { flex: 0 0 auto; width: 16px; height: 16px; transition: transform 0.2s ease; }
.pf-hp-offer a:hover { color: var(--wp--preset--color--red-earth); }
.pf-hp-offer a:hover svg { transform: translateX(3px); }
@media (min-width: 900px) { .pf-hp-offer { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pf-hp-offer a, .pf-hp-offer a:nth-child(-n+2) { border-top: 0; min-height: 68px; padding: 0 22px; font-size: 26px; } .pf-hp-offer a:nth-child(odd) { border-left: 1px solid var(--wp--preset--color--line); } .pf-hp-offer a:first-child { border-left: 0; padding-left: 0; } .pf-hp-offer a:last-child { padding-right: 0; } }

/* Road trips on the map */
.pf-hp-map { box-sizing: border-box; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 56px; align-items: center; scroll-margin-top: 24px; }
.pf-hp-map__words > * { margin: 0; }
.pf-hp .pf-eyebrow { font-family: var(--wp--preset--font-family--body); margin: 0; }
.pf-hp-map h2 { margin-top: 12px; font-size: clamp(40px, 5.4vw, 76px); line-height: 0.9; }
.pf-hp-map__lead { margin-top: 18px !important; font-family: var(--wp--preset--font-family--serif); font-size: clamp(19px, 1.7vw, 22px); line-height: 1.42; max-width: 480px; }
.pf-hp-steps { margin: 22px 0 0 !important; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: s; }
.pf-hp-steps li { counter-increment: s; display: flex; gap: 12px; align-items: baseline; font: 600 15px/1.35 var(--wp--preset--font-family--body); color: var(--wp--preset--color--charcoal); }
.pf-hp-steps li::before { content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--wp--preset--color--gum-green); color: var(--wp--preset--color--paperbark); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.pf-hp-map__go { margin-top: 26px !important; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.pf-hp-map .pf-rt-map { margin: 0; }
.pf-hp-map__hint { margin: 10px 0 0; font: 600 12px var(--wp--preset--font-family--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--gum-green); text-align: center; }
@media (min-width: 900px) { .pf-hp-map { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
/* On a phone the words sit a little closer together, so the map comes sooner. */
@media (max-width: 899px) { .pf-hp-map { gap: 8px; } .pf-hp-map h2 { margin-top: 10px; } .pf-hp-map__lead { margin-top: 12px !important; } .pf-hp-steps { margin-top: 16px !important; gap: 8px; } .pf-hp-map__go { margin-top: 18px !important; } }
.pf-hp-trips { margin-top: clamp(28px, 3vw, 40px); }
.pf-hp-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; border-top: 1px solid var(--wp--preset--color--gum-green); padding-top: 18px; }
.pf-hp-head > * { margin: 0; }
.pf-hp-head h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 0.95; }
.pf-hp-head a { font: 600 14px var(--wp--preset--font-family--body); color: var(--wp--preset--color--gum-green); text-underline-offset: 4px; }
.pf-hp .pf-rt-grid { margin-top: 24px; }

/* More to explore */
.pf-hp-doors { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 32px; }
@media (min-width: 800px) { .pf-hp-doors { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-hp-door { position: relative; display: block; text-decoration: none; color: var(--wp--preset--color--charcoal); }
.pf-hp-door__media { display: block; overflow: hidden; background: #C9C1AE; aspect-ratio: 4 / 3; margin-bottom: 16px; }
.pf-hp-door__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pf-hp-door:hover .pf-hp-door__media img { transform: scale(1.03); }
.pf-hp-door__n { display: block; font: 600 12px var(--wp--preset--font-family--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--red-earth); }
.pf-hp-door__t { display: block; margin-top: 8px; font-weight: 800; font-family: var(--wp--preset--font-family--heading); text-transform: uppercase; font-size: clamp(30px, 3vw, 40px); line-height: 0.95; color: var(--wp--preset--color--gum-green); }
.pf-hp-door__d { display: block; margin-top: 10px; font-family: var(--wp--preset--font-family--serif); font-size: 18px; line-height: 1.45; opacity: 0.85; }
.pf-hp-door__go { display: flex; align-items: center; gap: 8px; margin-top: 14px; font: 600 15px var(--wp--preset--font-family--body); color: var(--wp--preset--color--gum-green); }
.pf-hp-door__go svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.pf-hp-door:hover .pf-hp-door__go svg { transform: translateX(3px); }
@media (max-width: 799px) { .pf-hp-door { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: center; } .pf-hp-door__media { aspect-ratio: 1 / 1; margin: 0; } .pf-hp-door__d { font-size: 16px; } .pf-hp-door__t { font-size: 28px; } .pf-hp-door__go { margin-top: 10px; } }

/* Our story and partners */
.pf-hp-story { box-sizing: border-box; background: var(--wp--preset--color--paperbark); display: grid; grid-template-columns: minmax(0, 1fr); }
.pf-hp-story__media { overflow: hidden; background: #C9C1AE; }
.pf-hp-story__media img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
.pf-hp-story__body { box-sizing: border-box; padding: clamp(22px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.pf-hp-story__body > * { margin: 0; }
.pf-hp-story__lead { margin-top: 14px !important; font-family: var(--wp--preset--font-family--serif); font-size: clamp(24px, 2.6vw, 36px); line-height: 1.2; color: var(--wp--preset--color--charcoal); max-width: 520px; }
.pf-hp-story__go { margin-top: 24px !important; display: flex; flex-wrap: wrap; gap: 10px 12px; }
@media (min-width: 900px) { .pf-hp-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } .pf-hp-story__media img { aspect-ratio: auto; position: absolute; inset: 0; } .pf-hp-story__media { position: relative; min-height: 460px; } }

.pf-hp .pf-hp-story + .pf-partners { margin-top: calc(-1 * clamp(56px, 7vw, 96px)); }

/* The homepage map: bolder routes and bigger markers than on the Road Trips page */
.pf-hp-map .pf-rt-map__line { stroke-width: 9px; }
.pf-hp-map .pf-rt-map__hit { stroke-width: 70; }
.pf-hp-map .pf-rt-map__pin { r: 25px; stroke-width: 5; }
.pf-hp-map .pf-rt-map__pin.is-many { r: 30px; }
.pf-hp-map .pf-rt-map__dot { r: 8px; }
.pf-hp-map .pf-rt-map__n { font-size: 26px; }
.pf-hp-map .pf-rt-map figcaption { text-align: center; }
@media (max-width: 899px) { .pf-hp-map .pf-rt-map__pin { r: 40px; stroke-width: 7; } .pf-hp-map .pf-rt-map__pin.is-many { r: 46px; } .pf-hp-map .pf-rt-map__dot { r: 13px; } .pf-hp-map .pf-rt-map__n { font-size: 42px; } .pf-hp-map .pf-rt-map__line { stroke-width: 13px; } .pf-hp-map .pf-rt-map__hit { stroke-width: 110; } }

/* Fewer or more section links and cards than four or three: the rows still fill the width */
@media (min-width: 900px) { .pf-hp-offer[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-hp-offer[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 800px) { .pf-hp-doors[data-count="1"], .pf-hp-doors[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pf-hp-doors[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; } .pf-hp-doors[data-count="4"] .pf-hp-door__t { font-size: 30px; } }
@media (min-width: 800px) and (max-width: 999px) { .pf-hp-doors[data-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 799px) { .pf-hp-door.has-no-photo { grid-template-columns: minmax(0, 1fr); } }
/* Latest guides, when there is only a lead article or only a list */
.pf-hp .pf-guides.has-no-list .pf-guide-lead, .pf-hp .pf-guides.has-no-lead .pf-guide-list { flex: 1 1 100%; max-width: 760px; }
/* Room between the last section and the footer */
.home main.wp-block-group { padding-bottom: clamp(56px, 8vw, 112px); }

/* ---------- The state map (chosen under Pages, Homepage wording) ----------
   Words, then the map, then the list of states on a phone; words and list beside the map on a wide screen. */
.pf-hp-states { box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "words" "map" "list"; gap: 18px 56px; scroll-margin-top: 24px; }
.pf-hp-states__words { grid-area: words; }
.pf-hp-states__words > * { margin: 0; }
.pf-hp-states h2 { margin-top: 12px; font-size: clamp(40px, 5.4vw, 76px); line-height: 0.9; }
.pf-st-map { grid-area: map; margin: 0; }
.pf-st-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.pf-st-map figcaption { margin-top: 8px; min-height: 18px; font: 600 12px var(--wp--preset--font-family--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--gum-green); text-align: center; }
.pf-st__land { fill: #DDD2BA; stroke: var(--wp--preset--color--shell); stroke-width: 3; stroke-linejoin: round; transition: fill 0.2s ease; }
.pf-st.is-soon .pf-st__land { fill: #EFEADD; }
.pf-st__abbr { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 34px; letter-spacing: 0.03em; fill: var(--wp--preset--color--gum-green); pointer-events: none; transition: fill 0.2s ease; }
.pf-st.is-soon .pf-st__abbr { fill: #8A8375; }
.pf-st__soon { font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; fill: #8A8375; pointer-events: none; }
a.pf-st { cursor: pointer; outline: none; }
a.pf-st:hover .pf-st__land, a.pf-st:focus-visible .pf-st__land, a.pf-st.is-on .pf-st__land { fill: var(--wp--preset--color--gum-green); }
a.pf-st:hover .pf-st__abbr, a.pf-st:focus-visible .pf-st__abbr, a.pf-st.is-on .pf-st__abbr { fill: var(--wp--preset--color--shell); }
a.pf-st:focus-visible .pf-st__land { stroke: var(--wp--preset--color--ochre); stroke-width: 6; }
/* The ACT: a marker with its letters out to sea, and a generous area to tap. */
.pf-st__tap { fill: transparent; }
.pf-st__pin { fill: var(--wp--preset--color--ochre); stroke: var(--wp--preset--color--shell); stroke-width: 5; transition: fill 0.2s ease; }
.pf-st__lead { stroke: var(--wp--preset--color--gum-green); stroke-width: 2; }
.pf-st--act .pf-st__abbr { pointer-events: auto; }
a.pf-st--act:hover .pf-st__pin, a.pf-st--act:focus-visible .pf-st__pin, a.pf-st--act.is-on .pf-st__pin { fill: var(--wp--preset--color--gum-green); }
a.pf-st--act:hover .pf-st__abbr, a.pf-st--act:focus-visible .pf-st__abbr, a.pf-st--act.is-on .pf-st__abbr { fill: var(--wp--preset--color--red-earth); }
/* The list of states. */
.pf-st-list { grid-area: list; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--wp--preset--color--gum-green); }
.pf-st-list li { border-bottom: 1px solid var(--wp--preset--color--line); }
.pf-st-list a, .pf-st-list__row { display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; align-items: center; gap: 4px 14px; min-height: 58px; box-sizing: border-box; padding: 8px 12px 8px 0; color: var(--wp--preset--color--gum-green); text-decoration: none; transition: background-color 0.2s ease, padding 0.2s ease; }
.pf-home .pf-st-list a { text-decoration: none; }
.pf-st-list__name { font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 24px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; }
.pf-st-list__facts { font: 500 14px/1.3 var(--wp--preset--font-family--body); color: var(--wp--preset--color--charcoal); text-align: right; }
.pf-st-list svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.pf-st-list a:hover, .pf-st-list a:focus-visible, .pf-st-list a.is-on { background: var(--wp--preset--color--paperbark); padding-left: 12px; }
.pf-st-list a:hover svg, .pf-st-list a.is-on svg { transform: translateX(3px); }
.pf-st-list a:focus-visible { outline: 2px solid var(--wp--preset--color--ochre); outline-offset: -2px; }
.pf-st-list .is-soon .pf-st-list__name { color: #8A8375; }
.pf-st-list .is-soon .pf-st-list__facts { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--wp--preset--color--grey); }
@media (min-width: 900px) {
	.pf-hp-states { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-areas: "words map" "list map"; grid-template-rows: auto 1fr; align-items: start; }
	.pf-st-map { align-self: center; }
	.pf-st-list { margin-top: 10px; align-self: start; }
}
@media (max-width: 899px) {
	.pf-hp-states h2 { margin-top: 10px; }
	.pf-st-map figcaption { letter-spacing: 0.08em; }
	.pf-st__abbr { font-size: 46px; }
	.pf-st__soon { font-size: 21px; }
	.pf-st__pin { r: 17px; stroke-width: 7; }
	circle.pf-st__tap { r: 66px; }
	.pf-st-list__facts { font-size: 13px; }
}
/* On a phone a state's figures sit under its name, so long names stay on one line. */
@media (max-width: 599px) {
	.pf-st-list a, .pf-st-list__row { grid-template-columns: minmax(0, 1fr) 16px; grid-template-areas: "name go" "facts go"; min-height: 64px; }
	.pf-st-list__name { grid-area: name; font-size: 23px; }
	.pf-st-list__facts { grid-area: facts; text-align: left; }
	.pf-st-list a svg { grid-area: go; }
}

/* "Trip planner: coming soon" notice. Text only. */
.pf-soon { box-sizing: border-box; grid-column: 1 / -1; width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 40px; margin: clamp(40px, 5vw, 72px) 0 0; padding: clamp(22px, 3vw, 36px) 0; border-top: 1px solid var(--wp--preset--color--gum-green); border-bottom: 1px solid var(--wp--preset--color--line); }
.pf-soon__tag { margin: 0; flex: 0 0 auto; font: 700 12px/1 var(--wp--preset--font-family--heading); letter-spacing: 0.14em; text-transform: uppercase; color: var(--wp--preset--color--charcoal); background: var(--wp--preset--color--ochre); padding: 7px 10px 6px; border-radius: 999px; }
.pf-soon__body { flex: 1 1 360px; min-width: 0; max-width: 720px; }
.pf-soon__body h2 { margin: 0 0 6px; font-size: clamp(26px, 3vw, 36px); line-height: 1; }
.pf-soon__body p { margin: 0; font: 400 clamp(16px, 1.3vw, 18px)/1.5 var(--wp--preset--font-family--serif); color: var(--wp--preset--color--charcoal); }
