/*
 Theme Name:   GeneratePress Child
 Description:  A child theme for GeneratePress
 Template:     generatepress
 Version:      1.1.0
*/

/* =========================================================
   Senior-friendly readability styles
   Previous version saved as style.css.bak
   ========================================================= */

/* ---------- Self-hosted font: Atkinson Hyperlegible (SIL OFL 1.1, see fonts/LICENSE) ---------- */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* ---------- Colors: override GeneratePress global color variables ----------
   html:root outranks GeneratePress's own :root block, which loads after this file. */
html:root {
  --contrast: #1F1F1F;   /* main text            ~16:1 on background */
  --contrast-2: #3D3D45; /* secondary/meta text  ~10:1 */
  --base-2: #FAFAF7;     /* page background (soft off-white, less glare) */
  --base-3: #FAFAF7;     /* content box background */
  --accent: #0B4F9C;     /* links and buttons    ~8:1 */
}

/* ---------- Base text ---------- */
html body {
  background-color: #FAFAF7;
  color: #1F1F1F;
  line-height: 1.6;
}
html body,
html body button,
html body input,
html body select,
html body textarea {
  font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  font-size: 20px;
  font-weight: 400;
}
html body p,
html body li {
  line-height: 1.6;
}

/* Comfortable line length for reading */
html body .entry-content {
  max-width: 70ch;
}

