/* Survival Skillset theme. Colours and type come from theme.json (--wp--preset--*); these are the
   shorthands used below, with fallbacks for the holding page (which loads no WordPress styles). */
:root {
	--ink: var(--wp--preset--color--ink, #1b2a35);
	--pine: var(--wp--preset--color--pine, #1f3a2d);
	--sky: var(--wp--preset--color--sky, #5f8e95);
	--lake: var(--wp--preset--color--lake, #3a78ad);
	--fell: var(--wp--preset--color--fell, #a4552a);
	--ochre: var(--wp--preset--color--ochre, #d9a24a);
	--olive: var(--wp--preset--color--olive, #5d6a2d);
	--paper: var(--wp--preset--color--paper, #f5f0e6);
	--stone: var(--wp--preset--color--stone, #e6dfd2);
	--display: var(--wp--preset--font-family--display, "Barlow Semi Condensed", "Arial Narrow", sans-serif);
	--body: var(--wp--preset--font-family--body, "Source Sans 3", system-ui, sans-serif);
	--wide: 1240px;
	--narrow: 760px;
	--gutter: 16px;
	--radius: 10px;
	--head-h: 76px;
}

/* the Academy plugin's pages, in the site's colours (it declares its own on :root; body wins) */
body { --ssk-accent: var(--pine); --ssk-accent-ink: #fff; --ssk-good: #3f6f3a; --ssk-warm: var(--fell); --ssk-radius: var(--radius); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head-h) + 12px); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--fell); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 0.6em; }
:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.ssk-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ochre); color: var(--ink); padding: 10px 14px; border-radius: 6px; font-weight: 700; }
.ssk-skip:focus { top: 12px; }
.sskt-icon { width: 1em; height: 1em; fill: currentColor; flex: none; vertical-align: -0.125em; }

.ssk-wrap { max-width: var(--narrow); margin: 0 auto; padding: 0 var(--gutter); }
.ssk-wrap--wide { max-width: var(--wide); }
.ssk-kicker { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fell); margin: 0 0 0.5rem; }
.ssk-btn, .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; font-size: 1.05rem; padding: 0.8rem 1.5rem; border-radius: 6px; background: var(--ochre); color: var(--ink); text-decoration: none; border: 2px solid transparent; transition: background 0.15s, color 0.15s; }
.ssk-btn:hover, .wp-block-button__link:hover { background: #e6b463; color: var(--ink); }
.is-style-outline > .wp-block-button__link, .ssk-btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.is-style-outline > .wp-block-button__link:hover, .ssk-btn--ghost:hover { background: rgba(255, 255, 255, 0.12); color: inherit; }

/* ---------- header ---------- */
.ssk-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: #fff; }
.admin-bar .ssk-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ssk-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ssk-header { top: 0; } }
.ssk-header.is-over { position: fixed; left: 0; right: 0; background: transparent; transition: background 0.25s; }
.ssk-header.is-over::before { content: ""; position: absolute; inset: 0 0 -30px; background: linear-gradient(rgba(10, 18, 24, 0.55), rgba(10, 18, 24, 0)); pointer-events: none; transition: opacity 0.25s; }
.ssk-header.is-over.is-solid { background: var(--ink); }
.ssk-header.is-over.is-solid::before { opacity: 0; }
.ssk-header__in { position: relative; max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); height: var(--head-h); display: flex; align-items: center; gap: 1.5rem; }
.ssk-brand { display: flex; align-items: center; gap: 0.7rem; color: #fff; text-decoration: none; margin-right: auto; }
.ssk-brand:hover { color: #fff; }
.ssk-brand__logo { width: 54px; height: 54px; object-fit: contain; }
.ssk-brand__name { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.05em; text-transform: uppercase; }
.ssk-nav { display: flex; align-items: center; gap: 1.75rem; }
.ssk-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.6rem; }
.ssk-menu a { color: #fff; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: 0.03em; padding: 0.4rem 0; border-bottom: 2px solid transparent; }
.ssk-menu a:hover, .ssk-menu .current-menu-item > a, .ssk-menu .current_page_item > a { border-bottom-color: var(--ochre); color: #fff; }
.ssk-menu .sub-menu { display: none; }
.ssk-account { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--ink); background: var(--ochre); text-decoration: none; font-family: var(--display); font-weight: 700; padding: 0.5rem 0.95rem; border-radius: 6px; }
.ssk-account:hover { background: #e6b463; color: var(--ink); }
.ssk-navtoggle { display: none; background: transparent; border: 0; color: #fff; font-size: 1.7rem; padding: 6px; cursor: pointer; line-height: 0; }
.ssk-navtoggle__close { display: none; }
@media (max-width: 900px) {
	.ssk-brand__name { font-size: 1.1rem; }
	.ssk-navtoggle { display: block; }
	.ssk-nav { position: fixed; inset: var(--head-h) 0 auto 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.25rem; transform: translateY(-120%); transition: transform 0.25s ease; max-height: calc(100vh - var(--head-h)); overflow-y: auto; }
	.admin-bar .ssk-nav { top: calc(var(--head-h) + 46px); }
	.ssk-nav-open .ssk-nav { transform: none; }
	.ssk-nav-open .ssk-header.is-over { background: var(--ink); }
	.ssk-nav-open .ssk-navtoggle__open { display: none; }
	.ssk-nav-open .ssk-navtoggle__close { display: inline; }
	.ssk-menu { flex-direction: column; gap: 0; }
	.ssk-menu a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
	.ssk-account { margin-top: 1rem; justify-content: center; padding: 0.8rem; }
}

/* ---------- page head and content ---------- */
.ssk-main { display: block; }
.ssk-pagehead { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.5rem); }
.ssk-pagehead h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0; }
.ssk-pagehead .ssk-kicker { color: var(--ochre); }
.ssk-pagehead p:not(.ssk-kicker) { color: rgba(255, 255, 255, 0.82); margin: 0.8rem 0 0; }
.sskt-content { padding: clamp(2rem, 5vw, 3.5rem) var(--gutter); }
.sskt-content > * { max-width: var(--narrow); margin-left: auto; margin-right: auto; }
.sskt-content > .alignwide { max-width: var(--wide); }
.sskt-content > .alignfull { max-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
.sskt-content > :first-child.alignfull { margin-top: calc(-1 * clamp(2rem, 5vw, 3.5rem)); }
.sskt-content > :last-child.alignfull { margin-bottom: calc(-1 * clamp(2rem, 5vw, 3.5rem)); }
.ssk-home { padding-top: 0; }
.ssk-home > :first-child.alignfull { margin-top: 0; }
.ssk-home > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.sskt-content p, .sskt-content li { max-width: 68ch; }
.sskt-content .has-text-align-center, .sskt-content .has-text-align-center p { margin-left: auto; margin-right: auto; }
.sskt-content figure { margin: 2rem auto; }
.sskt-content figcaption { color: #5b625f; font-size: 0.9rem; }
.sskt-content img { border-radius: var(--radius); }
.sskt-content .alignfull img, .sskt-content .wp-block-cover img { border-radius: 0; }

/* ---------- home page sections (patterns/) ---------- */
.ssk-hero.wp-block-cover { min-height: min(92vh, 860px); padding: calc(var(--head-h) + 3rem) var(--gutter) 4rem; align-items: flex-end; }
.ssk-hero .wp-block-cover__inner-container { max-width: var(--wide); width: 100%; margin: 0 auto; }
.ssk-hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.02; margin-bottom: 1.2rem; }
.ssk-hero p { color: rgba(255, 255, 255, 0.9); font-size: clamp(1.1rem, 2vw, 1.35rem); max-width: 40ch; }
.ssk-hero .ssk-kicker { color: var(--ochre); }
.ssk-hero .wp-block-buttons { margin-top: 1.8rem; }
.ssk-hero .is-style-outline > .wp-block-button__link { color: #fff; }
/* the free story card in the hero: beside the headline on wide screens, below it on phones */
.ssk-hero .wp-block-cover__inner-container:has(.ssk-free) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); column-gap: clamp(2rem, 5vw, 4.5rem); align-items: end; }
.ssk-hero .wp-block-cover__inner-container:has(.ssk-free) > * { grid-column: 1; }
.ssk-hero .wp-block-cover__inner-container > .ssk-free { grid-column: 2; grid-row: 1 / span 4; align-self: end; }
.ssk-free { background: rgba(20, 32, 41, 0.78); border: 1px solid rgba(245, 240, 230, 0.16); border-radius: 12px; overflow: hidden; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35); backdrop-filter: blur(6px); }
.ssk-free > .wp-block-image { margin: 0; }
.ssk-free > .wp-block-image img { display: block; width: 100%; aspect-ratio: 8 / 5; object-fit: cover; transition: transform 0.6s ease; }
.ssk-free > .wp-block-image a { display: block; overflow: hidden; }
.ssk-free > .wp-block-image a:hover img { transform: scale(1.03); }
.ssk-free > :not(.wp-block-image) { margin-left: 1.25rem; margin-right: 1.25rem; }
.ssk-hero .ssk-free .ssk-kicker { margin-top: 1rem; margin-bottom: 0.2rem; font-size: 0.8rem; }
.ssk-hero .ssk-free h3 { color: #fff; font-size: 1.55rem; line-height: 1.1; margin: 0 1.25rem 0.4rem; }
.ssk-hero .ssk-free p:not(.ssk-kicker) { font-size: 0.98rem; line-height: 1.45; color: rgba(255, 255, 255, 0.82); max-width: none; margin-bottom: 0; }
.ssk-hero .ssk-free .wp-block-buttons { margin: 1rem 1.25rem 1.25rem; }
.ssk-hero .ssk-free .wp-block-button__link { width: 100%; text-align: center; }
@media (max-width: 860px) {
  .ssk-hero .wp-block-cover__inner-container:has(.ssk-free) { display: block; }
  .ssk-free { margin-top: 2rem; max-width: 420px; }
}

.ssk-band { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }
.ssk-band > * { max-width: var(--wide); margin-left: auto; margin-right: auto; }
.ssk-band--ink { background: var(--ink); color: #fff; }
.ssk-band--ink h2, .ssk-band--ink h3 { color: #fff; }
.ssk-band--pine { background: var(--pine); color: #fff; }
.ssk-band--pine h2, .ssk-band--pine h3 { color: #fff; }
.ssk-band--stone { background: var(--stone); }
.ssk-band--ink .ssk-kicker, .ssk-band--pine .ssk-kicker { color: var(--ochre); }
.ssk-band > .ssk-band__head { max-width: var(--wide); margin-bottom: 2.5rem; }
.ssk-band__head > * { max-width: 46rem; }
.ssk-band__head h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.ssk-band__head p { font-size: 1.2rem; opacity: 0.88; }

.ssk-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.ssk-steps > * { margin: 0 !important; }
.ssk-step { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem 1.7rem; box-shadow: 0 1px 0 rgba(27, 42, 53, 0.06); position: relative; }
.ssk-step::before { counter-increment: step; content: counter(step); position: absolute; top: 1.2rem; right: 1.3rem; font-family: var(--display); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--stone); }
.ssk-step h3 { font-size: 1.4rem; margin: 0.9rem 0 0.5rem; }
.ssk-step p { margin: 0; font-size: 1.02rem; color: #3c4a52; }
.ssk-step__icon { display: inline-flex; width: 3rem; height: 3rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--ink); color: var(--ochre); font-size: 1.35rem; }
.ssk-step__icon svg { width: 1.35rem; height: 1.35rem; flex: none; }   /* (the Academy plugin's icon size isn't loaded on the home page: without this the icon spills out of its circle) */
/* cards lift a little under the mouse (not on touch screens, not with reduced motion) */
.ssk-step, .ssk-module, .ssk-free { transition: transform 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) { .ssk-step:hover, .ssk-module:hover { transform: scale(1.03); box-shadow: 0 18px 40px -20px rgba(27, 42, 53, 0.45); position: relative; z-index: 1; } .ssk-free:hover { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .ssk-step, .ssk-module, .ssk-free { transition: none; } .ssk-step:hover, .ssk-module:hover, .ssk-free:hover { transform: none; } }
@media (max-width: 1000px) { .ssk-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ssk-steps { grid-template-columns: 1fr; } }

.ssk-split { display: grid !important; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ssk-split > * { margin: 0 !important; }
.ssk-split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 860px) { .ssk-split { grid-template-columns: 1fr; } }
.ssk-ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.ssk-ticks li { position: relative; padding-left: 2rem; margin: 0.7rem 0; }
.ssk-ticks li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 1.1rem; height: 0.6rem; border-left: 3px solid var(--ochre); border-bottom: 3px solid var(--ochre); transform: rotate(-45deg); }

.ssk-modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.ssk-modules > * { margin: 0 !important; }
.sskt-module { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sskt-module figure { margin: 0 !important; }
.sskt-module img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0 !important; display: block; }
.sskt-module__body { padding: 1.2rem 1.3rem 1.4rem; }
.sskt-module__body .ssk-kicker { font-size: 0.8rem; margin-bottom: 0.3rem; }
.sskt-module__body h3 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.sskt-module__body p { margin: 0; font-size: 1rem; color: #3c4a52; }
@media (max-width: 1000px) { .ssk-modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
	.ssk-modules { grid-template-columns: 1fr; gap: 0.75rem; }
	.sskt-module { flex-direction: row; }
	.sskt-module figure { flex: 0 0 34%; }
	.sskt-module img { height: 100%; aspect-ratio: auto; min-height: 100%; }
	.sskt-module__body { padding: 0.9rem 1rem; }
	.sskt-module__body h3 { font-size: 1.2rem; }
	.sskt-module__body p { font-size: 0.95rem; }
}

.ssk-cta { text-align: center; }
.ssk-cta h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.ssk-cta p { max-width: 40rem; margin: 0 auto 1.6rem; font-size: 1.2rem; }
.ssk-cta .wp-block-buttons { justify-content: center; }

/* ---------- cards (blog, archives) ---------- */
.ssk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 3rem 0; }
@media (max-width: 960px) { .ssk-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ssk-cards { grid-template-columns: 1fr; } }
.sskt-card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.sskt-card__link { display: block; color: inherit; text-decoration: none; height: 100%; }
.sskt-card__img { aspect-ratio: 3 / 2; background: var(--stone); }
.sskt-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sskt-card__body { padding: 1.2rem 1.3rem 1.5rem; }
.sskt-card__meta { color: #6a716d; font-size: 0.9rem; margin: 0 0 0.3rem; }
.sskt-card__title { font-size: 1.45rem; margin: 0 0 0.5rem; }
.sskt-card__link:hover .sskt-card__title { color: var(--fell); }
.sskt-card__body p { margin: 0; color: #3c4a52; font-size: 1rem; }
.ssk-empty { padding: 3rem 0 1rem; }
.nav-links { display: flex; gap: 0.5rem; justify-content: center; padding-bottom: 3rem; }
.nav-links .page-numbers { padding: 0.4rem 0.8rem; border-radius: 6px; background: #fff; text-decoration: none; color: var(--ink); }
.nav-links .current { background: var(--ink); color: #fff; }
.ssk-post__hero { margin: 0 auto; max-width: var(--wide); }
.ssk-post__hero img { width: 100%; display: block; aspect-ratio: 16 / 8; object-fit: cover; }
.ssk-postnav .nav-links { justify-content: space-between; padding: 1rem 0 3rem; }
.ssk-postnav .nav-links a { text-decoration: none; }
.ssk-postnav .nav-links span { display: block; font-size: 0.85rem; color: #6a716d; }
.search-form { display: flex; gap: 0.5rem; margin-top: 1.5rem; }
.search-form input[type="search"] { flex: 1; padding: 0.7rem 0.9rem; border: 1px solid #cfc6b6; border-radius: 6px; font: inherit; background: #fff; }
.search-form input[type="submit"] { font: inherit; font-weight: 700; padding: 0.7rem 1.2rem; border: 0; border-radius: 6px; background: var(--ochre); color: var(--ink); cursor: pointer; }
.ssk-404 .search-form { max-width: 28rem; }

/* ---------- footer ---------- */
.ssk-footer { background: var(--ink); color: rgba(255, 255, 255, 0.82); }
.ssk-footer__in { max-width: var(--wide); margin: 0 auto; padding: 3.5rem var(--gutter) 2.5rem; display: flex; gap: 2.5rem; justify-content: space-between; flex-wrap: wrap; }
.ssk-footer__brand { display: flex; gap: 1.1rem; align-items: center; max-width: 30rem; }
.ssk-footer__brand p { margin: 0; }
.ssk-footer__logo { width: 84px; height: 84px; }
.ssk-footer__menu { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.ssk-footer__menu a { color: #fff; text-decoration: none; }
.ssk-footer__menu a:hover { color: var(--ochre); }
.ssk-footer__base { max-width: var(--wide); margin: 0 auto; padding: 1.2rem var(--gutter) 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.1); display: flex; gap: 1rem; justify-content: space-between; flex-wrap: wrap; font-size: 0.88rem; color: rgba(255, 255, 255, 0.6); }

/* ---------- legal links and the cookie choice ---------- */
.ssk-footer__legal a { color: rgba(255, 255, 255, 0.75); }
.ssk-footer__legal a:hover { color: #fff; }
.sskt-consent { position: fixed; left: var(--gutter); right: var(--gutter); bottom: var(--gutter); z-index: 1000; max-width: 44rem; margin: 0 auto; display: flex; gap: 0.75rem 1.25rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--ink); color: #fff; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); font-size: 0.95rem; }
.sskt-consent[hidden] { display: none; }
.sskt-consent p { margin: 0; flex: 1 1 18rem; line-height: 1.5; }
.sskt-consent a { color: var(--ochre); }
.sskt-consent__buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sskt-consent button { font: 600 0.95rem var(--body); border-radius: 999px; padding: 0.55rem 1.1rem; cursor: pointer; border: 1px solid rgba(255, 255, 255, 0.4); background: transparent; color: #fff; }
.sskt-consent button.sskt-consent__yes { background: var(--fell); border-color: var(--fell); }
.sskt-consent button:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }

/* ---------- coming soon ---------- */
.ssk-soon { min-height: 100vh; display: grid; place-items: center; padding: 24px var(--gutter); background: var(--ink); color: #fff; position: relative; }
.ssk-soon__bg { position: fixed; inset: 0; background: var(--pine) center / cover no-repeat; }
.ssk-soon__bg::after { content: ""; position: absolute; inset: 0; background: rgba(12, 20, 26, 0.62); }
.ssk-soon__card { position: relative; max-width: 36rem; text-align: center; }
.ssk-soon__logo { width: 150px; height: 150px; margin-bottom: 1.2rem; }
.ssk-soon h1 { color: #fff; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.ssk-soon .ssk-kicker { color: var(--ochre); }
.ssk-soon p { font-size: 1.2rem; color: rgba(255, 255, 255, 0.88); }
