/*
 * FEDS Theme — Design System / Base Styles
 * BEM naming convention: .feds-block__element--modifier
 */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --blue:           #0057B8;
  --blue-dark:      #004499;
  --blue-light:     #EEF4FB;
  --amber:          #E8830A;
  --amber-dark:     #CC7209;
  --amber-light:    #FFF4E6;
  --dark:           #0D1117;
  --dark-2:         #161B22;
  --dark-3:         #1F2937;
  --gray-50:        #F9FAFB;
  --gray-100:       #F4F6F9;
  --gray-200:       #E2E6EA;
  --gray-300:       #D1D5DB;
  --gray-400:       #9CA3AF;
  --gray-500:       #6B7280;
  --gray-600:       #4B5563;
  --gray-700:       #374151;
  --gray-800:       #1F2937;
  --white:          #FFFFFF;
  --green:          #0A8A2E;
  --green-light:    #EDFAEF;
  --red:            #DC2626;
  --red-light:      #FEF2F2;

  --font-sans:      "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:      "JetBrains Mono", "Fira Code", monospace;

  --radius-sm:      4px;
  --radius:         6px;
  --radius-md:      8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --radius-full:    9999px;

  --shadow-xs:      0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:         0 2px 12px rgba(0,0,0,.08);
  --shadow-md:      0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:      0 8px 40px rgba(0,0,0,.14);
  --shadow-xl:      0 16px 60px rgba(0,0,0,.18);

  --transition:     0.2s ease;
  --transition-lg:  0.35s ease;

  --header-height:  64px;
  --topbar-height:  36px;
  --container-max:  1280px;
  --container-pad:  clamp(1rem, 5vw, 2rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--blue-dark); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }
h1,h2,h3,h4,h5,h6 { line-height: 1.2; }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.feds-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  background: var(--blue);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  z-index: 9999;
  text-decoration: none;
}
.feds-skip-link:focus {
  position: fixed;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  outline: 3px solid var(--amber);
  outline-offset: 0;
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.feds-container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.feds-container--narrow { max-width: 800px; }
.feds-container--wide   { max-width: 1440px; }

.feds-page { display: flex; flex-direction: column; min-height: 100vh; }
.feds-content-wrap { flex: 1; }
.feds-main { padding-block: 2rem; }

/* ============================================================
   TOPBAR
   ============================================================ */
.feds-topbar {
  background: var(--dark-2);
  color: var(--gray-300);
  font-size: .75rem;
  height: var(--topbar-height);
  display: flex;
  align-items: center;
}
.feds-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.feds-topbar__left  { display: flex; align-items: center; gap: 1.25rem; }
.feds-topbar__right { display: flex; align-items: center; gap: 1rem; }
.feds-topbar__contact {
  display: flex;
  align-items: center;
  gap: .375rem;
  color: var(--gray-300);
  font-size: .75rem;
  transition: color var(--transition);
}
.feds-topbar__contact:hover { color: var(--white); }

/* Language switcher */
.feds-lang-switcher { display: flex; gap: .5rem; }
.feds-lang-switcher__link {
  color: var(--gray-400);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: .2rem .4rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.feds-lang-switcher__link:hover,
.feds-lang-switcher__link.is-active {
  color: var(--white);
  background: rgba(255,255,255,.12);
}

/* Topbar nav */
.feds-topbar__nav-list { display: flex; gap: 1rem; }
.feds-topbar__nav-list a {
  color: var(--gray-300);
  font-size: .75rem;
  transition: color var(--transition);
}
.feds-topbar__nav-list a:hover { color: var(--white); }

/* ============================================================
   HEADER
   ============================================================ */
.feds-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
  height: var(--header-height);
  display: flex;
  align-items: center;
}
.feds-header.is-scrolled { box-shadow: var(--shadow-md); }
.feds-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
}

/* Logo */
.feds-header__logo a { display: flex; align-items: center; }
.feds-header__logo img { height: 36px; width: auto; }
.feds-logo-text { font-size: 1.375rem; font-weight: 800; color: var(--blue); letter-spacing: -.02em; }

