@import url('colors_and_type.css');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-page);
  font-family: var(--font-sans);
  color: var(--fg-default);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* =========================================================================
   Header
   ========================================================================= */
.hc-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 253, 249, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border-default);
}
.hc-header-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 32px;
  padding: 14px 32px;
}
.hc-brand { display: flex; align-items: center; gap: 10px; }
.hc-brand img { height: 22px; width: auto; display: block; }
.hc-brand-name {
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--fg-default);
}
.hc-brand-divider { color: var(--fg-subtle); font-size: 14px; opacity: 0.6; }
.hc-brand-sub {
  font-size: 14px; color: var(--fg-muted); font-weight: 400;
  letter-spacing: -0.005em;
}
.hc-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.hc-nav-link {
  padding: 8px 12px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; color: var(--fg-default);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--dur-fast) var(--ease-out);
}
.hc-nav-link:hover { background: rgba(6, 23, 31, 0.04); }
.hc-nav-link.active { background: var(--bg-accent-soft); color: var(--c-malachyte); }
.hc-nav-link svg { width: 13px; height: 13px; color: var(--fg-subtle); }
.hc-nav-link:hover svg { color: var(--fg-muted); }
.hc-nav-divider { width: 1px; height: 20px; background: var(--border-default); margin: 0 8px; }
.hc-btn-ghost {
  padding: 8px 14px; border-radius: var(--r-pill); border: 1px solid var(--border-default);
  background: transparent; font: 500 13px var(--font-sans); color: var(--fg-default);
  cursor: pointer;
}
.hc-btn-ghost:hover { background: rgba(6, 23, 31, 0.04); }
.hc-btn-primary {
  padding: 8px 16px; border-radius: var(--r-pill); border: 0;
  background: var(--c-malachyte); color: #fff;
  font: 500 13px var(--font-sans); cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.hc-btn-primary:hover { background: #026e52; }

/* =========================================================================
   Hero
   ========================================================================= */
.hc-hero {
  position: relative; overflow: hidden;
  padding: 96px 32px 88px;
  background:
    radial-gradient(ellipse 1200px 480px at 50% -10%, rgba(173, 239, 155, 0.45), transparent 60%),
    linear-gradient(180deg, #F6FBF1 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-default);
}
.hc-hero-ovals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* Brand guide "Shapes – dos": stones TOUCH each other (closeness is the
   defining trait of the Malachyte mark) but never OVERLAP — edges kiss,
   no stone crosses into another. Varied scale, a direction of motion, and
   a left lean. Translucent so hero text stays legible. */
.stone-cluster { position: absolute; }
.stone { position: absolute; border-radius: 50%; transform: rotate(-14deg); }

/* Top-right cluster — bleeds off the corner, large → small, moving down-left.
   Stones are positioned tangent (touching, not overlapping). */
.hc-hero-ovals .cluster-tr { right: -90px; top: -160px; width: 560px; height: 540px; }
.hc-hero-ovals .cluster-tr .s-a { width: 285px; height: 400px; right: 40px;  top: 0;    background: var(--g-malachyte); opacity: 0.6; }
.hc-hero-ovals .cluster-tr .s-b { width: 170px; height: 245px; right: 311px; top: 152px; background: var(--g-lavender);  opacity: 0.58; }
.hc-hero-ovals .cluster-tr .s-c { width: 115px; height: 165px; right: 135px; top: 382px; background: var(--g-sunset);    opacity: 0.6; }

/* Bottom-left cluster — bleeds off the corner, large + medium, moving up-right */
.hc-hero-ovals .cluster-bl { left: -100px; bottom: -170px; width: 480px; height: 440px; }
.hc-hero-ovals .cluster-bl .s-d { width: 290px; height: 400px; left: 0;    bottom: 0;    background: var(--g-malachyte); opacity: 0.56; }
.hc-hero-ovals .cluster-bl .s-e { width: 160px; height: 230px; left: 288px; bottom: 120px; background: var(--g-lavender); opacity: 0.52; }

.hc-hero-inner {
  position: relative; max-width: 880px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 18px;
}
.hc-eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-malachyte);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; background: rgba(3, 131, 98, 0.08);
  border-radius: var(--r-pill);
}
.hc-eyebrow svg { width: 12px; height: 12px; }
.hc-hero h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--c-charcoal);
  text-wrap: balance;
}
.hc-hero h1 .hc-accent {
  background: var(--g-malachyte);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; font-weight: 500;
}
.hc-hero-sub {
  font-size: 18px; line-height: 1.5; color: var(--fg-muted);
  max-width: 560px; margin: 0; text-wrap: pretty;
}

