/*
Theme Name: Deep End Frank Knowledge Base
Theme URI: https://www.youtube.com/@deependfrank
Author: Deep End Frank
Author URI: https://www.youtube.com/@deependfrank
Description: A clean, modern, easy-to-navigate pool knowledge base theme for pool owners and pros. Auto-embeds videos from the Deep End Frank YouTube channel, builds a full help center, guides, calculators, and a DFW community hub on activation. Built for North Texas pool owners.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deependfrank
Tags: knowledge-base, custom-menu, featured-images, threaded-comments, translation-ready, full-width-template, blog, education
*/

/* =========================================================================
   Deep End Frank KB — Design System
   ========================================================================= */

:root {
  /* Brand — deep water to shallow aqua */
  --def-navy:    #0b2432;
  --def-deep:    #0e4d63;
  --def-blue:    #0e7490;
  --def-primary: #0891b2;
  --def-cyan:    #06b6d4;
  --def-sky:     #38bdf8;
  --def-aqua:    #22d3ee;

  /* Neutrals */
  --def-bg:      #f4f8fb;
  --def-surface: #ffffff;
  --def-surface-2:#eef5f9;
  --def-ink:     #0f2733;
  --def-body:    #33505f;
  --def-muted:   #5b7180;
  --def-line:    #dbe7ee;
  --def-line-2:  #eaf1f5;

  /* Accents */
  --def-warn:    #f59e0b;
  --def-good:    #16a34a;
  --def-danger:  #dc2626;

  /* Effects */
  --def-radius:      16px;
  --def-radius-sm:   10px;
  --def-radius-lg:   24px;
  --def-shadow:      0 1px 2px rgba(11,36,50,.06), 0 8px 24px rgba(11,36,50,.06);
  --def-shadow-lg:   0 10px 40px rgba(11,36,50,.14);
  --def-ring:        0 0 0 3px rgba(8,145,178,.28);
  --def-grad:        linear-gradient(135deg, #0e4d63 0%, #0891b2 45%, #06b6d4 100%);
  --def-grad-soft:   linear-gradient(135deg, #e8f6fb 0%, #f4f8fb 100%);

  --def-header-h: 72px;
  --def-max: 1200px;
  --def-font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--def-header-h) + 20px); }
body {
  margin: 0;
  font-family: var(--def-font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--def-body);
  background: var(--def-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--def-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--def-primary); }
h1, h2, h3, h4 { color: var(--def-ink); line-height: 1.25; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin: .3em 0; }
hr { border: 0; border-top: 1px solid var(--def-line); margin: 2.5rem 0; }
:focus-visible { outline: none; box-shadow: var(--def-ring); border-radius: 6px; }

/* ---------- Layout ---------- */
.def-wrap { width: 100%; max-width: var(--def-max); margin: 0 auto; padding: 0 22px; }
.def-section { padding: 64px 0; }
.def-section--tight { padding: 40px 0; }
.def-section--band { background: #fff; border-top: 1px solid var(--def-line); border-bottom: 1px solid var(--def-line); }
.def-section--band-top { background: #fff; border-top: 1px solid var(--def-line); }
.def-fb-wrap { padding: 24px 0 64px; }
.def-pt-24 { padding-top: 24px; }
.def-pt-64 { padding-top: 64px; }
.def-pb-64 { padding-bottom: 64px; }
.def-grid { display: grid; gap: 22px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.def-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--def-primary); margin: 0 0 .6rem;
}
.def-eyebrow svg { width: 16px; height: 16px; flex: 0 0 auto; }
.def-lead { font-size: 1.15rem; color: var(--def-muted); max-width: 60ch; }
.def-center { text-align: center; }
.def-center .def-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.def-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.def-btn svg { width: 18px; height: 18px; }
.def-btn--primary { background: var(--def-grad); color: #fff; box-shadow: 0 6px 18px rgba(8,145,178,.32); }
.def-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(8,145,178,.4); }
.def-btn--ghost { background: #fff; color: var(--def-deep); border-color: var(--def-line); }
.def-btn--ghost:hover { color: var(--def-primary); border-color: var(--def-primary); transform: translateY(-2px); }
.def-btn--light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
.def-btn--light:hover { color: #fff; background: rgba(255,255,255,.24); }

/* ---------- Header / Nav ---------- */
.def-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--def-line);
}
/* Mobile browsers vary in backdrop-filter support — go fully opaque below
   the drawer breakpoint so scrolled content can never show through the
   sticky header. */
@media (max-width: 1080px) {
  .def-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.def-header__bar {
  min-height: var(--def-header-h);
  display: flex; align-items: center; gap: 18px; flex-wrap: nowrap;
}
.def-header__cta { flex: 0 0 auto; }
.def-brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 900; color: var(--def-ink); letter-spacing: -.02em; font-size: 1.12rem; min-width: 0; flex: 0 0 auto; }
.def-brand:hover { color: var(--def-ink); }
.def-brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  background: var(--def-grad); color: #fff;
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(8,145,178,.35);
}
.def-brand__mark svg { width: 22px; height: 22px; }
.def-brand__text { display: flex; flex-direction: column; min-width: 0; max-width: 190px; line-height: 1.2; color: var(--def-ink); }
.def-brand__text:hover { color: var(--def-ink); }
.def-brand__name { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.def-brand small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--def-muted); }

