/*
Theme Name: FitForYourDog Premium
Theme URI: https://fitforyourdog.com/
Author: Fit For Your Dog
Description: A lightweight, premium WordPress theme built specifically for FitForYourDog.com. Designed for dog product buying guides, reviews, comparisons, dog profiles, affiliate content, and editorial trust pages.
Version: 1.3.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fitforyourdog-premium
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --ffyd-teal: #1F6F78;
  --ffyd-teal-dark: #15545B;
  --ffyd-teal-soft: #EAF5F4;
  --ffyd-orange: #C76516;
  --ffyd-orange-dark: #A9500F;
  --ffyd-cream: #FFF8F0;
  --ffyd-sand: #F7F2EA;
  --ffyd-soft: #F5F9F8;
  --ffyd-ink: #2B2B2B;
  --ffyd-muted: #667085;
  --ffyd-line: #E5ECEA;
  --ffyd-white: #FFFFFF;
  --ffyd-shadow: 0 16px 42px rgba(33, 57, 61, .08);
  --ffyd-radius: 18px;
  --ffyd-content: 800px;
  --ffyd-wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ffyd-ink);
  background: var(--ffyd-white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.ffyd-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--ffyd-teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ffyd-teal-dark); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  color: var(--ffyd-ink);
  font-family: Nunito, Inter, sans-serif;
  line-height: 1.15;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin-top: 0; }

.ffyd-shell { width: min(var(--ffyd-wide), calc(100% - 40px)); margin-inline: auto; }
.ffyd-content-shell { width: min(var(--ffyd-content), calc(100% - 40px)); margin-inline: auto; }
.ffyd-section { padding: 88px 0; }
.ffyd-section--soft { background: var(--ffyd-soft); }
.ffyd-section--cream { background: var(--ffyd-cream); }
.ffyd-section-label {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--ffyd-teal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ffyd-section-title { max-width: 780px; margin-bottom: 18px; }
.ffyd-section-copy { max-width: 780px; color: #56616D; font-size: 1.05rem; }

/* Accessibility */
.ffyd-skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 9999;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ffyd-ink);
  color: #fff;
}
.ffyd-skip-link:focus { top: 12px; }
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: relative;
  z-index: 50;
  border-bottom: 1px solid rgba(31,111,120,.08);
  background: rgba(255,255,255,.97);
}
.ffyd-header-inner {
  display: flex;
  align-items: center;
  min-height: 80px;
  gap: 30px;
}
.site-branding { flex: 0 0 auto; }
.site-branding a { text-decoration: none; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 54px; width: auto; }
.ffyd-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ffyd-ink);
  text-decoration: none;
}
.ffyd-brand-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
}
.ffyd-brand-name,
.site-title {
  margin: 0;
  color: var(--ffyd-ink);
  font-family: Nunito, Inter, sans-serif;
  font-size: 1.58rem;
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1;
}
.site-title a { color: inherit; text-decoration: none; }
.ffyd-primary-nav { margin-left: auto; }
.ffyd-primary-nav ul,
.ffyd-footer-nav ul {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ffyd-primary-nav a {
  display: inline-block;
  padding: 28px 0;
  color: #4F5B69;
  font-size: .96rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .18s ease;
}
.ffyd-primary-nav a:hover,
.ffyd-primary-nav .current-menu-item > a,
.ffyd-primary-nav .current-menu-ancestor > a { color: var(--ffyd-teal); }
.ffyd-menu-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--ffyd-line);
  border-radius: 10px;
  background: #fff;
}
.ffyd-menu-toggle-lines,
.ffyd-menu-toggle-lines::before,
.ffyd-menu-toggle-lines::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ffyd-ink);
  content: "";
}
.ffyd-menu-toggle-lines { position: relative; }
.ffyd-menu-toggle-lines::before { position: absolute; top: -7px; }
.ffyd-menu-toggle-lines::after { position: absolute; top: 7px; }