/* Primary Nav */
.feds-nav { display: none; }
.feds-nav__list { display: flex; gap: .25rem; list-style: none; }
.feds-nav__list > li > a {
  display: block;
  padding: .5rem .75rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.feds-nav__list > li > a:hover,
.feds-nav__list > li.current-menu-item > a,
.feds-nav__list > li.current-menu-ancestor > a {
  color: var(--blue);
  background: var(--blue-light);
}

/* Header actions */
.feds-header__actions { display: none; gap: .5rem; }

/* Hamburger */
.feds-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius);
  transition: background var(--transition);
}
.feds-hamburger:hover { background: var(--gray-100); }
.feds-hamburger__bar {
  width: 100%;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all var(--transition);
  display: block;
}
.feds-hamburger.is-open .feds-hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.feds-hamburger.is-open .feds-hamburger__bar:nth-child(2) { opacity: 0; }
.feds-hamburger.is-open .feds-hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE NAV
   ============================================================ */
.feds-mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 200;
  transform: translateX(100%);
  transition: transform var(--transition-lg);
  overflow-y: auto;
}
.feds-mobile-nav[aria-hidden="false"] { transform: translateX(0); }
.feds-mobile-nav__inner {
  display: flex;
  flex-direction: column;
  padding: 5rem 2rem 2rem;
  min-height: 100%;
}
.feds-mobile-nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: var(--radius);
  transition: background var(--transition);
}
.feds-mobile-nav__close:hover { background: rgba(255,255,255,.1); }
.feds-mobile-nav__list { list-style: none; }
.feds-mobile-nav__list li a {
  display: block;
  padding: 1rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: color var(--transition);
}
.feds-mobile-nav__list li a:hover { color: var(--amber); }
.feds-mobile-nav__actions { display: flex; flex-direction: column; gap: .75rem; margin-top: 2rem; }
.feds-mobile-nav__lang { display: flex; gap: .75rem; margin-top: 1.5rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.feds-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}
.feds-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.feds-btn--primary   { background: var(--blue);  color: var(--white);  border-color: var(--blue); }
.feds-btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.feds-btn--amber     { background: var(--amber); color: var(--white);  border-color: var(--amber); }
.feds-btn--amber:hover { background: var(--amber-dark); border-color: var(--amber-dark); color: var(--white); }

.feds-btn--outline   { background: transparent; color: var(--blue);   border-color: var(--blue); }
.feds-btn--outline:hover { background: var(--blue-light); color: var(--blue-dark); }

