/*
 * FishingSpark Field Guide 2.0 — visual layer.
 * Ink #10221F · Lake #0F4C45 · Amber #E8912B (dark text) · Tint #F1F5F3 · Muted #43564F
 * Headings: Barlow Condensed 800 uppercase · Body: Source Sans 3
 */
html:root {
	--fs-ink: #10221F;
	--fs-lake: #0F4C45;
	--fs-lake-dark: #0A3530;
	--fs-amber: #E8912B;
	--fs-amber-dark: #D27C17;
	--fs-tint: #F1F5F3;
	--fs-line: #DCE6E3;
	--fs-muted: #43564F;
	--fs-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--fs-body: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', sans-serif;

	/* Base theme tokens */
	--ofn-ink: var(--fs-ink);
	--ofn-deep: var(--fs-ink);
	--ofn-teal: var(--fs-lake);
	--ofn-water: var(--fs-lake);
	--ofn-sand: var(--fs-tint);
	--ofn-paper: #FFFFFF;
	--ofn-orange: var(--fs-amber);
	--ofn-copper: var(--fs-amber-dark);
	--ofn-line: var(--fs-line);
	--ofn-muted: var(--fs-muted);
	--ofn-radius: 4px;
	--ofn-shadow: none;
	--ofn-shell: min(1240px, calc(100% - 48px));

	/* Kadence palette + fonts */
	--global-palette1: var(--fs-lake);
	--global-palette2: var(--fs-lake-dark);
	--global-palette3: var(--fs-ink);
	--global-palette4: #24342F;
	--global-palette5: var(--fs-muted);
	--global-palette6: #7A8A85;
	--global-palette7: var(--fs-line);
	--global-palette8: var(--fs-tint);
	--global-palette9: #FFFFFF;
	--global-body-font-family: var(--fs-body);
	--global-heading-font-family: var(--fs-head);

	/* Brand Companion components */
	--bc-ink: var(--fs-ink);
	--bc-accent: var(--fs-lake);
	--bc-btn: var(--fs-amber);
	--bc-btn-text: var(--fs-ink);
	--bc-tint: var(--fs-tint);
	--bc-border: var(--fs-line);
	--bc-muted: var(--fs-muted);
	--bc-like: var(--fs-lake);
	--bc-dislike: #8C3F12;
	--bc-head-font: var(--fs-head);
	--bc-radius: 6px;
}
@media (max-width: 767px) { html:root { --ofn-shell: calc(100% - 32px); } }

body { font-family: var(--fs-body); color: var(--fs-ink); background: #fff; }
body h1, body h2, body h3, body h4, body h5, body h6,
.entry-content h1, .entry-content h2, .entry-content h3, .entry-content h4 {
	font-family: var(--fs-head); font-weight: 800; text-transform: uppercase; letter-spacing: .005em; color: var(--fs-ink);
}
body a { color: var(--fs-lake); }
body a:hover { color: var(--fs-lake-dark); }
:focus-visible { outline: 3px solid var(--fs-amber); outline-offset: 2px; }

/* ---------- Header (Kadence) ---------- */
#masthead .site-header-row-container-inner,
#masthead .site-main-header-wrap .site-header-row-container-inner { background: #fff; }
#masthead .site-main-header-wrap { border-bottom: 1px solid var(--fs-line); }
#masthead .site-branding img, #masthead .custom-logo { max-height: 52px; width: auto; }
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
	font-family: var(--fs-head); font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--fs-ink);
}
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a { color: var(--fs-lake); }
#masthead .header-navigation .header-menu-container ul ul.sub-menu { background: #fff; border: 1px solid var(--fs-line); border-top: 3px solid var(--fs-lake); box-shadow: 0 10px 24px rgba(16,34,31,.10); }
#masthead .header-navigation .header-menu-container ul ul li.menu-item > a { color: var(--fs-ink); font-family: var(--fs-body); font-weight: 600; font-size: 15px; text-transform: none; }
#masthead .header-navigation .header-menu-container ul ul li.menu-item > a:hover { background: var(--fs-tint); color: var(--fs-lake); }
#mobile-header .site-branding img { max-height: 40px; width: auto; }
#mobile-header .mobile-toggle-open-container .menu-toggle-open { background: var(--fs-lake); color: #fff; border-radius: 8px; width: 44px; height: 44px; padding: 0; justify-content: center; }
#mobile-header .mobile-toggle-open-container .menu-toggle-open:hover { background: var(--fs-lake-dark); color: #fff; }
#mobile-drawer .drawer-inner { background: var(--fs-ink); }
#mobile-drawer .mobile-navigation ul li > a, #mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a {
	font-family: var(--fs-head); font-size: 22px; font-weight: 700; text-transform: uppercase; color: #fff; padding-block: 12px;
}
#mobile-drawer .mobile-navigation ul ul li > a { font-family: var(--fs-body); font-size: 16px; text-transform: none; color: #C3D1CD; }
#mobile-drawer .mobile-navigation ul li { border-color: rgba(255,255,255,.12) !important; }

