/* MenoAura (27-09-2026). Designguiden er konceptsiden: farverne, Cormorant Garamond til overskrifter og Figtree til tekst.
   Formen (afstande, kort, 16px i siden, ingen vandret rulning) kommer fra skabelonerne (skabelon.css). */
:root {
  --ground: #FCF5F7; --surface: #FFFFFF; --ink: #3B1A2B; --ink-soft: #6E4A5C; --faint: #9C7F8B;
  --line: #F0DDE4; --rose: #D9467F; --rose-deep: #B8306A; --petal: #F9D3E1; --blush: #FDEAF1; --gold: #B9826A;
  --warn: #9A5B12; --warn-soft: #FCF0DF; --ok: #2F6B53; --ok-soft: #E3F1EA;
  --shadow: 0 1px 2px rgba(59,26,43,.05), 0 10px 30px rgba(217,70,127,.08);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  /* Partnerens visning: lyseblå til en mand, lyserød til en kvinde */
  --blue-acc: #4F9BD1; --blue-ink: #1C3E5C; --blue-soft: #DCEEFA;
}
html, body { background: var(--ground); color: var(--ink); font-family: var(--body); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
/* Cormorant har gammeldags tal som standard - et 0 ligner et O (27-09). Lige tal overalt. */
* { font-variant-numeric: lining-nums; }
body { overflow-x: hidden; }
h1, h2, h3, .ma-display { font-family: var(--display) !important; font-weight: 600; letter-spacing: -.005em; line-height: 1.1; }
.mud-typography-h4, .mud-typography-h5 { font-family: var(--display) !important; font-weight: 600 !important; }
.ma-word { font-family: var(--display); font-size: 28px; line-height: 1; color: var(--ink); white-space: nowrap; }
.ma-word i { color: var(--rose); font-weight: 400; }
.ma-word b { font-weight: 600; }
.ma-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); }
.ma-muted { color: var(--ink-soft); }
.ma-faint { color: var(--faint); font-size: 13px; }
.ma-page { max-width: 880px; margin: 0 auto; padding: 16px 16px 120px; }
.ma-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.ma-card + .ma-card { margin-top: 14px; }
.ma-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ma-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--blush); color: var(--rose-deep); border: 1px solid var(--line); }
.ma-chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.ma-chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.ma-grade-Solidt { background: var(--ok-soft); color: var(--ok); }
.ma-grade-Sandsynligt { background: var(--blush); color: var(--rose-deep); }
.ma-grade-Svagt { background: var(--warn-soft); color: var(--warn); }

/* Check-in: rækker med prikker 0-4 */
.ma-row { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ma-row:last-child { border-bottom: 0; }
.ma-row .navn { font-size: 15px; }
.ma-dots { display: flex; gap: 6px; }
.ma-dot { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--petal); background: transparent; cursor: pointer; font-size: 12px; color: var(--faint);
  display: grid; place-items: center; transition: background .15s, border-color .15s; font-family: var(--body); }
