/*
  /css/style.css
  --------------------------------------------------
  Gift Store Coach global design system.

  Future Me:
  - ONE shared stylesheet for public, community, app, account, tools, and admin pages.
  - Change brand colors, spacing, radii, shadows, typography, and layout variables here.
  - Page-specific CSS should be rare.
  - Mobile-first. Desktop is an enhancement.
*/

:root {
  /* Brand */
  --color-bg: #fff8ee;
  --color-bg-2: #fff2df;
  --color-bg-comments-replies: rgba(255, 122, 26, 0.05);
  --color-surface: rgba(255, 255, 255, 0.78);
  --color-surface-solid: #ffffff;
  --color-ink: #16110b;
  --color-muted: #6e6254;
  --color-line: rgba(40, 26, 13, 0.12);

  --color-primary: #ff7a1a;
  --color-primary-2: #ffb000;
  --color-dark: #21160d;
  --color-dark-2: #4a2d15;
  --color-success: #1bbf83;
  --color-danger: #ef4444;
  --color-blue: #4f46e5;

  /* Spacing tokens */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-9: 36px;
  --space-10: 42px;
  --space-11: 54px;
  --space-12: 70px;

  /* Standard layout gaps */
  --gap-xs: var(--space-2);
  --gap-sm: var(--space-3);
  --gap-md: var(--space-4);
  --gap-lg: var(--space-6);
  --gap-xl: var(--space-8);

  /* Effects */
  --shadow-soft: 0 12px 35px rgba(60, 35, 9, 0.08);
  --shadow-card: 0 24px 70px rgba(89, 54, 18, 0.14);
  --shadow-primary: 0 18px 36px rgba(255, 122, 26, 0.28);
  --shadow-dark: 0 18px 36px rgba(26, 17, 8, 0.18);

  /* Shape */
  --radius-xs: 12px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --page-gutter: 18px;
  --section-y: var(--space-10);
  --sidebar-width: 320px;
  --wide-sidebar-width: 390px;

  /* Type */
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --tracking-tight: -0.055em;
}

/* ==================================================
   BASE
================================================== */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-main);
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(255, 176, 0, 0.24), transparent 32%),
    radial-gradient(circle at 80% 0, rgba(255, 122, 26, 0.14), transparent 28%),
    linear-gradient(135deg, var(--color-bg), #fff 54%, var(--color-bg-2));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: -1;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ==================================================
   GLOBAL LAYOUT
================================================== */

.container {
  width: min(var(--container), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

.container-narrow {
  width: min(var(--container-narrow), calc(100% - var(--page-gutter) * 2));
  margin-inline: auto;
}

.section {
  padding: var(--space-6) 0 var(--space-12);
}

.section-sm {
  padding: var(--space-7) 0 var(--space-10);
}

.section-tight {
  padding: var(--space-6) 0;
}

.grid {
  display: grid;
  gap: var(--gap-lg);
}

.grid-2,
.grid-3,
.grid-4,
.grid-main-sidebar {
  grid-template-columns: 1fr;
}

.stack {
  display: grid;
  gap: var(--gap-lg);
}

.layout-column {
  display: flex;
  flex-direction: column;
  gap: var(--gap-lg);
  min-width: 0;
}

.layout-sidebar-main {
  display: grid;
  gap: var(--gap-lg);
  align-items: start;
}

.layout-main-sidebar {
  display: grid;
  gap: var(--gap-lg);
  align-items: start;
}

.flex {
  display: flex;
  gap: var(--gap-sm);
  align-items: center;
}

.flex-between {
  display: flex;
  gap: var(--gap-sm);
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.text-center { text-align: center; }

.max-760 { max-width: 760px; }
.max-900 { max-width: 900px; }

/* ==================================================
   HEADER
================================================== */

.site-header {
  position: relative;
  top: auto;
  z-index: 100;
  width: min(var(--container), calc(100% - var(--space-6)));
  margin: var(--space-3) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    flex: 0 0 auto;
}
.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000000;
    white-space: nowrap;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  box-shadow: 0 10px 24px rgba(255, 122, 26, .24);
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-2);
}

.site-nav a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 850;
  font-size: 14px;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-pill);
}