/* ---------- Footer (Kadence) ---------- */
#colophon, #colophon .site-footer-row-container-inner { background: var(--fs-ink); color: #C3D1CD; }
#colophon a { color: #C3D1CD; }
#colophon a:hover { color: #fff; }
#colophon .widget-title, #colophon h2, #colophon h3 { color: #fff; font-size: 18px; letter-spacing: .06em; }
#colophon .site-bottom-footer-wrap .site-footer-row-container-inner { border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

/* ---------- Shared pieces ---------- */
.ofn-kicker { color: var(--fs-lake); font-family: var(--fs-head); font-size: 15px; font-weight: 700; letter-spacing: .14em; }
.ofn-button { border-radius: 8px; background: var(--fs-amber); border-color: var(--fs-amber); color: var(--fs-ink) !important; font-weight: 700; font-size: 16px; }
.ofn-button:hover, .ofn-button:focus-visible { background: var(--fs-amber-dark); border-color: var(--fs-amber-dark); color: var(--fs-ink) !important; transform: none; }
.ofn-button--ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff !important; }
.ofn-button--ghost:hover, .ofn-button--ghost:focus-visible { background: rgba(255,255,255,.12); color: #fff !important; }
.ofn-text-link { color: var(--fs-lake); }
.ofn-text-link:hover, .ofn-text-link:focus-visible { color: var(--fs-lake-dark); }
.ofn-breadcrumbs, .ofn-breadcrumbs a { color: var(--fs-muted); font-size: 15px; }
.ofn-breadcrumbs a:hover { color: var(--fs-lake); }
.ofn-section--tint { background: var(--fs-tint); }
.ofn-section-heading h2 { font-size: clamp(30px, 3.4vw, 40px); }

/* Cards: square, top accent, no lift */
.ofn-hub-card, .ofn-guide-card, .ofn-note-card { border-radius: 0; box-shadow: none; border: 1px solid var(--fs-line); border-top: 4px solid var(--fs-lake); background: #fff; }
.ofn-hub-card:hover, .ofn-guide-card:hover, .ofn-note-card:hover { transform: none; box-shadow: 0 8px 22px rgba(16,34,31,.08); }
.ofn-card__media, .ofn-hub-card__image { border-radius: 0; }
.ofn-guide-card:hover .ofn-card__media img, .ofn-note-card:hover .ofn-card__media img { transform: none; }
.ofn-guide-card h3, .ofn-note-card h3, .ofn-hub-card__title { font-family: var(--fs-body); text-transform: none; font-weight: 700; font-size: 18px; line-height: 1.35; letter-spacing: 0; }
.ofn-hub-card__title { font-family: var(--fs-head); text-transform: uppercase; font-size: 24px; }
.ofn-guide-card h3 a, .ofn-note-card h3 a { color: var(--fs-ink); }
.ofn-guide-card h3 a:hover, .ofn-note-card h3 a:hover { color: var(--fs-lake); }
.ofn-card__eyebrow { color: var(--fs-lake); font-family: var(--fs-head); letter-spacing: .1em; }
.ofn-card__footer a, .ofn-hub-card__cta { color: var(--fs-lake); }
.ofn-card__media--fallback, .ofn-hub-card__image--fallback, .ofn-hub-hero__fallback { background: var(--fs-lake); color: #fff; font-family: var(--fs-head); text-transform: uppercase; }
.ofn-hub-card__image--fallback:nth-child(2n) { background: var(--fs-ink); }

/* ---------- Homepage ---------- */
.ofn-home-hero { background: var(--fs-ink); }
.ofn-home-hero__grid { min-height: 520px; padding-block: 72px; }
.ofn-home-hero h1 { font-size: clamp(44px, 6vw, 80px); line-height: .96; text-transform: uppercase; }
.ofn-home-hero .ofn-kicker { color: var(--fs-amber); }
.ofn-home-hero__text { color: #C3D1CD; font-size: 19px; }
.ofn-ripple { border-color: rgba(232,145,43,.45); }
.ofn-newsletter { background: var(--fs-lake); }

/* ---------- Hub ---------- */
.ofn-hub-hero { background: var(--fs-tint); border-bottom: 1px solid var(--fs-line); }
.ofn-hub-hero h1 { font-size: clamp(42px, 5vw, 68px); line-height: .98; }
.ofn-hub-hero__count { color: var(--fs-lake); font-weight: 700; }
.ofn-hub-hero__media img { border-radius: 0; }

/* ---------- Buying guide ---------- */
.fs-guide-header { padding: 36px 0 8px; }
.fs-guide-header h1 { margin: 12px 0 0; font-size: clamp(38px, 5.2vw, 64px); line-height: .98; max-width: 980px; }
.fs-guide-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 14px; color: var(--fs-muted); font-size: 15px; }
.fs-disclosure { max-width: 780px; margin-top: 14px; }
.fs-disclosure .ofn-trust-box { margin: 0; padding: 2px 0 2px 10px; border: 0; border-left: 3px solid var(--fs-amber); background: none; border-radius: 0; box-shadow: none; }
.fs-disclosure .ofn-trust-box, .fs-disclosure .ofn-trust-box p, .fs-disclosure .ofn-trust-box strong { font-size: 12px; line-height: 1.5; color: var(--fs-muted); margin: 0; }
.ofn-guide-shortcuts { margin-top: 18px; }
.ofn-guide-shortcuts a { border-radius: 4px; border: 1px solid var(--fs-line); background: #fff; color: var(--fs-ink); font-family: var(--fs-head); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; font-size: 16px; }
.ofn-guide-shortcuts a:hover, .ofn-guide-shortcuts a:focus-visible { border-color: var(--fs-lake); color: var(--fs-lake); background: var(--fs-tint); }
.ofn-takeaways-card { border-radius: 0; background: var(--fs-tint); border-left: 4px solid var(--fs-lake); box-shadow: none; }
.fs-guide-content { padding-top: 16px; }
.ofn-guide-content .entry-content { max-width: none; font-size: 18px; color: #24342F; }
.ofn-guide-content .entry-content h2 { font-size: clamp(30px, 3.2vw, 38px); line-height: 1.05; }
.ofn-guide-content .entry-content h3 { font-size: clamp(24px, 2.4vw, 28px); line-height: 1.1; }
.ofn-guide-content .entry-content h4 { font-size: 20px; }
.fs-guide .bc-guide__body { max-width: 860px; }
.fs-guide .bc-glance__title { font-size: 34px; }
.fs-guide .bc-glance__card { border-radius: 0; border-top-width: 4px; }
.fs-guide .bc-glance__img { border-radius: 0; }
.fs-guide .bc-product { border-top-width: 4px; }
.fs-guide .bc-panel { border-radius: 0; }
.fs-guide .bc-panel > :first-child { text-transform: uppercase; letter-spacing: .03em; font-size: 20px !important; }
.fs-guide .bc-toc { border-radius: 0; font-size: 15px; }
.fs-guide .bc-toc__title { font-size: 20px; text-transform: uppercase; }
.fs-guide a.amz-button { font-size: 16px; padding: 14px 24px; }
.ofn-guide-content .entry-content table { border-radius: 0; }
.ofn-guide-content .entry-content th { background: var(--fs-ink); color: #fff; }

/* Rank Math FAQ as tidy panels */
.entry-content .rank-math-faq-item { border: 1px solid var(--fs-line); border-left: 4px solid var(--fs-lake); padding: 14px 18px; margin: 0 0 12px; }
.entry-content .rank-math-question { font-family: var(--fs-body) !important; text-transform: none !important; font-size: 19px !important; font-weight: 700 !important; margin: 0 0 6px !important; }
.entry-content .rank-math-answer p:last-child { margin-bottom: 0; }

/* Continue exploring */
.fs-more { background: var(--fs-ink); color: #fff; padding: 44px 0; margin-top: 40px; }
.fs-more__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fs-more__head h2 { color: #fff; margin: 0; font-size: 34px; }
.fs-more__head a { color: var(--fs-amber); font-weight: 700; }
.fs-more__head a:hover { color: #fff; }
.fs-more__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.fs-more__grid a { background: #1B3530; color: #fff; padding: 18px; font-weight: 700; line-height: 1.35; text-decoration: none; }
.fs-more__grid a:hover { background: var(--fs-lake); color: #fff; }

/* Back-to-top: brand colour, and lift above the phone buy bar */
body .ofn-back-to-top.ofn-back-to-top { background: var(--fs-lake) !important; }
body .ofn-back-to-top.ofn-back-to-top:hover, body .ofn-back-to-top.ofn-back-to-top:focus-visible { background: var(--fs-lake-dark) !important; }
@media (max-width: 899px) { body:has(.bc-buybar.is-on) .ofn-back-to-top.ofn-back-to-top { bottom: calc(84px + env(safe-area-inset-bottom)) !important; } }

/* ---------- Phones ---------- */
@media (max-width: 767px) {
	.fs-guide-header { padding-top: 18px; }
	.fs-guide-header h1 { font-size: 40px; }
	.fs-guide-meta { font-size: 13px; }
	.fs-disclosure .ofn-trust-box, .fs-disclosure .ofn-trust-box p, .fs-disclosure .ofn-trust-box strong { font-size: 11px; }
	.ofn-guide-shortcuts a { font-size: 14px; }
	.ofn-guide-content .entry-content { font-size: 17px; }
	.fs-guide .bc-glance__title { font-size: 26px; }
	.ofn-home-hero__grid { min-height: 0; padding-block: 40px; }
	.ofn-home-hero h1 { font-size: 44px; }
}

/* Guide body uses the full shell (base theme capped it at 840px) */
.fs-guide .ofn-guide-content.fs-guide-content { max-width: none; width: var(--ofn-shell); }
@media (min-width: 1100px) { .fs-guide .bc-guide { grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; } .fs-guide .bc-glance__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* Phones/tablets: the header shortcuts + sticky buy bar replace the contents box */
@media (max-width: 1099px) { .fs-guide .bc-toc { display: none; } }
/* Card fallback: product photo shown whole on a light panel */
.ofn-card__media--product { background: var(--fs-tint); display: flex; align-items: center; justify-content: center; }
.ofn-card__media--product img { object-fit: contain !important; width: auto !important; max-width: 82%; height: 82% !important; mix-blend-mode: multiply; }
.ofn-card__media--fallback span { color: #fff; font-size: 26px; padding: 18px; line-height: 1; }
/* Hub without a featured image: no empty box, compact title band */
.ofn-hub-hero__grid:has(.ofn-hub-hero__fallback) { grid-template-columns: 1fr; min-height: 0; padding-block: 40px 36px; }
.ofn-hub-hero__media:has(.ofn-hub-hero__fallback) { display: none; }
.ofn-hub-hero__grid:has(.ofn-hub-hero__fallback) .ofn-hub-hero__text { max-width: 760px; }
.ofn-hub-hero:has(.ofn-hub-hero__fallback) { padding-block: 0; min-height: 0; }

/* Heading rhythm: less space above, clear space below, so a heading sits with its own text */
.ofn-guide-content .entry-content h2, .ofn-hub-main .entry-content h2, .ofn-content-page .entry-content h2 { margin: 1.5em 0 .6em; }
.ofn-guide-content .entry-content h3, .ofn-hub-main .entry-content h3, .ofn-content-page .entry-content h3 { margin: 1.4em 0 .5em; }
.ofn-guide-content .entry-content h4, .ofn-hub-main .entry-content h4, .ofn-content-page .entry-content h4 { margin: 1.3em 0 .45em; }
.entry-content h2 + ul, .entry-content h2 + ol, .entry-content h3 + ul, .entry-content h3 + ol { margin-top: 0; }
.fs-guide .bc-glance { margin-top: 1.5em; }
.fs-guide .bc-glance__title { margin: 0 0 16px !important; }
.fs-guide .bc-product > h2:first-child, .fs-guide .bc-product > h3:first-child { margin-top: 0; margin-bottom: .6em; }
.fs-guide .bc-panel > :first-child { margin: 0 0 8px !important; }
