/*
 * Gia Dung 19 — Appliance Care Hub
 * Handcrafted component styles (BEM) that complement the Tailwind utility
 * build in src/style.css. This file is NEVER touched by `npm run build`.
 *
 * Design tokens (mirrors src/input.css):
 *   --color-primary:  #ff5b33
 *   --color-secondary:#ffb369
 *   --color-accent:   #2f6690
 *   --color-bg:       #fff8f4
 *   --color-surface:  #ffffff
 *   --color-border:   #f5e2d6
 *   --color-text:     #2b2420
 *   --color-muted:    #7a6f68
 *   --font-display:   "IBM Plex Sans"
 *   --font-body:      "IBM Plex Serif"
 *   --brand-gradient: warm orange, locked in src/input.css
 */

:root {
  --color-primary: #ff5b33;
  --color-secondary: #ffb369;
  --color-accent: #2f6690;
  --color-bg: #fff8f4;
  --color-surface: #ffffff;
  --color-border: #f5e2d6;
  --color-text: #2b2420;
  --color-muted: #7a6f68;
  --font-display: "Be Vietnam Pro", system-ui, -apple-system, sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --brand-gradient: linear-gradient(315deg, #fff3ed 0%, #ffe7c0 20%, #ffd193 40%, #ffb369 60%, #ff8b48 80%, #ff5b33 100%);
}

html {
  scroll-behavior: smooth;
}

.gd9-body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.gd9-container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   Support row
   ========================================================================== */

.gd9-support-row {
  background: var(--color-text);
  color: rgba(255, 255, 255, 0.85);
}

.gd9-support-row__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0.55rem 0;
  font-size: 0.76rem;
  font-weight: 600;
  flex-wrap: wrap;
}

.gd9-support-row__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.gd9-support-row__item .material-symbols-outlined {
  font-size: 15px !important;
  color: var(--color-secondary);
}

@media (max-width: 47.99rem) {
  .gd9-support-row__item:not(:first-child) {
    display: none;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */

.gd9-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 248, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.gd9-header__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 0.75rem;
}

.gd9-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
}

.gd9-logo__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.85rem;
  background: var(--brand-gradient);
  color: #fff;
}

.gd9-logo__accent {
  color: var(--color-primary);
}

.gd9-tagline {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 500;
}

@media (max-width: 47.99rem) {
  .gd9-tagline {
    display: none;
  }
}

.gd9-header__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.75rem 0 1rem;
  border-top: 1px dashed var(--color-border);
}

.gd9-nav {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.gd9-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gd9-nav a:hover,
.gd9-nav a.is-active {
  color: var(--color-primary);
}

@media (max-width: 63.99rem) {
  .gd9-nav {
    display: none;
  }
}

.gd9-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.gd9-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.gd9-icon-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.gd9-menu-btn {
  display: none;
}

@media (max-width: 63.99rem) {
  .gd9-menu-btn {
    display: inline-flex;
  }
}

.gd9-search-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.25s ease;
}

.gd9-search-panel.is-open {
  max-height: 6rem;
  opacity: 1;
  border-top: 1px solid var(--color-border);
}

.gd9-search-panel__inner {
  padding: 1.1rem 1.5rem;
}

.gd9-mobile-nav {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  transition: all 0.25s ease;
}

.gd9-mobile-nav.is-open {
  max-height: 28rem;
  opacity: 1;
}

.gd9-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gd9-mobile-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gd9-mobile-nav a {
  display: block;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.gd9-mobile-nav a:hover {
  background: var(--color-bg);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.gd9-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.6rem;
  border-radius: 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gd9-btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(255, 91, 51, 0.32);
}

.gd9-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(255, 91, 51, 0.4);
}

.gd9-btn--outline {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.gd9-btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.gd9-hero {
  background: linear-gradient(180deg, #fff3ed 0%, var(--color-bg) 100%);
  border-bottom: 1px solid var(--color-border);
  padding: 4rem 0;
}

.gd9-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 63.99rem) {
  .gd9-hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.gd9-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 91, 51, 0.1);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.gd9-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  color: var(--color-text);
}

.gd9-hero__desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--color-muted);
  margin-bottom: 2rem;
  max-width: 34rem;
}

.gd9-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.gd9-hero__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 24px 50px rgba(43, 36, 32, 0.08);
}

.gd9-hero__panel-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px dashed var(--color-border);
}

.gd9-hero__panel-head .material-symbols-outlined {
  color: var(--color-primary);
}

.care-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.care-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
}