.site-nav a:hover,
.site-nav a.is-active {
  background: #fff3df;
  color: var(--color-ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.mobile-nav-toggle {
  display: inline-flex;
}

.mobile-panel {
  display: none;
  position: fixed;
  left: var(--space-3);
  right: var(--space-3);
  top: 82px;
  z-index: 99;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel a {
  display: block;
  padding: var(--space-4);
  text-decoration: none;
  font-weight: 900;
  border-radius: var(--radius-md);
  color: var(--color-muted);
}

.mobile-panel a:hover {
  background: #fff3df;
  color: var(--color-ink);
}

/* ==================================================
   FOOTER
================================================== */

.site-footer {
  padding: var(--space-10) 0;
  color: var(--color-muted);
}

.footer-inner {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
  padding: var(--space-5);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.58);
}

.footer-links {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--color-muted);
  font-weight: 850;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-ink);
}

/* ==================================================
   TYPOGRAPHY
================================================== */

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1,
.h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: .9;
  letter-spacing: -0.075em;
  margin: var(--space-3) 0 var(--space-2);
}

h2,
.h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-3);
}

h3,
.h3 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  font-weight: 800;
}

h4,
.h4 {
  font-size: 16px;
  margin: 0 0 var(--space-2);
  letter-spacing: -0.025em;
}

p {
  line-height: 1.55;
}

.lead {
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 760px;
}

.muted {
  color: var(--color-muted);
}

.text-small {
  font-size: 13px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  width: fit-content;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-3);
  color: #8a5520;
  font-size: 13px;
  font-weight: 950;
  margin-bottom: 20px;
}

.page-head {
  display: grid;
  gap: var(--gap-sm);
  margin: var(--space-3) 0 var(--space-6);
}

.page-head-row {
  display: grid;
  gap: var(--gap-lg);
  margin: var(--space-3) 0 var(--space-6);
}

/* ==================================================
   CARDS
================================================== */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px);
}

.card-solid {
  background: var(--color-surface-solid);
}

.card-pad {
  padding: var(--space-6);
}

.card-pad-lg {
  padding: var(--space-7);
}

.premium-card {
  background: var(--color-surface);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--gap-md);
  margin-bottom: var(--space-5);
}

/* ==================================================
   BUTTONS
================================================== */

.btn {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 13px 18px;
  font-weight: 950;
  text-decoration: none;
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: .22s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary), #ff9e17);
  box-shadow: var(--shadow-primary);
}

.btn-dark {
  color: #fff;
  background: linear-gradient(135deg, var(--color-dark), var(--color-dark-2));
  box-shadow: var(--shadow-dark);
}

.btn-soft,
.btn-secondary {
  color: var(--color-ink);
  background: #fff;
  border: 1px solid var(--color-line);
}

.btn-block,
.btn-wide {
  width: 100%;
}

/* ==================================================
   BADGES / PILLS / NOTICES
================================================== */

.pill {
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:8px 14px;
  background:#fff;
  border:1px solid #e8e8e8;
  font-size:13px;
  font-weight:600;
  color:#666;
}

.badge-success {
  color: #087857;
  background: #eafff5;
}

.badge-warn {
  color: #a34800;
  background: #fff3df;
}

.badge-danger {
  color: #b91c1c;
  background: #fff0f0;
}

.notice {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  margin-bottom: var(--space-5);
  font-weight: 850;
  background: #fff;
}

.notice-success {
  color: #087857;
  background: #eafff5;
}

.notice-error {
  color: #b91c1c;
  background: #fff0f0;
}

/* ==================================================
   FORMS
================================================== */