/* Custom Logo (Appearance > Customize > Site Identity) — header only; the
   footer always shows the plain text brand, never the logo image. */
.def-brand--logo { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.def-brand--logo .custom-logo-link { display: flex; align-items: center; }
.def-header .def-brand--logo img.custom-logo { height: 46px; width: auto; border-radius: 50%; }

.def-nav { margin-left: auto; min-width: 0; overflow: hidden; }
.def-menu { list-style: none; display: flex; align-items: center; gap: 1px; margin: 0; padding: 0; flex-wrap: nowrap; }
.def-menu > li { position: relative; }
.def-menu > li > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border-radius: 9px; white-space: nowrap;
  color: var(--def-ink); font-weight: 600; font-size: .93rem;
}
.def-menu > li > a:hover,
.def-menu > li.menu-item-has-children:hover > a { background: var(--def-surface-2); color: var(--def-primary); }
.def-menu > li.current-menu-item > a,
.def-menu > li.current-menu-parent > a,
.def-menu > li.current-menu-ancestor > a { color: var(--def-primary); }
.def-menu .menu-item-has-children > a::after {
  content: ""; width: 8px; height: 8px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); opacity: .6;
}

/* Dropdowns */
.def-menu ul.sub-menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 250px;
  background: #fff; border: 1px solid var(--def-line);
  border-radius: 14px; box-shadow: var(--def-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.def-menu > li:hover > ul.sub-menu,
.def-menu > li:focus-within > ul.sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.def-menu ul.sub-menu li a {
  display: block; padding: 10px 12px; border-radius: 9px;
  color: var(--def-body); font-size: .93rem; font-weight: 550;
}
.def-menu ul.sub-menu li a:hover { background: var(--def-surface-2); color: var(--def-primary); }

.def-header__cta { display: inline-flex; align-items: center; gap: 10px; }
.def-search-toggle, .def-nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--def-surface-2); border: 1px solid var(--def-line);
  color: var(--def-ink); cursor: pointer;
}
.def-search-toggle svg, .def-nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
@media (max-width: 1080px) {
  .def-header__cta .def-btn { display: none; }
  .def-nav-toggle, .def-search-toggle { display: inline-flex; }
  .def-nav {
    position: fixed; inset: var(--def-header-h) 0 0 auto; width: min(360px, 86vw);
    background: #fff; border-left: 1px solid var(--def-line);
    box-shadow: var(--def-shadow-lg); padding: 16px; overflow-y: auto;
    transform: translateX(100%); transition: transform .22s ease; margin: 0;
  }
  body.def-nav-open .def-nav { transform: translateX(0); }
  body.def-nav-open { overflow: hidden; }
  .def-menu { flex-direction: column; align-items: stretch; gap: 2px; }
  .def-menu > li > a { justify-content: space-between; font-size: 1.02rem; padding: 13px 14px; }
  .def-menu ul.sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--def-line-2);
    border-radius: 0; margin: 2px 0 8px 14px; padding: 2px 0 2px 8px; min-width: 0;
  }
  .def-menu .menu-item-has-children > a::after { display: none; }
}

/* Narrow phones — the brand block (esp. with a logo image) can otherwise
   crowd the search/menu toggle buttons and force an overlap. */
@media (max-width: 420px) {
  .def-wrap { padding: 0 14px; }
  .def-header__bar { gap: 10px; }
  .def-brand__text { max-width: 120px; }
  .def-brand small { display: none; }
  .def-brand--logo { gap: 8px; }
  .def-header .def-brand--logo img.custom-logo { height: 36px; }
  .def-brand__mark { width: 32px; height: 32px; }
  .def-brand__mark svg { width: 18px; height: 18px; }
  .def-search-toggle, .def-nav-toggle { width: 40px; height: 40px; }
}
.def-scrim { position: fixed; inset: 0; background: rgba(11,36,50,.4); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 99; }
body.def-nav-open .def-scrim { opacity: 1; visibility: visible; }

/* ---------- Search overlay ---------- */
.def-search-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: start center;
  padding-top: 14vh; background: rgba(11,36,50,.55);
  backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .2s;
}
body.def-search-open .def-search-overlay { opacity: 1; visibility: visible; }

/* Reusable white search-field card — used standalone (404, search results,
   the All Articles archive) and inside the header's search overlay. */