/* ---------- Links: always underlined, never color-only ---------- */
html body a {
  color: #0B4F9C;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
html body a:hover,
html body a:focus {
  color: #072F5F;
  text-decoration-thickness: 2px;
}

/* ---------- Headings ---------- */
html body h1,
html body h2,
html body h3,
html body h4,
html body h5,
html body h6 {
  font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: #1F1F1F;
}
html body h1 { font-size: 2.5rem; }    /* 40px */
html body h2 { font-size: 2rem; }      /* 32px */
html body h3 { font-size: 1.625rem; }  /* 26px */
html body h4 { font-size: 1.375rem; }  /* 22px */

/* ---------- Buttons: large, easy to tap ---------- */
html body button,
html body .button,
html body a.button,
html body input[type="button"],
html body input[type="reset"],
html body input[type="submit"],
html body .wp-block-button__link,
html body .wp-block-button .wp-block-button__link {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}
html body .wp-block-button__link:not(.has-background),
html body input[type="submit"],
html body button:not(.menu-toggle):not(.search-submit) {
  background-color: #0B4F9C;
  color: #FFFFFF;
}
html body .wp-block-button__link:not(.has-background):hover,
html body input[type="submit"]:hover,
html body button:not(.menu-toggle):not(.search-submit):hover {
  background-color: #072F5F;
  color: #FFFFFF;
}
html body .wp-block-button__link {
  text-decoration: none;
}

/* ---------- Menu links: bigger tap targets ---------- */
html body .main-navigation .main-nav ul li a {
  font-size: 20px;
  text-decoration: none;
}

/* ---------- Keyboard focus: clearly visible ---------- */
html body :focus-visible {
  outline: 3px solid #0B4F9C;
  outline-offset: 2px;
}

/* ---------- Homepage: Gift Guides box (front-page.php) ---------- */
html body .ggg-featured-guides {
  margin-bottom: 20px;
}
html body .ggg-featured-guides h2 {
  margin-bottom: 16px;
}
html body .ggg-guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
html body .ggg-guide-list li {
  margin: 0;
}
html body a.ggg-guide-link {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 12px 20px;
  border: 2px solid #0B4F9C;
  border-radius: 8px;
  background-color: #FFFFFF;
  color: #0B4F9C;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
html body a.ggg-guide-link::after {
  content: "\2192"; /* right arrow */
  margin-left: auto;
  padding-left: 12px;
}
html body a.ggg-guide-link:hover,
html body a.ggg-guide-link:focus {
  background-color: #0B4F9C;
  color: #FFFFFF;
}

/* ---------- Gift Guide template (template-gift-guide.php) ---------- */
/* Less space between the site header and the page title
   (GeneratePress defaults: 20px outer margin + 40px inner padding) */
html body.page-template-template-gift-guide .site-main {
  margin-top: 8px;
}
html body .ggg-gift-guide-page .inside-article {
  padding-top: 16px;
}
html body .ggg-gift-guide-page .entry-title {
  margin-top: 0;
  margin-bottom: 12px;
}

/* Less space between the title and the gift guide panel */
html body .ggg-gift-guide-page .entry-content {
  margin-top: 0;
}

/* Push the footer/copyright to the bottom of the screen and let the gift
   guide panel grow to fill the space in between (this template only) */
html body.page-template-template-gift-guide {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}
html body.page-template-template-gift-guide #page {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
}
html body.page-template-template-gift-guide .site-content {
  flex: 1 0 auto;
}
html body.page-template-template-gift-guide .content-area {
  flex: 1 1 auto;
  min-width: 0; /* allow shrinking on screens narrower than the 1200px container */
  display: flex;
  flex-direction: column;
}
html body.page-template-template-gift-guide .site-main,
html body .ggg-gift-guide-page,
html body .ggg-gift-guide-page .inside-article {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Sidebar is removed for this template in functions.php; center everything */
html body .ggg-gift-guide-page .entry-header {
  text-align: center;
}
html body .ggg-gift-guide-page .entry-title {
  font-size: 2.75rem; /* 44px */
}
html body .ggg-gift-guide-page .entry-content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
/* The gift guide area: wide, centered, and the visual focus of the page */
html body .ggg-gift-guide {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 32px;
  background-color: #FFFFFF;
  border: 3px solid #0B4F9C;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}
@media (max-width: 768px) {
  html body .ggg-gift-guide {
    padding: 16px;
  }
  html body .ggg-gift-guide-page .entry-title {
    font-size: 2.25rem; /* 36px on phones */
  }
}

/* =========================================================
   Gift Guide item areas (template-gift-guide.php)
   Desktop: navigation bar on top; image left; price + Buy Now,
   item title and review on the right.
   Phones: one column - image, price + Buy Now, title, review,
   selected price tier / category.
   ========================================================= */

/* Gift guide areas: solid outline in the button blue */
.ggg-area {
  border: 2px solid #0B4F9C;
  border-radius: 8px;
  padding: 12px 16px;
  color: #3D3D45;
  background: #FFFFFF;
  font-size: 1rem;
}

/* ---- Navigation bar ---- */
.ggg-item-nav {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ggg-item-nav .ggg-nav-btn {
  min-height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border: 2px solid #0B4F9C;
  border-radius: 8px;
  color: #0B4F9C;
  font-weight: 700;
  background: #FFFFFF;
}
.ggg-item-nav .ggg-nav-count { font-weight: 700; color: #1F1F1F; text-align: center; }
/* Desktop: "1 of 5", price tier and category on one line */
.ggg-nav-category { display: inline; font-size: 1.25rem; font-weight: 700; color: #1F1F1F; }
.ggg-nav-tier { display: inline; font-size: 1.25rem; font-weight: 700; color: #3D3D45; }
.ggg-nav-pos { display: inline; font-size: 1.25rem; font-weight: 400; color: #1F1F1F; }
.ggg-nav-tier::before,
.ggg-nav-category::before { content: "\00B7"; margin: 0 0.3em 0 0.05em; color: #3D3D45; font-weight: 700; } /* middle dot (a space already precedes it) */
.ggg-nav-word { margin: 0 0.2em; }
.ggg-nav-arrow { font-size: 1.1em; line-height: 1; }

/* Desktop: narrow arrow-only Previous/Next buttons (words kept for screen readers) */
@media (min-width: 769px) {
  .ggg-item-nav .ggg-nav-btn { flex: 0 0 auto; width: 48px; padding: 0; justify-content: center; }
  .ggg-item-nav .ggg-nav-arrow { font-size: 2rem; line-height: 1; margin-top: -4px; }
  .ggg-item-nav .ggg-nav-word {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}

/* ---- Item layout (desktop) ---- */
.ggg-item {
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(280px, 1fr); /* image shrinks on mid-size screens; right column keeps 280px+ */
  grid-template-areas: "image details" "image review";
  grid-template-rows: auto 1fr;
  column-gap: 32px;
  row-gap: 16px;
  align-items: start;
}
/* Square image box, up to 500 x 500; images will be scaled to fit */
.ggg-item-image {
  grid-area: image;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.ggg-item-details { grid-area: details; align-self: stretch; display: flex; flex-direction: column; gap: 16px; }
/* Review fills the right column down to the bottom of the image */
.ggg-item-review { grid-area: review; align-self: stretch; min-height: 120px; box-sizing: border-box; }
.ggg-item-title { box-sizing: border-box; min-height: 79px; padding-top: 6px; padding-bottom: 6px; }
/* Selected price tier / category box: phones only (desktop shows them in the navigation bar) */
.ggg-filters { display: none; flex-direction: column; gap: 4px; }
.ggg-filter-line { font-size: 1rem; color: #1F1F1F; }

/* ---- Price + affiliate notice + Buy Now ---- */
.ggg-price-buy { box-sizing: border-box; padding-top: 6px; padding-bottom: 10px; }
.ggg-price-buy-row { display: flex; align-items: flex-end; gap: 12px; }
.ggg-price-block { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ggg-item-price { font-size: 1.4rem; font-weight: 700; color: #1F1F1F; line-height: 1.1; white-space: nowrap; }
.ggg-item-price-date { font-size: 0.85rem; line-height: 1.2; }
.ggg-buy-stack { flex: 0 0 auto; width: 55%; display: flex; flex-direction: column; gap: 4px; }
.ggg-affiliate-inline { font-size: 0.9375rem; line-height: 1.35; color: #3D3D45; text-align: center; } /* 15px */
.ggg-buy-now {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  box-sizing: border-box;
  padding: 0 12px;
  border-radius: 8px;
  background: #0B4F9C;
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  border: 2px solid #0B4F9C;
}

/* ---- Phones and small tablets ---- */
@media (max-width: 768px) {
  /* Smaller page title; less space under the site header */
  html body .ggg-gift-guide-page .entry-title { font-size: 1.75rem; } /* 28px */
  html body.page-template-template-gift-guide .inside-header { padding-bottom: 4px; }
  html body.page-template-template-gift-guide .site-main { margin-top: 0; }
  html body .ggg-gift-guide-page .inside-article { padding-top: 4px; }

  /* Compact one-row navigation */
  .ggg-item-nav { flex-wrap: nowrap; padding: 8px; gap: 6px; margin-bottom: 16px; }
  .ggg-item-nav .ggg-nav-count { flex: 0 0 auto; white-space: nowrap; font-size: 1rem; }
  .ggg-item-nav .ggg-nav-category,
  .ggg-item-nav .ggg-nav-tier { display: none; }
  .ggg-item-nav .ggg-nav-pos { font-size: 1rem; }
  .ggg-item-nav .ggg-nav-pos::before { content: none; }
  .ggg-item-nav .ggg-nav-btn { flex: 1 1 auto; min-width: 0; justify-content: center; padding: 0 6px; font-size: 0.95rem; white-space: nowrap; }

  /* One ordered column */
  .ggg-item { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
  .ggg-item-details { display: contents; }
  .ggg-item-image { max-width: 100%; order: 0; }
  .ggg-price-buy { order: 1; }
  .ggg-item-title { order: 2; }
  .ggg-item-review { order: 3; min-height: 220px; }
  .ggg-filters { order: 4; display: flex; }

  /* Affiliate notice full width on top; price and Buy Now side by side below */
  .ggg-price-buy-row { flex-wrap: wrap; align-items: center; row-gap: 8px; }
  .ggg-buy-stack { display: contents; }
  .ggg-affiliate-inline { order: -1; flex: 0 0 100%; text-align: left; }
  .ggg-price-block { order: 0; flex: 1 1 0; min-width: 0; }
  .ggg-buy-now { order: 1; flex: 0 0 55%; width: auto; font-size: 1.05rem; }
}

/* ---- Narrowest phones (under 360px) ---- */
@media (max-width: 359px) {
  /* Too narrow for words: arrow-only buttons, like desktop (words kept for screen readers) */
  .ggg-item-nav { gap: 8px; padding: 6px; }
  .ggg-item-nav .ggg-nav-btn { flex: 0 0 auto; width: 48px; padding: 0; justify-content: center; }
  .ggg-item-nav .ggg-nav-arrow { font-size: 2rem; line-height: 1; margin-top: -4px; }
  .ggg-item-nav .ggg-nav-word {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .ggg-item-nav .ggg-nav-count { flex: 1 1 auto; min-width: 0; text-align: center; font-size: 1rem; }
  .ggg-price-block { flex: 0 0 100%; }
  .ggg-buy-now { flex: 0 0 100%; font-size: 0.95rem; padding: 0 6px; }
}

/* =========================================================
   Gift Guide: logo + page title row, Price / Category buttons
   Desktop (1024px+): logo above the filter buttons, level with the
   title; buttons in a column left of the gift guide panel.
   Smaller screens: small logo beside the title; buttons hidden.
   ========================================================= */
.ggg-guide-layout {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-areas: "logo title" "panel panel";
  column-gap: 12px;
  row-gap: 12px;
  align-items: center;
}
.ggg-guide-layout.ggg-has-intro { grid-template-areas: "logo title" "intro intro" "panel panel"; }
.ggg-intro { grid-area: intro; }
.ggg-title-cell { grid-area: title; }
html body .ggg-title-cell .entry-title { margin: 0; text-align: left; }
html body .ggg-guide-layout .ggg-gift-guide { grid-area: panel; }

/* Square logo area (placeholder until a logo image is added) */
.ggg-logo {
  grid-area: logo;
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}
/* The logo links to the homepage (same destination as the site name) */
html body a.ggg-logo {
  position: relative;
  text-decoration: none;
  color: #3D3D45;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
html body a.ggg-logo:hover { border-color: #0B4F9C; box-shadow: 0 0 0 3px rgba(11, 79, 156, 0.15); color: #0B4F9C; }
html body a.ggg-logo:focus-visible { outline: 3px solid #0B4F9C; outline-offset: 3px; }

/* Logo tooltip: on mouse hover and keyboard focus (not on touch screens) */
.ggg-tip {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%);
  width: 250px;
  box-sizing: border-box;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1F1F1F;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 20;
  transition: opacity .15s ease, visibility .15s;
}
.ggg-tip::before { /* small pointer toward the logo */
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-right-color: #1F1F1F;
}
@media (hover: hover) {
  html body a.ggg-logo:hover .ggg-tip { opacity: 1; visibility: visible; }
}
html body a.ggg-logo:focus-visible .ggg-tip { opacity: 1; visibility: visible; }
@media (hover: none) {
  .ggg-tip { display: none; }
}

/* Price / Category buttons: desktop only for now (placeholders, not clickable yet) */
.ggg-side-filters { grid-area: filters; display: none; }

@media (min-width: 1024px) {
  .ggg-guide-layout {
    grid-template-areas: "logo title" "filters panel";
    column-gap: 20px;
    row-gap: 16px;
    margin-top: 16px;
    flex: 1 0 auto;
  }
  .ggg-guide-layout.ggg-has-intro { grid-template-areas: "logo title" ". intro" "filters panel"; }
  .ggg-logo { width: 96px; height: 96px; justify-self: center; font-size: 0.9rem; }
  html body .ggg-title-cell .entry-title { text-align: center; }

  /* Panel sits beside the buttons: fill the column, split image / details evenly */
  html body .ggg-guide-layout .ggg-gift-guide { margin: 0; max-width: none; }
  html body .ggg-guide-layout .ggg-item { grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr); column-gap: 24px; }

  .ggg-side-filters { display: flex; flex-direction: column; gap: 16px; padding: 12px; align-self: center; }
  .ggg-side-group { display: flex; flex-direction: column; gap: 8px; }
  .ggg-side-heading { font-weight: 700; color: #1F1F1F; font-size: 1.05rem; }
  .ggg-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
    border: 2px solid #0B4F9C;
    border-radius: 22px;
    color: #0B4F9C;
    font-weight: 700;
    font-size: 0.95rem;
    background: #FFFFFF;
  }
}

/* Smaller screens: show the logo tooltip below the logo so it never extends past the screen edge */
@media (max-width: 1023px) {
  .ggg-tip { left: 0; top: calc(100% + 12px); transform: none; width: min(250px, calc(100vw - 48px)); }
  .ggg-tip::before { right: auto; left: 20px; top: auto; bottom: 100%; transform: none; border-right-color: transparent; border-bottom-color: #1F1F1F; }
}

/* Gift Guide pages have no site header (removed in functions.php): keep a little space at the top */
@media (min-width: 1024px) {
  html body .ggg-guide-layout { margin-top: 0; }
}
@media (max-width: 768px) {
  html body .ggg-gift-guide-page .inside-article { padding-top: 16px; }
}

/* Logo image (white G on site blue) in the logo button */
html body a.ggg-logo { border-radius: 16.7%; }
.ggg-logo-img { display: block; width: 100%; height: 100%; border-radius: inherit; }
html body a.ggg-logo:hover { box-shadow: 0 0 0 3px rgba(11, 79, 156, 0.30); }

/* =========================================================
   Phones and tablets (under 1024px): Price + Toy Category dropdowns
   above the navigation bar. Desktop uses the button column instead.
   ========================================================= */
.ggg-phone-filters { display: none; }
@media (max-width: 1023px) {
  .ggg-phone-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
  .ggg-pf-field { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .ggg-pf-label { font-size: .85rem; font-weight: 700; color: #3D3D45; }
  .ggg-pf-select {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 30px 0 10px;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0B4F9C;
    background: #FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B4F9C' stroke-width='2.5'/%3E%3C/svg%3E") no-repeat right 9px center;
    border: 2px solid #0B4F9C;
    border-radius: 8px;
    -webkit-appearance: none;
    appearance: none;
  }
  .ggg-pf-select:focus-visible { outline: 3px solid #0B4F9C; outline-offset: 2px; }
}
/* Narrowest phones: a little less padding so "$50-100" fits */
@media (max-width: 359px) {
  html body .ggg-gift-guide { padding-left: 10px; padding-right: 10px; }
  .ggg-pf-select { font-size: .95rem; padding: 0 24px 0 8px; background-position: right 6px center; background-size: 11px 7px; }
}

/* Selected Price / Category button (desktop): filled blue */
html body .ggg-chip.ggg-chip-on { background: #0B4F9C; color: #FFFFFF; }

/* =========================================================
   Tablets (769-1023px): the navigation bar shows the item title
   instead of the price / category (the dropdowns above show those),
   the separate item title box is removed, and the review fills its space.
   ========================================================= */
.ggg-nav-title { display: none; }
@media (min-width: 769px) and (max-width: 1023px) {
  html body .ggg-item-nav .ggg-nav-tier,
  html body .ggg-item-nav .ggg-nav-category { display: none; }
  html body .ggg-item-nav .ggg-nav-count {
    flex: 1 1 auto;
    min-width: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;           /* long titles: at most 2 lines, then "..." */
    overflow: hidden;
  }
  html body .ggg-item-nav .ggg-nav-title { display: inline; font-size: 1.25rem; font-weight: 700; color: #1F1F1F; }
  html body .ggg-item-nav .ggg-nav-title::before { content: "\00B7"; margin: 0 0.3em 0 0.05em; color: #3D3D45; font-weight: 700; }
  html body .ggg-item-title { display: none; }
}

/* =========================================================
   Gift Guide: working buttons (arrows, Price / Category, Buy Now)
   The site styles every <button> solid blue; these keep the gift guide look.
   ========================================================= */
html body .ggg-guide-layout button.ggg-nav-btn,
html body .ggg-guide-layout button.ggg-chip {
  background: #FFFFFF;
  color: #0B4F9C;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: inherit;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html body .ggg-guide-layout button.ggg-chip { font-size: 0.95rem; }
html body .ggg-guide-layout button.ggg-nav-btn:hover:not(:disabled),
html body .ggg-guide-layout button.ggg-chip:hover:not(.ggg-chip-on) { background: #EEF3FA; color: #0B4F9C; }
html body .ggg-guide-layout button.ggg-chip.ggg-chip-on { background: #0B4F9C; color: #FFFFFF; }
html body .ggg-guide-layout button.ggg-nav-btn:disabled,
html body .ggg-guide-layout button.ggg-nav-btn:disabled:hover { background: #FFFFFF; color: #0B4F9C; opacity: 0.35; cursor: default; }
html body .ggg-guide-layout button.ggg-chip.ggg-chip-on:hover { background: #0B4F9C; color: #FFFFFF; }
html body .ggg-guide-layout button.ggg-nav-btn:focus-visible,
html body .ggg-guide-layout button.ggg-chip:focus-visible { outline: 3px solid #0B4F9C; outline-offset: 2px; }
@media (max-width: 768px) {
  html body .ggg-guide-layout button.ggg-nav-btn { font-size: 0.95rem; }
}
@media (max-width: 359px) {
  html body .ggg-guide-layout button.ggg-nav-btn { font-size: 0.85rem; }
}

/* Buy Now is a link styled as a button */
html body a.ggg-buy-now,
html body a.ggg-buy-now:hover,
html body a.ggg-buy-now:focus { color: #FFFFFF; text-decoration: none; }
html body a.ggg-buy-now:hover { background: #072F5F; }
html body a.ggg-buy-now[hidden] { display: none; }

/* Gift image and review text */
.ggg-item-image img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.ggg-item-review { white-space: pre-line; }

/* =========================================================
   Filters off (GGG_FILTERS_ENABLED = false in inc/gifts.php):
   hide the Price / Category buttons and dropdowns (kept in the page
   for later), hide price / category text in the navigation bar,
   and let the gift panel use the space the button column used.
   ========================================================= */
html body .ggg-no-filters .ggg-side-filters,
html body .ggg-no-filters .ggg-phone-filters,
html body .ggg-no-filters .ggg-item-nav .ggg-nav-tier,
html body .ggg-no-filters .ggg-item-nav .ggg-nav-category { display: none !important; }
@media (min-width: 1024px) {
  html body .ggg-guide-layout.ggg-no-filters { grid-template-areas: "logo title" "panel panel"; }
  html body .ggg-guide-layout.ggg-no-filters.ggg-has-intro { grid-template-areas: "logo title" ". intro" "panel panel"; }
  html body .ggg-guide-layout.ggg-no-filters .ggg-gift-guide { max-width: 1100px; width: 100%; justify-self: center; }
  html body .ggg-guide-layout.ggg-no-filters .ggg-item { grid-template-columns: minmax(0, 500px) minmax(280px, 1fr); column-gap: 32px; }
}

/* ---------------------------------------------------------
   Filters off:
   - all sizes: price and price-as-of date hidden; Buy Now fills the price area
   - tablets and desktop (769px+): item name moves into the navigation bar
     ("1 of N · Name") and the separate item title box is hidden
   - phones keep the worded Previous / Next bar and the item title box
   --------------------------------------------------------- */
html body .ggg-no-filters .ggg-price-block { display: none !important; }
html body .ggg-no-filters .ggg-buy-stack { width: 100%; }
html body .ggg-no-filters .ggg-price-buy .ggg-buy-now { width: 100%; flex: 1 1 100%; }

@media (min-width: 769px) {
  html body .ggg-no-filters .ggg-item-title { display: none !important; }
  html body .ggg-no-filters .ggg-item-nav .ggg-nav-title { display: inline; font-size: 1.25rem; font-weight: 700; color: #1F1F1F; }
  html body .ggg-no-filters .ggg-item-nav .ggg-nav-title::before { content: "\00B7"; margin: 0 0.3em 0 0.05em; color: #3D3D45; font-weight: 700; }
  html body .ggg-no-filters .ggg-item-nav .ggg-nav-count {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;            /* long names: at most 2 lines, then "..." */
    overflow: hidden;
  }
}

/* Filters off, phones: item title box sits above the image */
@media (max-width: 768px) {
  html body .ggg-no-filters .ggg-item-title { order: -1; }
}

/* No image (no Featured Image or Image URL).
   Phones: the image area is hidden; the review follows Buy Now.
   Tablets and desktop: the image area stays as an invisible placeholder so the gift area keeps the
   same size; the review box covers both columns, and the script puts the Buy Now area inside it,
   floated right, so the review text wraps beside it and then runs full width underneath. */
@media (max-width: 768px) {
  html body .ggg-item.ggg-item-noimg .ggg-item-image { display: none; }
}
@media (min-width: 769px) {
  html body .ggg-item.ggg-item-noimg { grid-template-areas: "image details"; grid-template-rows: auto; }
  html body .ggg-item.ggg-item-noimg .ggg-item-image { visibility: hidden; }
  html body .ggg-item.ggg-item-noimg .ggg-item-review { grid-row: 1; grid-column: 1 / -1; align-self: stretch; min-height: 0; }
  html body .ggg-item-review > .ggg-item-details {
    float: right;
    width: 50%;
    min-width: 260px;
    margin: -14px -18px 12px 24px; /* sits in the review box's top-right corner, where it is when there is an image */
    white-space: normal;
  }
}

/* Review label, on its own line at the top of every review area */
html body .ggg-item-review .ggg-review-label { display: block; font-weight: 700; color: #1F1F1F; margin-bottom: 4px; white-space: normal; }

/* ---------------------------------------------------------
   View toggle: "One at a time" / "See all gifts"
   --------------------------------------------------------- */
.ggg-view-toggle { display: flex; justify-content: center; gap: 0; margin: 0 auto 16px; width: 100%; max-width: 520px; }
html body .ggg-guide-layout button.ggg-view-btn {
  flex: 1 1 0;
  min-height: 52px;
  padding: 8px 12px;
  margin: 0;
  border: 2px solid #0B4F9C;
  background-color: #FFFFFF;
  color: #0B4F9C;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
html body .ggg-guide-layout button.ggg-view-btn:first-child { border-radius: 8px 0 0 8px; }
html body .ggg-guide-layout button.ggg-view-btn:last-child { border-radius: 0 8px 8px 0; border-left-width: 0; }
html body .ggg-guide-layout button.ggg-view-btn:hover { background-color: #E8F0FA; color: #0B4F9C; }
html body .ggg-guide-layout button.ggg-view-btn.ggg-view-on,
html body .ggg-guide-layout button.ggg-view-btn.ggg-view-on:hover { background-color: #0B4F9C; color: #FFFFFF; cursor: default; }

/* "See all gifts": hide the arrows and the single gift, show the list */
.ggg-all-list { display: none; }
/* (only once the script is running - ggg-js - so the first gift still shows if scripts are off) */
html body .ggg-gift-guide.ggg-js.ggg-view-all > .ggg-item-nav,
html body .ggg-gift-guide.ggg-js.ggg-view-all > .ggg-item { display: none; }
html body .ggg-gift-guide.ggg-js.ggg-view-all .ggg-all-list { display: flex; flex-direction: column; gap: 40px; }
.ggg-all-entry { margin: 0; }
html body .ggg-all-head { justify-content: center; }
html body .ggg-all-head .ggg-nav-count { flex: 1 1 auto; }
/* "See all gifts" list: gifts without an image shrink to fit their review
   (the fixed size is only needed in the one-at-a-time view, where it stops the page jumping) */
@media (min-width: 769px) {
  html body .ggg-all-list .ggg-item.ggg-item-noimg .ggg-item-image { display: none; }
  html body .ggg-all-list .ggg-item.ggg-item-noimg .ggg-item-review { min-height: 160px; }
}
/* Phones, "See all gifts" list: the header bar shows "1 of 5 · Name", so the separate title box is not needed */
@media (max-width: 768px) {
  html body .ggg-all-head .ggg-nav-count { white-space: normal; text-align: center; line-height: 1.35; }
  html body .ggg-all-head .ggg-nav-title { display: inline; font-weight: 700; color: #1F1F1F; }
  html body .ggg-all-head .ggg-nav-title::before { content: "\00B7"; margin: 0 0.3em 0 0.05em; color: #3D3D45; font-weight: 700; }
  html body .ggg-all-list .ggg-item-title { display: none; }
}

/* View toggle position: phones at the top of the gift box; tablets and desktop stacked, right of the page title */
.ggg-view-toggle-head { display: none; }
@media (min-width: 769px) {
  html body .ggg-view-toggle-panel { display: none; }
  html body .ggg-title-cell { display: flex; align-items: center; gap: 20px; }
  html body .ggg-title-cell > header { flex: 1 1 auto; min-width: 0; }
  html body .ggg-view-toggle.ggg-view-toggle-head { display: flex; flex-direction: column; flex: 0 0 auto; width: 190px; margin: 0; }
  html body .ggg-guide-layout .ggg-view-toggle-head button.ggg-view-btn { flex: 0 0 auto; min-height: 48px; }
  html body .ggg-guide-layout .ggg-view-toggle-head button.ggg-view-btn:first-child { border-radius: 8px 8px 0 0; }
  html body .ggg-guide-layout .ggg-view-toggle-head button.ggg-view-btn:last-child { border-radius: 0 0 8px 8px; border-left-width: 2px; border-top-width: 0; }
}
/* Title shares its row with the toggle: when it needs two lines, split them evenly ("Top Toys for / 5-Year-Olds") */
@media (min-width: 769px) {
  html body .ggg-title-cell .entry-title { text-wrap: balance; }
}
/* Desktop layout (1024px+) on tall screens (e.g. iPad Pro 13", large monitors): keep the title and gift box
   together at the top instead of spreading the extra height between them; the footer stays at the bottom */
@media (min-width: 1024px) {
  html body .ggg-guide-layout { align-content: start; }
}
/* One-at-a-time view, tablets and desktop - image box fits the window height.
   Image top sits ~271px down the page; keep 16px below it. Never larger than 500px, never smaller than 300px. */
@media (min-width: 769px) {
  html body .ggg-guide-layout .ggg-gift-guide > .ggg-item {
    --ggg-img: clamp(300px, calc(100vh - 287px), 500px);
    grid-template-columns: minmax(0, var(--ggg-img)) minmax(280px, 1fr);
  }
  html body .ggg-gift-guide > .ggg-item .ggg-item-image { max-width: var(--ggg-img); }
}
/* Desktop, no image: Buy Now box matches the right column's width so it doesn't move between gifts */
@media (min-width: 1024px) {
  html body .ggg-guide-layout.ggg-no-filters .ggg-gift-guide > .ggg-item .ggg-item-review > .ggg-item-details { width: calc(100% + 4px - var(--ggg-img)); min-width: 0; }
}
/* Desktop (1024px+): tighter spacing above the image (about 64px less) so it fits on laptop screens */
@media (min-width: 1024px) {
  html body.page-template-template-gift-guide .site-main { margin-top: 0; }                 /* was 8px */
  html body .ggg-gift-guide-page .inside-article { padding-top: 8px; }                       /* was 16px */
  html body .ggg-guide-layout { row-gap: 12px; }                                              /* was 16px */
  html body .ggg-guide-layout .ggg-logo { width: 80px; height: 80px; }                        /* was 96px */
  html body .ggg-guide-layout .ggg-view-toggle-head button.ggg-view-btn { min-height: 40px; padding-top: 6px; padding-bottom: 6px; } /* was 48px each */
  html body .ggg-guide-layout .ggg-gift-guide { padding-top: 20px; padding-bottom: 24px; }   /* was 32px */
  html body .ggg-gift-guide > .ggg-item-nav { padding-top: 8px; padding-bottom: 8px; margin-bottom: 16px; } /* was 12px / 24px */
  /* image box: fits the window below its new, higher position */
  html body .ggg-guide-layout .ggg-gift-guide > .ggg-item { --ggg-img: clamp(300px, calc(100vh - 223px), 500px); }
}
/* Tablets and desktop: Previous / Next buttons show the words instead of arrows */
@media (min-width: 769px) {
  html body .ggg-item-nav .ggg-nav-btn { width: 112px; min-width: 0; padding: 0 12px; justify-content: center; white-space: nowrap; } /* same width so the name stays centered */
  html body .ggg-item-nav .ggg-nav-arrow { display: none; }
  html body .ggg-item-nav .ggg-nav-word {
    position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: nowrap;
  }
}
/* Tablets and desktop: arrow-shaped Previous / Next buttons with the words inside (phones keep their own buttons) */
@media (min-width: 769px) {
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-btn {
    position: relative; isolation: isolate;
    width: 128px; min-width: 0; min-height: 48px; height: 48px;
    border: 0; border-radius: 0; padding: 0;
    justify-content: center; white-space: nowrap; font-size: 1.05rem;
  }
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-next { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); padding-right: 18px; }
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-prev { clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%); padding-left: 18px; }
  /* the arrow shape hides the normal keyboard-focus outline, so focus shows as a thick underline */
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-btn:focus-visible { outline: none; }
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-btn:focus-visible .ggg-nav-word { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
  /* solid: blue arrow with white words, like Buy Now */
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-btn,
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-btn:disabled,
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-btn:disabled:hover { background: #0B4F9C; color: #FFFFFF; }
  html body .ggg-guide-layout .ggg-item-nav button.ggg-nav-btn:hover:not(:disabled) { background: #072F5F; color: #FFFFFF; }
}

/* =========================================================
   Item title: larger and bold everywhere
   ========================================================= */
/* Title in its own box (phones; filters-on layouts): centered across and down the box.
   (display is set with a plain class so the rules that hide this box on other layouts still win) */
.ggg-item-title { display: flex; align-items: center; justify-content: center; }
html body .ggg-area.ggg-item-title { text-align: center; font-size: 1.375rem; font-weight: 700; line-height: 1.3; color: #1F1F1F; }
@media (max-width: 359px) {
  html body .ggg-area.ggg-item-title { font-size: 1.2rem; }
}

/* Title in the navigation bar (filters off, tablets and desktop) and in the "See all gifts" header bars:
   name in the middle, "1 of 5" just left of Next (or at the right end of a header bar) */
@media (min-width: 769px) {
  html body .ggg-no-filters .ggg-gift-guide > .ggg-item-nav .ggg-nav-count {
    display: flex; align-items: center; gap: 12px;
    flex: 1 1 auto; min-width: 0;
    -webkit-line-clamp: unset; overflow: visible; white-space: normal;
  }
}
html body .ggg-all-head .ggg-nav-count,
html body .ggg-no-filters .ggg-all-head .ggg-nav-count {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 auto; min-width: 0; white-space: normal;
  -webkit-line-clamp: unset; overflow: visible;
}
/* the name shows in the Previous / Next bar on tablets and desktop only (phones show it in its own box) */
@media (min-width: 769px) {
  html body .ggg-no-filters .ggg-gift-guide > .ggg-item-nav .ggg-nav-title {
    order: 1; flex: 1 1 auto; min-width: 0; text-align: center;
    font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: #1F1F1F;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  }
}
html body .ggg-all-head .ggg-nav-title {
  order: 1; flex: 1 1 auto; min-width: 0; text-align: center;
  font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: #1F1F1F;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; /* long names: 2 lines, then "..." */
}
html body .ggg-no-filters .ggg-item-nav .ggg-nav-title::before,
html body .ggg-all-head .ggg-nav-title::before { content: none; }
html body .ggg-no-filters .ggg-item-nav .ggg-nav-pos,
html body .ggg-all-head .ggg-nav-pos { order: 2; flex: 0 0 auto; white-space: nowrap; text-align: right; font-size: 1.125rem; font-weight: 400; color: #3D3D45; }
/* Desktop: an invisible spacer the same width as "1 of 5" on the left, so the name is exactly centered */
@media (min-width: 1024px) {
  html body .ggg-no-filters .ggg-item-nav .ggg-nav-count::before,
  html body .ggg-all-head .ggg-nav-count::before { content: ""; order: 0; flex: 0 0 76px; }
  html body .ggg-no-filters .ggg-item-nav .ggg-nav-pos,
  html body .ggg-all-head .ggg-nav-pos { flex-basis: 76px; }
}
/* Phones: the bar above a gift in "See all gifts" uses a slightly smaller name */
@media (max-width: 768px) {
  html body .ggg-all-head .ggg-nav-title { font-size: 1.25rem; }
  html body .ggg-all-head .ggg-nav-pos { font-size: 1rem; }
}
/* Tablets: slightly smaller name in the bar, so typical names stay on one line between the arrows */
@media (min-width: 769px) and (max-width: 1023px) {
  html body .ggg-no-filters .ggg-gift-guide > .ggg-item-nav .ggg-nav-title,
  html body .ggg-all-head .ggg-nav-title { font-size: 1.25rem; }
  html body .ggg-no-filters .ggg-gift-guide > .ggg-item-nav .ggg-nav-pos,
  html body .ggg-all-head .ggg-nav-pos { font-size: 1rem; }
}
/* When a name needs two lines, split them evenly */
html body .ggg-area.ggg-item-title,
html body .ggg-item-nav .ggg-nav-title { text-wrap: balance; }

/* =========================================================
   Homepage header: blue logo to the left of the site name
   (logo added in functions.php, homepage only; neither is a link there)
   ========================================================= */
html body .ggg-home-brand { display: flex; align-items: center; gap: 16px; }
html body .ggg-home-brand .ggg-home-logo { display: block; flex: 0 0 auto; width: 80px; height: 80px; border-radius: 16.7%; }
html body .ggg-home-brand .main-title { margin: 0; font-size: 2.5rem; line-height: 1.15; font-weight: 700; text-align: left; color: #1F1F1F; }
@media (max-width: 768px) {
  html body .ggg-home-brand { gap: 12px; }
  html body .ggg-home-brand .ggg-home-logo { width: 56px; height: 56px; }
  html body .ggg-home-brand .main-title { font-size: 1.75rem; }
}

/* Homepage: the Gift Guides buttons sit in a white box with the blue border used on the gift guide pages */
html body .ggg-featured-guides.inside-article {
  background-color: #FFFFFF;
  border: 3px solid #0B4F9C;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 32px; /* even on all sides (no heading above the buttons) */
}
@media (min-width: 769px) {
  html body .ggg-featured-guides.inside-article { margin-left: 40px; } /* left edge lines up with the logo above */
}
@media (max-width: 768px) {
  html body .ggg-featured-guides.inside-article { margin-left: 16px; margin-right: 16px; } /* keep the box off the screen edges */
}
@media (max-width: 768px) {
  html body .ggg-featured-guides.inside-article { padding: 16px; }
}

/* Homepage guide buttons: "Top Toys for 5-Year-Olds" on line 1, "Under $25" on line 2.
   Every button is wide enough for the longest two-digit age ("Top Toys for 17-Year-Olds"),
   and the box fits snugly around the buttons. */
html body a.ggg-guide-link .ggg-guide-text { display: flex; flex-direction: column; min-width: 12.6em; line-height: 1.3; }
html body a.ggg-guide-link .ggg-guide-line1,
html body a.ggg-guide-link .ggg-guide-line2 { white-space: nowrap; }
html body .ggg-guide-list { width: max-content; max-width: 100%; }
html body .ggg-featured-guides.inside-article { width: fit-content; max-width: 100%; box-sizing: border-box; }
/* Phones: the box fills the width; the text shrinks only as much as needed to keep line 1 on one line */
@media (max-width: 768px) {
  html body .ggg-featured-guides.inside-article { width: auto; }
  html body .ggg-guide-list { width: auto; }
  html body a.ggg-guide-link { font-size: min(1.15rem, calc((100vw - 140px) / 12.6)); }
}
/* Very narrow phones (e.g. original iPhone SE): a little less padding so the text can stay larger */
@media (max-width: 359px) {
  html body .ggg-featured-guides.inside-article { margin-left: 12px; margin-right: 12px; padding: 12px; }
  html body a.ggg-guide-link { padding-left: 12px; padding-right: 12px; font-size: min(1.15rem, calc((100vw - 108px) / 12.6)); }
}

/* Homepage, tablets and desktop:
   - no sidebar (it only held "Recent Posts"); the main content uses the full width
   - guide buttons in two columns, filled top to bottom: 1, 2, 3 in the first column, 4, 5, 6 in the second
     (--ggg-rows is set in front-page.php to half the number of guides, rounded up)
   Phones keep one column and the "Recent Posts" section below. */
@media (min-width: 769px) {
  html body.home #right-sidebar { display: none; }
  html body.home .site-content .content-area { width: 100%; }
  html body .ggg-guide-list {
    grid-template-columns: repeat(2, max-content);
    grid-template-rows: repeat(var(--ggg-rows, 3), auto);
    grid-auto-flow: column;
    column-gap: 20px;
    row-gap: 12px;
  }
}
/* Homepage, phones too: hide the "Recent Posts" sidebar (no posts are shown on the homepage) */
html body.home #right-sidebar { display: none; }

/* Homepage, second box (below the gift guides): buttons one after another in a single column,
   all the same width (the widest label); a little space above the box */
html body .ggg-more-links.inside-article { margin-top: 24px; }
html body .ggg-guide-list.ggg-more-list {
  grid-template-columns: max-content;
  grid-template-rows: none;
  grid-auto-flow: row;
}
@media (max-width: 768px) {
  html body .ggg-guide-list.ggg-more-list { grid-template-columns: 1fr; }
  html body .ggg-more-list a.ggg-guide-link .ggg-guide-line1 { white-space: normal; } /* long labels may wrap on small phones */
  html body .ggg-more-list a.ggg-guide-link .ggg-guide-text { min-width: 0; }
}

/* Homepage intro: between the site name and the gift guide box; left edge lines up with the logo and boxes */
html body .ggg-home-intro { max-width: 700px; margin: 0 0 20px 40px; font-size: 1.2rem; line-height: 1.5; color: #1F1F1F; }
@media (max-width: 768px) {
  html body .ggg-home-intro { margin: 0 16px 16px; font-size: 1.1rem; }
}

/* Homepage: keep the second area clearly separate from the gift guides
   - a thin line with extra space above and below
   - "Take a Look Around" heading
   - quieter look: soft light-blue background, thin border, no shadow, slimmer buttons */
html body hr.ggg-home-divider {
  height: 0; border: 0; border-top: 1px solid #B8C7DB; background: none;
  max-width: 700px; margin: 40px 0 40px 40px;
}
html body .ggg-more-links.inside-article {
  margin-top: 0;
  background-color: #EEF3FA;
  border: 1px solid #B8C7DB;
  box-shadow: none;
  padding: 24px 28px 28px;
}
html body .ggg-more-links .ggg-more-title { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.25; color: #1F1F1F; }
html body .ggg-more-list a.ggg-guide-link { min-height: 48px; padding-top: 8px; padding-bottom: 8px; font-size: 1.05rem; }
@media (max-width: 768px) {
  html body hr.ggg-home-divider { margin: 28px 16px; max-width: none; }
  html body .ggg-more-links.inside-article { padding: 16px; }
  html body .ggg-more-links .ggg-more-title { font-size: 1.375rem; margin-bottom: 12px; }
}
@media (max-width: 359px) {
  html body hr.ggg-home-divider { margin-left: 12px; margin-right: 12px; } /* match the boxes' edges on very narrow phones */
}

/* Homepage: light-blue gift guide box so it stands out as the main area (white buttons pop on it) */
html body .ggg-featured-guides.inside-article:not(.ggg-more-links) { background-color: #EEF3FA; }

/* Homepage: "More to Explore" is not boxed - just the heading and buttons under the line, so it reads as secondary */
html body .ggg-more-links.inside-article { background-color: transparent; border: 0; box-shadow: none; padding-left: 0; padding-right: 0; padding-top: 0; }
@media (max-width: 768px) {
  html body .ggg-more-links.inside-article { padding: 0; }
}

/* Homepage: "Gift Guides" and "More to Explore" headings, and a thin border (the divider's color) back
   around the More to Explore area. Border + padding add up to the same amount on both boxes
   (3px + 32px = 1px + 34px), so the two headings and their buttons line up exactly. */
html body .ggg-featured-guides .ggg-box-title { margin: 0 0 16px; font-size: 1.5rem; line-height: 1.25; color: #1F1F1F; }
html body .ggg-more-links.inside-article { border: 1px solid #B8C7DB; padding: 34px; }
@media (max-width: 768px) {
  html body .ggg-featured-guides .ggg-box-title { font-size: 1.375rem; margin-bottom: 12px; }
  html body .ggg-more-links.inside-article { padding: 18px; }  /* 1px + 18px = 3px + 16px */
}
@media (max-width: 359px) {
  html body .ggg-more-links.inside-article { padding: 14px; }  /* 1px + 14px = 3px + 12px */
}

/* Homepage: the divider line was removed; keep a clear gap between the Gift Guides and More to Explore boxes */
html body .ggg-more-links.inside-article { margin-top: 40px; }
@media (max-width: 768px) {
  html body .ggg-more-links.inside-article { margin-top: 28px; }
}

/* Gift guide pages - no footer, little space below the gift box, image sized to fill the rest */
html body.page-template-template-gift-guide .site-footer { display: none; }
html body.page-template-template-gift-guide .site-main { margin-bottom: 0; }
html body .ggg-gift-guide-page .inside-article { padding-bottom: 16px; }
@media (min-width: 1024px) {
  /* everything below the image: gift box padding 24 + border 3 + 16 space = 43px; image top is ~207px down */
  html body .ggg-guide-layout .ggg-gift-guide > .ggg-item { --ggg-img: clamp(300px, calc(100vh - 250px), 500px); }
}

/* Gift guide pages, tablets and phones: "All Guides" caption under the logo (part of the same link),
   since there is no hover tooltip on touch screens. Desktop keeps the tooltip and shows no caption. */
.ggg-logo-caption { display: none; }
@media (max-width: 1023px) {
  html body a.ggg-logo { height: auto; flex-direction: column; gap: 4px; border-radius: 0; }
  html body a.ggg-logo:hover { box-shadow: none; }
  html body a.ggg-logo .ggg-logo-img { width: 56px; height: 56px; border-radius: 16.7%; }
  html body a.ggg-logo:hover .ggg-logo-img { box-shadow: 0 0 0 3px rgba(11, 79, 156, 0.30); }
  html body .ggg-logo-caption {
    display: block; font-size: 0.9375rem; font-weight: 700; line-height: 1.1; color: #0B4F9C; /* 15px */
    white-space: nowrap; text-decoration: underline; text-underline-offset: 2px;
  }
  html body .ggg-guide-layout { column-gap: 20px; } /* room for the caption, which is a little wider than the logo */
}

/* "See all gifts": each gift in its own light-blue card, so it is clear where one gift ends and the next begins */
html body .ggg-gift-guide .ggg-all-entry { background-color: #EEF3FA; border: 1px solid #B8C7DB; border-radius: 12px; padding: 16px; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }
html body .ggg-all-entry .ggg-all-head { margin-bottom: 16px; }
html body .ggg-gift-guide.ggg-js.ggg-view-all .ggg-all-list { gap: 32px; }
@media (max-width: 768px) {
  html body .ggg-gift-guide .ggg-all-entry { padding: 10px; }
  html body .ggg-gift-guide.ggg-js.ggg-view-all .ggg-all-list { gap: 24px; }
}

/* "See all gifts" header bars: "1 of N" on the left end. On desktop the invisible spacer that keeps the
   gift name centered moves to the right end. */
html body .ggg-gift-guide .ggg-all-entry .ggg-all-head .ggg-nav-pos { order: 0; text-align: left; }
@media (min-width: 1024px) {
  html body .ggg-gift-guide .ggg-all-entry .ggg-all-head .ggg-nav-count::before { order: 3; }
}

/* "See all gifts" header bars: show the whole gift name (no 2-line limit with "..."); long names wrap */
html body .ggg-gift-guide .ggg-all-entry .ggg-all-head .ggg-nav-title {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  overflow-wrap: break-word;
}
/* Phones: "1 of N" on its own small line above the name, so a long name can use the bar's full width */
@media (max-width: 768px) {
  html body .ggg-gift-guide .ggg-all-entry .ggg-all-head .ggg-nav-count { flex-direction: column; align-items: center; gap: 2px; }
  html body .ggg-gift-guide .ggg-all-entry .ggg-all-head .ggg-nav-pos { text-align: center; }
  html body .ggg-gift-guide .ggg-all-entry .ggg-all-head .ggg-nav-title { width: 100%; }
}

/* =========================================================
   Info Page template (template-info-page.php), e.g. Privacy Policy:
   same top section as the gift guide pages, then the page text in a white box
   ========================================================= */
html body.page-template-template-info-page .site-main { margin-top: 8px; }
html body .ggg-guide-layout .ggg-info-panel {
  grid-area: panel;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  justify-self: center;
  background-color: #FFFFFF;
  border: 3px solid #0B4F9C;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  padding: 32px 40px;
  text-align: left;
}
html body .ggg-info-page .ggg-info-panel .entry-content { max-width: 70ch; margin: 0; text-align: left; }
html body .ggg-info-page .ggg-info-panel .entry-content > :first-child { margin-top: 0; }
@media (max-width: 768px) {
  html body .ggg-guide-layout .ggg-info-panel { padding: 20px 16px; }
}

/* =========================================================
   About page: friendlier, magazine-style layout. Applies only to page text wrapped in a
   Group block with the class ggg-about (see the About page in the editor).
   ========================================================= */
html body .ggg-info-panel:has(.ggg-about) { background-color: #FFFBF4; border-color: #0B4F9C; padding: 40px 48px; }
html body .ggg-info-page .ggg-info-panel .entry-content:has(.ggg-about) { max-width: none; }
html body .ggg-about { font-size: 22px; line-height: 1.7; color: #1F1F1F; }   /* 22px text */
html body .ggg-about p { margin: 0 0 1.1em; }
html body .ggg-about .ggg-about-lead { font-size: 26px; line-height: 1.6; color: #0B3F7C; font-weight: 400; }  /* 26px opening */
html body .ggg-about-intro { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
html body .ggg-about-text { max-width: 62ch; }
html body .ggg-about-photo { margin: 0; }
html body .ggg-about-photo img,
html body .ggg-about-photo .ggg-photo-ph { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 20px; border: 6px solid #FFFFFF; box-shadow: 0 6px 24px rgba(11, 79, 156, 0.18); background: #E3ECF7; }
html body .ggg-photo-ph { display: flex !important; align-items: center; justify-content: center; color: #0B4F9C; font-weight: 700; box-sizing: border-box; }
html body .ggg-about-card { margin: 40px 0 8px; padding: 32px 40px; background: #FFFFFF; border: 2px solid #B8C7DB; border-radius: 16px; }
html body .ggg-about-card h2 { margin: 0 0 20px; font-size: 30px; color: #1F1F1F; }
html body .ggg-about-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
html body .ggg-about-list li { position: relative; padding-left: 52px; min-height: 36px; line-height: 1.5; font-size: 22px; display: flex; align-items: center; }
html body .ggg-about-list li::before { content: "\2713"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; background: #0B4F9C; color: #FFFFFF; font-weight: 700; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
html body .ggg-about-closing { margin: 28px 0 0; font-style: italic; font-size: 22px; color: #3D3D45; }
@media (max-width: 1023px) {
  html body .ggg-about-intro { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
@media (max-width: 768px) {
  html body .ggg-info-panel:has(.ggg-about) { padding: 20px 16px; }
  html body .ggg-about-intro { grid-template-columns: 1fr; gap: 24px; }
  html body .ggg-about-photo { width: 100%; max-width: 320px; margin: 0 auto; }
  html body .ggg-about-card { padding: 20px 16px; margin-top: 28px; }
  html body .ggg-about-list { grid-template-columns: 1fr; }
  html body .ggg-about { font-size: 20px; }
  html body .ggg-about .ggg-about-lead { font-size: 23px; }
  html body .ggg-about-list li { font-size: 20px; }
  html body .ggg-about-card h2 { font-size: 26px; }
}

/* Merriweather (self-hosted, SIL OFL 1.1, see fonts/MERRIWEATHER-LICENSE.txt) for the About page's paragraphs; headings and list stay Atkinson Hyperlegible */
@font-face { font-family: "Merriweather"; src: url("fonts/merriweather-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("fonts/merriweather-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("fonts/merriweather-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
html body .ggg-about p { font-family: "Merriweather", Georgia, "Times New Roman", serif; font-size: 20px; line-height: 1.8; }
html body .ggg-about .ggg-about-lead { font-size: 24px; line-height: 1.7; color: #1F1F1F; }
/* large decorative first letter, like a magazine feature */
html body .ggg-about .ggg-about-lead::first-letter {
  float: left; font-family: "Merriweather", Georgia, serif; font-weight: 700; color: #0B4F9C;
  font-size: 3.3em; line-height: 0.8; margin: 0.06em 0.1em 0 0; padding-bottom: 0;
}
html body .ggg-about .ggg-about-closing { font-family: "Merriweather", Georgia, serif; font-style: italic; font-size: 20px; }
@media (max-width: 768px) {
  html body .ggg-about p { font-size: 18px; }
  html body .ggg-about .ggg-about-lead { font-size: 21px; }
  html body .ggg-about .ggg-about-closing { font-size: 18px; }
}

/* the guidelines list - one per line, check mark lined up with the first line of each rule */
html body .ggg-about-list { grid-template-columns: 1fr; gap: 18px; }
html body .ggg-about-list li { display: block; min-height: 36px; padding-top: 2px; }
html body .ggg-about-list li::before { top: 0; transform: none; }
html body .ggg-about-list li strong { color: #0B3F7C; }

/* WordPress may wrap a Group block's contents in an extra inner container; keep the layout working either way */
html body .ggg-about-intro > .wp-block-group__inner-container { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
@media (max-width: 1023px) {
  html body .ggg-about-intro > .wp-block-group__inner-container { grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; }
}
@media (max-width: 768px) {
  html body .ggg-about-intro > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: 24px; }
}
html body .ggg-about .ggg-photo-ph { font-family: inherit; font-size: 18px; text-align: center; padding: 16px; }
html body .ggg-about-photo img { margin: 0; }
html body .ggg-about-photo .wp-block-image { margin: 0; }
/* About page: less space above the first line (was 40px desktop/tablet, 20px phones) */
html body .ggg-info-panel:has(.ggg-about) { padding-top: 12px; }
@media (max-width: 768px) {
  html body .ggg-info-panel:has(.ggg-about) { padding-top: 8px; }
}
/* About page, one column (no photo): a comfortable reading width centered in the box,
   with the guidelines card between the opening paragraph and the rest of the text */
html body .ggg-about { max-width: 760px; margin-left: auto; margin-right: auto; }
html body .ggg-about .ggg-about-card { margin: 28px 0 32px; }
@media (max-width: 768px) {
  html body .ggg-about .ggg-about-card { margin: 20px 0 24px; }
}
/* Info Page layout always uses the full page width (it shrank to fit short content otherwise) */
html body .ggg-guide-layout.ggg-info-layout { width: 100%; box-sizing: border-box; }
html body.page-template-template-info-page .content-area { flex: 1 1 auto; width: 100%; min-width: 0; }

/* About page: "How to Shop" steps card (follows the guidelines card) */
html body .ggg-about .ggg-about-steps-card { margin-top: 28px; } /* same space above as the guidelines card */
html body .ggg-about-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
html body .ggg-about-steps li { margin: 0; font-size: 22px; line-height: 1.5; color: #1F1F1F; }
html body .ggg-about-steps li strong { color: #0B3F7C; white-space: nowrap; }
@media (max-width: 768px) {
  html body .ggg-about-steps li { font-size: 20px; }
}
@media (max-width: 768px) {
  html body .ggg-about .ggg-about-steps-card { margin-top: 20px; }
}

/* About page: "string around the finger" reminder under the How to Shop steps
   (graphic: images/reminder-finger.svg; the text is a normal paragraph with the class ggg-about-reminder) */
html body .ggg-about .ggg-about-card p.ggg-about-reminder {
  margin: 22px 0 0;
  min-height: 64px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  padding: 12px 18px 12px 84px;
  background: #FFF3D6 url("images/reminder-finger.svg?v=2") no-repeat 16px center / 56px 56px;
  border: 2px solid #F0C36A;
  border-radius: 12px;
  font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.45;
  color: #1F1F1F;
}
@media (max-width: 768px) {
  html body .ggg-about .ggg-about-card p.ggg-about-reminder { font-size: 19px; padding: 12px 14px 12px 70px; background-position: 12px center; background-size: 48px 48px; }
}
@media (max-width: 480px) {
  /* small phones: finger graphic above the text, both centered */
  html body .ggg-about .ggg-about-card p.ggg-about-reminder {
    display: block; text-align: center; padding: 70px 14px 14px; background-position: center 12px;
  }
}

/* About page links (e.g. "Take me to the Guides" in Step 1): logo blue, bold, underlined */
html body .ggg-about a { color: #0B4F9C; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
html body .ggg-about a:hover, html body .ggg-about a:focus { color: #072F5F; }

/* About page: printer button on the "How to Shop" card (added by js/about-print.js).
   Desktop only (1024px and wider). The tooltip shows on mouse hover and keyboard focus. */
html body .ggg-about .ggg-about-steps-card { position: relative; }
html body .ggg-print-btn { display: none; }
@media (min-width: 1024px) {
  html body .ggg-about .ggg-about-steps-card h2 { padding-right: 64px; }
  html body .ggg-about-steps-card button.ggg-print-btn {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 24px; right: 24px; width: 48px; height: 48px; padding: 0;
    background: #FFFFFF; color: #0B4F9C; border: 2px solid #B8C7DB; border-radius: 10px; cursor: pointer;
  }
  html body .ggg-about-steps-card button.ggg-print-btn:hover,
  html body .ggg-about-steps-card button.ggg-print-btn:focus { background: #EEF3FA; border-color: #0B4F9C; color: #0B4F9C; }
  html body .ggg-print-btn:focus-visible { outline: 3px solid #0B4F9C; outline-offset: 3px; }
  html body .ggg-print-tip {
    position: absolute; right: 0; top: calc(100% + 12px); white-space: nowrap;
    padding: 8px 12px; border-radius: 8px; background: #1F1F1F; color: #FFFFFF;
    font-family: inherit; font-size: 16px; font-weight: 400; line-height: 1.3;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); opacity: 0; visibility: hidden; pointer-events: none; z-index: 20;
    transition: opacity .15s ease, visibility .15s;
  }
  html body .ggg-print-tip::before { /* small pointer up toward the button */
    content: ""; position: absolute; right: 16px; bottom: 100%; border: 8px solid transparent; border-bottom-color: #1F1F1F;
  }
  html body .ggg-print-btn:hover .ggg-print-tip,
  html body .ggg-print-btn:focus-visible .ggg-print-tip { opacity: 1; visibility: visible; }
}
/* When the printer button is used: print only the "How to Shop" card */
@media print {
  html body.ggg-print-steps *:not(:has(.ggg-about-steps-card)):not(.ggg-about-steps-card):not(.ggg-about-steps-card *):not(.ggg-print-head):not(.ggg-print-head *) { display: none !important; }
  html body.ggg-print-steps *:has(.ggg-about-steps-card) {
    margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
    box-shadow: none !important; max-width: none !important; width: auto !important; display: block !important;
  }
  html body.ggg-print-steps .ggg-about .ggg-about-steps-card { margin: 0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html body.ggg-print-steps .ggg-print-btn { display: none !important; }
}

/* Printer button printout only: logo and site address on top, no "Take me to the Guides" link.
   The web page itself is unchanged. */
html body .ggg-print-head { display: none; }
@media print {
  html body.ggg-print-steps .ggg-print-head {
    display: flex !important; align-items: center; justify-content: center; gap: 18px; margin: 0 0 24px;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  html body.ggg-print-steps .ggg-print-head img { width: 80px; height: 80px; border-radius: 12px; }
  html body.ggg-print-steps .ggg-print-head span { font-size: 28px; font-weight: 700; color: #0B4F9C; }
  html body.ggg-print-steps .ggg-about-steps li a { display: none !important; }
}

/* About page: logo tip box at the very bottom ("Click this logo on any page..."). The whole box is a link to the main page.
   The logo is a background picture; the text is a paragraph with the class ggg-about-logo-tip containing a link */
html body .ggg-info-panel p.ggg-about-logo-tip { margin: 28px 0 0; }
html body .ggg-info-panel p.ggg-about-logo-tip a {
  min-height: 84px; display: flex; align-items: center; box-sizing: border-box;
  padding: 14px 18px 14px 100px;
  background: #EEF3FA url("images/grandmas-gift-guide-logo-white-on-blue.svg") no-repeat 18px center / 64px 64px;
  border: 2px solid #B8C7DB; border-radius: 12px; text-decoration: none;
  font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.45; color: #1F1F1F;
}
html body .ggg-info-panel p.ggg-about-logo-tip a:hover { border-color: #0B4F9C; color: #0B3F7C; text-decoration: underline; text-underline-offset: 3px; }
html body .ggg-info-panel p.ggg-about-logo-tip a:focus-visible { outline: 3px solid #0B4F9C; outline-offset: 3px; }
@media (max-width: 768px) {
  html body .ggg-info-panel p.ggg-about-logo-tip { margin-top: 20px; }
  html body .ggg-info-panel p.ggg-about-logo-tip a { min-height: 72px; font-size: 19px; padding: 12px 14px 12px 80px; background-position: 14px center; background-size: 52px 52px; }
}
@media (max-width: 480px) {
  /* small phones: logo above the text, both centered */
  html body .ggg-info-panel p.ggg-about-logo-tip a { display: block; text-align: center; padding: 78px 14px 14px; background-position: center 14px; }
}

/* About page on phones (768px and narrower): more text per line - smaller outer margin, thinner padding,
   smaller check marks, headings and drop cap. Text size is unchanged. Desktop and tablet are unchanged. */
@media (max-width: 768px) {
  html body .ggg-info-page:has(.ggg-about) .inside-article { padding-left: 10px; padding-right: 10px; }
  html body .ggg-info-panel:has(.ggg-about) { padding-left: 14px; padding-right: 14px; border-width: 2px; }
  html body .ggg-about .ggg-about-card { padding: 16px 12px; }
  html body .ggg-about-card h2 { font-size: 23px; }
  html body .ggg-about-list li { padding-left: 34px; min-height: 0; }
  html body .ggg-about-list li::before { width: 24px; height: 24px; font-size: 14px; top: 5px; }
  html body .ggg-about .ggg-about-lead::first-letter { font-size: 2.6em; }
}
@media (max-width: 480px) {
  /* picture above the text here, so the text can use the full box width */
  html body .ggg-about .ggg-about-card p.ggg-about-reminder { padding-left: 10px; padding-right: 10px; }
  html body .ggg-info-panel p.ggg-about-logo-tip a { padding-left: 10px; padding-right: 10px; }
}

/* Homepage: "More Guides Coming Soon!" under the last guide button - plain text, not a button */
html body .ggg-guide-list li.ggg-guide-soon {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 4px 12px; box-sizing: border-box;
  font-size: 1.15rem; font-weight: 700; font-style: italic; color: #0B3F7C; text-align: center;
}

/* ===== Our Team page (Info Page template; content is a Group block with the classes "ggg-about ggg-team") =====
   Magazine style: large family photo with caption, opening paragraph with drop cap, pull quote,
   "meet the family" card with round photos. Same Merriweather reading font as the About page. */
html body .ggg-about.ggg-team { max-width: 980px; }
html body .ggg-team p { max-width: 760px; margin-left: auto; margin-right: auto; }
/* large family photo */
html body .ggg-team figure.ggg-team-hero { margin: 4px 0 32px; }
html body .ggg-team figure.ggg-team-hero img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  border: 6px solid #FFFFFF; border-radius: 18px; box-shadow: 0 8px 28px rgba(11, 79, 156, 0.18); box-sizing: border-box;
}
html body .ggg-team figure.ggg-team-hero figcaption {
  margin: 12px auto 0; max-width: 760px; text-align: center;
  font-family: "Merriweather", Georgia, serif; font-style: italic; font-size: 17px; line-height: 1.6; color: #4A4A55;
}
/* pull quote */
html body .ggg-about blockquote.ggg-team-quote {
  position: relative; max-width: 680px; margin: 36px auto; padding: 34px 24px 24px;
  border: 0; border-top: 3px solid #B8C7DB; border-bottom: 3px solid #B8C7DB; background: none; text-align: center;
}
html body .ggg-about blockquote.ggg-team-quote::before {
  content: "\201C"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%);
  padding: 0 14px; background: #FFFBF4; font-family: "Merriweather", Georgia, serif; font-size: 72px; line-height: 1; color: #0B4F9C;
}
html body .ggg-about blockquote.ggg-team-quote p {
  margin: 0; font-family: "Merriweather", Georgia, serif; font-style: italic; font-size: 28px; line-height: 1.5; color: #0B3F7C;
}
/* "meet the family" card */
html body .ggg-team .ggg-team-card h2 { text-align: center; margin-bottom: 28px; }
html body .ggg-team .ggg-team-members,
html body .ggg-team .ggg-team-members > .wp-block-group__inner-container { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
html body .ggg-team .ggg-team-members > .wp-block-group__inner-container { grid-column: 1 / -1; }
html body .ggg-team .ggg-team-member { text-align: center; }
html body .ggg-team .ggg-team-member p { max-width: none; }
html body .ggg-team figure.ggg-team-member-photo { margin: 0 auto 14px; width: 160px; }
html body .ggg-team figure.ggg-team-member-photo img {
  display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 50%; border: 5px solid #E3ECF7; box-sizing: border-box;
}
html body .ggg-team .ggg-team-member h3 { margin: 0 0 4px; font-size: 25px; color: #0B3F7C; }
html body .ggg-team .ggg-team-member p.ggg-team-role {
  margin: 0 0 10px; font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  font-size: 15px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5A6372;
}
html body .ggg-team .ggg-team-member p:not(.ggg-team-role) { font-size: 18px; line-height: 1.7; }
@media (max-width: 768px) {
  html body .ggg-team figure.ggg-team-hero { margin-bottom: 24px; }
  html body .ggg-team figure.ggg-team-hero img { border-width: 4px; border-radius: 12px; }
  html body .ggg-team figure.ggg-team-hero figcaption { font-size: 16px; }
  html body .ggg-about blockquote.ggg-team-quote { margin: 32px auto 24px; padding: 30px 6px 20px; }
  html body .ggg-about blockquote.ggg-team-quote::before { font-size: 60px; top: -24px; }
  html body .ggg-about blockquote.ggg-team-quote p { font-size: 23px; }
  html body .ggg-team .ggg-team-members,
  html body .ggg-team .ggg-team-members > .wp-block-group__inner-container { grid-template-columns: 1fr; gap: 32px; }
  html body .ggg-team figure.ggg-team-member-photo,
  html body .ggg-team figure.ggg-team-member-photo img { width: 140px; height: 140px; }
}
/* keep things below the opening paragraph clear of its large first letter; center the logo box */
html body .ggg-about blockquote.ggg-team-quote,
html body .ggg-team .ggg-team-card,
html body .ggg-team p:not(.ggg-about-lead) { clear: both; }
html body .ggg-team p.ggg-about-logo-tip { margin-left: auto; margin-right: auto; }

/* pull quote: optional name under the quote */
html body .ggg-about blockquote.ggg-team-quote cite {
  display: block; margin-top: 12px; font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  font-style: normal; font-size: 16px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #5A6372;
}

/* ===== Atomic Aardvark book page (Info Page template; content is a Group block with the classes "ggg-about ggg-book") =====
   Book cover beside the author line, tagline and buy buttons; description, review quote, details card,
   and a closing "get your copy" card with the same buttons. */
html body .ggg-about.ggg-book { max-width: 980px; }
html body .ggg-book > p, html body .ggg-book > .wp-block-group__inner-container > p { max-width: 760px; margin-left: auto; margin-right: auto; }
html body .ggg-book .ggg-book-hero { gap: 44px; align-items: center; margin: 8px 0 36px; }
html body .ggg-book figure.ggg-book-cover { margin: 0; }
html body .ggg-book figure.ggg-book-cover img {
  display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 12px 30px rgba(11, 63, 124, 0.28);
}
html body .ggg-book p.ggg-book-byline { margin: 0 0 10px; font-style: italic; font-size: 22px; color: #4A4A55; }
html body .ggg-book p.ggg-book-tagline { margin: 0 0 26px; font-size: 26px; line-height: 1.5; color: #0B3F7C; }
html body .ggg-book .ggg-book-buy { display: flex; flex-direction: column; align-items: stretch; gap: 12px; max-width: 380px; }
html body .ggg-book .ggg-book-buy .wp-block-button { width: 100%; margin: 0; }
html body .ggg-book .ggg-book-buy a.wp-block-button__link {
  display: block; width: 100%; box-sizing: border-box; padding: 15px 22px; border-radius: 10px; text-align: center; text-decoration: none;
  background: #0B4F9C; color: #FFFFFF; font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.3;
}
html body .ggg-book .ggg-book-buy a.wp-block-button__link:hover,
html body .ggg-book .ggg-book-buy a.wp-block-button__link:focus { background: #072F5F; color: #FFFFFF; text-decoration: none; }
html body .ggg-book .ggg-book-buy a.wp-block-button__link:focus-visible { outline: 3px solid #0B4F9C; outline-offset: 3px; }
html body .ggg-book .ggg-book-details,
html body .ggg-book .ggg-book-cta { max-width: 760px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
html body .ggg-book .ggg-book-cta { text-align: center; background: #EEF3FA; }
html body .ggg-book .ggg-book-cta .ggg-book-buy { margin: 18px auto 0; }
html body .ggg-book p.ggg-about-logo-tip { max-width: 760px; margin-left: auto; margin-right: auto; }
html body .ggg-book blockquote.ggg-team-quote, html body .ggg-book .ggg-about-card, html body .ggg-book p:not(.ggg-about-lead) { clear: both; }
@media (max-width: 781px) {
  /* phones and small tablets: cover on top, centered, then the buttons */
  html body .ggg-book .ggg-book-hero { gap: 20px; text-align: center; }
  html body .ggg-book figure.ggg-book-cover { max-width: 240px; margin: 0 auto; }
  html body .ggg-book .ggg-book-buy { margin-left: auto; margin-right: auto; }
  html body .ggg-book p.ggg-book-tagline { font-size: 22px; }
}

/* Atomic Aardvark page: text between the tagline and the buy buttons */
html body .ggg-book p.ggg-book-tagline { margin-bottom: 14px; }
html body .ggg-book p.ggg-book-intro { margin: 0 0 24px; font-size: 20px; line-height: 1.7; color: #1F1F1F; }
@media (max-width: 768px) {
  html body .ggg-book p.ggg-book-intro { font-size: 18px; }
}

/* Our Team page: four family sections, each a graphic beside the text, alternating sides
   (rows with the class ggg-team-row-left have the graphic on the left, ggg-team-row-right on the right) */
html body .ggg-team .ggg-team-row { gap: 44px; margin: 44px 0; clear: both; }
html body .ggg-team figure.ggg-team-graphic { margin: 0; }
html body .ggg-team figure.ggg-team-graphic img {
  display: block; width: 100%; height: auto; border-radius: 18px; border: 6px solid #FFFFFF; box-sizing: border-box;
  box-shadow: 0 8px 24px rgba(11, 79, 156, 0.16);
}
html body .ggg-team .ggg-team-row-text h2 { margin: 0 0 12px; font-size: 32px; color: #0B3F7C; }
html body .ggg-team .ggg-team-row-text p { max-width: none; margin-left: 0; margin-right: 0; }
html body .ggg-team .ggg-team-row-text p:last-child { margin-bottom: 0; }
@media (max-width: 781px) {
  /* phones and small tablets: graphic above the text in every section */
  html body .ggg-team .ggg-team-row { gap: 18px; margin: 36px 0; }
  html body .ggg-team .ggg-team-row-right .ggg-team-row-media { order: -1; }
  html body .ggg-team figure.ggg-team-graphic { max-width: 320px; margin: 0 auto; }
  html body .ggg-team .ggg-team-row-text h2 { font-size: 26px; text-align: center; }
}

/* Our Team page: "job title" badge beside each family section (in place of a picture):
   a blue title band ("Operations "Guy"") and a short list of duties */
html body .ggg-team .ggg-team-badge {
  background: #FFFFFF; border: 2px solid #B8C7DB; border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 24px rgba(11, 79, 156, 0.16); text-align: left;
}
html body .ggg-team .ggg-team-badge p.ggg-team-badge-title {
  margin: 0; max-width: none; padding: 18px 22px; background: #0B4F9C; color: #FFFFFF; text-align: center;
  font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif; font-size: 26px; font-weight: 700; line-height: 1.3;
}
html body .ggg-team ul.ggg-team-badge-list { list-style: none; margin: 0; padding: 20px 24px 22px; display: grid; gap: 12px; }
html body .ggg-team ul.ggg-team-badge-list li {
  position: relative; margin: 0; padding-left: 30px;
  font-family: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif; font-size: 20px; font-weight: 700; line-height: 1.4; color: #1F1F1F;
}
html body .ggg-team ul.ggg-team-badge-list li::before {
  content: "\2605"; position: absolute; left: 0; top: 0; color: #0B4F9C; font-size: 20px; line-height: 1.4;
}
@media (max-width: 781px) {
  html body .ggg-team .ggg-team-badge { max-width: 340px; margin: 0 auto; width: 100%; box-sizing: border-box; }
  html body .ggg-team .ggg-team-badge p.ggg-team-badge-title { font-size: 23px; padding: 14px 18px; }
  html body .ggg-team ul.ggg-team-badge-list li { font-size: 19px; }
}

/* Our Team page: "Meet the Guys" heading above the four family sections, with a short blue line under it */
html body .ggg-team h2.ggg-team-section-title {
  clear: both; margin: 40px 0 8px; text-align: center; font-size: 38px; line-height: 1.2; color: #1F1F1F;
}
html body .ggg-team h2.ggg-team-section-title::after {
  content: ""; display: block; width: 72px; height: 4px; margin: 14px auto 0; border-radius: 2px; background: #0B4F9C;
}
@media (max-width: 768px) {
  html body .ggg-team h2.ggg-team-section-title { margin-top: 32px; font-size: 30px; }
}

/* Site header on other pages ("page not found", search results): logo and site name both link to the homepage */
html body .ggg-home-brand a.ggg-home-logo-link { display: block; flex: 0 0 auto; line-height: 0; }
html body .ggg-home-brand .main-title a { color: #1F1F1F; text-decoration: none; }
html body .ggg-home-brand .main-title a:hover, html body .ggg-home-brand .main-title a:focus { color: #0B4F9C; text-decoration: underline; text-underline-offset: 4px; }

/* Gift guides with filters off: the price area holds only the Buy Now button, so the area's own
   outline, padding and background are removed and the button fills the whole area */
html body .ggg-no-filters .ggg-area.ggg-price-buy { border: 0; border-radius: 0; padding: 0; background: none; }

/* Atomic Aardvark page: more compact review quote (it is a full review, longer than a pull quote) */
html body .ggg-book blockquote.ggg-team-quote { max-width: 760px; padding: 30px 20px 20px; }
html body .ggg-book blockquote.ggg-team-quote p { font-size: 21px; line-height: 1.6; }
@media (max-width: 768px) {
  html body .ggg-book blockquote.ggg-team-quote { padding: 28px 4px 18px; }
  html body .ggg-book blockquote.ggg-team-quote p { font-size: 18px; }
}

/* Atomic Aardvark page: review quote with plain solid lines above and below (no quotation mark in the top line) */
html body .ggg-book blockquote.ggg-team-quote::before { content: none; display: none; }
html body .ggg-book blockquote.ggg-team-quote { padding-top: 22px; }
@media (max-width: 768px) {
  html body .ggg-book blockquote.ggg-team-quote { padding-top: 18px; margin-top: 24px; }
}

/* Atomic Aardvark page: the three buy buttons together in one box below the cover and text
   (white background, blue outline); side by side on computers and tablets, stacked on phones */
html body .ggg-book p.ggg-book-intro { margin-bottom: 0; }
html body .ggg-book .ggg-book-buy-box {
  max-width: 760px; margin: 0 auto 36px; padding: 20px; box-sizing: border-box;
  background: #FFFFFF; border: 2px solid #0B4F9C; border-radius: 12px;
}
html body .ggg-book .ggg-book-buy-box .ggg-book-buy { flex-direction: row; max-width: none; margin: 0; gap: 14px; }
html body .ggg-book .ggg-book-buy-box .ggg-book-buy .wp-block-button { flex: 1 1 0; width: auto; min-width: 0; }
html body .ggg-book .ggg-book-buy-box a.wp-block-button__link { height: 100%; display: flex; align-items: center; justify-content: center; padding: 14px 12px; font-size: 19px; }
@media (max-width: 768px) {
  html body .ggg-book .ggg-book-buy-box { padding: 14px; margin-bottom: 28px; }
  html body .ggg-book .ggg-book-buy-box .ggg-book-buy { flex-direction: column; gap: 12px; }
  html body .ggg-book .ggg-book-buy-box .ggg-book-buy .wp-block-button { flex: 0 0 auto; width: 100%; }
  html body .ggg-book .ggg-book-buy-box a.wp-block-button__link { font-size: 19px; }
}
@media (min-width: 782px) {
  /* keep the cover column at its set width (36%) however long the text beside it is */
  html body .ggg-book .ggg-book-hero > .wp-block-column[style*="flex-basis"] { flex-shrink: 0; }
  html body .ggg-book .ggg-book-hero > .wp-block-column:not([style*="flex-basis"]) { flex: 1 1 0; min-width: 0; }
}

/* Atomic Aardvark page: cover, text and the stacked buy buttons together in one box
   (white background, blue outline) */
html body .ggg-book .ggg-book-hero {
  background: #FFFFFF; border: 2px solid #0B4F9C; border-radius: 12px; padding: 28px 32px; box-sizing: border-box;
}
html body .ggg-book p.ggg-book-intro { margin-bottom: 24px; }
@media (max-width: 781px) {
  html body .ggg-book .ggg-book-hero { padding: 20px 16px; }
}

/* Atomic Aardvark page, computers and tablets: a more compact cover box so all three buy buttons
   show without scrolling on most screens (less space above the box, a slightly narrower cover,
   smaller text and buttons inside the box) */
html body .ggg-info-panel:has(.ggg-book) { padding-top: 8px; }
@media (min-width: 782px) {
  html body .ggg-book .ggg-book-hero { margin: 0 0 32px; padding: 20px 28px; gap: 36px; }
  html body .ggg-book .ggg-book-hero > .wp-block-column[style*="flex-basis"] { flex-basis: 28% !important; }
  html body .ggg-book p.ggg-book-byline { font-size: 18px; margin-bottom: 4px; }
  html body .ggg-book p.ggg-book-tagline { font-size: 22px; line-height: 1.4; margin-bottom: 10px; }
  html body .ggg-book p.ggg-book-intro { font-size: 17px; line-height: 1.6; margin-bottom: 18px; }
  html body .ggg-book .ggg-book-buy { gap: 8px; max-width: 340px; }
  html body .ggg-book .ggg-book-buy a.wp-block-button__link { padding: 11px 18px; font-size: 18px; }
}