.feds-btn--outline-white { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.feds-btn--outline-white:hover { background: rgba(255,255,255,.1); color: var(--white); border-color: var(--white); }

.feds-btn--white     { background: var(--white); color: var(--blue);  border-color: var(--white); }
.feds-btn--white:hover { background: var(--blue-light); color: var(--blue-dark); }

.feds-btn--ghost     { background: transparent; color: var(--gray-600); border-color: var(--gray-300); }
.feds-btn--ghost:hover { background: var(--gray-100); color: var(--gray-700); }

.feds-btn--sm  { padding: .4rem .875rem; font-size: .8rem; }
.feds-btn--lg  { padding: .875rem 1.75rem; font-size: 1rem; }
.feds-btn--xl  { padding: 1rem 2rem; font-size: 1.0625rem; }
.feds-btn--full { width: 100%; }

/* ============================================================
   BADGES & CHIPS
   ============================================================ */
.feds-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .5rem;
  font-size: .625rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.feds-badge--new   { background: var(--amber); color: var(--white); }
.feds-badge--stock { background: var(--green); color: var(--white); }

.feds-chip {
  display: inline-flex;
  align-items: center;
  padding: .2rem .6rem;
  font-size: .75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
}
.feds-chip--material { background: var(--blue-light); color: var(--blue); border-color: transparent; }
.feds-chip--sm { font-size: .6875rem; padding: .15rem .5rem; }

/* Pills */
.feds-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.feds-pill {
  padding: .375rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  transition: all var(--transition);
  cursor: pointer;
}
.feds-pill:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }
.feds-pill.is-active { border-color: var(--blue); color: var(--white); background: var(--blue); }
.feds-pill:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.feds-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.feds-section-header--center { flex-direction: column; align-items: center; text-align: center; }
.feds-section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.02em;
}
.feds-section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-500);
  max-width: 640px;
  margin-top: .5rem;
}
.feds-section-link {
  font-size: .875rem;
  font-weight: 600;
  color: var(--blue);
  white-space: nowrap;
  transition: color var(--transition);
}
.feds-section-link:hover { color: var(--blue-dark); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.feds-breadcrumb { margin-bottom: 1.25rem; }
.feds-breadcrumb__list { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.feds-breadcrumb__item {
  display: flex;
  align-items: center;
  font-size: .8125rem;
  color: var(--gray-500);
}
.feds-breadcrumb__item a { color: var(--gray-500); transition: color var(--transition); }
.feds-breadcrumb__item a:hover { color: var(--blue); }
.feds-breadcrumb__item + .feds-breadcrumb__item::before { content: "/"; margin-right: .35rem; }
.feds-breadcrumb__item--current { color: var(--gray-700); font-weight: 500; }

/* ============================================================
   FORMS (inputs)
   ============================================================ */
.feds-input,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="url"],
select,
textarea {
  display: block;
  width: 100%;
  padding: .625rem .875rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--dark);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}
.feds-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0,87,184,.12);
}
.feds-input-unit {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .8125rem;
  color: var(--gray-400);
  pointer-events: none;
}
label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .375rem; color: var(--gray-700); }
.feds-form-field { margin-bottom: 1rem; }
.feds-form-field--full { grid-column: 1 / -1; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.25rem; cursor: pointer; }

/* Checkboxes */
.feds-checkbox-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  font-weight: 400;
  color: var(--gray-700);
  cursor: pointer;
  padding: .2rem 0;
  user-select: none;
}
.feds-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1.5px solid var(--gray-300);
  appearance: none;
  -webkit-appearance: none;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition);
}
.feds-checkbox-label input[type="checkbox"]:checked {
  background: var(--blue);
  border-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}
.feds-checkbox-label input[type="checkbox"]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* Range slider */
.feds-range-slider { position: relative; height: 24px; display: flex; align-items: center; }
.feds-range-slider__input {
  position: absolute;
  width: 100%;
  height: 4px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
  outline: none;
}
.feds-range-slider__input::-webkit-slider-track { height: 4px; background: var(--gray-200); border-radius: 2px; }
.feds-range-slider__input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; }
.feds-range-slider__input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 2px solid var(--white); box-shadow: 0 1px 4px rgba(0,0,0,.2); cursor: pointer; }

/* ============================================================
   SPEC TABLE
   ============================================================ */
.feds-spec-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.feds-spec-table th,
.feds-spec-table td { padding: .625rem .875rem; text-align: left; border-bottom: 1px solid var(--gray-100); }
.feds-spec-table th { font-weight: 600; color: var(--gray-600); width: 40%; background: var(--gray-50); white-space: nowrap; }
.feds-spec-table td { color: var(--dark); }
.feds-spec-table tr:last-child th,
.feds-spec-table tr:last-child td { border-bottom: 0; }

/* ============================================================
   LOAD BAR
   ============================================================ */
.feds-load-bar { height: 4px; background: var(--gray-200); border-radius: 2px; overflow: hidden; margin-top: .375rem; }
.feds-load-bar__fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-dark)); border-radius: 2px; transition: width .6s ease; }

/* ============================================================
   SPINNER
   ============================================================ */
.feds-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: feds-spin .7s linear infinite;
  margin: 2rem auto;
}
@keyframes feds-spin { to { transform: rotate(360deg); } }

