/* ═══════════════════════════════════════════════════════════════
   ALCEA — subpage styles (Support + Blog)
   ═══════════════════════════════════════════════════════════════ */

/* ── Subpage hero ─────────────────────────────────────────────── */
.subhero { padding: 9.5rem 0 3.5rem; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.subhero::before { content: ''; position: absolute; top: -30%; right: -8%; width: 480px; height: 480px; background: radial-gradient(circle, var(--teal-glow), transparent 64%); pointer-events: none; }
.crumb { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1.1rem; display: flex; gap: .5rem; align-items: center; }
.crumb a { color: var(--teal-deep); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.subhero h1 { font-size: clamp(2.4rem, 5vw, 4rem); letter-spacing: -.025em; }
.subhero .lede { margin-top: 1.2rem; max-width: 56ch; }

/* search bar */
.support-search { display: flex; gap: .6rem; margin-top: 2rem; max-width: 540px; }
.support-search input { flex: 1; padding: .95rem 1.2rem; border: 1.5px solid var(--line-2); border-radius: 999px; font-family: var(--sans); font-size: .98rem; background: var(--paper); outline: none; transition: border-color var(--t), box-shadow var(--t); }
.support-search input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); background: var(--surface); }
.search-hint { max-width: 540px; margin-top: .85rem; font-size: .85rem; color: var(--ink-2); min-height: 1.1em; opacity: 0; transition: opacity var(--t); }
.search-hint.visible { opacity: 1; }
.search-hint .sh-jump, .search-hint a { color: var(--teal-deep); font-weight: 600; text-decoration: none; margin-left: .25rem; white-space: nowrap; }
.search-hint .sh-jump:hover, .search-hint a:hover { text-decoration: underline; }
.faq-noresults { text-align: center; padding: 2rem 1.4rem; color: var(--ink-2); font-size: .95rem; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.faq-noresults a { color: var(--teal-deep); font-weight: 600; }
.faq-results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .85rem 1.1rem; margin-bottom: 1.5rem; background: var(--teal-glow); border: 1px solid rgba(63,193,168,.3); border-radius: var(--radius); }
.faq-results-bar .frb-text { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.faq-results-bar .frb-text strong { color: var(--teal-deep); }
.faq-clear { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-deep); background: transparent; border: 1px solid var(--teal); border-radius: 999px; padding: .42rem .85rem; cursor: pointer; transition: background var(--t), color var(--t); }
.faq-clear:hover { background: var(--teal); color: #fff; }

/* ── Support quick-link grid ──────────────────────────────────── */
.sl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 3.5rem; }
.sl-card { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.sl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.sl-card .si { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-glow); color: var(--teal-deep); display: grid; place-items: center; margin-bottom: 1.1rem; }
.sl-card .si svg { width: 22px; height: 22px; }
.sl-card h3 { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .4rem; }
.sl-card p { font-size: .88rem; color: var(--ink-2); }
.sl-card .go { margin-top: 1rem; font-family: var(--sans); font-weight: 600; font-size: .85rem; color: var(--teal-deep); display: inline-flex; gap: .4rem; }