/* Buttons */
.ffyd-button,
.wp-block-button__link,
button[type="submit"],
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--ffyd-orange);
  color: #fff !important;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(199,101,22,.15);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.ffyd-button:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
  background: var(--ffyd-orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 13px 28px rgba(199,101,22,.22);
}
.ffyd-button--secondary {
  border: 1px solid rgba(31,111,120,.25);
  background: #fff;
  color: var(--ffyd-teal) !important;
  box-shadow: none;
}
.ffyd-button--secondary:hover { background: var(--ffyd-teal-soft); }

/* Homepage */
.ffyd-home-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 90px;
  background:
    radial-gradient(circle at 10% 12%, rgba(31,111,120,.12), transparent 29%),
    radial-gradient(circle at 90% 18%, rgba(199,101,22,.10), transparent 27%),
    linear-gradient(135deg, #FFF9F2 0%, #F5FAF9 58%, #FFF8F0 100%);
  text-align: center;
}
.ffyd-home-hero .ffyd-shell { max-width: 1000px; }
.ffyd-home-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ffyd-teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ffyd-home-hero h1 { margin-bottom: 24px; }
.ffyd-home-hero p { max-width: 760px; margin: 0 auto 28px; color: #56616D; font-size: 1.18rem; }
.ffyd-home-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.ffyd-profile-chips { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.ffyd-profile-chip {
  padding: 9px 14px;
  border: 1px solid var(--ffyd-line);
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: #4B5966;
  font-size: .9rem;
  font-weight: 700;
}
.ffyd-trust-strip { margin-top: -28px; position: relative; z-index: 2; }
.ffyd-trust-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  overflow: hidden;
  border: 1px solid var(--ffyd-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--ffyd-shadow);
}
.ffyd-trust-grid > div { padding: 25px 22px; text-align: center; }
.ffyd-trust-grid > div + div { border-left: 1px solid var(--ffyd-line); }
.ffyd-trust-grid strong { display: block; margin-bottom: 4px; }
.ffyd-trust-grid span { color: var(--ffyd-muted); font-size: .88rem; }
.ffyd-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 34px; }
.ffyd-guide-card,
.ffyd-archive-card {
  overflow: hidden;
  border: 1px solid var(--ffyd-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(34,57,62,.05);
  transition: transform .2s ease, box-shadow .2s ease;
}
.ffyd-guide-card:hover,
.ffyd-archive-card:hover { transform: translateY(-4px); box-shadow: 0 18px 42px rgba(34,57,62,.09); }
.ffyd-guide-card__media,
.ffyd-archive-card__media { aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg,var(--ffyd-teal-soft),var(--ffyd-cream)); }
.ffyd-guide-card__media img,
.ffyd-archive-card__media img { width: 100%; height: 100%; object-fit: cover; }
.ffyd-guide-card__media--placeholder {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 24px;
  overflow: hidden;
  color: var(--ffyd-ink);
  text-decoration: none;
  background:
    radial-gradient(circle at 84% 18%, rgba(199,101,22,.18), transparent 28%),
    radial-gradient(circle at 15% 85%, rgba(31,111,120,.16), transparent 34%),
    linear-gradient(135deg, #EDF8F6 0%, #FFF8F0 100%);
}
.ffyd-guide-card__media--placeholder::before,
.ffyd-guide-card__media--placeholder::after {
  content: "";
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(31,111,120,.15);
  border-radius: 50%;
}
.ffyd-guide-card__media--placeholder::before {
  width: 150px;
  height: 150px;
  right: -54px;
  top: -64px;
}
.ffyd-guide-card__media--placeholder::after {
  width: 88px;
  height: 88px;
  left: -30px;
  bottom: -38px;
  border-color: rgba(199,101,22,.16);
}
.ffyd-guide-card__media--wellness {
  background:
    radial-gradient(circle at 85% 20%, rgba(31,111,120,.17), transparent 29%),
    radial-gradient(circle at 12% 88%, rgba(199,101,22,.11), transparent 33%),
    linear-gradient(135deg, #F2FAF8 0%, #F8F2E9 100%);
}
.ffyd-guide-card__media--feeding {
  background:
    radial-gradient(circle at 82% 16%, rgba(199,101,22,.16), transparent 27%),
    radial-gradient(circle at 13% 85%, rgba(31,111,120,.12), transparent 35%),
    linear-gradient(135deg, #FFF7EE 0%, #EDF8F6 100%);
}
.ffyd-guide-card__placeholder-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--ffyd-teal);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.ffyd-guide-card__placeholder-title {
  max-width: 90%;
  color: var(--ffyd-ink);
  font-family: Nunito, Inter, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.02em;
}
.ffyd-guide-card__body,
.ffyd-archive-card__body { padding: 24px; }
.ffyd-card-meta { margin-bottom: 8px; color: var(--ffyd-teal); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ffyd-guide-card h3,
.ffyd-archive-card h2 { margin-bottom: 10px; font-size: 1.45rem; }
.ffyd-guide-card h3 a,
.ffyd-archive-card h2 a { color: inherit; text-decoration: none; }
.ffyd-guide-card p,
.ffyd-archive-card p { color: var(--ffyd-muted); }
.ffyd-read-more { font-weight: 800; text-decoration: none; }
.ffyd-profile-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 16px; margin-top: 34px; }
.ffyd-profile-card {
  min-height: 170px;
  padding: 24px;
  border: 1px solid var(--ffyd-line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(34,57,62,.04);
}
.ffyd-profile-card strong { display: block; margin-bottom: 7px; color: var(--ffyd-ink); font-size: 1.08rem; }
.ffyd-profile-card span { color: var(--ffyd-muted); font-size: .9rem; }
.ffyd-how-review {
  display: grid;
  grid-template-columns: 1fr .9fr;
  gap: 56px;
  align-items: center;
}
.ffyd-how-panel { padding: 34px; border-radius: 22px; background: var(--ffyd-teal); color: #fff; }
.ffyd-how-panel h3 { color: #fff; }
.ffyd-how-panel p { color: rgba(255,255,255,.86); }
.ffyd-newsletter {
  padding: 48px;
  border-radius: 22px;
  background: var(--ffyd-teal);
  color: #fff;
  text-align: center;
}
.ffyd-newsletter h2 { color: #fff; }
.ffyd-newsletter p { max-width: 680px; margin-inline: auto; color: rgba(255,255,255,.88); }

/* Generic page hero */
.ffyd-page-hero {
  padding: 72px 0;
  background:
    radial-gradient(circle at 90% 18%, rgba(199,101,22,.08), transparent 28%),
    linear-gradient(135deg, #FFF9F2 0%, #F5FAF9 100%);
  text-align: center;
}
.ffyd-page-hero h1 { margin-bottom: 10px; font-size: clamp(2.4rem, 5vw, 4rem); }
.ffyd-page-hero p { max-width: 720px; margin: 0 auto; color: var(--ffyd-muted); }
.ffyd-page-content { padding: 72px 0 90px; }
.ffyd-page-content > .ffyd-content-shell > *:first-child { margin-top: 0; }

/* About / Review premium pages */
.ffyd-premium-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 92px;
  background:
    radial-gradient(circle at 8% 12%, rgba(31,111,120,.14), transparent 28%),
    radial-gradient(circle at 92% 18%, rgba(199,101,22,.10), transparent 28%),
    linear-gradient(135deg, #FFF9F2 0%, #F5FAF9 56%, #FFF8F0 100%);
}
.ffyd-premium-hero h1 { max-width: 930px; margin-bottom: 24px; }
.ffyd-premium-lead { max-width: 800px; color: #56616D; font-size: 1.18rem; }
.ffyd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--ffyd-teal);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.ffyd-eyebrow::before { width: 30px; height: 2px; background: var(--ffyd-orange); content: ""; }
.ffyd-two-col { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; align-items: start; }
.ffyd-panel {
  padding: 34px;
  border: 1px solid var(--ffyd-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(37,59,64,.05);
}
.ffyd-panel p { color: #56616D; }
.ffyd-highlight {
  margin-top: 22px;
  padding: 20px;
  border-left: 4px solid var(--ffyd-orange);
  border-radius: 0 12px 12px 0;
  background: var(--ffyd-cream);
}
.ffyd-four-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 38px; }
.ffyd-feature-card {
  padding: 28px 24px;
  border: 1px solid var(--ffyd-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(34,57,62,.05);
}
.ffyd-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: var(--ffyd-teal-soft);
  color: var(--ffyd-teal);
  font-weight: 900;
}
.ffyd-feature-card p { margin: 0; color: var(--ffyd-muted); font-size: .93rem; }
.ffyd-process-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.ffyd-process-list { display: grid; gap: 16px; margin-top: 28px; }
.ffyd-process-step { display: grid; grid-template-columns: 48px 1fr; gap: 15px; }
.ffyd-process-step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--ffyd-teal);
  color: #fff;
  font-weight: 900;
}
.ffyd-process-step h3 { margin-bottom: 4px; font-size: 1.08rem; }
.ffyd-process-step p { margin: 0; color: var(--ffyd-muted); font-size: .92rem; }
.ffyd-teal-card {
  padding: 38px;
  border-radius: 22px;
  background: var(--ffyd-teal);
  color: #fff;
  box-shadow: 0 18px 42px rgba(31,111,120,.17);
}
.ffyd-teal-card h3 { color: #fff; }
.ffyd-teal-card p, .ffyd-teal-card li { color: rgba(255,255,255,.88); }
.ffyd-teal-card a { color: #fff; font-weight: 800; }
.ffyd-three-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 36px; }
.ffyd-value-card { padding: 28px; border-top: 3px solid var(--ffyd-teal); background: #fff; }
.ffyd-value-card p { margin: 0; color: var(--ffyd-muted); font-size: .92rem; }
.ffyd-final-cta {
  padding: 90px 0;
  text-align: center;
  background:
    radial-gradient(circle at 15% 25%, rgba(31,111,120,.10), transparent 26%),
    radial-gradient(circle at 85% 15%, rgba(199,101,22,.10), transparent 24%),
    #fff;
}
.ffyd-final-cta .ffyd-shell { max-width: 850px; }
.ffyd-final-cta p { color: var(--ffyd-muted); font-size: 1.05rem; }
.ffyd-signoff { margin-top: 34px; color: var(--ffyd-teal); font-family: Nunito, Inter, sans-serif; font-size: 1.2rem; font-weight: 900; }

/* Trust / legal pages prepared for self-contained premium content */
.ffyd-self-contained-page {
  width: 100%;
  margin: 0;
  padding: 0;
}
.ffyd-trust-page-hero {
  padding: 86px 0 72px;
  background:
    radial-gradient(circle at 10% 15%, rgba(31,111,120,.11), transparent 30%),
    radial-gradient(circle at 90% 18%, rgba(199,101,22,.08), transparent 28%),
    linear-gradient(135deg, #FFF9F2 0%, #F5FAF9 58%, #FFF8F0 100%);
}
.ffyd-trust-page-hero .ffyd-shell { max-width: 940px; }
.ffyd-trust-page-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}
.ffyd-trust-page-intro {
  max-width: 760px;
  margin: 0;
  color: #56616D;
  font-size: 1.12rem;
}
.ffyd-trust-page-content { padding: 72px 0 90px; }
.ffyd-trust-page-card {
  width: min(900px, calc(100% - 40px));
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--ffyd-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(37,59,64,.05);
}
.ffyd-trust-page-card > *:first-child { margin-top: 0; }
.ffyd-trust-page-card > *:last-child { margin-bottom: 0; }

/* Articles */
.ffyd-article-header { padding: 72px 0 46px; background: linear-gradient(135deg,#FFF9F2 0%,#F6FAF9 100%); }
.ffyd-article-header .ffyd-content-shell { width: min(900px, calc(100% - 40px)); }
.ffyd-article-kicker { margin-bottom: 12px; color: var(--ffyd-teal); font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.ffyd-article-title { margin-bottom: 18px; font-size: clamp(2.4rem,5vw,4.2rem); }
.ffyd-article-deck { margin-bottom: 18px; color: #56616D; font-size: 1.15rem; }
.ffyd-article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ffyd-muted); font-size: .9rem; }
.ffyd-article-featured { width: min(1040px, calc(100% - 40px)); margin: 0 auto 46px; }
.ffyd-article-featured img { width: 100%; border-radius: 20px; box-shadow: var(--ffyd-shadow); }
.ffyd-article-body { width: min(var(--ffyd-content), calc(100% - 40px)); margin: 0 auto; padding-bottom: 72px; }
.ffyd-article-body > * { max-width: 100%; }
.ffyd-article-body h2 { margin-top: 2.2em; font-size: 2rem; }
.ffyd-article-body h3 { margin-top: 1.8em; }
.ffyd-article-body p, .ffyd-article-body li { color: #404B56; font-size: 1.04rem; }
.ffyd-article-body ul, .ffyd-article-body ol { padding-left: 1.35rem; }
.ffyd-article-body a { font-weight: 600; }
.ffyd-article-body figure { margin: 36px 0; }
.ffyd-article-body blockquote { margin: 34px 0; padding: 22px 26px; border-left: 4px solid var(--ffyd-teal); background: var(--ffyd-soft); }
.ffyd-article-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: .95rem; }
.ffyd-article-body th, .ffyd-article-body td { padding: 13px; border: 1px solid var(--ffyd-line); text-align: left; vertical-align: top; }
.ffyd-article-body th { background: var(--ffyd-teal-soft); }
.ffyd-disclosure-box {
  margin: 0 0 34px;
  padding: 17px 20px;
  border: 1px solid #F0D8C4;
  border-radius: 12px;
  background: var(--ffyd-cream);
  color: #5E5146;
  font-size: .9rem;
}
.ffyd-disclosure-box p { margin: 0; font-size: inherit; color: inherit; }
.ffyd-product-callout {
  margin: 36px 0;
  padding: 28px;
  border: 1px solid var(--ffyd-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(34,57,62,.05);
}
.ffyd-pros-cons { margin: 34px 0; gap: 18px; }
.ffyd-pros-cons > .wp-block-column { padding: 24px; border-radius: 16px; background: var(--ffyd-soft); }
.ffyd-pros-cons > .wp-block-column:last-child { background: var(--ffyd-cream); }
.ffyd-affiliate-button .wp-block-button__link { background: var(--ffyd-orange); }
.ffyd-article-footer { width: min(var(--ffyd-content), calc(100% - 40px)); margin: 0 auto 70px; padding-top: 26px; border-top: 1px solid var(--ffyd-line); }
.ffyd-related { padding: 70px 0; background: var(--ffyd-soft); }
.ffyd-related .ffyd-card-grid { margin-top: 26px; }

/* Archives */
.ffyd-archive-hero { padding: 72px 0 54px; background: linear-gradient(135deg,#FFF9F2 0%,#F6FAF9 100%); text-align: center; }
.ffyd-archive-hero p { max-width: 700px; margin: 0 auto; color: var(--ffyd-muted); }
.ffyd-archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; padding: 64px 0 82px; }
.ffyd-pagination { padding-bottom: 80px; text-align: center; }
.ffyd-pagination .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ffyd-pagination a, .ffyd-pagination span { display: inline-flex; min-width: 42px; min-height: 42px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--ffyd-line); border-radius: 9px; text-decoration: none; }
.ffyd-pagination .current { background: var(--ffyd-teal); color: #fff; border-color: var(--ffyd-teal); }

/* Search and forms */
.ffyd-search-form { display: flex; gap: 10px; max-width: 620px; margin: 26px auto 0; }
.ffyd-search-form label { flex: 1; }
.ffyd-search-form input[type="search"],
.ffyd-page-content input[type="text"],
.ffyd-page-content input[type="email"],
.ffyd-page-content input[type="url"],
.ffyd-page-content textarea,
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #D8E1DF;
  border-radius: 10px;
  background: #fff;
  color: var(--ffyd-ink);
}
.ffyd-search-form input[type="search"]:focus,
.ffyd-page-content input:focus,
.ffyd-page-content textarea:focus { outline: 2px solid rgba(31,111,120,.18); border-color: var(--ffyd-teal); }

/* Comments */
.comments-area { width: min(var(--ffyd-content), calc(100% - 40px)); margin: 0 auto 70px; }
.comment-list { padding: 0; list-style: none; }
.comment-list li { margin-bottom: 24px; padding: 22px; border: 1px solid var(--ffyd-line); border-radius: 14px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(31,111,120,.08); background: #fff; }
.ffyd-footer-disclosure { padding: 36px 0 24px; color: var(--ffyd-muted); font-size: .86rem; text-align: center; }
.ffyd-footer-disclosure p { max-width: 800px; margin: 0 auto; }
.ffyd-footer-nav { padding: 10px 0 28px; }
.ffyd-footer-nav ul { justify-content: center; flex-wrap: wrap; gap: .8rem 1.05rem; }
.ffyd-footer-nav a { color: #394653; font-size: .92rem; text-decoration: none; }
.ffyd-footer-nav a:hover { color: var(--ffyd-teal); }
.ffyd-footer-bottom { padding: 20px 0 28px; color: #53606D; font-size: .86rem; text-align: center; }

/* WordPress alignment helpers */
.alignwide { width: min(var(--ffyd-wide), calc(100vw - 40px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.wp-caption, .wp-caption-text, .gallery-caption { max-width: 100%; color: var(--ffyd-muted); font-size: .85rem; }
.bypostauthor { outline: 1px solid rgba(31,111,120,.15); }
.sticky { position: relative; }

/* Responsive */
@media (max-width: 1050px) {
  .ffyd-primary-nav ul { gap: 1rem; }
  .ffyd-primary-nav a { font-size: .9rem; }
  .ffyd-four-grid { grid-template-columns: repeat(2,1fr); }
  .ffyd-profile-grid { grid-template-columns: repeat(3,1fr); }
}

@media (max-width: 900px) {
  .ffyd-menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .ffyd-primary-nav {
    position: fixed;
    inset: 80px 0 auto 0;
    display: none;
    margin: 0;
    padding: 18px 20px 26px;
    border-top: 1px solid var(--ffyd-line);
    background: #fff;
    box-shadow: 0 24px 44px rgba(34,57,62,.10);
  }
  .ffyd-primary-nav.is-open { display: block; }
  .ffyd-primary-nav ul { display: grid; gap: 0; }
  .ffyd-primary-nav li + li { border-top: 1px solid var(--ffyd-line); }
  .ffyd-primary-nav a { display: block; padding: 15px 4px; font-size: 1rem; }
  .ffyd-card-grid,
  .ffyd-archive-grid { grid-template-columns: repeat(2,1fr); }
  .ffyd-how-review,
  .ffyd-two-col,
  .ffyd-process-grid { grid-template-columns: 1fr; gap: 38px; }
  .ffyd-three-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .ffyd-shell,
  .ffyd-content-shell,
  .ffyd-article-body,
  .ffyd-article-footer,
  .comments-area { width: min(100% - 30px, var(--ffyd-wide)); }
  .ffyd-header-inner { min-height: 72px; }
  .ffyd-primary-nav { inset: 72px 0 auto 0; }
  .site-title { font-size: 1.35rem; }
  .ffyd-home-hero,
  .ffyd-premium-hero { padding: 78px 0 70px; }
  .ffyd-home-hero h1,
  .ffyd-premium-hero h1 { font-size: 2.7rem; }
  .ffyd-home-hero p,
  .ffyd-premium-lead { font-size: 1.03rem; }
  .ffyd-trust-grid { grid-template-columns: 1fr; }
  .ffyd-trust-grid > div + div { border-left: 0; border-top: 1px solid var(--ffyd-line); }
  .ffyd-section { padding: 66px 0; }
  .ffyd-card-grid,
  .ffyd-archive-grid,
  .ffyd-four-grid,
  .ffyd-profile-grid { grid-template-columns: 1fr; }
  .ffyd-newsletter { padding: 34px 22px; }
  .ffyd-page-hero { padding: 56px 0; }
  .ffyd-page-content { padding: 56px 0 70px; }
  .ffyd-article-header { padding: 56px 0 36px; }
  .ffyd-search-form { flex-direction: column; }
  .ffyd-footer-nav ul { gap: .65rem .9rem; }
}

/* v1.2 brand lockup responsive refinements */
@media (max-width: 760px) {
  .ffyd-brand-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 9px; }
  .ffyd-brand-name { font-size: 1.24rem; }
  .ffyd-trust-page-hero { padding: 68px 0 58px; }
  .ffyd-trust-page-content { padding: 54px 0 72px; }
}