/* hero search */
.hc-search {
  position: relative; width: 100%; max-width: 720px;
  margin-top: 16px;
}
.hc-search-input {
  width: 100%;
  height: 68px;
  padding: 0 140px 0 60px;
  background: #fff;
  border: 1px solid var(--border-default);
  border-radius: var(--r-pill);
  font: 400 17px var(--font-sans);
  color: var(--fg-default);
  outline: none;
  box-shadow: 0 14px 40px rgba(6, 23, 31, 0.06), 0 2px 8px rgba(6, 23, 31, 0.04);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.hc-search-input::placeholder { color: var(--fg-subtle); }
.hc-search-input:focus {
  border-color: var(--c-malachyte);
  box-shadow: 0 14px 40px rgba(6, 23, 31, 0.08), 0 0 0 4px rgba(3, 131, 98, 0.12);
}
.hc-search-icon {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  color: var(--fg-muted); pointer-events: none;
}
.hc-search-kbd {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 6px;
}
.hc-search-kbd kbd {
  font: 500 11px var(--font-mono); color: var(--fg-muted);
  background: var(--bg-sunken); border: 1px solid var(--border-default);
  padding: 4px 8px; border-radius: var(--r-xs);
}
.hc-search-go {
  background: var(--c-malachyte); color: #fff; border: 0;
  height: 44px; padding: 0 18px; border-radius: var(--r-pill);
  font: 500 13px var(--font-sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.hc-search-go:hover { background: #026e52; }

/* suggested chips */
.hc-suggested {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; margin-top: 6px;
}
.hc-suggested-label {
  font-size: 12px; color: var(--fg-subtle);
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 500; align-self: center; margin-right: 4px;
}
.hc-chip {
  font-size: 13px; padding: 6px 12px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border-default);
  color: var(--fg-default); cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.hc-chip:hover {
  background: #fff;
  border-color: var(--c-malachyte);
  color: var(--c-malachyte);
}

/* search dropdown */
.hc-search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  overflow: hidden; text-align: left;
  z-index: 20;
  max-height: 420px; overflow-y: auto;
}
.hc-search-results.hidden { display: none; }
.hc-search-section-label {
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-muted);
  padding: 14px 20px 6px;
}
.hc-search-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.hc-search-item:hover, .hc-search-item.focused { background: rgba(240, 235, 230, 0.6); }
.hc-search-item-ico {
  width: 32px; height: 32px; border-radius: var(--r-md);
  background: var(--bg-accent-soft); color: var(--c-malachyte);
  display: grid; place-items: center; flex-shrink: 0;
}
.hc-search-item-ico svg { width: 16px; height: 16px; }
.hc-search-item-body { flex: 1; min-width: 0; }
.hc-search-item-title { font-size: 14px; font-weight: 500; color: var(--fg-default); }
.hc-search-item-meta { font-size: 12px; color: var(--fg-muted); margin-top: 1px; }
.hc-search-item-arrow { color: var(--fg-subtle); flex-shrink: 0; }
.hc-search-empty { padding: 30px 20px; text-align: center; color: var(--fg-muted); font-size: 13px; }

/* =========================================================================
   Sections
   ========================================================================= */
.hc-container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.hc-section { padding: 72px 0; }
.hc-section.tight { padding: 56px 0; }
.hc-section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 28px; gap: 24px; }
.hc-section-head h2 {
  font-size: 28px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.01em;
  color: var(--fg-default); margin: 0;
}
.hc-section-head p {
  font-size: 15px; color: var(--fg-muted);
  margin: 6px 0 0; max-width: 480px;
}
.hc-section-link {
  font-size: 13px; font-weight: 500; color: var(--c-malachyte);
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.hc-section-link:hover { text-decoration: underline; }

/* =========================================================================
   Primary destinations (3 big cards)
   ========================================================================= */
.hc-dest-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.hc-dest {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--r-xl); padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; color: inherit;
  transition: all var(--dur-normal) var(--ease-out);
  min-height: 240px;
}
.hc-dest:hover {
  border-color: var(--c-malachyte);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.hc-dest-head {
  display: flex; align-items: center; justify-content: space-between;
}
.hc-dest-ico {
  width: 44px; height: 44px; border-radius: var(--r-md);
  display: grid; place-items: center;
  background: var(--bg-accent-soft); color: var(--c-malachyte);
}
.hc-dest.lavender .hc-dest-ico { background: rgba(167, 160, 235, 0.15); color: #6E64D4; }
.hc-dest.sunset .hc-dest-ico { background: rgba(216, 146, 81, 0.15); color: #A86A2C; }
.hc-dest-ico svg { width: 22px; height: 22px; }
.hc-dest-tag {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-muted);
}
.hc-dest-ext {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--fg-muted); font-weight: 500;
}
.hc-dest-ext svg { width: 12px; height: 12px; }
.hc-dest h3 {
  font-size: 22px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--fg-default); margin: 8px 0 0;
}
.hc-dest p {
  font-size: 14px; color: var(--fg-muted);
  line-height: 1.5; margin: 0;
}
.hc-dest-foot {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border-default);
  font-size: 12px; color: var(--fg-muted);
}
.hc-dest-foot strong { font-weight: 500; color: var(--fg-default); }
.hc-dest-cta {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--c-malachyte); font-weight: 500;
}
.hc-dest-cta svg { width: 14px; height: 14px; transition: transform var(--dur-fast) var(--ease-out); }
.hc-dest:hover .hc-dest-cta svg { transform: translateX(2px); }