/* ── FAQ accordion (categorized) ──────────────────────────────── */
.faq-cats { max-width: 880px; margin: 2.4rem auto 0; display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.faq-cat {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-2); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 999px; padding: .5rem 1rem; cursor: pointer; transition: all var(--t); white-space: nowrap;
}
.faq-cat:hover { border-color: var(--teal); color: var(--teal-deep); }
.faq-cat.active { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
.faq-cat .ct { opacity: .55; margin-left: .35rem; font-variant-numeric: tabular-nums; }
.faq-cat.active .ct { opacity: .8; }
.faq-list { max-width: 820px; margin: 2rem auto 0; display: grid; gap: .8rem; }
.faq-group-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); margin: 1.4rem 0 -.1rem; }
.faq-group-label:first-child { margin-top: 0; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color var(--t), box-shadow var(--t); }
.faq-item.open { border-color: var(--line-2); box-shadow: var(--shadow); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 1.2rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--serif); font-size: 1.06rem; color: var(--ink); line-height: 1.35; }
.faq-q .ch { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: var(--t); color: var(--teal-deep); }
.faq-item.open .faq-q .ch { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(.22,.61,.36,1); }
.faq-a-inner { padding: 0 1.4rem 1.35rem; font-size: .93rem; color: var(--ink-2); line-height: 1.65; }
.faq-a-inner > *:first-child { margin-top: 0; }
.faq-a-inner p { margin: 0 0 .8rem; }
.faq-a-inner p:last-child { margin-bottom: 0; }
.faq-a-inner ul, .faq-a-inner ol { margin: 0 0 .85rem; padding-left: 1.3rem; display: grid; gap: .4rem; }
.faq-a-inner li { line-height: 1.55; }
.faq-a-inner li:last-child { }
.faq-a-inner strong { color: var(--ink); font-weight: 600; }
.faq-a-inner em { font-style: italic; }
.faq-a-inner a { color: var(--teal-deep); font-weight: 600; }
.faq-a-inner code { font-family: var(--mono); font-size: .82em; background: var(--paper-2); padding: .12em .4em; border-radius: 5px; color: var(--ink); word-break: break-word; }
.faq-a-inner pre { background: var(--teal-ink, #0b201d); color: #e6efe9; border-radius: var(--radius); padding: .9rem 1rem; overflow-x: auto; margin: 0 0 .85rem; }
.faq-a-inner pre code { background: none; padding: 0; color: inherit; font-size: .8rem; line-height: 1.55; white-space: pre; word-break: normal; }
.faq-empty { max-width: 820px; margin: 2rem auto 0; }

/* ── Training / resources rows ────────────────────────────────── */
.res-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 3rem; }
.res-card { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.res-card .ri { width: 44px; height: 44px; flex-shrink: 0; border-radius: 11px; background: var(--paper-2); color: var(--teal-deep); display: grid; place-items: center; }
.res-card .ri svg { width: 21px; height: 21px; }
.res-card h4 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .35rem; }
.res-card p { font-size: .88rem; color: var(--ink-2); }
.res-card .tags { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.res-card .tags span { font-family: var(--mono); font-size: .68rem; padding: .25rem .6rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }

/* ── Downloads (manuals + installers) ─────────────────────────── */
.dl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; margin-top: 2.6rem; }
.dl-card { display: flex; gap: 1.2rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.dl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.dl-card .di { width: 50px; height: 50px; flex-shrink: 0; border-radius: 12px; background: var(--teal-glow); color: var(--teal-deep); display: grid; place-items: center; }
.dl-card .di svg { width: 24px; height: 24px; }
.dl-card .dc { flex: 1; min-width: 0; }
.dl-card h4 { font-family: var(--serif); font-size: 1.22rem; margin-bottom: .3rem; }
.dl-card p { font-size: .88rem; color: var(--ink-2); line-height: 1.55; }
.dl-meta { display: flex; gap: .5rem; flex-wrap: wrap; margin: .9rem 0 1.1rem; }
.dl-meta span { font-family: var(--mono); font-size: .68rem; padding: .25rem .6rem; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); }
.dl-btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 600; font-size: .85rem; padding: .6rem 1.15rem; border-radius: 999px; background: var(--teal-deep); color: #fff; text-decoration: none; transition: var(--t); }
.dl-btn:hover { background: var(--teal); }
.dl-btn svg { width: 15px; height: 15px; }
.dl-card.pending { opacity: .75; }
.dl-card.pending .di { background: var(--paper-2); color: var(--ink-3); }
.dl-pending { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); border: 1px dashed var(--line-2); padding: .5rem .9rem; border-radius: 999px; }
.dl-foot { margin-top: 1.8rem; font-size: .9rem; color: var(--ink-2); }
.dl-foot a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.dl-foot a:hover { text-decoration: underline; }
.dl-note { max-width: 66ch; margin-top: 1rem; font-size: .92rem; color: var(--ink-2); line-height: 1.6; }
.dl-group { margin-top: 2.4rem; }
.dl-gh { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }

