/*
Theme Name: Goodhart Family
Theme URI: https://dangoodhart.com/
Author: Goodhart Family
Description: A private-family WordPress theme styled to match the Goodhart webmail interface.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: goodhart-family
*/

:root {
  --gf-bg: #0b0b0b;
  --gf-sidebar: #0c0c0c;
  --gf-panel: #151515;
  --gf-panel-alt: #181818;
  --gf-border: #2f2f2f;
  --gf-accent: #b78362;
  --gf-accent-hover: #c79572;
  --gf-accent-light: #ddb08e;
  --gf-text: #f2f2f2;
  --gf-muted: #aaa6a3;
  --gf-danger: #ff3b3f;
  --gf-radius: 14px;
  --gf-shadow: 0 16px 40px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--gf-bg);
  color: var(--gf-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: var(--gf-accent-light); text-decoration: none; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }

.gf-wrap { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12,12,12,.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gf-border);
}

.gf-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.gf-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.custom-logo { max-height: 46px; width: auto; }
.gf-brand-text { color: #fff; font-weight: 800; letter-spacing: .02em; font-size: 1.05rem; white-space: nowrap; }

.gf-nav ul { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gf-nav a { display: block; padding: 10px 12px; border-radius: 9px; color: #ddd; }
.gf-nav a:hover, .gf-nav .current-menu-item > a { background: var(--gf-panel-alt); color: var(--gf-accent-light); }

.gf-menu-toggle { display: none; background: var(--gf-panel); color: #fff; border: 1px solid var(--gf-border); border-radius: 10px; padding: 10px 12px; }

.gf-hero { padding: 96px 0 64px; background: radial-gradient(circle at 50% 0%, rgba(183,131,98,.16), transparent 38%); }
.gf-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 42px; align-items: center; }
.gf-kicker { color: var(--gf-accent-light); font-weight: 800; text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; }
.gf-hero h1 { margin: 8px 0 16px; font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.04em; }
.gf-hero p { max-width: 700px; color: #c8c8c8; font-size: 1.1rem; }

.gf-panel, .gf-card {
  background: linear-gradient(180deg, #181818, #141414);
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius);
  box-shadow: var(--gf-shadow);
}

.gf-panel { padding: 28px; }
.gf-login-panel { text-align: center; }
.gf-login-panel h2 { margin-top: 0; }
.gf-login-panel p { color: var(--gf-muted); }

.gf-button, .wp-element-button, button, input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--gf-accent);
  border-radius: 9px;
  background: var(--gf-accent);
  color: #111 !important;
  font-weight: 800;
  cursor: pointer;
  transition: .18s ease;
}
.gf-button:hover, button:hover, input[type="submit"]:hover { background: var(--gf-accent-hover); border-color: var(--gf-accent-hover); transform: translateY(-1px); }
.gf-button-secondary { background: transparent; color: var(--gf-accent-light) !important; }

.gf-section { padding: 34px 0 64px; }
.gf-section-title { margin: 0 0 22px; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.gf-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.gf-card { padding: 22px; min-height: 180px; transition: transform .18s ease, border-color .18s ease; }
.gf-card:hover { transform: translateY(-3px); border-color: var(--gf-accent); }
.gf-card h3 { margin: 0 0 8px; color: #fff; }
.gf-card p { color: var(--gf-muted); margin: 0; }
.gf-card-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 18px; background: rgba(183,131,98,.13); color: var(--gf-accent-light); font-size: 1.4rem; }

.gf-post-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gf-post-card { overflow: hidden; }
.gf-post-card .gf-card-body { padding: 20px; }
.gf-post-card h2, .gf-post-card h3 { margin-top: 0; }
.gf-post-meta { color: #8f8f8f; font-size: .9rem; }

.site-main { min-height: 64vh; }
.entry-content, .entry-header { width: min(900px, calc(100% - 36px)); margin-left: auto; margin-right: auto; }
.entry-header { padding-top: 56px; }
.entry-content { padding-bottom: 60px; }
.entry-content input, .entry-content textarea, .entry-content select {
  width: 100%;
  color: var(--gf-text);
  background: #111;
  border: 1px solid var(--gf-border);
  border-radius: 8px;
  padding: 11px 12px;
}

.site-footer { border-top: 1px solid var(--gf-border); background: #0a0a0a; margin-top: 44px; }
.gf-footer-inner { min-height: 82px; display: flex; justify-content: space-between; align-items: center; gap: 18px; color: #858585; font-size: .92rem; }
.gf-footer-mark { color: var(--gf-accent); }

.gf-private-badge { display: inline-flex; align-items: center; gap: 7px; color: var(--gf-accent-light); border: 1px solid #3b312b; background: #171310; padding: 6px 10px; border-radius: 999px; font-size: .83rem; }

.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }


/* Version 1.2: page headers, albums, news cleanup, and photo lightbox */
.gf-page-hero {
  padding: 64px 0 34px;
  background: radial-gradient(circle at 50% 0%, rgba(183,131,98,.14), transparent 42%);
}
.gf-page-hero h1 { margin: 7px 0 10px; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.035em; }
.gf-page-hero p { color: #c8c8c8; max-width: 760px; }
.gf-page-hero-row { display: flex; justify-content: space-between; align-items: end; gap: 28px; }
.gf-page-intro, .gf-album-description { max-width: 820px; margin-top: 22px; color: #c8c8c8; }
.gf-page-intro > :first-child, .gf-album-description > :first-child { margin-top: 0; }
.gf-page-intro > :last-child, .gf-album-description > :last-child { margin-bottom: 0; }
.gf-back-link { display: inline-flex; margin-bottom: 24px; color: var(--gf-accent-light); font-weight: 700; }
.gf-back-link:hover { color: #fff; }
.gf-section-heading-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.gf-section-heading-row .gf-section-title { margin-bottom: 0; }
.gf-text-link { white-space: nowrap; font-weight: 700; }

.gf-empty-state { display: flex; align-items: center; gap: 20px; grid-column: 1 / -1; min-height: 150px; }
.gf-empty-state h2, .gf-empty-state h3 { margin: 0 0 6px; }
.gf-empty-state p { margin: 0 0 16px; color: var(--gf-muted); max-width: 720px; }
.gf-empty-icon { flex: 0 0 auto; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 15px; background: rgba(183,131,98,.13); font-size: 1.75rem; }

.gf-album-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gf-album-card {
  overflow: hidden;
  background: linear-gradient(180deg, #181818, #141414);
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius);
  box-shadow: var(--gf-shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.gf-album-card:hover { transform: translateY(-3px); border-color: var(--gf-accent); }
.gf-album-cover { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: #111; color: #fff; }
.gf-album-cover-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.gf-album-card:hover .gf-album-cover-image { transform: scale(1.025); }
.gf-album-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3rem; background: radial-gradient(circle at 50% 20%, rgba(183,131,98,.16), #111 65%); }
.gf-album-photo-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(10,10,10,.82); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: .8rem; font-weight: 700; backdrop-filter: blur(8px); }
.gf-album-card-body { padding: 18px 20px 22px; }
.gf-album-card-body h2 { margin: 3px 0 5px; font-size: 1.25rem; }
.gf-album-card-body h2 a { color: #fff; }
.gf-album-card-body p { margin: 0; color: var(--gf-muted); }
.gf-album-empty { min-height: 210px; }

.gf-photo-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.gf-photo-tile { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; border: 1px solid #272727; background: #111; }
.gf-photo-tile:hover { border-color: var(--gf-accent); }
.gf-album-photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .22s ease, opacity .22s ease; }
.gf-photo-tile:hover .gf-album-photo { transform: scale(1.025); opacity: .92; }

body.gf-lightbox-open { overflow: hidden; }
.gf-lightbox[hidden] { display: none !important; }
.gf-lightbox { position: fixed; inset: 0; z-index: 99999; display: grid; grid-template-columns: minmax(52px,1fr) minmax(0,1100px) minmax(52px,1fr); align-items: center; background: rgba(0,0,0,.94); padding: 28px 18px; }
.gf-lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; max-height: calc(100vh - 56px); }
.gf-lightbox-image { display: block; max-width: 100%; max-height: calc(100vh - 110px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 22px 80px rgba(0,0,0,.6); }
.gf-lightbox-caption { margin-top: 10px; color: #d4d4d4; text-align: center; max-width: 860px; }
.gf-lightbox-close, .gf-lightbox-nav { position: fixed; min-height: 0; width: 46px; height: 46px; padding: 0; border-radius: 999px; background: rgba(20,20,20,.8); border: 1px solid #3a3a3a; color: #fff !important; font-size: 2rem; line-height: 1; box-shadow: none; }
.gf-lightbox-close { right: 22px; top: 18px; font-size: 1.7rem; }
.gf-lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.gf-lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.gf-lightbox-close:hover, .gf-lightbox-nav:hover { background: var(--gf-accent); color: #111 !important; transform: none; }
.gf-lightbox-prev:hover, .gf-lightbox-next:hover { transform: translateY(-50%); }

.gf-news-preview .gf-post-grid:has(.gf-empty-state) { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  .gf-hero-grid, .gf-grid, .gf-post-grid, .gf-album-grid { grid-template-columns: 1fr; }
  .gf-menu-toggle { display: inline-flex; }
  .gf-nav { display: none; position: absolute; left: 18px; right: 18px; top: 68px; background: #101010; border: 1px solid var(--gf-border); border-radius: 12px; padding: 10px; }
  .gf-nav.is-open { display: block; }
  .gf-nav ul { flex-direction: column; align-items: stretch; }
  .gf-hero { padding-top: 58px; }
  .gf-footer-inner { flex-direction: column; justify-content: center; padding: 24px 0; text-align: center; }
  .gf-page-hero-row, .gf-section-heading-row { align-items: flex-start; flex-direction: column; }
  .gf-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .gf-lightbox { grid-template-columns: 1fr; padding: 68px 10px 74px; }
  .gf-lightbox-image { max-height: calc(100vh - 150px); }
}


/* Version 1.3: dedicated Family News system */
.gf-news-badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 9px 0 10px; }
.gf-news-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 9px; border: 1px solid #3d312b; border-radius: 999px; background: #171310; color: var(--gf-accent-light); font-size: .76rem; font-weight: 800; letter-spacing: .02em; }
.gf-news-feature-heading { margin-top: 0; }
.gf-news-feature { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr); overflow: hidden; padding: 0; margin-bottom: 54px; }
.gf-news-feature-media { display: block; min-height: 380px; background: #111; overflow: hidden; }
.gf-news-feature-image { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; transition: transform .3s ease; }
.gf-news-feature:hover .gf-news-feature-image { transform: scale(1.018); }
.gf-news-feature-body { align-self: center; padding: 38px; }
.gf-news-feature-body h2 { margin: 7px 0 12px; font-size: clamp(1.8rem,3.5vw,3rem); line-height: 1.05; letter-spacing: -.025em; }
.gf-news-feature-body h2 a { color: #fff; }
.gf-news-feature-body p { color: var(--gf-muted); margin: 0 0 18px; }
.gf-news-all-heading { margin-top: 18px; }
.gf-news-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gf-news-card { overflow: hidden; background: linear-gradient(180deg,#181818,#141414); border: 1px solid var(--gf-border); border-radius: var(--gf-radius); box-shadow: var(--gf-shadow); transition: transform .18s ease,border-color .18s ease; }
.gf-news-card:hover { transform: translateY(-3px); border-color: var(--gf-accent); }
.gf-news-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.gf-news-card-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gf-news-card:hover .gf-news-card-image { transform: scale(1.025); }
.gf-news-card-placeholder { display: grid; place-items: center; font-size: 3rem; background: radial-gradient(circle at 50% 20%,rgba(183,131,98,.18),#111 65%); }
.gf-news-card-body { padding: 21px 22px 24px; }
.gf-news-card-body h2 { margin: 5px 0 8px; font-size: 1.3rem; line-height: 1.22; }
.gf-news-card-body h2 a { color: #fff; }
.gf-news-card-body p { color: var(--gf-muted); margin: 0 0 16px; }
.gf-news-single-wrap { max-width: 900px; }
.gf-news-single-hero h1 { margin: 9px 0 14px; max-width: 880px; font-size: clamp(2.6rem,6vw,5rem); line-height: .98; letter-spacing: -.04em; }
.gf-news-byline { color: #aaa6a3; font-size: .96rem; }
.gf-news-byline span { padding: 0 7px; color: var(--gf-accent); }
.gf-news-deck { max-width: 780px; margin: 18px 0 0; color: #c8c8c8; font-size: clamp(1.05rem,2vw,1.25rem); }
.gf-news-single-featured { max-width: 1100px; margin-top: -12px; }
.gf-news-single-image { width: 100%; max-height: 680px; object-fit: cover; display: block; border: 1px solid var(--gf-border); border-radius: var(--gf-radius); box-shadow: var(--gf-shadow); }
.gf-news-article { max-width: 900px; padding-top: 46px; padding-bottom: 36px; }
.gf-news-article-content { font-size: 1.08rem; color: #dedede; }
.gf-news-article-content > :first-child { margin-top: 0; }
.gf-news-article-content p { margin: 0 0 1.25em; }
.gf-news-article-content h2,.gf-news-article-content h3,.gf-news-article-content h4 { color: #fff; margin-top: 1.6em; line-height: 1.2; }
.gf-news-article-content blockquote { margin: 1.6em 0; padding: 14px 0 14px 22px; border-left: 3px solid var(--gf-accent); color: #cfcfcf; font-size: 1.08em; }
.gf-news-article-content img { border-radius: 10px; }
.gf-news-preview .gf-news-badges { margin-top: 8px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .gf-news-feature { grid-template-columns: 1fr; }
  .gf-news-feature-media,.gf-news-feature-image { min-height: 0; }
  .gf-news-feature-media { aspect-ratio: 16 / 10; }
  .gf-news-feature-body { padding: 24px; }
  .gf-news-grid { grid-template-columns: 1fr; }
}

/* Version 1.4: Family Calendar */
.gf-calendar-section { padding-top: 24px; }
.gf-calendar-toolbar {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  text-align: center;
}
.gf-calendar-toolbar h2 { margin: 2px 0 0; font-size: clamp(1.6rem,3vw,2.35rem); }
.gf-calendar-nav {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gf-border);
  border-radius: 12px;
  background: var(--gf-panel);
  color: var(--gf-accent-light);
  font-size: 1.35rem;
  font-weight: 800;
  transition: .18s ease;
}
.gf-calendar-nav:hover { border-color: var(--gf-accent); background: #1a1613; color: #fff; transform: translateY(-1px); }
.gf-calendar-scroll {
  overflow-x: auto;
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius);
  background: #101010;
  box-shadow: var(--gf-shadow);
  scrollbar-color: var(--gf-accent) #111;
}
.gf-calendar-grid {
  min-width: 820px;
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
}
.gf-calendar-weekday {
  padding: 12px 10px;
  border-right: 1px solid var(--gf-border);
  border-bottom: 1px solid var(--gf-border);
  background: #131313;
  color: var(--gf-accent-light);
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.gf-calendar-weekday:nth-child(7) { border-right: 0; }
.gf-calendar-day {
  min-height: 132px;
  padding: 9px;
  border-right: 1px solid #252525;
  border-bottom: 1px solid #252525;
  background: linear-gradient(180deg,#151515,#121212);
}
.gf-calendar-day:nth-child(7n) { border-right: 0; }
.gf-calendar-day-empty { background: #0f0f0f; }
.gf-calendar-day.is-today { box-shadow: inset 0 0 0 1px var(--gf-accent); background: linear-gradient(180deg,#1b1714,#151311); }
.gf-calendar-day-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 7px;
  border-radius: 9px;
  color: #dedede;
  font-size: .88rem;
  font-weight: 800;
}
.gf-calendar-day.is-today .gf-calendar-day-number { background: var(--gf-accent); color: #111; }
.gf-calendar-day-events { display: grid; gap: 5px; }
.gf-calendar-event-pill {
  display: block;
  overflow: hidden;
  padding: 5px 7px;
  border: 1px solid #3d312b;
  border-radius: 7px;
  background: #191411;
  color: #ead1bd;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.gf-calendar-event-pill:hover { border-color: var(--gf-accent); background: #211914; color: #fff; }
.gf-calendar-more { color: #8f8f8f; font-size: .72rem; padding-left: 3px; }
.gf-calendar-upcoming-heading { margin-top: 56px; }
.gf-event-list { display: grid; gap: 12px; }
.gf-event-row {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr) 38px;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease;
}
.gf-event-row:hover { border-color: var(--gf-accent); transform: translateY(-1px); }
.gf-event-date-block {
  width: 66px;
  min-height: 70px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #3d312b;
  border-radius: 12px;
  background: #181310;
  line-height: 1;
}
.gf-event-date-block span { color: var(--gf-accent-light); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.gf-event-date-block strong { margin-top: 6px; color: #fff; font-size: 1.75rem; }
.gf-event-row-body h3, .gf-home-event-card h3 { margin: 3px 0 5px; font-size: 1.15rem; line-height: 1.25; }
.gf-event-row-body h3 a, .gf-home-event-card h3 a { color: #fff; }
.gf-event-meta-line { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--gf-muted); font-size: .88rem; }
.gf-event-repeat-badge { background: #121717; border-color: #2e3a3a; color: #b9d1d1; }
.gf-event-row-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; color: var(--gf-accent-light); font-size: 1.25rem; }
.gf-event-row-arrow:hover { background: #1b1613; color: #fff; }

.gf-home-events { padding-top: 12px; }
.gf-home-event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gf-home-event-card {
  display: grid;
  grid-template-columns: 66px minmax(0,1fr);
  align-items: center;
  gap: 16px;
  min-height: 128px;
  padding: 18px;
  box-shadow: var(--gf-shadow);
  transition: border-color .18s ease, transform .18s ease;
}
.gf-home-event-card:hover { border-color: var(--gf-accent); transform: translateY(-2px); }
.gf-home-event-card .gf-event-date-block { width: 60px; min-height: 66px; }
.gf-home-event-card .gf-event-date-block strong { font-size: 1.6rem; }
.gf-home-event-card .gf-news-badges { margin: 0 0 6px; }

.gf-event-single-wrap { max-width: 900px; }
.gf-event-single-hero h1 { margin: 8px 0 22px; max-width: 880px; font-size: clamp(2.6rem,6vw,5rem); line-height: .98; letter-spacing: -.04em; }
.gf-event-single-details {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 20px;
  margin-top: 24px;
  padding: 20px 22px;
  box-shadow: none;
}
.gf-event-single-details > div { min-width: 0; }
.gf-event-detail-label { display: block; margin-bottom: 4px; color: var(--gf-muted); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.gf-event-single-details strong { display: block; color: #fff; font-size: .98rem; line-height: 1.4; overflow-wrap: anywhere; }
.gf-event-single-featured { max-width: 1100px; margin-top: -12px; }
.gf-event-edit-link { margin-top: 30px; }

@media (max-width: 860px) {
  .gf-home-event-grid { grid-template-columns: 1fr; }
  .gf-event-single-details { grid-template-columns: 1fr; }
  .gf-calendar-toolbar { grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .gf-event-row { grid-template-columns: 64px minmax(0,1fr); gap: 14px; }
  .gf-event-row-arrow { display: none; }
}

@media (max-width: 520px) {
  .gf-event-row { grid-template-columns: 56px minmax(0,1fr); padding: 14px; }
  .gf-event-date-block { width: 54px; min-height: 62px; }
  .gf-event-date-block strong { font-size: 1.45rem; }
  .gf-event-meta-line { flex-direction: column; gap: 3px; }
}

/* Version 1.5: Family Memories */
.gf-memories-section { padding-top: 24px; }
.gf-memory-timeline { position: relative; display: grid; gap: 48px; }
.gf-memory-timeline::before { content: ""; position: absolute; left: 18px; top: 17px; bottom: 20px; width: 1px; background: linear-gradient(var(--gf-accent),#2b241f 75%,transparent); opacity: .75; }
.gf-memory-year-group { position: relative; padding-left: 58px; }
.gf-memory-year-heading { position: relative; min-height: 38px; display: flex; align-items: center; margin-bottom: 18px; }
.gf-memory-year-heading h2 { margin: 0; font-size: clamp(1.8rem,3vw,2.6rem); color: #fff; letter-spacing: -.025em; }
.gf-memory-year-dot { position: absolute; left: -49px; width: 19px; height: 19px; border: 4px solid #17120f; border-radius: 50%; background: var(--gf-accent); box-shadow: 0 0 0 1px #4a382e; }
.gf-memory-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gf-memory-card { overflow: hidden; background: linear-gradient(180deg,#181818,#141414); border: 1px solid var(--gf-border); border-radius: var(--gf-radius); box-shadow: var(--gf-shadow); transition: transform .18s ease,border-color .18s ease; }
.gf-memory-card:hover { transform: translateY(-3px); border-color: var(--gf-accent); }
.gf-memory-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.gf-memory-card-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gf-memory-card:hover .gf-memory-card-image { transform: scale(1.025); }
.gf-memory-card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 3.2rem; background: radial-gradient(circle at 50% 25%,rgba(183,131,98,.20),#111 68%); }
.gf-memory-photo-count { position: absolute; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 999px; background: rgba(10,10,10,.84); border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: .78rem; font-weight: 800; backdrop-filter: blur(8px); }
.gf-memory-card-body { padding: 20px 21px 23px; }
.gf-memory-date { color: var(--gf-accent-light); font-size: .82rem; font-weight: 800; letter-spacing: .025em; }
.gf-memory-card-body h3 { margin: 6px 0 8px; font-size: 1.3rem; line-height: 1.2; }
.gf-memory-card-body h3 a { color: #fff; }
.gf-memory-card-body p { margin: 0 0 16px; color: var(--gf-muted); }

.gf-memory-single-wrap { max-width: 900px; }
.gf-memory-single-hero h1 { margin: 9px 0 14px; max-width: 900px; font-size: clamp(2.7rem,6vw,5.2rem); line-height: .97; letter-spacing: -.045em; }
.gf-memory-byline { display: flex; flex-wrap: wrap; gap: 8px; color: #aaa6a3; font-size: .96rem; }
.gf-memory-byline-divider { color: var(--gf-accent); }
.gf-memory-single-featured { max-width: 1100px; margin-top: -12px; }
.gf-memory-single-image { width: 100%; max-height: 720px; object-fit: cover; display: block; border: 1px solid var(--gf-border); border-radius: var(--gf-radius); box-shadow: var(--gf-shadow); }
.gf-memory-article { max-width: 900px; padding-top: 46px; padding-bottom: 24px; }
.gf-memory-story { font-size: 1.08rem; }
.gf-memory-gallery-section { padding-top: 18px; }
.gf-memory-gallery-count { color: var(--gf-muted); font-size: .9rem; }

.gf-memory-preview { padding-top: 10px; }
.gf-memory-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gf-memory-preview-card { overflow: hidden; padding: 0; transition: border-color .18s ease,transform .18s ease; }
.gf-memory-preview-card:hover { border-color: var(--gf-accent); transform: translateY(-2px); }
.gf-memory-preview-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.gf-memory-preview-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gf-memory-preview-card:hover .gf-memory-preview-image { transform: scale(1.025); }
.gf-memory-preview-body { padding: 20px 21px 23px; }
.gf-memory-preview-body h3 { margin: 6px 0 8px; font-size: 1.25rem; line-height: 1.22; }
.gf-memory-preview-body h3 a { color: #fff; }
.gf-memory-preview-body p { margin: 0 0 15px; color: var(--gf-muted); }

@media (max-width: 900px) {
  .gf-memory-grid, .gf-memory-preview-grid { grid-template-columns: 1fr; }
  .gf-memory-timeline::before { left: 10px; }
  .gf-memory-year-group { padding-left: 38px; }
  .gf-memory-year-dot { left: -36px; }
}

/* Version 1.6: Family Recipes */
.gf-recipes-section { padding-top: 24px; }
.gf-recipe-filters {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(220px,.75fr) auto auto;
  align-items: end;
  gap: 14px;
  margin-bottom: 38px;
  padding: 20px;
  box-shadow: none;
}
.gf-recipe-filters label { display: grid; gap: 7px; }
.gf-recipe-filters label > span { color: var(--gf-accent-light); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gf-recipe-filters input,
.gf-recipe-filters select {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--gf-border);
  border-radius: 9px;
  outline: none;
  background: #101010;
  color: var(--gf-text);
  font: inherit;
}
.gf-recipe-filters input:focus,
.gf-recipe-filters select:focus { border-color: var(--gf-accent); box-shadow: 0 0 0 3px rgba(183,131,98,.12); }
.gf-recipe-results-heading { margin-top: 4px; }

.gf-recipe-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.gf-recipe-card {
  overflow: hidden;
  background: linear-gradient(180deg,#181818,#141414);
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius);
  box-shadow: var(--gf-shadow);
  transition: transform .18s ease,border-color .18s ease;
}
.gf-recipe-card:hover { transform: translateY(-3px); border-color: var(--gf-accent); }
.gf-recipe-card-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #111; }
.gf-recipe-card-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gf-recipe-card:hover .gf-recipe-card-image { transform: scale(1.025); }
.gf-recipe-card-placeholder { display: grid; place-items: center; font-size: 3.4rem; background: radial-gradient(circle at 50% 22%,rgba(183,131,98,.20),#111 68%); }
.gf-recipe-card-body { padding: 20px 21px 24px; }
.gf-recipe-card-body h2 { margin: 6px 0 8px; font-size: 1.35rem; line-height: 1.2; }
.gf-recipe-card-body h2 a { color: #fff; }
.gf-recipe-card-body p { margin: 12px 0 16px; color: var(--gf-muted); }
.gf-recipe-card-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: #b9b5b2; font-size: .86rem; }

.gf-recipe-single-wrap { max-width: 920px; }
.gf-recipe-single-hero h1 { margin: 9px 0 14px; max-width: 920px; font-size: clamp(2.7rem,6vw,5.2rem); line-height: .97; letter-spacing: -.045em; }
.gf-recipe-deck { max-width: 780px; margin: 18px 0 0; color: #c8c8c8; font-size: clamp(1.05rem,2vw,1.25rem); }
.gf-recipe-single-featured { max-width: 1100px; margin-top: -12px; }
.gf-recipe-single-image { width: 100%; max-height: 720px; object-fit: cover; display: block; border: 1px solid var(--gf-border); border-radius: var(--gf-radius); box-shadow: var(--gf-shadow); }
.gf-recipe-content-wrap { max-width: 1100px; padding-top: 42px; padding-bottom: 24px; }
.gf-recipe-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; padding: 0; margin-bottom: 24px; overflow: hidden; box-shadow: none; }
.gf-recipe-stats > div { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--gf-border); }
.gf-recipe-stats > div:last-child { border-right: 0; }
.gf-recipe-stats span { display: block; margin-bottom: 3px; color: var(--gf-muted); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.gf-recipe-stats strong { display: block; color: #fff; font-size: 1.02rem; overflow-wrap: anywhere; }
.gf-recipe-main-grid { display: grid; grid-template-columns: minmax(280px,.78fr) minmax(0,1.22fr); gap: 22px; align-items: start; }
.gf-recipe-main-grid h2,
.gf-recipe-notes h2,
.gf-recipe-story h2 { margin: 5px 0 18px; color: #fff; font-size: clamp(1.55rem,3vw,2.1rem); line-height: 1.15; }
.gf-recipe-ingredients,
.gf-recipe-instructions { box-shadow: none; }
.gf-recipe-ingredients ul,
.gf-recipe-instructions ol { margin: 0; padding: 0; list-style: none; }
.gf-recipe-ingredients li { position: relative; padding: 11px 0 11px 29px; border-bottom: 1px solid #272727; color: #e6e2df; }
.gf-recipe-ingredients li:last-child { border-bottom: 0; }
.gf-recipe-ingredients li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 10px; border: 2px solid var(--gf-accent); border-radius: 3px; background: #151515; }
.gf-recipe-instructions ol { counter-reset: gf-recipe-step; display: grid; gap: 12px; }
.gf-recipe-instructions li { counter-increment: gf-recipe-step; position: relative; min-height: 44px; padding: 9px 0 9px 54px; color: #e6e2df; }
.gf-recipe-instructions li::before { content: counter(gf-recipe-step); position: absolute; left: 0; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #1b1512; border: 1px solid #4a382e; color: var(--gf-accent-light); font-weight: 900; }
.gf-recipe-notes { margin-top: 22px; background: linear-gradient(180deg,#1a1715,#151413); border-color: #3d312b; box-shadow: none; }
.gf-recipe-notes p { margin: 0; color: #d8d1cb; }
.gf-recipe-story { max-width: 900px; padding: 42px 0 8px; }
.gf-muted-text { color: var(--gf-muted); }

.gf-recipe-preview { padding-top: 10px; }
.gf-recipe-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gf-recipe-preview-card { overflow: hidden; padding: 0; transition: border-color .18s ease,transform .18s ease; }
.gf-recipe-preview-card:hover { border-color: var(--gf-accent); transform: translateY(-2px); }
.gf-recipe-preview-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #111; }
.gf-recipe-preview-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.gf-recipe-preview-card:hover .gf-recipe-preview-image { transform: scale(1.025); }
.gf-recipe-preview-body { padding: 20px 21px 23px; }
.gf-recipe-preview-body h3 { margin: 6px 0 8px; font-size: 1.25rem; line-height: 1.22; }
.gf-recipe-preview-body h3 a { color: #fff; }
.gf-recipe-preview-body .gf-recipe-card-meta { margin-bottom: 14px; }

@media (max-width: 900px) {
  .gf-recipe-filters { grid-template-columns: 1fr 1fr; }
  .gf-recipe-grid,
  .gf-recipe-preview-grid { grid-template-columns: 1fr; }
  .gf-recipe-main-grid { grid-template-columns: 1fr; }
  .gf-recipe-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gf-recipe-stats > div:nth-child(2) { border-right: 0; }
  .gf-recipe-stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--gf-border); }
}

@media (max-width: 560px) {
  .gf-recipe-filters { grid-template-columns: 1fr; }
  .gf-recipe-filters .gf-button { width: 100%; }
  .gf-recipe-stats { grid-template-columns: 1fr; }
  .gf-recipe-stats > div { border-right: 0; border-bottom: 1px solid var(--gf-border); }
  .gf-recipe-stats > div:last-child { border-bottom: 0; }
}

/* Family Documents — v1.7 */
.gf-documents-section { padding-top: 24px; }
.gf-document-filters {
  display: grid;
  grid-template-columns: minmax(220px,1.4fr) minmax(190px,.8fr) auto auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 30px;
  padding: 18px;
  box-shadow: none;
}
.gf-document-filters label { display: grid; gap: 7px; }
.gf-document-filters label > span { color: var(--gf-accent-light); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.gf-document-filters input,
.gf-document-filters select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #383838;
  border-radius: 9px;
  outline: 0;
  background: #101010;
  color: #f2f2f2;
  font: inherit;
}
.gf-document-filters input:focus,
.gf-document-filters select:focus { border-color: var(--gf-accent); box-shadow: 0 0 0 3px rgba(183,131,98,.12); }
.gf-document-filters .gf-text-link { align-self: center; padding-bottom: 12px; white-space: nowrap; }
.gf-document-results-heading { margin-top: 4px; }
.gf-document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.gf-document-card { display: grid; grid-template-columns: 150px minmax(0,1fr); min-height: 210px; padding: 0; overflow: hidden; transition: transform .18s ease,border-color .18s ease; }
.gf-document-card:hover { transform: translateY(-2px); border-color: var(--gf-accent); }
.gf-document-card-icon { display: grid; place-items: center; min-height: 100%; border-right: 1px solid var(--gf-border); background: radial-gradient(circle at 50% 30%,rgba(183,131,98,.19),#111 72%); font-size: 4.2rem; overflow: hidden; }
.gf-document-card-icon.has-image { background: #111; }
.gf-document-card-image { width: 100%; height: 100%; min-height: 210px; object-fit: cover; display: block; }
.gf-document-card-body { min-width: 0; padding: 20px 21px; }
.gf-document-card-body h2 { margin: 7px 0 8px; font-size: 1.35rem; line-height: 1.2; }
.gf-document-card-body h2 a { color: #fff; }
.gf-document-card-body p { margin: 12px 0 15px; color: var(--gf-muted); }
.gf-document-meta { display: flex; flex-wrap: wrap; gap: 6px 15px; color: #b9b5b2; font-size: .84rem; }
.gf-document-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.gf-button-small { padding: 8px 12px; font-size: .85rem; }

.gf-document-single-wrap { max-width: 980px; }
.gf-document-single-title-row { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 22px; align-items: center; margin-top: 24px; }
.gf-document-single-icon { display: grid; place-items: center; width: 92px; height: 92px; border: 1px solid #4a382e; border-radius: 20px; background: #1b1512; font-size: 3.2rem; }
.gf-document-single-hero h1 { margin: 7px 0 10px; font-size: clamp(2.7rem,6vw,5rem); line-height: .98; letter-spacing: -.04em; }
.gf-document-deck { max-width: 760px; margin: 0; color: #c8c8c8; font-size: 1.08rem; }
.gf-document-single-section { padding-top: 34px; }
.gf-document-single-content { max-width: 1060px; }
.gf-document-detail-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(250px,.8fr); gap: 20px; align-items: stretch; }
.gf-document-file-panel { padding: 26px; box-shadow: none; }
.gf-document-file-panel h2 { margin: 8px 0 20px; overflow-wrap: anywhere; }
.gf-document-file-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; margin: 0 0 24px; border: 1px solid var(--gf-border); border-radius: 11px; overflow: hidden; }
.gf-document-file-stats span { padding: 14px 15px; border-right: 1px solid var(--gf-border); color: #ddd; overflow-wrap: anywhere; }
.gf-document-file-stats span:last-child { border-right: 0; }
.gf-document-file-stats strong { display: block; margin-bottom: 2px; color: var(--gf-muted); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.gf-document-cover { padding: 0; overflow: hidden; box-shadow: none; }
.gf-document-cover-image { width: 100%; height: 100%; min-height: 270px; object-fit: cover; display: block; }
.gf-document-description { max-width: 860px; padding-top: 42px; }
.gf-document-description .gf-kicker { margin-bottom: 12px; }

.gf-document-preview { padding-top: 10px; }
.gf-document-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.gf-document-preview-card { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 0; padding: 0; overflow: hidden; transition: transform .18s ease,border-color .18s ease; }
.gf-document-preview-card:hover { transform: translateY(-2px); border-color: var(--gf-accent); }
.gf-document-preview-icon { display: grid; place-items: center; border-right: 1px solid var(--gf-border); background: #14110f; font-size: 2.25rem; }
.gf-document-preview-body { min-width: 0; padding: 19px 18px 20px; }
.gf-document-preview-body h3 { margin: 6px 0 8px; font-size: 1.18rem; line-height: 1.22; }
.gf-document-preview-body h3 a { color: #fff; }
.gf-document-preview-body .gf-document-meta { margin-bottom: 13px; }

@media (max-width: 900px) {
  .gf-document-filters { grid-template-columns: 1fr 1fr; }
  .gf-document-grid { grid-template-columns: 1fr; }
  .gf-document-preview-grid { grid-template-columns: 1fr; }
  .gf-document-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .gf-document-filters { grid-template-columns: 1fr; }
  .gf-document-filters .gf-button { width: 100%; }
  .gf-document-filters .gf-text-link { padding: 0; }
  .gf-document-card { grid-template-columns: 88px minmax(0,1fr); }
  .gf-document-card-icon { font-size: 2.6rem; }
  .gf-document-card-image { min-height: 100%; }
  .gf-document-card-actions { align-items: flex-start; flex-direction: column; }
  .gf-document-single-title-row { grid-template-columns: 1fr; }
  .gf-document-single-icon { width: 76px; height: 76px; font-size: 2.6rem; }
  .gf-document-file-stats { grid-template-columns: 1fr; }
  .gf-document-file-stats span { border-right: 0; border-bottom: 1px solid var(--gf-border); }
  .gf-document-file-stats span:last-child { border-bottom: 0; }
}


/* Version 1.8: interface polish, responsive refinements, and accessibility */
:root {
  --gf-panel-soft: #121212;
  --gf-border-soft: #242424;
  --gf-focus: #e6b996;
  --gf-header-height: 76px;
}

html { color-scheme: dark; }
body { overflow-wrap: break-word; }
body.admin-bar .site-header { top: 32px; }

.gf-skip-link {
  position: fixed;
  left: 16px;
  top: 14px;
  z-index: 100000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border: 1px solid var(--gf-accent);
  border-radius: 9px;
  background: #111;
  color: #fff;
  font-weight: 800;
  box-shadow: var(--gf-shadow);
  transition: transform .16s ease;
}
.gf-skip-link:focus { transform: translateY(0); }

.site-header { box-shadow: 0 8px 28px rgba(0,0,0,.18); }
.gf-header-inner { position: relative; }
.gf-brand { border-radius: 10px; }
.gf-brand:hover .gf-brand-text { color: var(--gf-accent-light); }
.custom-logo { transition: transform .18s ease; }
.gf-brand:hover .custom-logo { transform: scale(1.015); }

.gf-nav a { font-weight: 700; transition: background .16s ease,color .16s ease,border-color .16s ease; }
.gf-nav .gf-nav-account > a {
  border: 1px solid #3d312b;
  background: #171310;
  color: var(--gf-accent-light);
}
.gf-nav .gf-nav-logout > a { color: #bdb8b4; }
.gf-nav .gf-nav-logout > a:hover { color: #fff; }

.gf-menu-toggle {
  min-width: 46px;
  min-height: 44px;
  padding: 8px 11px;
  gap: 8px;
  align-items: center;
}
.gf-menu-toggle-icon { width: 18px; display: grid; gap: 4px; }
.gf-menu-toggle-icon span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .16s ease,opacity .16s ease; }
.gf-menu-toggle[aria-expanded="true"] .gf-menu-toggle-icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.gf-menu-toggle[aria-expanded="true"] .gf-menu-toggle-icon span:nth-child(2) { opacity: 0; }
.gf-menu-toggle[aria-expanded="true"] .gf-menu-toggle-icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.gf-hero { border-bottom: 1px solid rgba(255,255,255,.025); }
.gf-hero h1 { text-wrap: balance; }
.gf-hero p { text-wrap: pretty; }
.gf-welcome-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #c8c3bf;
  font-size: .94rem;
  font-weight: 700;
}
.gf-welcome-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid #44342b;
  background: #171310;
}
.gf-welcome-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

.gf-section { position: relative; }
.gf-section + .gf-section .gf-wrap::before {
  content: "";
  display: block;
  height: 1px;
  margin: -10px 0 44px;
  background: linear-gradient(90deg,transparent,var(--gf-border-soft) 14%,var(--gf-border-soft) 86%,transparent);
}
.gf-section-heading-row { align-items: center; }
.gf-section-title { letter-spacing: -.025em; text-wrap: balance; }
.gf-kicker { line-height: 1.3; }
.gf-text-link { display: inline-flex; align-items: center; gap: 4px; }

.gf-grid { gap: 20px; }
.gf-hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 205px;
  isolation: isolate;
  overflow: hidden;
}
.gf-hub-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -55px auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(183,131,98,.12),transparent 68%);
  z-index: -1;
  transition: transform .22s ease,opacity .22s ease;
}
.gf-hub-card:hover::after { transform: scale(1.18); opacity: 1; }
.gf-hub-card .gf-card-icon { box-shadow: inset 0 0 0 1px rgba(221,176,142,.08); }
.gf-hub-card .gf-card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--gf-accent-light);
  font-size: .86rem;
  font-weight: 800;
}
.gf-hub-card:hover .gf-card-action { color: #fff; }

.gf-panel, .gf-card, .gf-album-card, .gf-memory-card, .gf-recipe-card, .gf-document-card {
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
}
.gf-card:hover, .gf-album-card:hover, .gf-memory-card:hover, .gf-recipe-card:hover, .gf-document-card:hover {
  box-shadow: 0 20px 44px rgba(0,0,0,.30), 0 0 0 1px rgba(183,131,98,.08);
}

.gf-post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.gf-post-card .gf-card-body h3 { line-height: 1.25; }
.gf-post-card .gf-card-body > p { color: var(--gf-muted); }

.entry-header { padding-top: 68px; }
.entry-content { font-size: 1.03rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: #fff; line-height: 1.25; letter-spacing: -.015em; }
.entry-content p, .entry-content li { text-wrap: pretty; }
.entry-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--gf-accent);
  border-radius: 0 10px 10px 0;
  background: #12100f;
  color: #d9d4d0;
}
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.entry-content th, .entry-content td { padding: 11px 12px; border: 1px solid var(--gf-border); text-align: left; }
.entry-content th { background: #171717; color: #fff; }
.entry-content code { padding: 2px 6px; border-radius: 5px; background: #181818; color: #efc3a2; }
.entry-content hr { border: 0; border-top: 1px solid var(--gf-border); margin: 34px 0; }

input, textarea, select { accent-color: var(--gf-accent); }
input:focus, textarea:focus, select:focus {
  border-color: var(--gf-accent) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(183,131,98,.13);
}

:where(a,button,input,textarea,select,[tabindex]):focus-visible {
  outline: 2px solid var(--gf-focus);
  outline-offset: 3px;
}
.gf-button:focus-visible, button:focus-visible, input[type="submit"]:focus-visible { outline-color: #fff; }

.gf-private-badge { box-shadow: inset 0 0 0 1px rgba(183,131,98,.03); }
.gf-empty-state { background: linear-gradient(135deg,#171717,#131313); }

.site-footer { margin-top: 70px; }
.gf-footer-inner { min-height: 90px; }
.gf-footer-mark { filter: drop-shadow(0 0 7px rgba(183,131,98,.25)); }

/* Give the logged-in WordPress toolbar the same visual language on the front end. */
body.logged-in #wpadminbar { background: #080808; border-bottom: 1px solid #242424; }
body.logged-in #wpadminbar .ab-top-menu > li.hover > .ab-item,
body.logged-in #wpadminbar .ab-top-menu > li:hover > .ab-item,
body.logged-in #wpadminbar .ab-top-menu > li > .ab-item:focus { background: #171310; color: var(--gf-accent-light); }

@media (max-width: 980px) and (min-width: 621px) {
  .gf-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gf-hub-card { min-height: 190px; }
}

@media (max-width: 860px) {
  .gf-header-inner { min-height: 68px; }
  .gf-menu-toggle { display: inline-flex; }
  .gf-nav {
    top: calc(100% + 10px);
    left: auto;
    right: 0;
    width: min(360px,calc(100vw - 36px));
    padding: 9px;
    background: rgba(15,15,15,.98);
    box-shadow: 0 22px 55px rgba(0,0,0,.52);
    backdrop-filter: blur(18px);
  }
  .gf-nav a { padding: 12px 13px; }
  .gf-nav .gf-nav-account > a { margin-top: 4px; }
  .gf-section + .gf-section .gf-wrap::before { margin-top: -4px; margin-bottom: 36px; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 620px) {
  .gf-wrap { width: min(100% - 28px,1180px); }
  .gf-brand-text { font-size: .98rem; }
  .custom-logo { max-height: 40px; }
  .gf-menu-toggle-label { display: none; }
  .gf-menu-toggle { min-width: 44px; padding: 8px 12px; }
  .gf-hero { padding: 54px 0 42px; }
  .gf-hero h1 { font-size: clamp(2.35rem,13vw,3.75rem); }
  .gf-hero p { font-size: 1rem; }
  .gf-section { padding: 26px 0 52px; }
  .gf-grid { grid-template-columns: 1fr; gap: 14px; }
  .gf-hub-card { min-height: 170px; padding: 20px; }
  .gf-card-icon { margin-bottom: 14px; }
  .gf-panel { padding: 22px; }
  .gf-empty-state { align-items: flex-start; }
  .gf-section-heading-row { gap: 10px; margin-bottom: 18px; }
  .gf-text-link { white-space: normal; }
  .entry-header, .entry-content { width: min(100% - 28px,900px); }
  .site-footer { margin-top: 46px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}


/* Version 1.9: Family Services row */
.gf-services-section { padding-top: 6px; }
.gf-services-heading { margin-bottom: 24px; }
.gf-services-intro {
  max-width: 690px;
  margin: 7px 0 0;
  color: var(--gf-muted);
}
.gf-service-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  max-width: 880px;
}
.gf-service-grid-one { grid-template-columns: minmax(0,430px); }
.gf-service-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0,1fr);
  gap: 18px;
  align-items: center;
  min-height: 164px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--gf-border);
  border-radius: var(--gf-radius);
  background: linear-gradient(145deg,#181818,#131313);
  color: var(--gf-text);
  box-shadow: 0 14px 36px rgba(0,0,0,.22);
  isolation: isolate;
  transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.gf-service-card::after {
  content: "";
  position: absolute;
  right: -62px;
  bottom: -84px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle,rgba(183,131,98,.17),transparent 68%);
  z-index: -1;
  transition: transform .2s ease;
}
.gf-service-card:hover {
  transform: translateY(-3px);
  border-color: var(--gf-accent);
  color: #fff;
  box-shadow: 0 20px 44px rgba(0,0,0,.30),0 0 0 1px rgba(183,131,98,.08);
}
.gf-service-card:hover::after { transform: scale(1.16); }
.gf-service-card.is-unconfigured {
  border-style: dashed;
  background: linear-gradient(145deg,#151515,#111);
}
.gf-service-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 1px solid #44342b;
  border-radius: 17px;
  background: #1a1512;
  color: var(--gf-accent-light);
  box-shadow: inset 0 0 0 1px rgba(221,176,142,.05);
}
.gf-service-icon svg { width: 34px; height: 34px; fill: currentColor; }
.gf-service-content { min-width: 0; display: block; }
.gf-service-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gf-service-label-row strong { color: #fff; font-size: 1.25rem; line-height: 1.2; }
.gf-service-chip {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #3d312b;
  border-radius: 999px;
  background: #171310;
  color: var(--gf-accent-light);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}
.gf-service-description { display: block; margin-top: 8px; color: var(--gf-muted); line-height: 1.45; }
.gf-service-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  color: var(--gf-accent-light);
  font-size: .86rem;
  font-weight: 800;
}
.gf-service-card:hover .gf-service-action { color: #fff; }

@media (max-width: 760px) {
  .gf-service-grid, .gf-service-grid-one { grid-template-columns: 1fr; max-width: none; }
}
@media (max-width: 520px) {
  .gf-service-card { grid-template-columns: 52px minmax(0,1fr); gap: 14px; min-height: 148px; padding: 20px; }
  .gf-service-icon { width: 52px; height: 52px; border-radius: 14px; }
  .gf-service-icon svg { width: 28px; height: 28px; }
  .gf-service-label-row { align-items: flex-start; flex-direction: column; gap: 7px; }
}


/* Version 2.0: family account requests and administrator approval */
.gf-button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.gf-signup-section { padding: 56px 0 72px; }
.gf-signup-shell {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr);
  gap: 24px;
  align-items: start;
}
.gf-signup-card { padding: clamp(24px,4vw,38px); }
.gf-signup-card h1 { margin: 8px 0 12px; font-size: clamp(2.1rem,5vw,3.8rem); line-height: 1; letter-spacing: -.035em; }
.gf-signup-card > p { color: #c8c8c8; }
.gf-signup-form { margin-top: 28px; }
.gf-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.gf-field { display: grid; gap: 7px; }
.gf-field-full { grid-column: 1 / -1; }
.gf-field label { color: #f1eee9; font-weight: 800; font-size: .9rem; }
.gf-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--gf-border);
  border-radius: 9px;
  background: #101010;
  color: #fff;
  font: inherit;
}
.gf-field-help { margin: 0; color: var(--gf-muted); font-size: .82rem; }
.gf-signup-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.gf-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.gf-notice {
  margin: 0 0 22px;
  padding: 15px 17px;
  border: 1px solid #554034;
  border-radius: 10px;
  background: #181310;
  color: #f2e8e1;
}
.gf-notice-success { border-color: #4f6c56; background: #111813; color: #dcebdd; }
.gf-notice-error { border-color: #704040; background: #1a1111; color: #f3d9d9; }
.gf-signup-aside h2 { margin-top: 0; }
.gf-signup-aside ul { margin: 18px 0 0; padding-left: 20px; color: var(--gf-muted); }
.gf-signup-aside li + li { margin-top: 9px; }
.gf-account-admin-section { padding-top: 0; }
.gf-account-admin-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg,#181511,#141414);
}
.gf-account-admin-panel h2 { margin: 4px 0 7px; }
.gf-account-admin-panel p { margin: 0; color: var(--gf-muted); }
.gf-pending-count {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-left: 6px;
  padding: 0 8px;
  border-radius: 999px;
  background: #1a1512;
  border: 1px solid #44342b;
  color: var(--gf-accent-light);
  font-size: .78rem;
  font-weight: 900;
}
@media (max-width: 760px) {
  .gf-signup-shell { grid-template-columns: 1fr; }
  .gf-account-admin-panel { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .gf-form-grid { grid-template-columns: 1fr; }
  .gf-field-full { grid-column: auto; }
  .gf-button-row, .gf-signup-actions { align-items: stretch; flex-direction: column; }
  .gf-button-row .gf-button, .gf-signup-actions .gf-button { width: 100%; }
}