.form {
  display: grid;
  gap: var(--gap-md);
}

.form-group {
  display: grid;
  gap: var(--space-2);
}

label {
  font-weight: 900;
}

.input,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 14px 15px;
  background: rgba(255,255,255,.82);
  color: var(--color-ink);
  outline: none;
}

input[type="file"] {
  padding: var(--space-3);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(255,122,26,.55);
  box-shadow: 0 0 0 4px rgba(255,122,26,.12);
}

.check-row {
  display: flex;
  gap: var(--gap-sm);
  align-items: center;
}

/* ==================================================
   AVATARS / ICONS
================================================== */

.avatar {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #20160d, #6b3d16);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  overflow: hidden;
  flex: 0 0 42px;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-lg {
  width: 76px;
  height: 76px;
  font-size: 26px;
}

.profile-card .avatar {
  width: 76px;
  height: 76px;
  font-size: 26px;
  margin-inline: auto;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #fff3df;
  flex: 0 0 auto;
}

/* ==================================================
   DATA / DASHBOARD ELEMENTS
================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
}

.kpi {
  padding: var(--space-5);
  min-height: 150px;
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-sm);
  align-items: center;
  margin-bottom: var(--space-6);
}

.kpi-number {
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.data-row {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-sm);
  padding: var(--space-3);
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: #fff;
}

.tool-row {
  display: flex;
  justify-content: space-between;
  gap: var(--gap-md);
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-line);
}

.tool-row:last-child {
  border-bottom: 0;
}

.action-row {
  display: flex;
  gap: var(--gap-sm);
  flex-wrap: wrap;
  margin-top: 16px;
  justify-content: center;
}

.progress-bar {
  height: 10px;
  background: #f1e4d6;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar > span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-2));
}

/* ==================================================
   REUSABLE PAGE SECTIONS
================================================== */

.hero-split {
  display: grid;
  gap: var(--gap-lg);
  align-items: center;
}

.profile-hero {
  display: grid;
  gap: var(--gap-lg);
  align-items: start;
}

.profile-card {
  text-align: center;
}

.profile-card h2 {
  margin-top: var(--space-3);
}

.sidebar-sticky {
  position: static;
  display: grid;
  gap: var(--gap-md);
}

.legal-card h2 {
  margin-top: var(--space-8);
}

/* ==================================================
   MOCKUP / DASHBOARD VISUAL COMPONENTS
================================================== */

.hero-visual {
  min-height: 420px;
  position: relative;
  overflow: hidden;
}

.mock-dashboard {
  display: grid;
  gap: var(--gap-md);
}

.score-panel {
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(255,176,0,.42), transparent 38%),
    linear-gradient(135deg, var(--color-dark), var(--color-dark-2));
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-dark);
}

.score-big {
  font-size: clamp(48px, 8vw, 86px);
  line-height: .9;
  letter-spacing: -0.08em;
  font-weight: 950;
}

.mini-card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
}

.stat-number {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 950;
}

.thread-card,
.suggestion-card,
.tool-card {
  padding: var(--space-6);
}

.thread-card {
  min-height: 180px;
  display: block;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
}

.thread-top {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  margin-bottom: var(--space-4);
  min-width: 0;
}

.thread-author {
  min-width: 0;
}

.thread-author-name {
  display: block;
  font-weight: 850;
  font-size: 14px;
  line-height: 1.15;
}

.thread-date {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.25;
  margin-top: 2px;
}

.thread-body {
  padding-left: 0;
}

.thread-body h3 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  font-weight: 850;
}

.thread-body .muted {
  font-size: 20px;
  line-height: 1.5;
  color: #4f463b;
  margin: 0;
}

.thread-body .card-actions {
  justify-content: flex-start;
  margin-top: var(--space-3);
}

.clickable-card {
  position: relative;
  cursor: pointer;
  transition: .22s ease;
}