.def-search-box { background: #fff; border-radius: 18px; box-shadow: var(--def-shadow-lg); padding: 10px; }
.def-search-overlay .def-search-box { width: min(680px, 92vw); transform: translateY(-12px); transition: transform .2s; }
body.def-search-open .def-search-box { transform: translateY(0); }

/* ---------- Search field ---------- */
.def-searchform { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.def-searchform input[type="search"] {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.1rem;
  padding: 14px 12px; color: var(--def-ink);
}
.def-searchform input[type="search"]:focus { outline: none; box-shadow: none; }
.def-searchform .def-search-icon { color: var(--def-muted); padding-left: 8px; flex: 0 0 auto; }
.def-searchform .def-search-icon svg { width: 22px; height: 22px; }
.def-searchform button { flex: 0 0 auto; white-space: nowrap; }

@media (max-width: 480px) {
  .def-searchform { gap: 4px; }
  .def-searchform input[type="search"] { font-size: .92rem; padding: 12px 4px; }
  .def-searchform .def-search-icon { padding-left: 6px; }
  .def-searchform .def-search-icon svg { width: 18px; height: 18px; }
  .def-searchform button { padding: 11px 14px; font-size: .82rem; }
}

/* ---------- Hero ---------- */
.def-hero {
  position: relative; overflow: hidden; color: #fff;
  background-color: #0e4d63;
  background-image: url('assets/images/waterlol.gif');
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.def-hero::before {
  /* Darkens the moving background so white text stays readable over it. */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(135deg, rgba(14,36,50,.72) 0%, rgba(8,50,66,.6) 50%, rgba(6,182,212,.55) 100%);
}
.def-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background:
    radial-gradient(60% 90% at 85% 0%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(50% 70% at 5% 100%, rgba(4,30,45,.4), transparent 60%);
}
.def-hero__inner { position: relative; z-index: 1; padding: 84px 0 92px; text-align: center; }
.def-hero__inner--sm { padding: 64px 0 72px; }
.def-hero h1 { color: #fff; max-width: 16ch; margin: 0 auto .4em; }
.def-hero .def-lead { color: rgba(255,255,255,.92); font-size: 1.25rem; margin: 0 auto 2rem; }
.def-hero .def-eyebrow { color: #d9f6ff; }
.def-hero__search {
  max-width: 440px; margin: 0 auto; background: #fff; border-radius: 11px;
  box-shadow: var(--def-shadow-lg); padding: 3px 3px 3px 14px; display: flex; align-items: center; gap: 8px;
}
.def-hero__search svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--def-muted); }
.def-hero__search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .88rem; padding: 8px 0; color: var(--def-ink); }
.def-hero__search input:focus { outline: none; }
.def-hero__search .def-btn { padding: 8px 16px; font-size: .84rem; flex: 0 0 auto; }
.def-hero__meta { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 26px; color: rgba(255,255,255,.9); font-size: .95rem; font-weight: 600; }
.def-hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.def-hero__wave { position: relative; z-index: 1; display: block; width: 100%; height: 60px; margin-bottom: -1px; }

/* ---------- Cards ---------- */
.def-card {
  position: relative; background: var(--def-surface); border: 1px solid var(--def-line);
  border-radius: var(--def-radius); padding: 26px; box-shadow: var(--def-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  display: flex; flex-direction: column; height: 100%;
}
.def-card:hover { transform: translateY(-4px); box-shadow: var(--def-shadow-lg); border-color: #bfe0ec; }
.def-card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--def-grad-soft); color: var(--def-primary); margin-bottom: 16px;
  border: 1px solid #d6ecf3;
}
.def-card__icon svg { width: 26px; height: 26px; }
.def-card h3 { margin-bottom: .35em; }
.def-card h3 a { color: var(--def-ink); }
.def-card h3 a:hover { color: var(--def-primary); }
.def-card p { color: var(--def-muted); font-size: .98rem; margin-bottom: 1em; }
.def-card__more { margin-top: auto; font-weight: 700; color: var(--def-primary); display: inline-flex; align-items: center; gap: 6px; font-size: .95rem; }
.def-card__more svg { width: 16px; height: 16px; transition: transform .15s; }
.def-card:hover .def-card__more svg { transform: translateX(4px); }
.def-card__count { position: absolute; top: 20px; right: 22px; font-size: .8rem; font-weight: 700; color: var(--def-muted); background: var(--def-surface-2); padding: 3px 10px; border-radius: 999px; }

/* Admin-only "edit" pencil — shown to logged-in users who can edit that
   specific topic/page/article. As a floating badge on cards; as a plain
   inline button on list rows. */
.def-card-wrap { position: relative; height: 100%; }
.def-edit-pencil {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; border: 1px solid var(--def-line); box-shadow: var(--def-shadow);
  color: var(--def-muted); transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.def-edit-pencil:hover { color: var(--def-primary); border-color: var(--def-primary); }
.def-edit-pencil svg { width: 14px; height: 14px; }
.def-card-wrap .def-edit-pencil { position: absolute; top: -10px; right: -10px; z-index: 5; }
.def-card-wrap .def-edit-pencil:hover { transform: scale(1.08); }

/* Colored icon variants */
.def-i-chem   { background: #e8f6fb; color: #0891b2; }
.def-i-algae  { background: #e7f7ee; color: #16a34a; }
.def-i-filter { background: #eef2ff; color: #6366f1; }
.def-i-equip  { background: #fef3e7; color: #ea8a0b; }
.def-i-maint  { background: #e8f6fb; color: #0e7490; }
.def-i-repair { background: #fdeaea; color: #dc2626; }
.def-i-texas  { background: #fff4e6; color: #d9772b; }

/* ---------- Section header ---------- */
.def-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.def-shead h2 { margin: 0; }
.def-shead p { margin: .4em 0 0; color: var(--def-muted); }
.def-shead__link { font-weight: 700; color: var(--def-primary); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }

/* ---------- Video grid ---------- */
.def-video-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .def-video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .def-video-grid { grid-template-columns: 1fr; } }
.def-video {
  position: relative;
  background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius);
  overflow: hidden; box-shadow: var(--def-shadow); transition: transform .16s ease, box-shadow .16s ease;
  display: flex; flex-direction: column;
}
.def-video:hover { transform: translateY(-4px); box-shadow: var(--def-shadow-lg); }
.def-video__pin { position: absolute; top: 10px; right: 10px; z-index: 3; }
.def-video__thumb { position: relative; aspect-ratio: 16 / 9; background: #0b2432; display: block; }
.def-video__thumb img { width: 100%; height: 100%; object-fit: cover; }
.def-video__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,36,50,.55));
}
.def-video__play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 999px;
  background: rgba(255,255,255,.92); display: grid; place-items: center; z-index: 2;
  box-shadow: 0 8px 22px rgba(0,0,0,.3); transition: transform .16s ease, background .16s ease;
}
.def-video:hover .def-video__play { transform: scale(1.08); background: #fff; }
.def-video__play svg { width: 26px; height: 26px; color: var(--def-primary); margin-left: 3px; }
.def-video__badge {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  background: rgba(11,36,50,.85); color: #fff; font-size: .74rem; font-weight: 700;
  padding: 2px 7px; border-radius: 5px; letter-spacing: .01em;
}
.def-video__badge--short { background: var(--def-primary); text-transform: uppercase; }
.def-video__body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.def-video__title { font-weight: 700; color: var(--def-ink); font-size: 1.02rem; line-height: 1.35; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.def-video__date { margin-top: auto; font-size: .85rem; color: var(--def-muted); }
.def-video-embed { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--def-radius); overflow: hidden; }

/* ---------- Shorts carousel (channel Shorts, vertical cards) ---------- */
.def-shorts-carousel__heading { font-size: 1.3rem; font-weight: 800; color: var(--def-ink); margin: 0 0 14px; }
.def-shorts-carousel { margin-bottom: 8px; }
.def-short-card { position: relative; width: 170px; flex: 0 0 auto; }
.def-short-card .def-video__pin { top: 8px; right: 8px; }
.def-short-card__link {
  display: flex; flex-direction: column; gap: 8px; color: inherit;
}
.def-short-card__link:hover { color: inherit; }
.def-short-card__thumb {
  position: relative; display: block; aspect-ratio: 9/16; border-radius: var(--def-radius);
  overflow: hidden; background: #0b2432; box-shadow: var(--def-shadow);
}
.def-short-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.def-short-card__thumb .def-video__play { width: 46px; height: 46px; }
.def-short-card__thumb .def-video__play svg { width: 20px; height: 20px; }
.def-short-card:hover .def-short-card__thumb { box-shadow: var(--def-shadow-lg); }
.def-short-card__title {
  font-weight: 700; font-size: .88rem; line-height: 1.3; color: var(--def-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
@media (max-width: 640px) { .def-short-card { width: 132px; } }

/* ---------- Brand band (Deep End Frank banner graphic, top of Home) ---------- */
/* banner2.jpg is a wide, short strip (1707x282) by design, so it can simply
   stretch to 100% width at its native aspect ratio — full-bleed edge to
   edge, no letterboxing/fill on the sides, no cropping. */
.def-brand-band { width: 100%; line-height: 0; }
.def-brand-band__img { display: block; width: 100%; height: auto; }

/* ---------- Frank's Picks band (element-based, animated) ---------- */
/* Deeper navy, matching the banner2.jpg palette above it — no teal/cyan
   in the background itself, cyan is reserved for text/icon accents only. */
.def-picks-band {
  position: relative; overflow: hidden; width: 100%; padding: 30px 0 66px;
  background: linear-gradient(150deg, #050f21, #0a1f3d 45%, #0c2a52 100%);
  background-size: 200% 200%;
  animation: def-picks-drift 12s ease-in-out infinite;
}
.def-picks-band__shine {
  position: absolute; top: 0; bottom: 0; left: -30%; width: 22%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent);
  transform: skewX(-14deg);
  animation: def-picks-shine 6s ease-in-out infinite;
  pointer-events: none;
}
.def-picks-band__inner { position: relative; z-index: 1; }
.def-picks-band__head {
  display: flex; align-items: center; gap: 18px; justify-content: center; text-align: left;
  margin-bottom: 20px; animation: def-picks-fadeup .6s ease both;
}
.def-picks-band__badge {
  flex: 0 0 auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32);
  display: grid; place-items: center; color: var(--def-cyan);
  animation: def-picks-pulse 2.6s ease-in-out infinite;
}
.def-picks-band__badge svg { width: 30px; height: 30px; }
.def-picks-band__title { margin: 0 0 4px; color: #fff; font-size: clamp(1.3rem, 3.2vw, 1.9rem); font-weight: 800; }
.def-picks-band__title span { color: var(--def-cyan); }
.def-picks-band__sub { margin: 0; color: rgba(255,255,255,.85); font-size: clamp(.86rem, 1.6vw, .98rem); }
.def-picks-band__sub strong { color: var(--def-cyan); font-weight: 700; }
.def-picks-band__cats {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px;
  animation: def-picks-fadeup .6s ease .12s both;
}
.def-picks-band__cat {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28);
  color: #fff; font-weight: 700; font-size: .82rem; letter-spacing: .01em;
  transition: background .16s ease, transform .16s ease;
}
.def-picks-band__cat:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.def-picks-band__cat svg { width: 19px; height: 19px; color: var(--def-cyan); flex: 0 0 auto; }
.def-picks-band__trust {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--def-radius); padding: 16px 22px; max-width: 820px; margin: 0 auto;
  animation: def-picks-fadeup .6s ease .24s both;
}
.def-picks-band__trust strong { color: #fff; white-space: nowrap; font-size: .86rem; }
.def-picks-band__trust-text { color: rgba(255,255,255,.82); font-size: .8rem; text-align: left; flex: 1 1 260px; }
.def-picks-band__trust-ico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.14); display: grid; place-items: center; color: var(--def-cyan);
}
.def-picks-band__trust-ico svg { width: 20px; height: 20px; }
.def-picks-band__trust-ico--end { font-size: 1.3rem; line-height: 1; }
@keyframes def-picks-drift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes def-picks-shine {
  0% { left: -30%; }
  50% { left: 130%; }
  100% { left: 130%; }
}
@keyframes def-picks-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.3); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
@keyframes def-picks-fadeup {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Scroll cue — a gentle bouncing chevron at the very bottom of the band,
   plus a soft fade so the dark band melts into the page instead of a hard
   cut, keeping the page feeling like one continuous flow. */
.def-picks-band::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 64px;
  background: linear-gradient(180deg, transparent, rgba(244,248,251,.06));
  pointer-events: none;
}
.def-picks-band__scrollcue {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.def-picks-band__scrollcue-text {
  color: rgba(255,255,255,.75); font-size: .68rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.def-picks-band__scrollcue-arrows { display: flex; flex-direction: column; align-items: center; margin-top: -2px; }
.def-picks-band__scrollcue-arrow {
  display: block; width: 18px; height: 18px; margin-top: -7px; color: rgba(255,255,255,.65);
  animation: def-picks-bounce 1.6s ease-in-out infinite;
}
.def-picks-band__scrollcue-arrow svg { display: block; width: 100%; height: 100%; transform: rotate(90deg); }
.def-picks-band__scrollcue-arrow:nth-child(1) { animation-delay: 0s; }
.def-picks-band__scrollcue-arrow:nth-child(2) { animation-delay: .15s; }
.def-picks-band__scrollcue-arrow:nth-child(3) { animation-delay: .3s; }
@keyframes def-picks-bounce {
  0%, 100% { opacity: .4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(4px); }
}

@media (max-width: 640px) {
  .def-picks-band { padding: 22px 0 58px; }
  .def-picks-band__head { flex-direction: column; text-align: center; gap: 10px; }
  .def-picks-band__badge { width: 54px; height: 54px; }
  .def-picks-band__badge svg { width: 26px; height: 26px; }
  .def-picks-band__cats { gap: 8px; }
  .def-picks-band__cat { font-size: .76rem; padding: 8px 13px; }
  .def-picks-band__cat svg { width: 17px; height: 17px; }
  .def-picks-band__trust { padding: 14px 16px; }
  .def-picks-band__trust-text { text-align: center; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .def-picks-band, .def-picks-band__shine, .def-picks-band__badge, .def-picks-band__scrollcue-arrow,
  .def-picks-band__head, .def-picks-band__cats, .def-picks-band__trust { animation: none; }
}

/* Offers carousel nested inside the Frank's Picks band — light-on-dark
   variant so it reads as one continuous section rather than a bolted-on
   white block. */
.def-picks-band__offers { margin-top: 24px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); }
.def-widgets-panel--dark .def-widgets-panel__heading { color: #fff; }
.def-widgets-panel--dark .def-notice {
  background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); color: rgba(255,255,255,.85);
}
.def-widgets-panel--dark .def-hscroll-arrow { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; }
.def-widgets-panel--dark .def-hscroll-arrow:hover { background: #fff; color: var(--def-primary); border-color: #fff; }
/* Frosted-glass cards instead of stark white, so they read as part of the
   band rather than a bolted-on white block. */
.def-widgets-panel--dark .def-widget-card {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); box-shadow: none;
}
.def-widgets-panel--dark .def-widget-card h4 { color: #fff; }
.def-widgets-panel--dark .def-widget-card__link:hover h4 { color: var(--def-cyan); }
.def-widgets-panel--dark .def-widget-card p { color: rgba(255,255,255,.75); }
.def-widgets-panel--dark .def-widget-card__footer span { color: rgba(255,255,255,.7); }
.def-widgets-panel--dark .def-widget-card .def-pin-btn {
  background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff;
}
.def-widgets-panel--dark .def-widget-card .def-pin-btn:hover { background: #fff; color: var(--def-primary); }

/* ---------- Widgets panel (Home, right under the Frank's Picks banner) ---------- */
.def-widgets-panel { margin-bottom: 8px; }
.def-widgets-panel__heading { margin: 0; font-size: 1.3rem; font-weight: 800; color: var(--def-ink); }
.def-widget-card {
  position: relative; width: 220px; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius);
  box-shadow: var(--def-shadow); padding: 14px 14px 12px; display: flex; flex-direction: column;
}
.def-widget-card__link { display: block; color: inherit; }
.def-widget-card__link:hover { color: inherit; }
.def-widget-card__link:hover h4 { color: var(--def-primary); }
.def-widget-card h4 { margin: 0 0 5px; font-size: .94rem; line-height: 1.3; color: var(--def-ink); }
.def-widget-card p { margin: 0; font-size: .82rem; color: var(--def-muted); }
/* Small footer image + text, like the "Frank" avatar row on post cards —
   never a large/central image, keeps the card short. */
.def-widget-card__footer { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.def-widget-card__footer img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.def-widget-card__footer span { font-size: .78rem; font-weight: 700; color: var(--def-muted); }
.def-widget-card__foot { display: flex; gap: 6px; margin-top: 8px; }

/* Add/Edit Widget modal — image picker row. */
.def-widget-modal__image { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.def-widget-modal__image img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--def-line); }
.def-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--def-line); border-radius: 10px;
  font: inherit; color: var(--def-ink); background: #fff; resize: vertical;
}
.def-field textarea:focus { outline: none; border-color: var(--def-primary); box-shadow: var(--def-ring); }

.def-embed-frame { position: relative; aspect-ratio: 16/9; background: #0b2432; }
.def-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Article layout ---------- */
.def-article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
@media (max-width: 960px) { .def-article-wrap { grid-template-columns: 1fr; } }
.def-article { background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius-lg); padding: 44px; box-shadow: var(--def-shadow); }
@media (max-width: 620px) { .def-article { padding: 26px; } }
.def-article > *:first-child { margin-top: 0; }
.def-article img { border-radius: var(--def-radius); margin: 1.5rem 0; }
.def-article h2 { margin-top: 2rem; }
.def-article h3 { margin-top: 1.6rem; }
.def-article blockquote {
  margin: 1.5rem 0; padding: 16px 22px; border-left: 4px solid var(--def-cyan);
  background: var(--def-surface-2); border-radius: 0 12px 12px 0; color: var(--def-ink); font-style: italic;
}
.def-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; }
.def-article th, .def-article td { border: 1px solid var(--def-line); padding: 10px 14px; text-align: left; }
.def-article th { background: var(--def-surface-2); color: var(--def-ink); font-weight: 700; }
.def-article code { background: var(--def-surface-2); padding: 2px 7px; border-radius: 6px; font-size: .9em; }

.def-toc { position: sticky; top: calc(var(--def-header-h) + 20px); background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius); padding: 22px; box-shadow: var(--def-shadow); }
.def-toc h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--def-muted); margin: 0 0 12px; }
.def-toc ul { list-style: none; margin: 0; padding: 0; }
.def-toc li { margin: 0; }
.def-toc a { display: block; padding: 7px 12px; border-radius: 8px; color: var(--def-body); font-size: .93rem; border-left: 2px solid transparent; }
.def-toc a:hover, .def-toc a.is-active { background: var(--def-surface-2); color: var(--def-primary); border-left-color: var(--def-primary); }

/* ---------- Breadcrumb & meta ---------- */
.def-crumbs { font-size: .88rem; color: var(--def-muted); margin-bottom: 18px; }
.def-crumbs a { color: var(--def-muted); font-weight: 600; }
.def-crumbs a:hover { color: var(--def-primary); }
.def-crumbs .sep { margin: 0 8px; opacity: .5; }
.def-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 700;
  color: var(--def-primary); background: var(--def-surface-2); padding: 5px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .04em;
}
.def-pagehead { padding: 56px 0 8px; }
.def-pagehead h1 { margin-bottom: .3em; }