.care-checklist .material-symbols-outlined {
  color: var(--color-accent);
  font-size: 19px;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.gd9-section {
  padding: 3.5rem 0;
}

.gd9-section--alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.gd9-section__head {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.gd9-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.gd9-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.gd9-section__desc {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Rooms grid
   ========================================================================== */

.gd9-rooms {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
}

@media (max-width: 63.99rem) {
  .gd9-rooms {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 39.99rem) {
  .gd9-rooms {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gd9-room-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}

.gd9-room-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: 0 18px 36px rgba(43, 36, 32, 0.08);
}

.gd9-room-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(255, 91, 51, 0.1);
  color: var(--color-primary);
}

.gd9-room-card__name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
}

/* ==========================================================================
   Drag rail
   ========================================================================== */

.gd9-drag-scroll,
.gd9-rail {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.gd9-drag-scroll::-webkit-scrollbar,
.gd9-rail::-webkit-scrollbar {
  height: 6px;
}

.gd9-drag-scroll::-webkit-scrollbar-thumb,
.gd9-rail::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 999px;
}

.gd9-drag-scroll.is-dragging,
.gd9-rail.is-dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.gd9-drag-scroll.is-dragging a,
.gd9-rail.is-dragging a {
  pointer-events: none;
}

.gd9-rail .gd9-card {
  flex-shrink: 0;
  width: 300px;
}

/* ==========================================================================
   Cards
   ========================================================================== */

.gd9-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1.1rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.gd9-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(43, 36, 32, 0.1);
  border-color: var(--color-primary);
}

.gd9-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: var(--color-bg);
}

.gd9-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gd9-card:hover .gd9-card__media img {
  transform: scale(1.06);
}

.gd9-card__body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.gd9-card__cat {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gd9-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.gd9-card__title a {
  color: inherit;
  text-decoration: none;
}

.gd9-card__title a:hover {
  color: var(--color-primary);
}

.gd9-card__excerpt {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.gd9-card__foot {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--color-muted);
}

/* ==========================================================================
   Warning chips
   ========================================================================== */

.care-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.care-chip--low {
  background: #3f9142;
}

.care-chip--medium {
  background: var(--color-secondary);
  color: #4a2e0a;
}

.care-chip--high {
  background: var(--color-primary);
}

/* ==========================================================================
   FAQ accordion
   ========================================================================== */

.gd9-faq {
  max-width: 46rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.gd9-faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
}

.gd9-faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
}

.gd9-faq-item__q .material-symbols-outlined {
  color: var(--color-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.gd9-faq-item.is-open .gd9-faq-item__q .material-symbols-outlined {
  transform: rotate(180deg);
}

.gd9-faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.gd9-faq-item.is-open .gd9-faq-item__a {
  max-height: 16rem;
  padding: 0 1.5rem 1.5rem;
}

.gd9-faq-item__a p {
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.7;
}

/* ==========================================================================
   Breadcrumbs / single header
   ========================================================================== */

.gd9-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.gd9-breadcrumbs a {
  color: var(--color-muted);
  text-decoration: none;
}

.gd9-breadcrumbs a:hover {
  color: var(--color-primary);
}

.gd9-single-head {
  margin-bottom: 2rem;
}

.gd9-single-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0.5rem 0 1.25rem;
  color: var(--color-text);
}

.gd9-single-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-muted);
  flex-wrap: wrap;
}

.gd9-single-meta__author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.gd9-single-meta__author img {
  border-radius: 999px;
}

.gd9-single-share {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.gd9-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gd9-share-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.gd9-single-media {
  border-radius: 1.1rem;
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: 0 20px 45px rgba(43, 36, 32, 0.14);
}

.gd9-single-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.gd9-single-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: rgba(47, 102, 144, 0.08);
  border: 1px solid rgba(47, 102, 144, 0.25);
  border-radius: 0.85rem;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.88rem;
  color: var(--color-text);
}

.gd9-single-notice .material-symbols-outlined {
  color: var(--color-accent);
  flex-shrink: 0;
}

.gd9-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.gd9-tags a {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gd9-tags a:hover {
  background: var(--color-primary);
  color: #fff;
}

.gd9-postnav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}

@media (max-width: 39.99rem) {
  .gd9-postnav {
    grid-template-columns: 1fr;
  }
}

.gd9-postnav a {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 0.85rem;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.gd9-postnav a:hover {
  border-color: var(--color-primary);
}

.gd9-postnav--next {
  text-align: right;
  align-items: flex-end;
}

.gd9-postnav__dir {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
}

.gd9-postnav__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
}

.gd9-related {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.gd9-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 63.99rem) {
  .gd9-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   List / archive layout
   ========================================================================== */

.gd9-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 63.99rem) {
  .gd9-layout {
    grid-template-columns: 1fr;
  }
}

.gd9-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.gd9-list-card {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 39.99rem) {
  .gd9-list-card {
    flex-direction: column;
  }
}

.gd9-list-card__thumb {
  display: block;
  width: 14rem;
  aspect-ratio: 4 / 3;
  border-radius: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-bg);
}

@media (max-width: 39.99rem) {
  .gd9-list-card__thumb {
    width: 100%;
  }
}

.gd9-list-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gd9-list-card:hover .gd9-list-card__thumb img {
  transform: scale(1.05);
}

.gd9-list-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gd9-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 6rem;
}

.gd9-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.gd9-widget__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 1.1rem;
}