.ma-dot.on { background: var(--rose); border-color: var(--rose); color: #fff; }
.ma-dot:focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }
/* Blazor flytter fokus til overskriften ved hvert sideskift (skærmlæsere). Rammen skal ikke ses (27-09-2026: blå firkant om "Log ind" på iPhone). */
h1:focus, h1:focus-visible, [tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
.ma-dot.nr { width: auto; padding: 0 10px; border-radius: 999px; }
.ma-bother { display: flex; gap: 4px; margin-top: 6px; }
.ma-bother button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 11px; color: var(--faint); cursor: pointer; }
.ma-bother button.on { background: var(--gold); border-color: var(--gold); color: #fff; }
@media (max-width: 480px) { .ma-dot { width: 30px; height: 30px; } .ma-row { grid-template-columns: 1fr; } }

.ma-btn-rose { background: var(--rose) !important; color: #fff !important; border-radius: 999px !important; }
.ma-help { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1300; border-radius: 999px; box-shadow: var(--shadow); }
.ma-feedback { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1300; }

/* Mønstre og chat */
.ma-quote { font-family: var(--display); font-style: italic; font-size: 20px; line-height: 1.35; border-left: 3px solid var(--rose); padding-left: 12px; }
.ma-bub { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.ma-bub.me { margin-left: auto; background: var(--rose); color: #fff; border-bottom-right-radius: 6px; }
.ma-bub.ai { background: var(--blush); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.ma-chat { display: grid; gap: 10px; }
/* Uden login er der ingen sidemenu - derfor heller ingen menuknap (27-09) */
.ma-ude .cg-toplinje-menu { display: none !important; }
/* Admin-toppen er mørk: menuknap og ikoner skal være lyse (27-09: menuknappen var mørk på mørk og usynlig) */
.ma-adminbar .cg-toplinje-menu, .ma-adminbar .mud-icon-button, .ma-adminbar .mud-icon-button .mud-icon-root { color: #FFFFFF !important; }
.ma-adminbar .mud-icon-button:hover { background: rgba(255,255,255,.12); }
.ma-ansvar { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--ink-soft, #6E5A66); margin-top: 8px; white-space: normal; }
.ma-ansvar .mud-icon-root { font-size: 16px; margin-top: 1px; flex: 0 0 auto; opacity: .8; }
.ma-sources { font-size: 13px; line-height: 1.45; border-top: 1px solid var(--line); padding-top: 6px; white-space: normal; }
.ma-sources a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Kurver */
.ma-chart { width: 100%; height: auto; display: block; }
.ma-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--ink-soft); }
.ma-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; background: var(--c); vertical-align: -1px; }

/* Partnerens visning */
.ma-pv { border-radius: 30px; padding: 10px; max-width: 360px; margin: 0 auto; }
.ma-pv.mand { background: linear-gradient(160deg, #D6EBFA, #7DB9E4 140%); --p-acc: var(--blue-acc); --p-ink: var(--blue-ink); --p-soft: var(--blue-soft); }
.ma-pv.kvinde { background: linear-gradient(160deg, #FBDCE8, #E57AA3 140%); --p-acc: var(--rose); --p-ink: var(--ink); --p-soft: #FBDCE8; }
.ma-pv .ps { background: #fff; border-radius: 24px; padding: 18px 16px; display: grid; gap: 12px; color: var(--p-ink); }
.ma-meter { display: grid; grid-template-columns: 64px minmax(0,1fr) 60px; gap: 8px; align-items: center; font-size: 14px; }
.ma-meter .bar { height: 8px; border-radius: 99px; background: var(--p-soft); overflow: hidden; }
.ma-meter .bar i { display: block; height: 100%; background: var(--p-acc); border-radius: 99px; }
.ma-meter em { font-style: normal; text-align: right; font-size: 12px; opacity: .75; }

/* Forslag med skærmbillede: tegneflade */
/* Hele skærmbilledet ses i en lav højde, så tekstfelt og knapper altid er synlige - fingeren tegner på billedet og kan ikke scrolle der (27-09) */
.ma-draw-wrap { position: relative; width: 100%; display: flex; justify-content: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; touch-action: none; }
.ma-draw-wrap canvas { display: block; max-width: 100%; max-height: 42vh; width: auto; height: auto; cursor: crosshair; touch-action: none; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.ma-steps { display: grid; gap: 4px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 14px; }
.ma-steps li { display: flex; gap: 8px; align-items: center; }
.ma-steps b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: var(--rose, #D9467F); color: #fff; align-items: center; justify-content: center; font-size: 12px; flex: 0 0 auto; }

/* Landing */
.ma-hero { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 32px; align-items: center; padding: 24px 0; }
.ma-hero .word { font-family: var(--display); font-size: clamp(48px, 9vw, 76px); line-height: 1; }
.ma-hero .word i { color: var(--rose); font-weight: 400; }
.ma-tagline { font-family: var(--display); font-style: italic; font-size: clamp(22px, 3vw, 28px); color: var(--ink-soft); line-height: 1.25; }
@media (max-width: 760px) { .ma-hero { grid-template-columns: 1fr; } }
.ma-note { border-radius: 14px; padding: 14px 16px; background: var(--warn-soft); }
.ma-note b { color: var(--warn); }
.ma-ok { border-radius: 14px; padding: 14px 16px; background: var(--ok-soft); }
.ma-danger { border-radius: 14px; padding: 14px 16px; background: #FDE3E3; color: #7A1616; }
.ma-danger a, .ma-danger b { color: #7A1616; }
a.ma-link { color: var(--rose-deep); font-weight: 600; }

/* Tidslinje */
.ma-day { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ma-day .dato { font-family: var(--display); font-size: 22px; line-height: 1; color: var(--rose-deep); }
.ma-day .dato small { display: block; font-family: var(--body); font-size: 12px; color: var(--faint); }
.ma-thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }

/* Før og efter (EffektTabel, 03-10-2026) */
.ma-effekt { width: 100%; border-collapse: collapse; font-size: 14px; }
.ma-effekt th { text-align: right; font-weight: 500; color: var(--faint); font-size: 12px; padding: 2px 6px; }
.ma-effekt td { text-align: right; padding: 5px 6px; border-bottom: 1px solid var(--line); }
.ma-effekt td:first-child, .ma-effekt th:first-child { text-align: left; }
.ma-effekt tr:last-child td { border-bottom: 0; }
.ma-effekt .bedre { color: #2F6B53; }
.ma-effekt .vaerre { color: #B0414F; }

/* Beskeder (04-10-2026): ulæste har en prik */
.ma-prik { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #D9467F; margin-right: 8px; vertical-align: middle; }

/* Klokken (04-10-2026): panel med de seneste beskeder */
.ma-klokke { position: relative; display: inline-flex; }
.ma-klokke-panel { width: min(360px, calc(100vw - 24px)); max-height: none !important; border-radius: 14px !important; overflow: hidden; }
.ma-klokke-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 12px 6px 16px; border-bottom: 1px solid var(--line); }
.ma-klokke-liste { max-height: min(60vh, 440px); overflow-y: auto; }
.ma-klokke-besked { display: flex; gap: 8px; align-items: flex-start; padding: 10px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ma-klokke-besked:hover { background: rgba(217,70,127,.06); }
.ma-klokke-besked .ma-prik { margin-top: 6px; flex: none; }
.ma-klokke-besked .titel { font-size: 14px; }
.ma-klokke-besked.ny .titel { font-weight: 700; }
.ma-klokke-besked .tekst { font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ma-klokke-besked .tid { font-size: 11px; margin-top: 2px; }
.ma-klokke-bund { border-top: 1px solid var(--line); padding: 4px; }
.ma-klokke-luk { background: transparent !important; }
/* I appen (04-10-2026): plads til skallens genindlæs-knap (38 px + 14 px margen) øverst til højre */
.ma-iapp .cg-toplinje-altid { margin-right: 50px; }
.ma-klokke-tal { position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #D9467F; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; pointer-events: none; box-shadow: 0 0 0 2px #fff; }

/* Forbind din AI (07-10-2026) */
.ma-forbundet { border-color: #2F6B53 !important; }
.ma-trin { padding-left: 20px; line-height: 1.7; }
.ma-trin code, .ma-faint code, .ma-muted code { background: rgba(217,70,127,.08); padding: 2px 6px; border-radius: 6px; font-size: 13px; word-break: break-all; }
.ma-kode { background: #2A1520; color: #fff; padding: 12px 14px; border-radius: 10px; font-size: 13px; white-space: pre-wrap; word-break: break-all; }