/* ---------- Article list rows ---------- */
.def-list { display: grid; gap: 14px; }
.def-list__item {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px;
  background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius);
  box-shadow: var(--def-shadow); transition: transform .14s ease, box-shadow .14s ease, border-color .14s;
}
.def-list__item:hover { transform: translateX(4px); box-shadow: var(--def-shadow-lg); border-color: #bfe0ec; }
.def-list__ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--def-grad-soft); color: var(--def-primary); display: grid; place-items: center; overflow: hidden; }
.def-list__ico svg { width: 22px; height: 22px; }
.def-list__ico--avatar { border-radius: 50%; background: none; }
.def-list__ico--avatar img { width: 100%; height: 100%; object-fit: cover; }
.def-list__body { flex: 1; min-width: 0; }
.def-list__body h3 { font-size: 1.12rem; margin: 0 0 2px; }
.def-list__body h3 a { color: var(--def-ink); }
.def-list__body h3 a:hover { color: var(--def-primary); }
.def-list__byline { display: block; font-size: .78rem; font-weight: 700; color: var(--def-muted); margin: 0 0 3px; }
.def-list__body p { margin: 0; color: var(--def-muted); font-size: .94rem; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.def-list__arrow { color: var(--def-muted); flex: 0 0 auto; }

/* Pin (Featured Posts & Articles) + drag handle — admin-only */
.def-pin-btn {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--def-line); color: var(--def-muted);
  cursor: pointer; transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.def-pin-btn:hover { color: var(--def-primary); border-color: var(--def-primary); }
.def-pin-btn svg { width: 15px; height: 15px; }
.def-pin-btn.is-pinned { background: var(--def-grad); border-color: transparent; color: #fff; }
.def-pin-btn.is-pinned svg { fill: #fff; }
.def-pin-btn:disabled { opacity: .5; cursor: default; }

.def-drag-handle {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 34px; color: var(--def-muted); cursor: grab;
}
.def-drag-handle svg { width: 18px; height: 18px; }
.def-list__item--draggable { cursor: default; }
.def-list__item--draggable.is-dragging { opacity: .45; }

/* ---------- Featured widget: scrollable panels + video cards + modal ---------- */
.def-feat-panel { margin-bottom: 28px; }
.def-feat-panel:last-child { margin-bottom: 0; }
.def-feat-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.def-feat-panel__head h3 { margin: 0; font-size: 1.1rem; }
.def-btn--sm { padding: 8px 16px; font-size: .85rem; }
.def-scroll-panel { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.def-scroll-panel.def-list { gap: 10px; }
.def-scroll-panel::-webkit-scrollbar { width: 8px; }
.def-scroll-panel::-webkit-scrollbar-thumb { background: var(--def-line); border-radius: 999px; }
.def-scroll-panel::-webkit-scrollbar-track { background: transparent; }

.def-feat-video {
  position: relative; display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius);
  box-shadow: var(--def-shadow); padding: 14px; margin-bottom: 14px;
}
.def-feat-video:last-child { margin-bottom: 0; }
.def-feat-video.is-dragging { opacity: .45; }
.def-feat-video .def-drag-handle { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; background: rgba(255,255,255,.9); border-radius: 8px; }
.def-feat-video__embed { position: relative; }
.def-feat-video__embed iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 10px; display: block; }
.def-feat-video__desc { margin: 0; font-size: .92rem; color: var(--def-muted); }
.def-feat-video .def-pin-btn { position: absolute; top: 10px; left: 10px; width: 28px; height: 28px; }
.def-feat-video .def-pin-btn svg { width: 13px; height: 13px; }

/* "See all X" link under a panel. */
.def-feat-panel__viewall { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--def-primary); }
.def-feat-panel__viewall svg { width: 15px; height: 15px; }

/* Horizontal-scroll carousel (Posts from Frank, Featured Videos). */
.def-hscroll-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.def-hscroll {
  display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth;
  padding: 4px 2px; flex: 1; min-width: 0; scrollbar-width: none;
}
.def-hscroll::-webkit-scrollbar { display: none; }
.def-hscroll-arrow {
  flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 1px solid var(--def-line); box-shadow: var(--def-shadow);
  display: grid; place-items: center; color: var(--def-ink); cursor: pointer;
}
.def-hscroll-arrow:hover { color: var(--def-primary); border-color: var(--def-primary); }
.def-hscroll-arrow svg { width: 18px; height: 18px; }
.def-hscroll-arrow--prev svg { transform: rotate(180deg); }

/* Smaller video cards specifically when inside the horizontal carousel. */
.def-hscroll .def-feat-video { width: 340px; flex: 0 0 auto; margin-bottom: 0; }
.def-hscroll .def-feat-video__embed iframe { aspect-ratio: 16/9; }
.def-hscroll .def-feat-video__desc { font-size: .85rem; -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
/* Center the video cards when they don't fill the full carousel width —
   "safe" so that once there are enough cards to overflow, alignment falls
   back to flex-start instead of clipping the first card(s) off-screen with
   no way to scroll to them (a well-known justify-content:center + overflow
   gotcha). */
.def-hscroll[data-def-video-list] { justify-content: safe center; }

/* On mobile, drop the arrow buttons (swipe works fine) and size cards so
   they fit fully in view without being clipped mid-card. */
@media (max-width: 640px) {
  .def-hscroll-arrow { display: none; }
  .def-hscroll-wrap { gap: 0; }
  .def-hscroll { scroll-snap-type: x mandatory; padding: 4px 4px 10px; }
  .def-hscroll > * { scroll-snap-align: start; }
  .def-hscroll[data-def-video-list] { justify-content: flex-start; }
  .def-hscroll .def-feat-video { width: 84vw; max-width: 340px; }
  .def-feat-post-card { width: 62vw; max-width: 220px; }
  .def-widget-card { width: 62vw; max-width: 220px; }
}

/* Compact post card for the Posts from Frank carousel. */
.def-feat-post-card {
  position: relative; width: 220px; flex: 0 0 auto;
  background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius);
  box-shadow: var(--def-shadow); padding: 16px 14px 14px;
}
.def-feat-post-card.is-dragging { opacity: .45; }
.def-feat-post-card .def-drag-handle { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; cursor: grab; z-index: 2; }
.def-feat-post-card__link { display: block; color: inherit; }
.def-feat-post-card__link:hover { color: inherit; }
.def-feat-post-card__link:hover h4 { color: var(--def-primary); }
.def-feat-post-card h4 { margin: 4px 0 6px; font-size: .96rem; line-height: 1.3; padding-right: 22px; color: var(--def-ink); }
.def-feat-post-card p { margin: 0 0 10px; font-size: .84rem; color: var(--def-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.def-feat-post-card__author { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; }
.def-feat-post-card__author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.def-feat-post-card__author span { font-size: .78rem; font-weight: 700; color: var(--def-muted); }
.def-feat-post-card__foot { position: relative; z-index: 2; display: flex; gap: 6px; }

/* Simple modal overlay for the Add Video wizard. */
.def-modal {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center;
  background: rgba(11,36,50,.55); padding: 20px;
}
.def-modal[hidden] { display: none; }
.def-modal__box {
  width: min(480px, 100%); background: #fff; border-radius: var(--def-radius-lg);
  box-shadow: var(--def-shadow-lg); padding: 28px;
}
.def-modal__box h3 { margin-top: 0; }
.def-modal__error { color: var(--def-danger); font-size: .9rem; margin: 0 0 14px; }
.def-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }

/* ---------- Callouts / CTA ---------- */
.def-cta {
  background: var(--def-grad); color: #fff; border-radius: var(--def-radius-lg);
  padding: 48px; text-align: center; position: relative; overflow: hidden;
}
.def-cta::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 100% 0, rgba(255,255,255,.18), transparent 60%); }
.def-cta > * { position: relative; z-index: 1; }
.def-cta h2 { color: #fff; }
.def-cta p { color: rgba(255,255,255,.9); max-width: 52ch; margin: 0 auto 1.6em; }
.def-cta__logo { margin: 0 0 18px; }
.def-cta__logo .custom-logo-link { display: flex; justify-content: center; }
.def-cta__logo img.custom-logo {
  height: 84px; width: 84px; object-fit: cover; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.55); box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

.def-callout {
  display: flex; gap: 16px; padding: 20px 22px; border-radius: var(--def-radius);
  background: #fff; border: 1px solid var(--def-line); border-left: 4px solid var(--def-cyan);
  box-shadow: var(--def-shadow); margin: 1.5rem 0;
}
.def-callout__ico { flex: 0 0 auto; color: var(--def-primary); }
.def-callout--warn { border-left-color: var(--def-warn); }
.def-callout--warn .def-callout__ico { color: var(--def-warn); }
.def-callout p:last-child { margin-bottom: 0; }

/* ---------- Facebook / community band ---------- */
.def-fb {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, #1877f2, #0e5fd8); color: #fff;
  border-radius: var(--def-radius-lg); padding: 34px 40px;
}
.def-fb__ico { width: 62px; height: 62px; flex: 0 0 auto; background: rgba(255,255,255,.16); border-radius: 16px; display: grid; place-items: center; }
.def-fb__ico svg { width: 34px; height: 34px; }
.def-fb h3 { color: #fff; margin: 0 0 4px; }
.def-fb p { color: rgba(255,255,255,.9); margin: 0; }
.def-fb .def-btn { margin-left: auto; }
@media (max-width: 720px) { .def-fb .def-btn { margin-left: 0; } }

/* ---------- Calculators ---------- */
.def-calc {
  background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius);
  padding: 28px; box-shadow: var(--def-shadow);
}
.def-calc h3 { display: flex; align-items: center; gap: 10px; }
.def-calc h3 svg { width: 24px; height: 24px; color: var(--def-primary); }
.def-field { margin-bottom: 16px; }
.def-field label { display: block; font-weight: 650; color: var(--def-ink); font-size: .92rem; margin-bottom: 6px; }
.def-field input, .def-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--def-line); border-radius: 10px;
  font: inherit; color: var(--def-ink); background: #fff;
}
.def-field input:focus, .def-field select:focus { outline: none; border-color: var(--def-primary); box-shadow: var(--def-ring); }
.def-calc__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.def-calc__result {
  margin-top: 8px; padding: 18px 20px; border-radius: 12px; background: var(--def-grad-soft);
  border: 1px solid #d6ecf3; color: var(--def-ink); font-weight: 600;
}
.def-calc__result strong { color: var(--def-primary); font-size: 1.4rem; font-weight: 800; }