/* ── Changelog / product updates ──────────────────────────────── */
.changelog { max-width: 840px; margin: 2.6rem 0 0; display: grid; gap: 1.2rem; }
.release { display: grid; grid-template-columns: 150px 1fr; gap: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.rel-tag { font-family: var(--mono); font-weight: 500; font-size: .82rem; display: inline-block; padding: .3rem .75rem; border-radius: 999px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line-2); }
.rel-tag.current { background: var(--accent-deep); color: #fff; border-color: var(--accent-deep); }
.rel-date { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--ink-3); margin-top: .65rem; }
.release h4 { font-family: var(--serif); font-size: 1.32rem; margin-bottom: .8rem; }
.rel-list { display: grid; gap: .55rem; margin: 0; padding: 0; }
.rel-list li { font-size: .92rem; color: var(--ink-2); line-height: 1.55; list-style: none; padding-left: 1.4rem; position: relative; }
.rel-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.rel-list a { color: var(--teal-deep); font-weight: 600; text-decoration: none; }
.rel-list a:hover { text-decoration: underline; }
.rel-note { margin-top: 1.1rem; font-size: .82rem; color: var(--ink-3); font-style: italic; }
.rel-side .dl-btn { margin-top: 1rem; font-size: .78rem; padding: .42rem .85rem; }

/* full release-notes disclosure (per release) */
.rel-more { margin-top: 1.1rem; }
.rel-more > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal-deep); padding: .5rem .9rem; border: 1px solid var(--line-2); border-radius: 999px;
  transition: background var(--t), border-color var(--t);
}
.rel-more > summary::-webkit-details-marker { display: none; }
.rel-more > summary:hover { background: var(--teal-glow); border-color: var(--teal); }
.rel-more > summary .chev { transition: transform var(--t); flex-shrink: 0; }
.rel-more[open] > summary .chev { transform: rotate(90deg); }
.rel-fulllist {
  margin-top: 1rem; max-height: 440px; overflow-y: auto;
  padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); list-style: none; display: grid; gap: .55rem;
}
.rel-fulllist li { font-size: .83rem; line-height: 1.5; color: var(--ink-2); padding-left: 1.1rem; position: relative; }
.rel-fulllist li::before { content: ''; position: absolute; left: 0; top: .58em; width: 5px; height: 5px; border-radius: 1px; background: var(--teal); }
.rel-foot-note { margin-top: .85rem; font-size: .78rem; color: var(--ink-3); font-style: italic; line-height: 1.5; }
.rel-fulllist::-webkit-scrollbar { width: 10px; }
.rel-fulllist::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 3px solid var(--paper); }

/* status pill */
.status-bar { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.3rem; background: var(--teal-glow); border: 1px solid rgba(63,193,168,.3); border-radius: var(--radius); margin-top: 2rem; font-size: .92rem; color: var(--ink); }
.status-bar .pip { width: 9px; height: 9px; border-radius: 50%; background: #1f9e6a; box-shadow: 0 0 0 4px rgba(31,158,106,.18); flex-shrink: 0; }
.status-bar a { color: var(--teal-deep); font-weight: 600; text-decoration: none; margin-left: auto; }

/* ── Blog ─────────────────────────────────────────────────────── */
.blog-featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: stretch; margin-bottom: 3.5rem; }
.blog-featured .img { border-radius: var(--radius-lg); min-height: 340px; background:
  url('blog/brand-mark.svg') center / 150px no-repeat,
  repeating-linear-gradient(135deg, var(--paper-2) 0 14px, var(--surface) 14px 28px);
  border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; }