/* status indicator */
.hc-status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-malachyte);
  box-shadow: 0 0 0 4px rgba(3, 131, 98, 0.18);
  display: inline-block;
}
.hc-status-pulse { animation: hc-pulse 2s ease-in-out infinite; }
@keyframes hc-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(3, 131, 98, 0.18); }
  50%      { box-shadow: 0 0 0 7px rgba(3, 131, 98, 0.05); }
}

/* =========================================================================
   Topics grid
   ========================================================================= */
.hc-topics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
}
.hc-topic {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--r-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease-out);
}
.hc-topic:hover {
  border-color: var(--c-malachyte);
  background: rgba(218, 254, 208, 0.18);
}
.hc-topic-ico {
  width: 40px; height: 40px; border-radius: var(--r-md);
  display: grid; place-items: center;
  margin-bottom: 4px;
  transition: transform var(--dur-fast) var(--ease-out);
}
/* Two-tone colored icon tiles — soft tint background + saturated stroke,
   cycling through the brand palette like the destination cards above. */
.hc-topic:nth-child(3n+1) .hc-topic-ico { background: rgba(3, 131, 98, 0.12);  color: var(--c-malachyte); }
.hc-topic:nth-child(3n+2) .hc-topic-ico { background: rgba(167, 160, 235, 0.18); color: #6E64D4; }
.hc-topic:nth-child(3n+3) .hc-topic-ico { background: rgba(216, 146, 81, 0.16); color: #A86A2C; }
.hc-topic:hover .hc-topic-ico { transform: scale(1.06); }
.hc-topic-ico svg { width: 19px; height: 19px; }
.hc-topic h4 {
  font-size: 15px; font-weight: 500; color: var(--fg-default);
  margin: 0;
}
.hc-topic-meta {
  font-size: 12px; color: var(--fg-muted);
}

/* =========================================================================
   FAQ accordion
   ========================================================================= */
.hc-faq {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--r-xl); overflow: hidden;
}
.hc-faq-item {
  border-bottom: 1px solid var(--border-default);
}
.hc-faq-item:last-child { border-bottom: 0; }
.hc-faq-q {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; padding: 20px 24px; cursor: pointer;
  font-size: 16px; font-weight: 500; color: var(--fg-default);
  transition: background var(--dur-fast) var(--ease-out);
}
.hc-faq-q::-webkit-details-marker { display: none; }
.hc-faq-q:hover { background: rgba(240, 235, 230, 0.5); }
.hc-faq-caret {
  flex-shrink: 0; color: var(--fg-muted);
  transition: transform var(--dur-normal) var(--ease-out);
}
.hc-faq-item[open] > .hc-faq-q { background: rgba(218, 254, 208, 0.18); }
.hc-faq-item[open] > .hc-faq-q .hc-faq-caret {
  transform: rotate(180deg); color: var(--c-malachyte);
}
.hc-faq-a {
  padding: 0 24px 20px;
  animation: hc-faq-reveal var(--dur-normal) var(--ease-out);
}
.hc-faq-a p {
  margin: 0; max-width: 760px;
  font-size: 15px; line-height: 1.6; color: var(--fg-muted);
}
.hc-faq-a strong { color: var(--fg-default); font-weight: 500; }
@keyframes hc-faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hc-faq-caret { transition: none; }
  .hc-faq-a { animation: none; }
}