/* ============================================================
   PAGINATION
   ============================================================ */
.feds-pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 2rem; }
.feds-archive-pagination { display: flex; justify-content: center; padding: 2rem 0; }

/* ============================================================
   FOOTER
   ============================================================ */
.feds-footer {
  background: var(--dark);
  color: var(--gray-300);
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  margin-top: 4rem;
}
.feds-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.feds-footer__col--brand .feds-logo-text { color: var(--white); font-size: 1.5rem; }
.feds-footer__desc { font-size: .875rem; color: var(--gray-400); margin-top: .75rem; line-height: 1.7; max-width: 280px; }
.feds-footer__heading { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gray-500); margin-bottom: 1rem; }
.feds-footer__links { display: flex; flex-direction: column; gap: .5rem; }
.feds-footer__links a { font-size: .875rem; color: var(--gray-400); transition: color var(--transition); }
.feds-footer__links a:hover { color: var(--white); }
.feds-footer__address { font-style: normal; font-size: .875rem; display: flex; flex-direction: column; gap: .375rem; }
.feds-footer__address a { color: var(--gray-400); transition: color var(--transition); }
.feds-footer__address a:hover { color: var(--white); }
.feds-footer__social { display: flex; gap: .75rem; margin-top: 1.25rem; }
.feds-footer__social-link { color: var(--gray-500); transition: color var(--transition); }
.feds-footer__social-link:hover { color: var(--white); }
.feds-footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding-top: 1.5rem; text-align: center; }
.feds-footer__copyright { font-size: .8125rem; color: var(--gray-500); }
.feds-footer__legal-nav { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.feds-footer__legal-nav a { font-size: .8125rem; color: var(--gray-500); transition: color var(--transition); }
.feds-footer__legal-nav a:hover { color: var(--gray-300); }

/* ============================================================
   NO RESULTS / EMPTY STATE
   ============================================================ */
.feds-no-results {
  text-align: center;
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.feds-grid-empty {
  text-align: center;
  padding: 3rem;
  grid-column: 1/-1;
}
.feds-no-data { color: var(--gray-500); font-style: italic; padding: 2rem 0; }

/* ============================================================
   404
   ============================================================ */
.feds-404 {
  text-align: center;
  padding: 6rem 2rem;
}
.feds-404__code { display: block; font-size: 7rem; font-weight: 900; color: var(--blue-light); line-height: 1; }
.feds-404__title { font-size: 2rem; font-weight: 700; margin: 1rem 0 .75rem; }
.feds-404__message { color: var(--gray-500); margin-bottom: 2rem; }
.feds-404__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   MODAL
   ============================================================ */
.feds-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.feds-modal[aria-hidden="true"] { display: none; }
.feds-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
}
.feds-modal__box {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  animation: feds-modal-in .25s ease;
}
@keyframes feds-modal-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.feds-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--gray-500);
  transition: all var(--transition);
}
.feds-modal__close:hover { background: var(--gray-100); color: var(--dark); }
.feds-modal__title { font-size: 1.375rem; font-weight: 700; }
.feds-modal__subtitle { font-size: .9375rem; color: var(--gray-500); margin-top: .375rem; }
.feds-modal__header { margin-bottom: 1.5rem; }

/* ============================================================
   REGISTRATION FORM
   ============================================================ */
.feds-reg-form__hp { position: absolute; opacity: 0; pointer-events: none; height: 0; overflow: hidden; }
.feds-reg-form__row { display: grid; gap: 1rem; }
.feds-reg-form__row--half { grid-template-columns: 1fr 1fr; }
.feds-reg-form__field { margin-bottom: .875rem; }
.feds-reg-form__field--checkbox { margin-top: .5rem; }
.feds-reg-form__error {
  background: var(--red-light);
  border: 1px solid var(--red);
  border-radius: var(--radius);
  padding: .75rem 1rem;
  font-size: .875rem;
  color: var(--red);
  margin-bottom: 1rem;
}
.feds-reg-form__login-link { text-align: center; font-size: .8125rem; color: var(--gray-500); margin-top: 1rem; }
.feds-reg-form__login-link a { color: var(--blue); font-weight: 500; }

