/* weekmo.app/help – guide og spørgsmål. Bygger på site.css (farver, skrift, header, footer). */
.help-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: 40px 80px; align-items: start; }
.help-layout[hidden] { display: none; }

/* Indhold i siden */
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; font-size: 14px; }
.toc summary { list-style: none; font-size: 12px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 4px 10px 10px; cursor: default; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; line-height: 1.3; }
.toc a:hover { background: var(--sunk); color: var(--fg); }
.toc a[aria-current="true"] { background: var(--surface); color: var(--fg); font-weight: 700; box-shadow: 0 1px 2px var(--shadow); }

/* Teksten */
.help { max-width: 760px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.help-head { display: flex; flex-direction: column; gap: 12px; }
.help-head h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.025em; }
.help-head .lead { font-size: 19px; color: var(--text); max-width: 34em; }
.help-head .updated { color: var(--muted); font-size: 14px; }

.topic { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: 84px; }
.topic h2 { font-size: clamp(26px, 3.2vw, 32px); line-height: 1.12; letter-spacing: -0.015em; font-weight: 800; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.topic h3 { font-size: 20px; letter-spacing: -0.01em; font-weight: 750; margin-top: 18px; scroll-margin-top: 84px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.topic p, .topic li { color: var(--text); }
.topic ul, .topic ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 7px; }
.topic li ul { margin-top: 6px; }
.topic strong { color: var(--fg); }
.topic code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88em; background: var(--sunk); color: var(--fg); padding: 2px 6px; border-radius: 6px; white-space: nowrap; }
.anchor { font-size: 0.7em; color: var(--faint); text-decoration: none; opacity: 0; transition: opacity .15s; }
.topic h2:hover .anchor, .topic h3:hover .anchor { opacity: 1; }

/* Små mærker: Pro og Nyt i 1.1 */
.mark { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; vertical-align: 0.15em; white-space: nowrap; }
.mark.pro { background: color-mix(in srgb, var(--coral) 16%, transparent); color: var(--coral); }
.mark.new { background: var(--chip-bg); color: var(--chip-fg); }

/* Tip-boks */
.tip { background: var(--surface); border-radius: 16px; padding: 16px 18px 16px 46px; color: var(--text); position: relative; }
.tip::before { content: ""; position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--coral); box-sizing: border-box; }
.tip::after { content: ""; position: absolute; left: 24px; top: 23px; width: 2px; height: 10px; background: linear-gradient(var(--coral) 0 2px, transparent 2px 4px, var(--coral) 4px); }

/* Tabeller */
.table { overflow-x: auto; background: var(--surface); border-radius: 16px; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 11px 14px; vertical-align: top; border-top: 1px solid var(--line); }
.table thead th { border-top: none; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.table td { color: var(--text); }
.table td:first-child { color: var(--fg); }
.table th:nth-child(n+2):last-child, .table td:nth-child(n+2):last-child { text-align: center; }
.table code { white-space: normal; }

/* Skærmbilleder – iPhone-format */
.shot { margin: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.shot img { width: min(300px, 78vw); height: auto; border-radius: 34px; border: 6px solid var(--frame); box-shadow: 0 18px 40px var(--shadow); background: var(--surface); }
.shot figcaption { font-size: 14px; color: var(--muted); text-align: center; max-width: 30em; }

/* Spørgsmål og svar */
.faq-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: var(--surface); border-radius: 14px; color: var(--muted); }
.faq-search input { flex: 1; border: none; background: none; font: inherit; color: var(--fg); outline: none; min-width: 0; }
.faq-search:focus-within { box-shadow: 0 0 0 2px var(--fg); }
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-group h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.qa { background: var(--surface); border-radius: 14px; }
.qa summary { list-style: none; cursor: pointer; padding: 15px 46px 15px 18px; font-weight: 650; color: var(--fg); position: relative; border-radius: 14px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.qa[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa summary:focus { outline: none; }
.qa summary:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }
.qa p { padding: 0 18px 16px; color: var(--text); }
.qa .more { white-space: nowrap; font-weight: 600; text-decoration: none; }
.qa:target summary, .qa.hit summary { color: var(--coral); }
.faq-none { color: var(--muted); }
.tip.contact { margin-top: 10px; }

@media (max-width: 980px) {
  .help-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }
  .toc { position: static; max-height: none; background: var(--surface); border-radius: 16px; padding: 6px; }
  .toc summary { cursor: pointer; padding: 10px 12px; display: flex; justify-content: space-between; align-items: center; }
  .toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin-right: 6px; }
  .toc details[open] summary::after { transform: rotate(-135deg); }
  .toc ol { columns: 2; column-gap: 8px; display: block; padding-bottom: 6px; }
  .toc li { break-inside: avoid; }
  .help { gap: 44px; }
}
@media (max-width: 560px) { .toc ol { columns: 1; } .help-head .lead { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .qa summary::after, .anchor { transition: none; } }