/* ---------- Login / member ---------- */
.def-auth { max-width: 440px; margin: 0 auto; background: #fff; border: 1px solid var(--def-line); border-radius: var(--def-radius-lg); padding: 40px; box-shadow: var(--def-shadow-lg); }
.def-auth h2 { text-align: center; }
.def-auth .def-field input { padding: 14px; }
.def-auth .def-btn { width: 100%; justify-content: center; }
.def-auth__meta { text-align: center; margin-top: 16px; font-size: .92rem; color: var(--def-muted); }

/* ---------- Footer ---------- */
.def-footer { background: var(--def-navy); color: #cfe3ec; margin-top: 40px; }
.def-footer a { color: #cfe3ec; }
.def-footer a:hover { color: #fff; }
.def-footer__top { padding: 60px 0 40px; display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 40px; }
@media (max-width: 720px) { .def-footer__top { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 520px) { .def-footer__top { grid-template-columns: 1fr; } }
.def-footer__brand .def-brand { color: #fff; }
.def-footer__brand .def-brand__text { max-width: none; }
.def-footer__brand .def-brand small { color: #86a9ba; }
.def-footer__brand p { color: #9fc0cf; margin-top: 14px; max-width: 34ch; font-size: .95rem; }
.def-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.def-footer ul { list-style: none; margin: 0; padding: 0; }
.def-footer li { margin: 0 0 10px; }
.def-footer li a { font-size: .95rem; color: #9fc0cf; }
.def-footer li a:hover { color: #fff; }
.def-social { display: flex; gap: 10px; margin-top: 18px; }
.def-social a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #cfe3ec; }
.def-social a:hover { background: var(--def-primary); color: #fff; }
.def-social svg { width: 20px; height: 20px; }
.def-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: .88rem; color: #86a9ba; }

/* ---------- Utility ---------- */
.def-muted { color: var(--def-muted); }
.def-notice { padding: 16px 20px; border-radius: 12px; background: var(--def-surface-2); border: 1px dashed var(--def-line); color: var(--def-muted); font-size: .95rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.def-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.def-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 11px; background: #fff; border: 1px solid var(--def-line); color: var(--def-ink); font-weight: 650; }
.def-pagination .page-numbers.current { background: var(--def-grad); color: #fff; border-color: transparent; }
.def-pagination a.page-numbers:hover { border-color: var(--def-primary); color: var(--def-primary); }

/* WP core alignment helpers */
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.wp-caption-text { font-size: .85rem; color: var(--def-muted); text-align: center; }
.sticky, .gallery-caption, .bypostauthor { display: block; }
