:root {
  --forest: #17362a;
  --forest-deep: #0d251c;
  --forest-soft: #294b3c;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --ink: #20231f;
  --muted: #6a7069;
  --line: #e4dfd2;
  --copper: #b9653b;
  --sage: #dce6d8;
  --sidebar: 292px;
  --header: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 14px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.help-header { position: fixed; inset: 0 0 auto; z-index: 30; height: var(--header); display: grid; grid-template-columns: var(--sidebar) minmax(260px, 580px) 1fr; align-items: center; gap: 36px; padding: 0 28px; color: white; background: var(--forest); border-bottom: 1px solid rgba(255,255,255,.12); }
.help-brand { display: flex; align-items: center; gap: 12px; width: max-content; }
.help-brand > span:last-child { display: flex; flex-direction: column; line-height: 1; }
.help-brand > img { display: block; width: 42px; height: 42px; object-fit: contain; }
.help-brand small { margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: .2em; opacity: .68; }
.help-brand strong { font-family: Fraunces, serif; font-size: 22px; font-weight: 680; }
.header-search { position: relative; display: flex; align-items: center; height: 44px; color: #38433d; background: #fff; border-radius: 7px; box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.header-search > span { margin-left: 16px; font-size: 23px; }
.header-search input { width: 100%; height: 100%; padding: 0 14px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.header-search:focus-within { box-shadow: 0 0 0 3px rgba(229,196,141,.4), 0 8px 28px rgba(0,0,0,.12); }
.header-search kbd { margin-right: 11px; padding: 4px 7px; color: #7b817d; background: #f1f1ed; border: 1px solid #deded8; border-radius: 5px; font-size: 11px; }
.header-links { justify-self: end; display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 600; }
.header-links > a:first-child { opacity: .75; }
.header-links a:hover { opacity: 1; }
.language-switch { display: grid; width: 34px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; letter-spacing: .08em; }
.open-designer { padding: 11px 15px; color: var(--forest-deep); background: #eadfca; border-radius: 5px; }
.mobile-menu { display: none; border: 0; background: transparent; }
.mobile-language { display: none; }

.help-layout { min-height: 100vh; padding-top: var(--header); }
.help-sidebar { position: fixed; inset: var(--header) auto 0 0; z-index: 20; width: var(--sidebar); display: flex; flex-direction: column; padding: 26px 18px 20px; background: #f2eee3; border-right: 1px solid var(--line); overflow-y: auto; }
.help-sidebar nav { flex: 1; }
.help-sidebar a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: #555c56; border-radius: 6px; font-size: 13px; line-height: 1.35; transition: .18s ease; }
.help-sidebar a span { width: 18px; color: #8a8f89; text-align: center; }
.help-sidebar a:hover { color: var(--forest); background: rgba(255,255,255,.62); transform: translateX(2px); }
.help-sidebar a.active { color: var(--forest-deep); background: white; box-shadow: 0 1px 0 rgba(23,54,42,.05), 0 5px 20px rgba(23,54,42,.05); font-weight: 700; }
.sidebar-home { margin-bottom: 22px; }
.sidebar-group { margin: 0 0 22px; }
.sidebar-group h2 { margin: 0 12px 7px; color: #858980; font-size: 10px; letter-spacing: .13em; text-transform: uppercase; }
.sidebar-support { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 13px; background: var(--sage); border-radius: 8px; }
.sidebar-support > span { width: 30px; height: 30px; display: grid; place-items: center; color: white; background: var(--forest); border-radius: 50%; font: 680 16px Fraunces, serif; }
.sidebar-support div { display: flex; flex-direction: column; font-size: 11px; }
.sidebar-support a { padding: 2px 0 0; color: var(--forest); font-size: 11px; font-weight: 700; }

.help-main { min-height: calc(100vh - var(--header)); margin-left: var(--sidebar); }
.help-hero { position: relative; min-height: 430px; display: grid; grid-template-columns: minmax(0, 670px) 1fr; align-items: center; gap: 70px; padding: 66px clamp(42px, 6vw, 104px); color: white; background: var(--forest-deep); overflow: hidden; }
.help-hero::after { content: ""; position: absolute; width: 550px; height: 550px; right: -170px; top: -120px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.015); }
.hero-grain { position: absolute; inset: 0; opacity: .18; background-image: repeating-radial-gradient(ellipse at 20% 100%, transparent 0 8px, rgba(255,255,255,.12) 9px, transparent 10px 17px); background-size: 220px 130px; mix-blend-mode: soft-light; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { margin: 0 0 12px; color: var(--copper); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero-copy .eyebrow { color: #e3ba8d; }
.hero-copy .eyebrow span { display: inline-block; width: 18px; height: 1px; margin: 0 7px 3px 0; background: currentColor; }
.hero-copy h1 { max-width: 680px; margin: 0; font: 680 clamp(42px, 5vw, 68px)/.98 Fraunces, serif; letter-spacing: -.04em; }
.hero-copy h1 em { color: #dfb072; font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin: 20px 0 25px; color: #c9d2cc; font-size: 17px; line-height: 1.65; }
.hero-search { position: relative; display: flex; max-width: 620px; height: 58px; align-items: center; color: var(--ink); background: white; border-radius: 7px; box-shadow: 0 15px 40px rgba(0,0,0,.2); }
.hero-search > span { margin-left: 20px; font-size: 27px; color: var(--forest); }
.hero-search input { min-width: 0; flex: 1; height: 100%; padding: 0 16px; border: 0; outline: 0; background: transparent; }
.hero-search > button { height: 42px; margin-right: 8px; padding: 0 20px; color: white; background: var(--copper); border: 0; border-radius: 5px; font-weight: 700; cursor: pointer; }
.popular-searches { display: flex; gap: 8px; align-items: center; margin-top: 14px; color: #84998d; font-size: 11px; }
.popular-searches button { padding: 3px 8px; color: #cdd7d1; background: transparent; border: 1px solid rgba(255,255,255,.17); border-radius: 20px; font-size: 11px; cursor: pointer; }
.hero-joinery { position: relative; z-index: 1; width: 310px; height: 260px; justify-self: center; transform: rotate(-6deg); }
.wood-piece { position: absolute; width: 180px; height: 70px; border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), 0 20px 45px rgba(0,0,0,.25); }
.wood-piece::after { content: ""; position: absolute; inset: 0; opacity: .35; background: repeating-radial-gradient(ellipse at left, transparent 0 8px, rgba(60,29,12,.45) 9px, transparent 10px 16px); }
.piece-a { left: 18px; top: 32px; background: #c9975d; transform: rotate(45deg); clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%, 20% 50%); }
.piece-b { right: 8px; top: 32px; background: #6d3d27; transform: rotate(-45deg); clip-path: polygon(20% 0, 100% 0, 80% 50%, 100% 100%, 20% 100%, 0 50%); }
.piece-c { left: 65px; bottom: 18px; background: #e0b779; transform: rotate(45deg); clip-path: polygon(0 0, 80% 0, 100% 50%, 80% 100%, 0 100%, 20% 50%); }
.measure-line { position: absolute; color: rgba(255,255,255,.56); font-size: 10px; letter-spacing: .1em; }
.measure-x { left: 58px; bottom: -8px; width: 190px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.36); text-align: center; }
.measure-y { right: -18px; top: 45px; height: 160px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.36); writing-mode: vertical-rl; text-align: center; }

.quick-start, .category-section { padding: 68px clamp(36px, 6vw, 96px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font: 680 clamp(28px, 3vw, 40px)/1.12 Fraunces, serif; letter-spacing: -.025em; }
.section-heading > a { color: var(--forest); font-size: 13px; font-weight: 700; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick-grid > a { min-height: 144px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; padding: 23px; background: var(--cream); border: 1px solid var(--line); border-radius: 8px; transition: .22s ease; }
.quick-grid > a:hover { color: white; background: var(--forest); border-color: var(--forest); transform: translateY(-4px); box-shadow: 0 14px 35px rgba(23,54,42,.16); }
.quick-number { color: var(--copper); font: 680 13px Fraunces, serif; }
.quick-grid strong { display: block; margin-bottom: 8px; font: 680 19px Fraunces, serif; }
.quick-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.quick-grid a:hover p { color: #cbd6d0; }
.quick-grid b { font-size: 16px; }
.category-section { padding-top: 26px; background: #fbfaf5; border-top: 1px solid #f1ede3; }
.category-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.category-grid article { padding: 26px 28px 18px; background: white; border: 1px solid var(--line); border-radius: 8px; }
.category-top { display: flex; justify-content: space-between; align-items: center; }
.category-top > span { width: 44px; height: 44px; display: grid; place-items: center; color: white; background: var(--forest); border-radius: 7px; font-size: 20px; box-shadow: 6px 6px 0 var(--sage); }
.category-top small { color: #989b94; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.category-grid h3 { margin: 24px 0 8px; font: 680 23px Fraunces, serif; }
.category-grid article > p { min-height: 40px; margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.category-grid ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.category-grid li + li { border-top: 1px solid #eeeae0; }
.category-grid li a { display: flex; justify-content: space-between; padding: 10px 2px; font-size: 12px; font-weight: 600; }
.category-grid li a:hover { color: var(--copper); }
.support-banner { margin: 34px clamp(36px, 6vw, 96px) 68px; padding: 30px 34px; display: flex; align-items: center; justify-content: space-between; color: white; background: var(--forest); border-radius: 8px; overflow: hidden; }
.support-banner > div { display: flex; align-items: center; gap: 22px; }
.support-icon { width: 54px; height: 54px; display: grid; place-items: center; color: var(--forest); background: #e4c79f; border-radius: 50%; font-size: 21px; }
.support-banner .eyebrow { margin-bottom: 4px; color: #d8ad76; }
.support-banner h2 { margin: 0; font: 680 26px Fraunces, serif; }
.support-banner p:last-child { margin: 4px 0 0; color: #b9c7bf; font-size: 12px; }
.support-banner > a { padding: 12px 18px; color: var(--forest); background: #f0e6d3; border-radius: 5px; font-size: 12px; font-weight: 700; }

.help-article-page .help-main { display: grid; grid-template-columns: minmax(0, 760px) 230px; justify-content: center; column-gap: 80px; padding: 48px clamp(30px, 6vw, 90px) 0; }
.help-article { min-width: 0; }
.breadcrumbs { display: flex; gap: 9px; margin-bottom: 46px; color: #8b908b; font-size: 11px; }
.breadcrumbs a:hover { color: var(--forest); }
.article-header { position: relative; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-icon { float: right; width: 64px; height: 64px; display: grid; place-items: center; margin: 0 0 20px 30px; color: white; background: var(--forest); border-radius: 8px; box-shadow: 8px 8px 0 var(--sage); font: 680 26px Fraunces, serif; }
.article-header h1 { max-width: 650px; margin: 0; font: 680 clamp(38px, 4.2vw, 58px)/1.02 Fraunces, serif; letter-spacing: -.035em; }
.article-header > p:not(.eyebrow) { max-width: 620px; margin: 18px 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.article-meta { display: flex; gap: 8px; color: #959992; font-size: 11px; }
.article-body { padding: 16px 0 50px; }
.article-body section { padding-top: 35px; }
.article-body h2 { margin: 0 0 17px; font: 680 28px Fraunces, serif; letter-spacing: -.015em; }
.article-body h2 a { margin-left: 7px; color: #c8cbc6; opacity: 0; font-family: "DM Sans", sans-serif; font-size: 17px; }
.article-body h2:hover a { opacity: 1; }
.article-body section > p { margin: 0 0 16px; color: #535953; font-size: 15px; line-height: 1.82; }
.steps { margin: 25px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 46px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--copper); font: 680 14px Fraunces, serif; }
.steps strong { display: block; margin-bottom: 4px; font-size: 14px; }
.steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.article-note { display: flex; gap: 14px; margin: 24px 0; padding: 18px; background: #edf3eb; border-left: 3px solid #78916f; border-radius: 0 6px 6px 0; }
.article-note.warning { background: #fbf1e7; border-color: var(--copper); }
.article-note > span { flex: 0 0 26px; height: 26px; display: grid; place-items: center; color: white; background: #78916f; border-radius: 50%; font-weight: 700; }
.article-note.warning > span { background: var(--copper); }
.article-note strong { display: block; margin-bottom: 3px; font-size: 13px; }
.article-note p { margin: 0; color: #5e655e; font-size: 12px; line-height: 1.6; }
.article-cta { display: inline-flex; gap: 12px; margin-top: 10px; padding: 12px 17px; color: white; background: var(--forest); border-radius: 5px; font-size: 13px; font-weight: 700; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-footer > div:first-child { display: flex; flex-direction: column; gap: 5px; }
.article-footer strong { font: 680 17px Fraunces, serif; }
.article-footer span { color: var(--muted); font-size: 11px; }
.article-footer button { width: 52px; height: 36px; margin-left: 7px; background: white; border: 1px solid var(--line); border-radius: 5px; cursor: pointer; }
.article-footer button:hover, .article-footer button.selected { color: white; background: var(--forest); border-color: var(--forest); }
.article-toc { position: sticky; top: 112px; align-self: start; padding-left: 19px; border-left: 1px solid var(--line); }
.article-toc > strong { display: block; margin-bottom: 14px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.article-toc > a { display: block; margin: 0 0 12px; color: #7a807a; font-size: 11px; line-height: 1.45; }
.article-toc > a:hover, .article-toc > a.active { color: var(--forest); font-weight: 700; }
.article-toc > div { display: flex; flex-direction: column; gap: 4px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11px; }
.article-toc > div a { color: var(--copper); font-weight: 700; }
.not-found { max-width: 760px; padding: 100px 40px; }
.not-found h1 { margin: 0; font: 680 52px/1.05 Fraunces, serif; }
.not-found > p:not(.eyebrow) { color: var(--muted); }
.not-found > a { display: inline-block; margin-top: 18px; color: var(--forest); font-weight: 700; }
.help-footer { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; margin-top: 55px; padding: 24px 0; color: #858a84; border-top: 1px solid var(--line); font-size: 10px; }
.help-home .help-footer { margin: 0 clamp(36px, 6vw, 96px); }
.help-footer nav { display: flex; gap: 20px; }

.search-results { position: absolute; z-index: 50; inset: calc(100% + 8px) 0 auto; max-height: 370px; overflow-y: auto; padding: 7px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 18px 55px rgba(12,31,23,.22); }
.search-results a { display: block; padding: 11px 12px; border-radius: 5px; }
.search-results a:hover, .search-results a.focused { background: #f0f3ed; }
.search-results strong { display: block; margin-bottom: 2px; font-size: 13px; }
.search-results span { color: var(--muted); font-size: 10px; }
.search-empty { padding: 18px 12px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 1120px) {
  :root { --sidebar: 260px; }
  .help-header { grid-template-columns: var(--sidebar) minmax(230px, 1fr) auto; gap: 20px; }
  .hero-joinery { opacity: .55; transform: scale(.85) rotate(-6deg); }
  .help-article-page .help-main { grid-template-columns: minmax(0, 720px); }
  .article-toc { display: none; }
}

@media (max-width: 820px) {
  :root { --header: 68px; }
  .help-header { grid-template-columns: 1fr auto auto; gap: 10px; padding: 0 18px; }
  .header-search, .header-links { display: none; }
  .mobile-language { display: grid; width: 34px; height: 30px; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
  .mobile-menu { display: grid; gap: 4px; padding: 8px; }
  .mobile-menu span { width: 22px; height: 2px; background: white; }
  .help-sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 15px 0 35px rgba(0,0,0,.16); }
  .help-sidebar.open { transform: none; }
  .help-main { margin-left: 0; }
  .help-hero { min-height: auto; grid-template-columns: 1fr; padding: 54px 24px; }
  .hero-joinery { display: none; }
  .hero-copy h1 { font-size: 48px; }
  .quick-start, .category-section { padding: 48px 24px; }
  .quick-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .support-banner { margin: 20px 24px 48px; align-items: start; gap: 22px; }
  .help-article-page .help-main { display: block; padding: 34px 24px 0; }
  .article-header h1 { font-size: 42px; }
}

@media (max-width: 540px) {
  .hero-copy h1 { font-size: 40px; }
  .hero-search > button { display: none; }
  .popular-searches { flex-wrap: wrap; }
  .section-heading { align-items: start; gap: 14px; }
  .quick-grid > a { min-height: 120px; }
  .support-banner, .support-banner > div { align-items: flex-start; flex-direction: column; }
  .article-icon { width: 52px; height: 52px; }
  .article-header h1 { font-size: 37px; }
  .article-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