.blog-featured .img .ph { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: .5rem 1rem; border: 1px dashed var(--line-2); border-radius: 999px; background: rgba(255,255,255,.6); }
.blog-featured .img .glow { position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, var(--teal-glow), transparent 60%); }
.blog-featured .meta { display: flex; flex-direction: column; justify-content: center; }
/* Featured article = the page's focal point → clay eyebrow (grid cards stay teal) */
.blog-featured .post-cat { color: var(--accent-deep); }
.post-cat { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep); }
.blog-featured h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); margin: 1rem 0; letter-spacing: -.02em; }
.blog-featured h2 a { text-decoration: none; color: var(--ink); }
.blog-featured h2 a:hover { color: var(--teal-deep); }
.blog-featured .excerpt { color: var(--ink-2); font-size: 1.02rem; line-height: 1.6; }
.post-byline { display: flex; align-items: center; gap: .7rem; margin-top: 1.6rem; font-size: .85rem; color: var(--ink-3); }
.post-byline .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: .85rem; }

.blog-filters { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.blog-filter { font-family: var(--sans); font-weight: 600; font-size: .85rem; padding: .5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: var(--t); }
.blog-filter:hover { border-color: var(--teal); color: var(--teal-deep); }
.blog-filter.active { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--t), box-shadow var(--t); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb { height: 168px; background: url('blog/brand-mark.svg') center / 88px no-repeat, repeating-linear-gradient(135deg, var(--paper-2) 0 12px, var(--surface) 12px 24px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.post-card .thumb .glow { position: absolute; inset: 0; }
.post-card .body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.25; margin: .6rem 0 .6rem; }
.post-card h3 a { text-decoration: none; color: var(--ink); }
.post-card h3 a:hover { color: var(--teal-deep); }
.post-card p { font-size: .88rem; color: var(--ink-2); flex: 1; }
.post-card .pm { display: flex; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); }

/* real images: drop a correctly-named file into assets/blog/ and it covers the
   placeholder pattern; until it successfully loads (or if absent) the <img> stays
   hidden and the woven pattern shows. Works for hero, inline figures, thumbnails. */
.blog-img { display: none; }
.blog-img.loaded { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 5; border: 0; }

/* Whole blog tile clickable — stretch the title link across the card.
   Keeps a single real <a> (no nested anchors); the card body has no
   other links, so nothing is shadowed. */
.post-card { position: relative; }
.post-card h3 a::after { content: ''; position: absolute; inset: 0; z-index: 6; }

/* newsletter */
.newsletter { background: var(--deep); border-radius: var(--radius-lg); padding: clamp(2.5rem,5vw,4rem); text-align: center; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 600px; height: 600px; background: radial-gradient(circle, rgba(63,193,168,.16), transparent 60%); }
.newsletter h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); position: relative; }
.newsletter p { color: rgba(255,255,255,.6); max-width: 46ch; margin: 1rem auto 1.8rem; position: relative; }
.newsletter form { display: flex; gap: .6rem; max-width: 460px; margin: 0 auto; position: relative; flex-wrap: wrap; justify-content: center; }
.newsletter input { flex: 1; min-width: 220px; padding: .9rem 1.2rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; font-family: var(--sans); font-size: .95rem; outline: none; }
.newsletter input::placeholder { color: rgba(255,255,255,.45); }
.newsletter input:focus { border-color: var(--teal-bright); }
.newsletter input.invalid { border-color: var(--err); background: rgba(192,73,47,.18); }
.nl-msg { width: 100%; margin-top: .9rem; font-size: .85rem; min-height: 1.2em; position: relative; }
.nl-msg.err { color: #ffb4a3; }
.nl-msg.ok { color: var(--teal-bright); }

@media (max-width: 1000px) {
  .sl-grid, .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured .img { min-height: 220px; }
}
@media (max-width: 680px) {
  .sl-grid, .res-grid, .blog-grid, .dl-grid { grid-template-columns: 1fr; }
  .release { grid-template-columns: 1fr; gap: .9rem; }
  .support-search { flex-direction: column; }
  .support-search .btn { width: 100%; justify-content: center; }
}

/* ── Article (single post) ────────────────────────────────────── */
.article { padding: 8.5rem 0 0; }
.article-head { max-width: 760px; margin: 0 auto; }
.article-head .crumb { justify-content: flex-start; }
.article-cat { font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep); }
.article-title { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; letter-spacing: -.025em; margin: 1rem 0 1.4rem; text-wrap: balance; }
.article-byline { display: flex; align-items: center; gap: .85rem; font-size: .9rem; color: var(--ink-3); }
.article-byline .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: .82rem; flex-shrink: 0; }
.article-byline .who { color: var(--ink); font-weight: 600; }
.article-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