.gd9-widget__title .material-symbols-outlined {
  color: var(--color-primary);
}

.gd9-widget-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.gd9-widget-list a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.gd9-widget-list a:hover {
  color: var(--color-primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.gd9-footer {
  background: #2b2420;
  color: rgba(255, 255, 255, 0.78);
  padding: 4rem 0 1.5rem;
  margin-top: 2rem;
}

.gd9-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding: 2rem 0;
}

@media (max-width: 63.99rem) {
  .gd9-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 39.99rem) {
  .gd9-footer__grid {
    grid-template-columns: 1fr;
  }
}

.gd9-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 1rem;
}

.gd9-footer__desc {
  font-size: 0.85rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.gd9-footer__social {
  display: flex;
  gap: 0.6rem;
}

.gd9-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease;
}

.gd9-footer__social a:hover {
  background: var(--color-primary);
}

.gd9-footer__title {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.gd9-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gd9-footer__links a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.gd9-footer__links a:hover {
  color: #fff;
}

.gd9-footer__nl p {
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.gd9-footer__nl form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.gd9-footer__nl input {
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.85rem;
  outline: none;
}

.gd9-footer__nl input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.gd9-footer__nl button {
  padding: 0.7rem 1.25rem;
  border-radius: 0.6rem;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.gd9-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.gd9-textlinks {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Scroll to top
   ========================================================================== */

.gd9-scrolltop,
.gd9-btt {
  position: fixed;
  z-index: 50;
  bottom: 2rem;
  right: 2rem;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(255, 91, 51, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: all 0.3s ease;
}

.gd9-scrolltop.is-visible,
.gd9-btt.is-visible,
.gd9-btt.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.gd9-scrolltop:hover,
.gd9-btt:hover {
  background: var(--color-accent);
}

/* ==========================================================================
   Prose
   ========================================================================== */

.prose img,
.prose video {
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
  margin: 1.75rem 0;
  box-shadow: 0 14px 30px rgba(43, 36, 32, 0.12);
}

.prose iframe,
.prose .wp-embed,
.prose .wp-block-embed__wrapper {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 0.85rem;
  margin: 1.75rem 0;
  border: none;
}

.prose blockquote {
  background: var(--color-bg);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 0.85rem 0.85rem 0;
  padding: 1.25rem 1.5rem;
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  color: var(--color-text);
}

.prose a {
  color: var(--color-primary);
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.gd9-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  justify-content: center;
}

.gd9-pagination .page-numbers,
.gd9-pagination.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gd9-pagination .page-numbers:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.gd9-pagination .page-numbers.current {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.gd9-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ==========================================================================
   Search form
   ========================================================================== */

.gd9-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.gd9-searchform {
  position: relative;
  display: flex;
}

.gd9-searchform .search-field {
  width: 100%;
  padding: 0.85rem 3.25rem 0.85rem 1.1rem;
  border-radius: 0.65rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 0.88rem;
  outline: none;
}

.gd9-searchform .search-submit {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  bottom: 0.3rem;
  width: 2.6rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Sidebar post thumbs */
.gd9-widget-posts { display:flex; flex-direction:column; gap:0.85rem; }
.gd9-widget-post {
  display:flex; align-items:center; gap:0.75rem; text-decoration:none; color:inherit;
  transition: transform .2s ease;
}
.gd9-widget-post:hover { transform: translateX(3px); }
.gd9-widget-post img {
  width:56px; height:56px; object-fit:cover; border-radius:10px; flex-shrink:0;
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.gd9-widget-post span {
  font-size:0.88rem; font-weight:600; line-height:1.35;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}

/* FIX-PASS-9 */
.gd9-rail,
.gd9-drag-scroll {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}
.gd9-rail::-webkit-scrollbar,
.gd9-drag-scroll::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
h1,h2,h3,h4,h5,h6,.font-display {
  font-family: var(--font-display);
}

/* === header polish === */
.gd9-support-row { background: #2b2420; color: rgba(255,255,255,.78); font-size: .78rem; }
.gd9-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 8px 24px -18px rgba(43,36,32,.3);
}
.gd9-header__top { justify-content: center; padding: 1rem 0 .35rem; }
.gd9-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; }
.gd9-logo__mark {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  background: var(--brand-gradient); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
}
.gd9-header__bottom { padding: .5rem 0 1rem; gap: 1rem; }
.gd9-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem; }
.gd9-nav ul,
.gd9-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.gd9-nav li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.gd9-nav a, .gd9-nav .menu a, .gd9-nav li a {
  padding: .45rem .9rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--color-text); text-decoration: none;
}
.gd9-nav a:hover, .gd9-nav a.is-active, .gd9-nav .current-menu-item > a {
  background: rgba(255,91,51,.12); color: var(--color-primary);
}
.gd9-icon-btn {
  width: 2.5rem; height: 2.5rem; border-radius: .75rem;
  border: 1px solid var(--color-border); background: #fff;
}