.clickable-card:hover {
  transform: translateY(-2px);
}

/* Full card click layer */
.card-click-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

/* Only elevate INTERACTIVE elements */
.card-actions,
.card-actions * {
  position: relative;
  z-index: 2;
}

/* Allow avatar + title clicks too */
.thread-top a,
.thread-body a {
  position: relative;
  z-index: 2;
}

.fake-chart::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 28%;
  height: 46%;
  border-bottom: 8px solid var(--color-primary);
  border-radius: 50%;
  transform: rotate(-6deg);
  filter: drop-shadow(0 14px 18px rgba(255,122,26,.18));
}

.priority {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: var(--radius-pill);
  background: #fff3df;
  color: #a34800;
  font-weight: 950;
  font-size: 12px;
}

.priority.high {
  background: #eafff5;
  color: #087857;
}

.priority.urgent {
  background: #fff0f0;
  color: #b91c1c;
}

/* ==================================================
   RESPONSIVE
================================================== */

@media (min-width: 760px) {
  :root {
    --page-gutter: 24px;
    --section-y: var(--space-11);
  }

  .site-header {
    position: sticky;
    top: var(--space-2);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-split {
    grid-template-columns: 1.08fr .92fr;
  }

  .profile-hero,
  .layout-sidebar-main {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }

  .layout-main-sidebar {
    grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  }

  .page-head-row {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .sidebar-sticky {
    position: sticky;
    top: 110px;
  }
}

@media (min-width: 920px) {
  .hero-split {
    grid-template-columns: 1.03fr .97fr;
    gap: var(--gap-xl);
  }
}

@media (min-width: 1020px) {
  .site-nav {
    display: flex;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .grid-main-sidebar {
    grid-template-columns: minmax(0, 1fr) var(--wide-sidebar-width);
  }
}

@media (max-width: 620px) {

  .container {
    width: calc(100% - 20px);
  }

  .card,
  .thread-card,
  .gsc-thread-card,
  .premium-card {
    max-width: 100%;
    overflow: hidden;
  }

  .layout-column,
  .thread-body,
  .content-body,
  .gsc-thread-main-post,
  .gsc-thread-reply-content {
    min-width: 0;
    max-width: 100%;
  }

  .content-body,
  .content-body p,
  .thread-body,
  .thread-body p,
  .thread-body h1,
  .thread-body h2,
  .thread-body h3 {
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .thread-card {
    min-height: auto;
    padding: var(--space-4);
  }

  .thread-top {
    gap: var(--space-3);
    margin-bottom: var(--space-3);
  }

  .thread-top .avatar {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    flex: 0 0 34px;
  }

.thread-author-name {
  display:block;
  font-size:20px;
  font-weight:800;
  line-height:1.15;
}
.thread-date {
  font-size:16px;
  color:#777;
  line-height:1.3;
}

.thread-body h3 {
  font-size:22px;
  line-height:1.25;
}

.thread-body .muted {
  font-size:18px;
}

.thread-author-name {
  font-size:16px;
}

.thread-date {
  font-size:13px;
}

  .thread-body .card-actions {
    margin-top: var(--space-3);
    gap: 6px;
    justify-content: flex-start;
  }

  .thread-card .pill {
    font-size: 11px;
    padding: 5px 8px;
  }

  .site-header {
    border-radius: 24px;
  }

  .brand-text {
    max-width: 132px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hide-mobile {
    display: none !important;
  }

  .btn {
    width: 100%;
  }

  .header-actions .btn {
    width: auto;
  }

  .page-head-row .action-row .btn {
    width: 100%;
  }

  .section {
    padding-bottom: var(--space-10);
  }

  .tool-row,
  .data-row {
    align-items: flex-start;
  }

  .tool-row {
    flex-direction: column;
  }
}

/* ==================================================
   COMMUNITY THREAD VIEW
================================================== */

.gsc-thread {
  max-width: 920px;
}

.gsc-thread-card {
  display: grid;
  gap: var(--space-6);
}

.gsc-thread-main-post {
  display: grid;
  gap: var(--space-4);
}

.gsc-thread-post-title {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1;
  margin: var(--space-2) 0 0;
}

.gsc-thread-main-actions {
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--color-line);
}

.gsc-thread-replies {
  display: grid;
  gap: var(--space-5);
}

.gsc-thread-reply {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  min-width: 0;
}

.gsc-thread-reply.is-child-reply {
  grid-template-columns: 34px minmax(0, 1fr);
  margin-left: 74px;
  margin-top: -6px;
}

.gsc-thread-reply.is-child-reply .avatar {
  width: 34px;
  height: 34px;
}

.gsc-thread-reply.is-child-reply::before {
  display: none;
}

.gsc-thread-bubble {
  background: var(--color-bg-comments-replies);
  border: 1px solid rgba(255, 122, 26, 0.25);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  backdrop-filter: blur(20px);
}

.gsc-thread-bubble p {
  margin: 0;
}

.gsc-thread-bubble-head {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}

.gsc-thread-bubble-head a {
  text-decoration: none;
}

.gsc-thread-actions {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-2);
  color: var(--color-muted);
  font-weight: 900;
  font-size: 14px;
}

.gsc-thread-actions a {
  color: var(--color-muted);
  text-decoration: none;
}

.gsc-thread-action-btn {
  border: 0;
  background: transparent;
  color: var(--color-muted);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
}

.gsc-thread-action-btn:hover,
.gsc-thread-action-btn.is-liked,
.gsc-thread-actions a:hover {
  color: var(--color-primary);
}

.gsc-thread-reply-box {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-line);
  min-width: 0;
}

.gsc-thread-reply-input {
  min-height: auto;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: var(--color-muted);
  background: #fff;
}
.content-body {
  font-size: 20px;
  line-height: 1.75;
}

.content-body p {
  margin: 0 0 18px;
}

.content-body h1,
.content-body h2,
.content-body h3 {
  margin-top: 28px;
  margin-bottom: 16px;
}

.content-body ul,
.content-body ol {
  padding-left: 24px;
}

.content-body li {
  margin-bottom: 10px;
}
@media (max-width: 620px) {
  .gsc-thread-card {
    padding: var(--space-4);
  }

  .gsc-thread-reply.is-child-reply {
    margin-left: 38px;
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .gsc-thread-reply.is-child-reply .avatar {
    width: 32px;
    height: 32px;
  }

  .gsc-thread-actions {
    gap: var(--space-4);
  }
}

/* =========================================
   COMMUNITY WRITE BOX
========================================= */

.write-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.write-row .avatar {
  flex: 0 0 42px;
}

.write-box {
  flex: 1;
  display: flex;
  align-items: center;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  padding: 14px 18px;
  background: rgba(255,255,255,.82);
  color: var(--color-muted);
  text-decoration: none;
  transition: .2s ease;
}

.write-box:hover {
  border-color: rgba(255,122,26,.5);
  box-shadow: 0 0 0 4px rgba(255,122,26,.12);
}

.video-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.admin-nav {
  margin-bottom: 1.5rem;
}

.admin-nav .action-row {
  gap: .6rem;
  flex-wrap: wrap;
}

.article-banner-cta {
    margin-top: 20px;
}

.article-text-cta {
    margin-top: 28px;
}

@media (max-width: 759px) {
  .layout-main-sidebar,
  .layout-sidebar-main {
    display: block;
  }

  .layout-main-sidebar > *,
  .layout-sidebar-main > * {
    margin-bottom: var(--gap-lg);
  }

  .sidebar-sticky {
    position: static;
    top: auto;
  }

  .layout-main-sidebar,
  .layout-sidebar-main,
  .layout-column {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

}

.site-logo {
    height: 46px;
    width: auto;
    display: block;
}