/* =========================================================================
   Popular articles
   ========================================================================= */
.hc-popular {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--r-xl); overflow: hidden;
}
.hc-popular-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center; gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-default);
  transition: background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.hc-popular-row:last-child { border-bottom: 0; }
.hc-popular-row:hover { background: rgba(240, 235, 230, 0.5); }
.hc-popular-num {
  font: 500 14px var(--font-mono); color: var(--fg-subtle);
  letter-spacing: 0.04em;
}
.hc-popular-title {
  font-size: 15px; font-weight: 500; color: var(--fg-default);
  display: flex; align-items: center; gap: 10px;
}
.hc-popular-cat {
  font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c-malachyte);
  padding: 3px 8px; border-radius: var(--r-xs);
  background: var(--bg-accent-soft);
}
.hc-popular-meta {
  font-size: 12px; color: var(--fg-muted);
  display: flex; align-items: center; gap: 14px;
}
.hc-popular-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hc-popular-meta svg { width: 12px; height: 12px; }
.hc-popular-arrow {
  display: none;
  color: var(--fg-subtle);
  transition: transform var(--dur-fast) var(--ease-out);
}
.hc-popular-row:hover .hc-popular-arrow {
  transform: translateX(2px); color: var(--c-malachyte);
}

/* =========================================================================
   Contact band
   ========================================================================= */
.hc-contact {
  position: relative; overflow: hidden;
  background: var(--c-charcoal); color: var(--c-off-white);
  border-radius: var(--r-xl); padding: 44px 48px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center;
}
.hc-contact-ovals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
/* Touching (not overlapping) cluster on the dark band — varied scale. */
.hc-contact-ovals .stone-cluster { right: -60px; top: -110px; width: 340px; height: 340px; }
.hc-contact-ovals .stone { position: absolute; border-radius: 50%; transform: rotate(-14deg); }
.hc-contact-ovals .s-a { width: 200px; height: 285px; right: 20px;  top: 0;    background: var(--g-malachyte); opacity: 0.6; }
.hc-contact-ovals .s-b { width: 120px; height: 170px; right: 215px; top: 80px; background: var(--g-lavender);  opacity: 0.5; }
.hc-contact-ovals .s-c { width: 80px;  height: 115px; right: 70px;  top: 268px; background: var(--g-sunset);   opacity: 0.45; }
.hc-contact-body { position: relative; }
.hc-contact h3 {
  font-size: 28px; font-weight: 500; line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 0 10px;
  color: var(--c-off-white);
}
.hc-contact p {
  font-size: 15px; color: rgba(250, 253, 249, 0.75);
  margin: 0; max-width: 420px; line-height: 1.55;
}
.hc-contact-actions {
  position: relative;
  display: flex; flex-direction: column; gap: 8px;
}
.hc-contact-card {
  background: rgba(250, 253, 249, 0.06);
  border: 1px solid rgba(250, 253, 249, 0.12);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  color: var(--c-off-white);
  transition: background var(--dur-fast) var(--ease-out);
  cursor: pointer;
}
.hc-contact-card:hover { background: rgba(250, 253, 249, 0.10); }
.hc-contact-card-ico {
  width: 32px; height: 32px; border-radius: var(--r-md);
  background: rgba(173, 239, 155, 0.15); color: var(--c-lime-hivis);
  display: grid; place-items: center; flex-shrink: 0;
}
.hc-contact-card-ico svg { width: 16px; height: 16px; }
.hc-contact-card-body { flex: 1; }
.hc-contact-card-title { font-size: 14px; font-weight: 500; }
.hc-contact-card-meta { font-size: 12px; color: rgba(250, 253, 249, 0.6); margin-top: 1px; }
.hc-contact-card-arrow { color: rgba(250, 253, 249, 0.4); }

/* =========================================================================
   Footer
   ========================================================================= */