/* hero image slot */
.article-hero { max-width: 1040px; margin: 2.6rem auto 0; }
/* Hide the in-article hero placeholder when there's no real image.
   :has() keeps the drop-in slot working — a loaded image reveals it;
   an empty/woven placeholder collapses instead of showing. */
.article-hero:not(:has(.blog-img.loaded)) { display: none; }
.article-hero .ph {
  position: relative; aspect-ratio: 16 / 7; border-radius: var(--radius-lg); overflow: hidden;
  background: #e4ece8; border: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.article-hero .ph::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(14,31,29,.05) 0 2px, transparent 2px 12px); }
.article-hero .ph-glyph { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%); width: 70px; opacity: .14; color: var(--ink); }
.article-hero .ph-meta { position: relative; z-index: 1; padding: 1rem 1.2rem; display: flex; flex-direction: column; gap: .25rem; background: linear-gradient(transparent, rgba(255,255,255,.6)); }
.article-hero .ph-tag { font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.article-hero .ph-desc { font-weight: 600; font-size: .92rem; color: var(--ink); }

/* prose body */
.prose { max-width: 700px; margin: 0 auto; padding: 3.2rem 0 0; }
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3, .prose > figure, .prose > blockquote { margin-left: auto; margin-right: auto; }
.prose p { font-size: 1.14rem; line-height: 1.75; color: var(--ink-2); margin-bottom: 1.5rem; }
.prose > p:first-of-type { font-size: 1.24rem; color: var(--ink); }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-weight: 600; font-size: 3.6rem; line-height: .82; padding: .35rem .55rem 0 0; color: var(--teal-deep); }
.prose h2 { font-family: var(--serif); font-size: 1.7rem; letter-spacing: -.015em; margin: 2.6rem 0 1rem; }
.prose h3 { font-family: var(--serif); font-size: 1.28rem; margin: 2rem 0 .7rem; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { margin-bottom: 1.5rem; padding-left: 0; list-style: none; }
.prose li { font-size: 1.1rem; line-height: 1.65; color: var(--ink-2); padding-left: 1.6rem; position: relative; margin-bottom: .6rem; }
.prose ul li::before { content: ''; position: absolute; left: .1rem; top: .65em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-deep); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li); position: absolute; left: 0; top: .05em; font-family: var(--mono); font-size: .8rem; color: var(--teal-deep); font-weight: 500; }

/* pull quote */
.prose blockquote { margin: 2.6rem auto; text-align: center; max-width: 640px; }
.prose blockquote p { font-family: var(--serif); font-style: italic; font-size: 1.55rem; line-height: 1.4; color: var(--ink); margin-bottom: .9rem; }
.prose blockquote::before { content: '\201C'; display: block; font-family: var(--serif); font-size: 3.2rem; line-height: .4; color: var(--accent-deep); margin-bottom: .6rem; }
.prose blockquote cite { font-style: normal; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* inline figure / image slot — hidden until a real image loads, so an empty
   placeholder never appears in production; the dev just drops the file in */
.prose figure { margin: 2.4rem auto; display: none; }
.prose figure.has-img { display: block; }
.prose figure .ph { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #f1e4dd; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; }
.prose figure .ph::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(135deg, rgba(14,31,29,.05) 0 2px, transparent 2px 12px); }
.prose figure .ph-glyph { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%); width: 52px; opacity: .16; color: var(--ink); }
.prose figure .ph-meta { position: relative; z-index: 1; padding: .85rem 1rem; background: linear-gradient(transparent, rgba(255,255,255,.55)); }
.prose figure .ph-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.prose figure figcaption { font-size: .82rem; color: var(--ink-3); text-align: center; margin-top: .7rem; }