/* ============================================================
   MEDIA QUERIES — PROGRESSIVE ENHANCEMENT
   ============================================================ */
@media (min-width: 640px) {
  .feds-footer__grid { grid-template-columns: repeat(2, 1fr); }
  .feds-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

@media (min-width: 768px) {
  .feds-header__actions { display: flex; }
  .feds-hamburger { display: none; }
  .feds-nav { display: flex; }
  .feds-footer__grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .feds-main { padding-block: 3rem; }
  .feds-section-header { margin-bottom: 2.5rem; }
}

/* ============================================================
   PAGE / SINGLE / SEARCH TEMPLATES
   ============================================================ */

/* Shared page wrapper padding */
.feds-main--page,
.feds-main--single,
.feds-main--search { padding-block: 2.5rem; }

/* ---- Static page ----------------------------------------- */
.feds-page-content__header { margin-bottom: 2rem; border-bottom: 2px solid var(--blue); padding-bottom: 1rem; }
.feds-page-content__title { font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 800; color: var(--navy); margin: 0; }
.feds-page-content__body { font-size: 1rem; line-height: 1.75; color: var(--gray-600); }
.feds-page-content__body h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--navy); }
.feds-page-content__body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--navy); }
.feds-page-content__body img { max-width: 100%; height: auto; border-radius: 6px; }
.feds-page-content__body ul,
.feds-page-content__body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.feds-page-content__body li { margin-bottom: .4rem; }

/* ---- Blog post ------------------------------------------- */
.feds-post__header { margin-bottom: 2rem; }
.feds-post__title { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--navy); margin: .75rem 0 .5rem; }
.feds-post__meta { font-size: .85rem; color: var(--gray-500); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.feds-post__meta time { font-weight: 500; }
.feds-post__meta-sep { color: var(--gray-300); }
.feds-post__featured-image { margin-bottom: 2rem; border-radius: 10px; overflow: hidden; }
.feds-post__image { width: 100%; height: auto; display: block; }
.feds-post__content { font-size: 1rem; line-height: 1.8; color: var(--gray-600); }
.feds-post__content h2 { font-size: 1.4rem; font-weight: 700; margin: 2rem 0 .75rem; color: var(--navy); }
.feds-post__content h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .5rem; color: var(--navy); }
.feds-post__content img { max-width: 100%; height: auto; border-radius: 6px; }
.feds-post__content ul,
.feds-post__content ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.feds-post__content li { margin-bottom: .4rem; }
.feds-post__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--gray-200); }
.feds-post__nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.feds-post__nav a { font-size: .875rem; font-weight: 600; color: var(--blue); text-decoration: none; }
.feds-post__nav a:hover { text-decoration: underline; }

/* ---- Archive / Search header ----------------------------- */
.feds-archive-header { margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--blue); }
.feds-archive-header__title { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; color: var(--navy); margin: 0; }
.feds-archive-header__title span { color: var(--blue); }

/* ---- Blog card grid -------------------------------------- */
.feds-grid--blog {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .feds-grid--blog { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .feds-grid--blog { grid-template-columns: repeat(3, 1fr); }
}

.feds-card--blog {
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transition: box-shadow .2s;
  display: flex;
  flex-direction: column;
}
.feds-card--blog:hover { box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.feds-card__image-link { display: block; overflow: hidden; aspect-ratio: 4/3; }
.feds-card__image { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.feds-card--blog:hover .feds-card__image { transform: scale(1.04); }
.feds-card__body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .75rem; }
.feds-card__title { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin: 0; line-height: 1.35; }
.feds-card__title a { color: inherit; text-decoration: none; }
.feds-card__title a:hover { color: var(--blue); }
.feds-card__excerpt { font-size: .875rem; color: var(--gray-500); line-height: 1.6; flex: 1; }