.hc-footer {
  border-top: 1px solid var(--border-default);
  padding: 48px 0 36px;
  margin-top: 24px;
}
.hc-footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px;
}
.hc-footer-brand { display: flex; flex-direction: column; gap: 14px; }
.hc-footer-brand .hc-brand img { height: 20px; }
.hc-footer-tag {
  font-size: 13px; color: var(--fg-muted); line-height: 1.5; max-width: 280px;
}
.hc-footer-col h5 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-default);
  margin: 0 0 12px;
}
.hc-footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hc-footer-col li a {
  font-size: 13px; color: var(--fg-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.hc-footer-col li a:hover { color: var(--c-malachyte); }
.hc-footer-bottom {
  max-width: 1180px; margin: 32px auto 0; padding: 18px 32px 0;
  border-top: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--fg-subtle);
}
.hc-footer-bottom-r { display: flex; align-items: center; gap: 16px; }
.hc-footer-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--fg-muted);
}

/* =========================================================================
   Release notes page
   ========================================================================= */
.rn-hero {
  padding: 56px 32px 36px;
  background: linear-gradient(180deg, #F6FBF1 0%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-default);
  position: relative; overflow: hidden;
}
.rn-hero-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
}
.rn-crumbs {
  font-size: 12px; color: var(--fg-muted);
  display: flex; align-items: center; gap: 6px;
}
.rn-crumbs a { color: var(--fg-muted); }
.rn-crumbs a:hover { color: var(--c-malachyte); }
.rn-crumbs .sep { color: var(--fg-subtle); }
.rn-crumbs .current { color: var(--fg-default); font-weight: 500; }
.rn-hero h1 {
  font-size: 40px; font-weight: 500;
  line-height: 1.1; letter-spacing: -0.02em; margin: 0;
  color: var(--c-charcoal);
}
.rn-hero-sub {
  font-size: 16px; color: var(--fg-muted);
  max-width: 620px; margin: 0;
}
.rn-hero-meta {
  display: flex; align-items: center; gap: 16px; margin-top: 8px;
  flex-wrap: wrap;
}
.rn-sync-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border-default);
  font-size: 12px; color: var(--fg-default); font-weight: 500;
}
.rn-sync-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-malachyte);
  box-shadow: 0 0 0 3px rgba(3,131,98,0.15);
}
.rn-sync-badge svg { width: 12px; height: 12px; color: var(--fg-muted); }
.rn-rss {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--fg-muted); font-weight: 500;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: transparent; border: 1px solid var(--border-default);
  cursor: pointer;
}
.rn-rss:hover { color: var(--c-malachyte); border-color: var(--c-malachyte); }
.rn-rss svg { width: 12px; height: 12px; }

/* layout */
.rn-layout {
  max-width: 1180px; margin: 0 auto;
  padding: 36px 32px 80px;
  display: grid; grid-template-columns: 240px 1fr;
  gap: 40px;
  align-items: start;
}
.rn-filters { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 24px; }
.rn-filter-group h5 {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-default);
  margin: 0 0 8px;
}
.rn-filter-group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rn-filter-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 7px 10px;
  background: transparent; border: 0;
  border-radius: var(--r-md);
  font: 400 13px var(--font-sans); color: var(--fg-default);
  text-align: left; cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.rn-filter-btn:hover { background: rgba(240, 235, 230, 0.6); }
.rn-filter-btn.active {
  background: var(--bg-accent-soft); color: var(--c-malachyte);
  font-weight: 500;
}
.rn-filter-btn .count {
  font: 400 11px var(--font-mono); color: var(--fg-muted);
}
.rn-filter-btn.active .count { color: var(--c-malachyte); }

.rn-filter-search {
  position: relative;
}
.rn-filter-search input {
  width: 100%; height: 36px;
  padding: 0 12px 0 32px;
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--r-md);
  font: 400 13px var(--font-sans); color: var(--fg-default);
  outline: none;
}
.rn-filter-search input:focus { border-color: var(--c-malachyte); box-shadow: 0 0 0 3px rgba(3,131,98,0.12); }
.rn-filter-search svg {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: var(--fg-muted);
  width: 14px; height: 14px;
}

/* releases list */
.rn-list { display: flex; flex-direction: column; gap: 18px; }
.rn-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 4px;
}
.rn-toolbar-l {
  font-size: 13px; color: var(--fg-muted);
}
.rn-toolbar-l strong { color: var(--fg-default); font-weight: 500; }
.rn-toolbar-r { display: flex; align-items: center; gap: 6px; }
.rn-sort {
  font: 500 12px var(--font-sans); color: var(--fg-default);
  padding: 6px 10px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--border-default);
  cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.rn-sort svg { width: 12px; height: 12px; }