/* author bio */
.author-card { max-width: 700px; margin: 3rem auto 0; padding: 1.8rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; gap: 1.3rem; align-items: flex-start; }
.author-card .av { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(150deg, var(--teal), var(--teal-deep)); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 1rem; flex-shrink: 0; }
.author-card .ab-name { font-family: var(--serif); font-size: 1.2rem; }
.author-card .ab-role { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-deep); margin: .2rem 0 .6rem; }
.author-card p { font-size: .92rem; color: var(--ink-2); line-height: 1.6; }

/* related posts */
.related { border-top: 1px solid var(--line); margin-top: 4rem; }
.related .section-head { margin-bottom: 2rem; }

@media (max-width: 680px) {
  .article { padding: 7rem 0 0; }
  .prose > p:first-of-type::first-letter { font-size: 3rem; }
  .author-card { flex-direction: column; gap: .9rem; }
}

/* ── HelpDesk section (live SaaS demo + support channel) ──────── */
.helpdesk-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: center; }
.helpdesk-copy h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; margin-top: 1rem; letter-spacing: -.02em; }
.helpdesk-copy .lede { color: var(--ink-2); font-size: 1.08rem; margin-top: 1.1rem; max-width: 46ch; }
.helpdesk-meta { display: flex; flex-wrap: wrap; gap: 1.4rem 2rem; margin-top: 1.6rem; }
.helpdesk-meta div { display: flex; flex-direction: column; }
.helpdesk-meta .hm-n { font-family: var(--serif); font-size: 1.7rem; color: var(--teal-deep); line-height: 1; }
.helpdesk-meta .hm-n.clay { color: var(--accent-deep); }
.helpdesk-meta .hm-l { font-size: .78rem; color: var(--ink-3); margin-top: .35rem; }
.helpdesk-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.hd-kb-search { display: flex; gap: .5rem; margin-top: 2rem; }
.hd-kb-search input[type="search"] { flex: 1; min-width: 0; padding: .62rem .9rem; border: 1.5px solid var(--line-2); border-radius: var(--radius); font-size: .9rem; font-family: var(--sans); color: var(--ink); background: var(--surface); }
.hd-kb-search input[type="search"]:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.hd-kb-search input[type="search"]::placeholder { color: var(--ink-3); }
.hd-kb-search .btn { white-space: nowrap; }

/* product UI mock (hand-built, not a screenshot) */
.hd-mock { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(14,31,29,.04), 0 30px 60px -22px rgba(14,31,29,.28); overflow: hidden; }
.hd-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.hd-bar .hd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.hd-bar .hd-dot:nth-child(1) { background: #d99a8a; }
.hd-bar .hd-url { margin-left: .6rem; font-family: var(--mono); font-size: .68rem; color: var(--ink-3); letter-spacing: .02em; }
.hd-body { padding: 1.4rem 1.3rem 1.4rem; }
.hd-search { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; border: 1.5px solid var(--line-2); border-radius: 999px; color: var(--ink-3); font-size: .85rem; background: var(--paper); }
.hd-search svg { width: 15px; height: 15px; flex-shrink: 0; }

/* HelpDesk inquiry form (inside the browser-frame mock) */
.hd-form { display: grid; gap: .8rem; }
.hd-form-head h3 { font-family: var(--serif); font-size: 1.18rem; color: var(--ink); margin-bottom: .15rem; }
.hd-form-head p { font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.hd-field { display: grid; gap: .3rem; }
.hd-field label { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.hd-field input, .hd-field textarea {
  width: 100%; font-family: var(--sans); font-size: .9rem; color: var(--ink);
  padding: .62rem .8rem; border: 1.5px solid var(--line-2); border-radius: 9px;
  background: var(--paper); transition: border-color var(--t), box-shadow var(--t); resize: vertical;
}
.hd-field input::placeholder, .hd-field textarea::placeholder { color: var(--ink-3); opacity: .7; }
.hd-field input:focus, .hd-field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.hd-visibility { border: 0; padding: 0; margin: .1rem 0 .2rem; display: grid; gap: .4rem; }
.hd-visibility legend { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); padding: 0; margin-bottom: .15rem; }
.hd-radio { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; color: var(--ink-2); line-height: 1.4; cursor: pointer; }
.hd-radio input { margin-top: .2rem; accent-color: var(--teal-deep); flex-shrink: 0; }
.hd-radio strong { color: var(--ink); font-weight: 600; }
.hd-submit {
  margin-top: .25rem; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: .92rem; color: #fff; cursor: pointer;
  padding: .8rem 1rem; border: 0; border-radius: 9px; background: var(--teal-deep);
  transition: background var(--t), transform var(--t);
}
.hd-submit:hover { background: var(--teal); transform: translateY(-1px); }
.hd-submit .arr { transition: transform var(--t); }
.hd-submit:hover .arr { transform: translateX(3px); }
.hd-form-note { font-size: .84rem; line-height: 1.5; padding: .75rem .9rem; border-radius: 9px; margin-top: .1rem; }
.hd-form-note.ok  { background: var(--teal-glow); color: var(--teal-deep); border: 1px solid var(--teal); }
.hd-form-note.err { background: var(--err-soft); color: var(--err); border: 1px solid var(--err); }
.hd-form-note strong { font-weight: 700; }
.hd-form fieldset[disabled], .hd-form input[disabled], .hd-form textarea[disabled], .hd-form button[disabled], .hd-form select[disabled] { opacity: .55; }

/* two-up row (first / last name) */
.hd-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

/* select (Priority) — matches input styling with a custom caret */
.hd-field select {
  width: 100%; font-family: var(--sans); font-size: .9rem; color: var(--ink);
  padding: .62rem .8rem; border: 1.5px solid var(--line-2); border-radius: 9px;
  background: var(--paper); transition: border-color var(--t), box-shadow var(--t);
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' fill='none' stroke='%236c827e' stroke-width='1.6' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right .75rem center; background-size: 12px; padding-right: 2.1rem;
}
.hd-field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }

/* optional-marker on a field label */
.hd-opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-3); }

/* file attachment input */
.hd-field input[type="file"] {
  font-family: var(--sans); font-size: .82rem; color: var(--ink-2); cursor: pointer;
  padding: .45rem .55rem; line-height: 1.4;
}
.hd-field input[type="file"]::file-selector-button {
  font-family: var(--sans); font-weight: 600; font-size: .78rem; color: var(--teal-deep);
  background: var(--teal-glow); border: 1px solid var(--teal); border-radius: 7px;
  padding: .4rem .75rem; margin-right: .75rem; cursor: pointer; transition: background var(--t), color var(--t);
}
.hd-field input[type="file"]::file-selector-button:hover { background: var(--teal); color: #fff; }

/* "log in to track past inquiries" line under the form */
.hd-login-line { font-size: .8rem; color: var(--ink-3); text-align: center; margin-top: .15rem; }
.hd-login-line a { color: var(--teal-deep); font-weight: 600; }
.hd-login-line a:hover { text-decoration: underline; }

@media (max-width: 920px) {
  .helpdesk-grid { grid-template-columns: 1fr; gap: 2.4rem; }
}
@media (max-width: 460px) {
  .hd-row { grid-template-columns: 1fr; }
}

/* ── Floating "Need a hand?" button (support page) ────────────── */
.float-help {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 80;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.25rem; border-radius: 999px;
  background: var(--teal-deep); color: #fff; text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: .92rem;
  box-shadow: 0 8px 24px rgba(13,103,96,.32), 0 2px 6px rgba(14,31,29,.18);
  opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none;
  transition: opacity .3s cubic-bezier(.22,.61,.36,1), transform .3s cubic-bezier(.22,.61,.36,1), background .25s;
}
.float-help.show { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.float-help:hover { background: var(--teal); transform: translateY(-2px) scale(1.02); }
.float-help svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 560px) {
  .float-help { right: 1rem; bottom: 1rem; padding: .8rem 1.05rem; font-size: .88rem; }
}
@media (prefers-reduced-motion: reduce) {
  .float-help { transition: opacity .2s; transform: none; }
  .float-help.show { transform: none; }
}