.rn-release {
  background: #fff; border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  display: grid; grid-template-columns: 200px 1fr;
  gap: 0;
}
.rn-release-side {
  padding: 22px 20px;
  border-right: 1px solid var(--border-default);
  display: flex; flex-direction: column; gap: 14px;
  background: rgba(244, 242, 236, 0.4);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
}
.rn-release-date {
  font-size: 12px; color: var(--fg-muted); font-weight: 500;
  letter-spacing: 0.02em;
}
.rn-release-author {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg-default);
}
.rn-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-malachyte); color: #fff;
  display: grid; place-items: center;
  font: 500 10px var(--font-sans); flex-shrink: 0;
}
.rn-avatar.lav { background: var(--c-lavender); }
.rn-avatar.sun { background: var(--c-sunset); }
.rn-avatar.cha { background: var(--c-charcoal); color: var(--c-lime-hivis); }
.rn-release-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--border-default);
  font: 500 11px var(--font-mono); color: var(--fg-default);
  width: fit-content;
}
.rn-release-tag svg { width: 11px; height: 11px; color: var(--fg-muted); }
.rn-release-tag.commit { background: var(--bg-sunken); }
.rn-release-compare {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--fg-muted); font-weight: 500;
  cursor: pointer;
}
.rn-release-compare:hover { color: var(--c-malachyte); }
.rn-release-compare svg { width: 11px; height: 11px; }

.rn-release-main { padding: 22px 24px 24px; }
.rn-release-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; margin-bottom: 16px;
}
.rn-release-titleblock {
  display: flex; flex-direction: column; gap: 6px;
}
.rn-release-repo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--fg-muted); font-weight: 500;
}
.rn-release-repo svg { width: 13px; height: 13px; }
.rn-release-repo a { color: var(--c-malachyte); }
.rn-release-repo a:hover { text-decoration: underline; }
.rn-release-title {
  font-size: 24px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--fg-default); margin: 0;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
}
.rn-badge {
  font: 500 11px var(--font-sans); padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(3, 131, 98, 0.3);
  background: var(--bg-accent-soft); color: var(--c-malachyte);
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: 0;
}
.rn-badge.major { background: rgba(167, 160, 235, 0.15); color: #5750C0; border-color: rgba(167, 160, 235, 0.4); }
.rn-badge.minor { background: rgba(3, 131, 98, 0.1); color: var(--c-malachyte); border-color: rgba(3, 131, 98, 0.3); }
.rn-badge.patch { background: rgba(216, 146, 81, 0.12); color: #A86A2C; border-color: rgba(216, 146, 81, 0.35); }
.rn-badge.breaking { background: rgba(193, 69, 69, 0.1); color: var(--st-danger); border-color: rgba(193, 69, 69, 0.3); }

.rn-release-actions { display: flex; gap: 6px; }
.rn-icon-btn {
  width: 30px; height: 30px; border-radius: var(--r-md);
  background: transparent; border: 1px solid var(--border-default);
  color: var(--fg-muted); cursor: pointer;
  display: grid; place-items: center;
}
.rn-icon-btn:hover { background: rgba(240, 235, 230, 0.6); color: var(--fg-default); }
.rn-icon-btn svg { width: 14px; height: 14px; }

.rn-section-label {
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--fg-muted);
  margin: 18px 0 10px;
}
.rn-section-label:first-child { margin-top: 0; }

.rn-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rn-change {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.5;
  padding: 6px 0;
}
.rn-change-marker {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c-malachyte);
  margin-top: 8px; flex-shrink: 0;
}
.rn-change.fix .rn-change-marker { background: var(--st-warning); }
.rn-change.breaking .rn-change-marker { background: var(--st-danger); }
.rn-change.docs .rn-change-marker { background: var(--c-lavender); }
.rn-change-body { flex: 1; color: var(--fg-default); }
.rn-change-body a { color: var(--c-malachyte); font-weight: 500; }
.rn-change-body a:hover { text-decoration: underline; }
.rn-change-body code, .rn-change-body .ticket {
  font: 500 12px var(--font-mono);
  background: var(--bg-sunken);
  padding: 1px 6px; border-radius: var(--r-xs);
  color: var(--c-charcoal);
}
.rn-change-body .pr {
  font: 500 12px var(--font-mono);
  color: var(--fg-muted);
}
.rn-change-mention {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--c-malachyte); font-weight: 500;
}

.rn-contributors {
  display: flex; align-items: center; gap: 10px;
  padding-top: 14px; margin-top: 18px;
  border-top: 1px solid var(--border-default);
}
.rn-contributors-label {
  font-size: 12px; color: var(--fg-muted);
}
.rn-contributors-avatars {
  display: flex; align-items: center;
}
.rn-contributors-avatars .rn-avatar {
  width: 24px; height: 24px; font-size: 10px;
  border: 2px solid #fff;
  margin-left: -6px;
}
.rn-contributors-avatars .rn-avatar:first-child { margin-left: 0; }
.rn-changelog-link {
  margin-left: auto;
  font-size: 12px; font-weight: 500; color: var(--c-malachyte);
  display: inline-flex; align-items: center; gap: 4px;
}
.rn-changelog-link:hover { text-decoration: underline; }
.rn-changelog-link svg { width: 12px; height: 12px; }

.rn-empty {
  background: #fff; border: 1px dashed var(--border-default);
  border-radius: var(--r-xl); padding: 60px 32px;
  text-align: center; color: var(--fg-muted);
}
.rn-empty h4 { font-size: 16px; color: var(--fg-default); margin: 0 0 6px; font-weight: 500; }

/* subscribe banner */
.rn-subscribe {
  background: var(--c-charcoal); color: var(--c-off-white);
  border-radius: var(--r-xl); padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
  margin-top: 18px;
  position: relative; overflow: hidden;
}
.rn-subscribe-ico {
  width: 40px; height: 40px; border-radius: var(--r-md);
  background: rgba(173, 239, 155, 0.15); color: var(--c-lime-hivis);
  display: grid; place-items: center; flex-shrink: 0;
}
.rn-subscribe-ico svg { width: 18px; height: 18px; }
.rn-subscribe-body { flex: 1; }
.rn-subscribe-title { font-size: 15px; font-weight: 500; color: var(--c-off-white); }
.rn-subscribe-sub { font-size: 13px; color: rgba(250, 253, 249, 0.7); margin-top: 2px; }
.rn-subscribe-form { display: flex; gap: 6px; }
.rn-subscribe-form input {
  width: 240px; height: 38px;
  padding: 0 14px; border-radius: var(--r-pill);
  background: rgba(250, 253, 249, 0.08); color: var(--c-off-white);
  border: 1px solid rgba(250, 253, 249, 0.18);
  font: 400 13px var(--font-sans);
  outline: none;
}
.rn-subscribe-form input::placeholder { color: rgba(250, 253, 249, 0.45); }
.rn-subscribe-form input:focus { border-color: var(--c-lime-hivis); background: rgba(250, 253, 249, 0.12); }
.rn-subscribe-form button {
  height: 38px; padding: 0 18px; border-radius: var(--r-pill);
  background: var(--c-lime-hivis); color: var(--c-charcoal);
  border: 0; font: 500 13px var(--font-sans); cursor: pointer;
}
.rn-subscribe-form button:hover { background: #97e183; }

/* roadmap callout */
.rn-callout {
  background: rgba(167, 160, 235, 0.1);
  border: 1px dashed rgba(167, 160, 235, 0.5);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.rn-callout-ico {
  width: 30px; height: 30px; border-radius: var(--r-md);
  background: rgba(167, 160, 235, 0.2); color: #5750C0;
  display: grid; place-items: center; flex-shrink: 0;
}
.rn-callout-ico svg { width: 14px; height: 14px; }
.rn-callout-body { flex: 1; font-size: 13px; line-height: 1.55; color: var(--fg-default); }
.rn-callout-body strong { font-weight: 500; }
.rn-callout-body code {
  font: 500 12px var(--font-mono);
  background: rgba(167, 160, 235, 0.18);
  padding: 1px 6px; border-radius: var(--r-xs);
}

/* =========================================================================
   Mobile (rough)
   ========================================================================= */
@media (max-width: 900px) {
  .hc-dest-grid, .hc-topics { grid-template-columns: 1fr 1fr; }
  .hc-nav { display: none; }
  .hc-hero { padding: 56px 20px; }
  .hc-search-input { padding: 0 110px 0 50px; height: 60px; font-size: 15px; }
  .hc-contact { grid-template-columns: 1fr; padding: 32px 24px; }
  .hc-footer-inner { grid-template-columns: 1fr 1fr; }
  .rn-layout { grid-template-columns: 1fr; }
  .rn-filters { position: static; }
  .rn-release { grid-template-columns: 1fr; }
  .rn-release-side { border-right: 0; border-bottom: 1px solid var(--border-default); border-radius: var(--r-xl) var(--r-xl) 0 0; }
}

/* =========================================================================
   ADA / WCAG 2.1 AA COMPLIANCE LAYER
   -------------------------------------------------------------------------
   Appended last so it overrides earlier rules at equal specificity.
   Goal: every piece of text clears 4.5:1 (normal) / 3:1 (large ≥24px or
   ≥18.66px bold), interactive elements have a visible keyboard focus state,
   and inline prose links don't rely on color alone. Stays on-brand by using
   the kit's own documented "legible-on-light" green (--c-malachyte-dark).
   ========================================================================= */

:root {
  /* #8A9399 was ~3.1:1 on the off-white canvas (fails AA for body text).
     Nudge subtle text darker to ~4.7:1 while keeping it below --fg-muted
     so the visual hierarchy survives. Decorative-only uses are unaffected. */
  --fg-subtle: #656E74;
  /* Accessible green for small text/links on light surfaces (~7.5:1). */
  --fg-accent-aa: var(--c-malachyte-dark);
}

/* --- Small green TEXT on light → use the legible dark green -------------- */
.hc-nav-link.active,
.hc-section-link,
.hc-dest-cta,
.hc-dest-ext,                 /* external-url labels */
.hc-popular-cat,
.hc-popular-row:hover .hc-popular-arrow,
.hc-footer-col li a:hover,
.hc-footer-status,
.rn-crumbs a:hover,
.rn-release-repo a,
.rn-change-mention,
.rn-change-body a,
.rn-changelog-link,
.rn-filter-btn.active,
.rn-filter-btn.active .count,
.rn-rss:hover,
.hc-chip:hover,
.hc-search-empty a {
  color: var(--fg-accent-aa);
}
.hc-nav-link.active svg,
.rn-filter-btn.active { /* keep soft-green active background, dark text */ }

/* --- Eyebrow / accent green text blocks --------------------------------- */
.hc-eyebrow { color: var(--fg-accent-aa); }

/* --- White text on green: darken the green so 13px clears 4.5:1 --------- */
.hc-search-go { background: #027053; }
.hc-search-go:hover { background: #015C44; }
.hc-btn-primary { background: #027053; }
.hc-btn-primary:hover { background: #015C44; }

/* --- Gradient heading accent: light lime stop is invisible on off-white.
   Use an all-green gradient (both stops ≥3:1 as large text) so the
   signature gradient survives but stays legible. ------------------------- */
.hc-hero h1 .hc-accent {
  background: linear-gradient(135deg, #038362 0%, #2D5843 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* --- Badge text colors at/under the line → darken to ≥4.5:1 ------------- */
.rn-badge { color: var(--fg-accent-aa); border-color: rgba(45, 88, 67, 0.3); }
.rn-badge.minor { color: var(--fg-accent-aa); border-color: rgba(45, 88, 67, 0.3); }
.rn-badge.major { color: #4A41B0; border-color: rgba(167, 160, 235, 0.45); }
.rn-badge.patch { color: #8A571F; border-color: rgba(216, 146, 81, 0.45); }
.rn-badge.breaking { color: #A83434; border-color: rgba(193, 69, 69, 0.4); }

/* --- Inline prose links: add a non-color cue (underline) per WCAG 1.4.1 -- */
.rn-change-body a,
.hc-search-empty a,
.rn-subscribe-sub a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

/* --- Visible keyboard focus on every interactive element (WCAG 2.4.7) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--c-malachyte-dark);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
/* On the charcoal contact band + subscribe banner, use the hi-vis lime ring
   so focus stays visible against the dark surface. */
.hc-contact a:focus-visible,
.rn-subscribe a:focus-visible,
.rn-subscribe button:focus-visible,
.rn-subscribe input:focus-visible {
  outline-color: var(--c-lime-hivis);
}

/* --- Placeholder text contrast (now ≥4.5:1 via darkened subtle) --------- */
.hc-search-input::placeholder,
.rn-filter-search input::placeholder { color: var(--fg-subtle); }

/* --- Dark-surface muted text: lift the faintest tier to ≥4.5:1 ---------- */
.hc-contact-card-meta,
.rn-subscribe-sub,
.hc-contact p { color: rgba(250, 253, 249, 0.82); }

/* --- Respect reduced motion for the pulsing status dot ------------------ */
@media (prefers-reduced-motion: reduce) {
  .hc-status-pulse { animation: none; }
}
