/* ==========================================================================
   Utomjordiska Institutet – stilmall
   Midnatt, pergament och guld. Seriöst, med glimten i alla tre ögonen.
   ========================================================================== */

:root {
  --night: #0c1527;
  --night-2: #121e36;
  --night-3: #1b2a48;
  --ink: #14213d;
  --text: #272a32;
  --muted: #5f6573;
  --paper: #f6f1e6;
  --paper-2: #eee6d4;
  --card: #fcfaf5;
  --line: #d9cbae;
  --line-2: #e7dec9;
  --gold: #a8823c;
  --gold-2: #c9a45c;
  --gold-3: #e2c991;
  --oxblood: #6e1f24;
  --alien: #86b08f;
  --alien-2: #4f7d5b;
  --on-night: #efe6d0;
  --on-night-muted: #b6ad98;

  --f-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --f-caps: "Cinzel", "Trajan Pro", Georgia, serif;
  --f-body: "EB Garamond", "Iowan Old Style", Georgia, serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --f-black: "UnifrakturMaguntia", "Old English Text MT", serif;

  --maxw: 1200px;
  --gutter: 24px;
  --r: 3px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, .06);
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 14px 32px -18px rgba(20, 33, 61, .32);
  --shadow-lg: 0 2px 6px rgba(10, 16, 30, .12), 0 30px 60px -24px rgba(10, 16, 30, .45);
}

/* Språkväxling: båda språken finns i HTML, det inaktiva döljs */
html[data-lang="sv"] [lang="en"],
html[data-lang="en"] [lang="sv"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 19px;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-color: rgba(168, 130, 60, .55); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--oxblood); text-decoration-color: currentColor; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--ink); font-weight: 600; line-height: 1.08; margin: 0 0 .4em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.6vw, 3.05rem); font-weight: 500; }
h3 { font-size: clamp(1.4rem, 2vw, 1.7rem); }
h4 { font-size: 1.2rem; }
em, i { font-style: italic; }
small, .small { font-size: .84rem; }
.muted { color: var(--muted); }
::selection { background: rgba(201, 164, 92, .35); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; }
.skip-link:focus { left: 8px; top: 8px; }

[data-crest], .crest { display: block; }
.crest svg, [data-crest] svg { width: 100%; height: auto; }

/* ---------- Typografiska detaljer ---------- */
.eyebrow {
  font-family: var(--f-caps); font-weight: 600; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: .7em; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.center::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.15rem, 1.6vw, 1.32rem); line-height: 1.55; color: #3a3d46; }
.latin { font-family: var(--f-caps); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.roman { font-family: var(--f-caps); font-weight: 600; color: var(--gold); letter-spacing: .06em; }
.script { font-family: var(--f-script); font-weight: 400; }
.dropcap::first-letter { font-family: var(--f-display); float: left; font-size: 4.2em; line-height: .82; padding: .06em .1em 0 0; color: var(--oxblood); font-weight: 600; }

.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 0 auto 1.4rem; }
.ornament::before, .ornament::after { content: ""; height: 1px; width: 70px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { transform: scaleX(-1); }
.ornament span { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ---------- Knappar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--f-caps); font-weight: 600; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .95em 1.6em; border-radius: var(--r); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
  white-space: nowrap;
}
.btn .icon { width: 1.25em; height: 1.25em; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-primary:hover { background: var(--night-3); color: #fff; box-shadow: inset 0 -2px 0 var(--gold-2); }
.btn-gold { background: var(--gold-2); color: var(--night); border-color: var(--gold-2); }
.btn-gold:hover { background: var(--gold-3); color: var(--night); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(20, 33, 61, .03); }
.btn-ghost-light { background: transparent; color: var(--on-night); border-color: rgba(226, 201, 145, .45); }
.btn-ghost-light:hover { border-color: var(--gold-3); color: #fff; background: rgba(226, 201, 145, .06); }
.btn-sm { padding: .7em 1.15em; font-size: .72rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--gold-3); text-decoration: underline; cursor: pointer; font: inherit; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }

.icon { width: 22px; height: 22px; }

/* ---------- Sidhuvud ---------- */
#site-header { min-height: 120px; }
.util-bar { background: var(--night); color: var(--on-night-muted); font-size: .8rem; }
.util-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.util-addr { font-family: var(--f-caps); letter-spacing: .14em; font-size: .64rem; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.util-links { display: flex; align-items: center; gap: 18px; }
.util-links a { color: var(--on-night); text-decoration: none; font-family: var(--f-caps); letter-spacing: .12em; font-size: .64rem; text-transform: uppercase; }
.util-links a:hover { color: var(--gold-3); }
.lang-switch { display: inline-flex; border: 1px solid rgba(226, 201, 145, .3); border-radius: 2px; overflow: hidden; }
.lang-switch button { background: transparent; border: 0; color: var(--on-night-muted); padding: 3px 9px; cursor: pointer; font-family: var(--f-caps); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; }
.lang-switch button[aria-pressed="true"] { background: var(--gold-2); color: var(--night); }
.cart-btn { position: relative; background: transparent; border: 0; color: var(--on-night); cursor: pointer; padding: 4px; display: inline-flex; }
.cart-btn .icon { width: 20px; height: 20px; }
.cart-count { position: absolute; top: -3px; right: -7px; background: var(--alien); color: var(--night); font-family: var(--f-caps); font-size: .58rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; padding: 0 4px; }
.cart-btn.bump { animation: bump .5s ease; }
@keyframes bump { 30% { transform: scale(1.25) rotate(-6deg); } 60% { transform: scale(.95); } }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; border-bottom: 1px solid var(--line-2); pointer-events: none; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 600; font-size: 1.62rem; letter-spacing: .005em; }
.brand-sub { font-family: var(--f-caps); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a:not(.btn) {
  font-family: var(--f-body); font-size: 1.02rem; color: var(--ink); text-decoration: none; padding: 8px 11px; position: relative; white-space: nowrap;
}
.main-nav a:not(.btn)::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 3px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.main-nav a:not(.btn):hover::after, .main-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.main-nav a[aria-current="page"]:not(.btn) { color: var(--oxblood); }
.nav-cta { margin-left: 10px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; cursor: pointer; color: var(--ink); }

@media (max-width: 1140px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 10px var(--gutter) 22px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line-2); font-size: 1.1rem; }
  .main-nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 16px 0 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 18px; }
  .util-addr { display: none; }
  .util-inner { justify-content: flex-end; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-name { font-size: 1.3rem; }
  .brand-sub { font-size: .5rem; letter-spacing: .14em; }
  .header-inner { min-height: 68px; }
  #site-header { min-height: 106px; }
}

/* ---------- Sektioner ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--paper-2); }
.section-alt::before, .section-alt::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line); }
.section-alt::before { top: 0; } .section-alt::after { bottom: 0; }
.section-night { background: var(--night); color: var(--on-night); }
.section-night h2, .section-night h3, .section-night h4 { color: #f6eedb; }
.section-night .lead { color: var(--on-night-muted); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .7; }
.section-head p { color: var(--muted); }
.section-night .section-head p { color: var(--on-night-muted); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* ---------- Stjärnhimmel ---------- */
.starfield {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(134, 176, 143, .13), transparent 62%),
    radial-gradient(900px 600px at 6% 118%, rgba(201, 164, 92, .12), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: var(--on-night);
}
.starfield > canvas.stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* ---------- Startsidans hero ---------- */
.hero { padding: clamp(56px, 8vw, 110px) 0 clamp(70px, 9vw, 120px); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { color: #f8f1df; margin-bottom: .32em; }
.hero h1 em { font-style: italic; color: var(--gold-3); font-weight: 500; }
.hero .lead { color: #cfc6b2; max-width: 36em; }
.hero .eyebrow { color: var(--gold-3); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 26px; font-family: var(--f-caps); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); margin: 0; padding: 0; list-style: none; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts li::before { content: ""; width: 5px; height: 5px; transform: rotate(45deg); background: var(--gold-2); }
.hero-art { position: relative; }
.diploma-frame {
  position: relative; background: linear-gradient(135deg, #3a2a14, #1d140a); padding: 12px; border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(226, 201, 145, .35), var(--shadow-lg), 0 0 80px rgba(201, 164, 92, .12);
  transform: rotate(-1.6deg);
}
.diploma-frame::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(226, 201, 145, .5); pointer-events: none; }
.diploma-frame canvas { width: 100%; height: auto; aspect-ratio: 2480 / 1754; background: #f2e8d0; transition: opacity .5s; }
.diploma-frame canvas.fade { opacity: .25; }
.hero-art .caption { margin-top: 22px; text-align: center; font-style: italic; color: var(--on-night-muted); font-size: .95rem; }
.hero-seal { position: absolute; width: 132px; right: -26px; top: -46px; transform: rotate(10deg); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .45)); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-seal { width: 96px; right: -8px; top: -36px; }
}

.ufo { background: none; border: 0; padding: 0; position: absolute; top: 16%; left: -90px; width: 64px; z-index: 0; opacity: 0; cursor: pointer; animation: ufo 46s linear 7s infinite; color: var(--gold-3); }
.ufo svg { width: 64px; height: auto; }
@keyframes ufo {
  0% { transform: translate(0, 0) rotate(-4deg); opacity: 0; }
  2% { opacity: .75; }
  14% { transform: translate(calc(50vw), -26px) rotate(3deg); }
  28% { transform: translate(calc(100vw + 180px), 8px) rotate(-3deg); opacity: .75; }
  29%, 100% { transform: translate(calc(100vw + 180px), 8px); opacity: 0; }
}

/* ---------- Undersidors hero ---------- */
.page-hero { padding: clamp(54px, 7vw, 92px) 0 clamp(50px, 6vw, 80px); }
.page-hero h1 { color: #f8f1df; max-width: 16ch; }
.page-hero .lead { color: #cfc6b2; max-width: 40em; margin: 0; }
.page-hero .eyebrow { color: var(--gold-3); }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-hero-seal { width: 170px; opacity: .9; }
.breadcrumb { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--on-night-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-3); }
.breadcrumb span.sep { margin: 0 .6em; color: var(--gold-2); }
@media (max-width: 760px) { .page-hero-grid { grid-template-columns: 1fr; } .page-hero-seal { display: none; } }

/* ---------- Kort ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.6vw, 32px);
  position: relative; box-shadow: var(--shadow-sm);
}
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .25s, box-shadow .25s, border-color .25s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-2); color: inherit; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

.path-card { padding-top: 38px; display: flex; flex-direction: column; }
.path-card .roman { font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 14px; font-weight: 500; }
.path-card p { color: var(--muted); flex: 1; }
.path-card .more { font-family: var(--f-caps); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oxblood); display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.path-card .more .icon { width: 16px; height: 16px; transition: transform .25s; }
.path-card:hover .more .icon { transform: translateX(4px); }

.fac-card { display: flex; flex-direction: column; gap: 6px; }
.fac-card .fac-icon { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); margin-bottom: 10px; background: var(--paper); }
.fac-card .fac-icon .icon { width: 24px; height: 24px; }
.fac-card h3 { font-size: 1.32rem; }
.fac-card p { color: var(--muted); font-size: .96rem; flex: 1; }
.fac-card .count { font-family: var(--f-caps); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--oxblood); }

/* ---------- Statistikband ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 10px 20px; border-left: 1px solid rgba(226, 201, 145, .2); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--f-display); font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1; color: var(--gold-3); font-weight: 500; font-variant-numeric: lining-nums tabular-nums; }
.stat .lbl { font-family: var(--f-caps); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-night-muted); margin-top: 10px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } .stat:nth-child(3) { border-left: 0; } }

/* ---------- Citat & rektor ---------- */
.rector { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.rector .avatar-svg { width: 150px; }
.rector blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.3; color: var(--ink); font-style: italic; }
.rector .sig { white-space: nowrap; font-family: var(--f-script); font-size: 2.2rem; color: #22305c; margin-top: 14px; line-height: 1; }
.rector .sig-title { font-family: var(--f-caps); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 560px) { .rector { grid-template-columns: 1fr; } .rector .avatar-svg { width: 110px; } }

.testimonial { display: flex; flex-direction: column; gap: 18px; }
.testimonial blockquote { margin: 0; font-family: var(--f-display); font-size: 1.32rem; line-height: 1.38; color: var(--ink); font-style: italic; flex: 1; }
.testimonial blockquote::before { content: "”"; display: block; font-size: 3.4rem; line-height: .6; color: var(--gold-2); font-style: normal; margin-bottom: 4px; }
.testimonial .who { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line-2); padding-top: 16px; }
.testimonial .who .avatar-svg { width: 58px; flex: none; }
.testimonial .who strong { display: block; font-family: var(--f-display); font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.testimonial .who span { display: block; font-size: .86rem; color: var(--muted); line-height: 1.35; }

/* ---------- Nyheter ---------- */
.news-list { display: grid; gap: 0; }
.news-item { display: grid; grid-template-columns: 170px 1fr; gap: 26px; padding: 24px 0; border-top: 1px solid var(--line); }
.news-item:last-child { border-bottom: 1px solid var(--line); }
.news-item time { font-family: var(--f-caps); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); line-height: 1.8; }
.news-item time .sd { display: block; color: var(--muted); }
.news-item h3 { font-size: 1.4rem; margin-bottom: .2em; }
.news-item p { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .news-item { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Formulär ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .field .label { font-family: var(--f-caps); font-weight: 600; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.field .help { font-size: .86rem; color: var(--muted); font-style: italic; }
input[type="text"], input[type="search"], input[type="date"], input[type="email"], select, textarea {
  font: inherit; font-size: 1.02rem; color: var(--text); background: #fffdf8; border: 1px solid var(--line); border-radius: var(--r);
  padding: .62em .8em; width: 100%; transition: border-color .2s, box-shadow .2s; min-height: 46px;
}
select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23a8823c' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85em center; background-size: 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(201, 164, 92, .2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { flex: 1; min-width: 0; }
.icon-btn { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); cursor: pointer; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-caps); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; min-height: 46px; }
.icon-btn:hover { border-color: var(--gold-2); }
.icon-btn .icon { width: 20px; height: 20px; }

.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; }
.choice .swatch { display: block; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; text-align: center; background: #fffdf8; transition: border-color .2s, box-shadow .2s; }
.choice .swatch i { display: block; height: 42px; border-radius: 2px; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.choice .swatch b { font-family: var(--f-caps); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink); }
.choice input:checked + .swatch { border-color: var(--ink); box-shadow: 0 0 0 2px var(--gold-2); }
.choice input:focus-visible + .swatch { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.sw-parchment { background: radial-gradient(circle at 50% 50%, #f8f0dd, #e3cfa6); border: 3px double #a8823c; }
.sw-midnight { background: radial-gradient(circle at 50% 40%, #1d2c4b, #0a1222); border: 3px double #c9a45c; }
.sw-kansli { background: repeating-linear-gradient(170deg, #f5f7f0 0 5px, #e3ebdf 5px 6px); border: 3px double #2f5d4a; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fffdf8; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; padding: .55em 1em; font-family: var(--f-caps); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; }
.seg input:checked + span { background: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: -2px; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: .42em 1em; cursor: pointer; font-size: .92rem; transition: all .2s; }
.chip:hover { border-color: var(--gold-2); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.tag { display: inline-block; font-family: var(--f-caps); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; padding: .38em .7em; border-radius: 2px; background: rgba(134, 176, 143, .2); color: var(--alien-2); }
.tag.t-flagship, .tag.t-classic { background: rgba(110, 31, 36, .09); color: var(--oxblood); }
.tag.t-new { background: rgba(201, 164, 92, .2); color: #7c5c22; }

/* ---------- Utbildningskatalog ---------- */
.catalog-tools { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 18px 30px; align-items: start; margin-bottom: 36px; }
.search { position: relative; }
.search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--gold); width: 20px; height: 20px; }
.search input { padding-left: 42px; }
@media (max-width: 760px) { .catalog-tools { grid-template-columns: 1fr; } }
.fac-block { margin-bottom: 56px; scroll-margin-top: 120px; }
.fac-block-head { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.fac-block-head .fac-icon { grid-row: span 2; width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--gold-2); display: grid; place-items: center; color: var(--ink); background: var(--card); }
.fac-block-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.fac-block-head .meta { color: var(--muted); font-size: .94rem; }
.fac-block-head .meta b { font-weight: 500; color: var(--ink); }
.course-card { display: flex; flex-direction: column; gap: 8px; }
.course-card .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.course-card .code { font-family: var(--f-caps); font-size: .68rem; letter-spacing: .14em; color: var(--gold); font-weight: 600; }
.course-card h3 { font-size: 1.36rem; margin: 2px 0 2px; }
.course-card p { color: var(--muted); font-size: .97rem; flex: 1; margin-bottom: 8px; }
.course-card .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line-2); padding-top: 14px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto 14px; color: var(--gold); }

/* ---------- Examensomräknaren ---------- */
.translator { display: grid; grid-template-columns: .92fr 1.08fr; gap: clamp(26px, 4vw, 54px); align-items: start; }
@media (max-width: 920px) { .translator { grid-template-columns: 1fr; } }
.equiv {
  background: #fbf6ea; border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 44px); position: relative; box-shadow: var(--shadow);
  background-image: radial-gradient(circle at 50% 30%, rgba(201, 164, 92, .08), transparent 70%);
}
.equiv::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); pointer-events: none; }
.equiv-head { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 20px; }
.equiv-head .crest { width: 74px; margin: 0 auto 10px; }
.equiv-head h3 { font-family: var(--f-caps); font-size: 1rem; letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.equiv-head .no { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .14em; color: var(--muted); margin-top: 6px; }
.equiv dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; }
.equiv dt { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: .45em; }
.equiv dd { margin: 0; color: var(--ink); }
.equiv dd.big { font-family: var(--f-display); font-size: 1.6rem; line-height: 1.15; font-weight: 600; }
.equiv .meter { height: 8px; background: var(--paper-2); border-radius: 4px; overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.equiv .meter i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-2), var(--alien)); transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.equiv .remark { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; font-style: italic; color: var(--muted); }
.equiv .stamp { position: absolute; right: 26px; top: 120px; }
@media (max-width: 560px) { .equiv dl { grid-template-columns: 1fr; gap: 2px; } .equiv dd { margin-bottom: 10px; } .equiv .stamp { top: 70px; right: 10px; transform: scale(.75) rotate(-14deg); } }
.equiv-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.equiv-empty .crest { width: 120px; margin: 0 auto 20px; opacity: .35; }

.stamp {
  font-family: var(--f-caps); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: .95rem; color: var(--oxblood);
  border: 3px double var(--oxblood); padding: .4em .8em; transform: rotate(-12deg); opacity: .78; border-radius: 4px;
  mix-blend-mode: multiply; pointer-events: none; text-align: center; line-height: 1.2;
}
.stamp small { display: block; font-size: .56rem; letter-spacing: .16em; }
.stamp.in { animation: stamp .45s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stamp { from { transform: scale(2.4) rotate(-20deg); opacity: 0; } to { transform: rotate(-12deg); opacity: .78; } }

.steps { counter-reset: s; display: grid; gap: 22px; }
.steps li { list-style: none; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.steps li::before { counter-increment: s; content: counter(s, upper-roman); font-family: var(--f-caps); font-weight: 600; color: var(--gold); border: 1px solid var(--gold-2); border-radius: 50%; width: 46px; height: 46px; display: grid; place-items: center; font-size: .9rem; }
.steps h4 { margin: 4px 0 2px; }
.steps p { margin: 0; color: var(--muted); }
.steps { padding: 0; margin: 0; }

/* ---------- Diplomverkstaden ---------- */
.studio { display: grid; grid-template-columns: 400px 1fr; gap: clamp(24px, 3vw, 44px); align-items: start; }
@media (max-width: 1080px) {
  .studio { grid-template-columns: 1fr; gap: 18px; }
  .studio-preview { display: contents; }
  .preview-stage { order: -2; }
  .studio-form { order: -1; }
  .export-bar, .share-box, .order-box { margin-top: 0; }
}
.studio-form { background: var(--card); border: 1px solid var(--line); padding: 28px 26px; border-radius: var(--r); }
.studio-form h3 { font-family: var(--f-caps); font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 28px 0 16px; padding-top: 22px; border-top: 1px solid var(--line-2); font-weight: 600; }
.studio-form h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.studio-preview { position: sticky; top: 104px; }
.preview-stage { background: radial-gradient(circle at 50% 40%, #2a3858, #0d1528 72%); padding: clamp(14px, 3vw, 40px); border-radius: var(--r); position: relative; box-shadow: var(--shadow); }
.preview-stage canvas { width: 100%; height: auto; aspect-ratio: 2480 / 1754; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .06); background: #f2e8d0; }
.preview-stage .busy { position: absolute; right: 16px; top: 12px; font-family: var(--f-caps); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-3); opacity: 0; transition: opacity .2s; }
.preview-stage.rendering .busy { opacity: .8; }
.export-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.share-box { margin-top: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.share-box h4 { font-family: var(--f-caps); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; font-weight: 600; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-links a, .share-links button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fffdf8; border-radius: var(--r); padding: .55em .9em; font-size: .92rem; color: var(--ink); text-decoration: none; cursor: pointer; }
.share-links a:hover, .share-links button:hover { border-color: var(--ink); color: var(--ink); }
.share-links .icon { width: 18px; height: 18px; }
.serial-line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; margin-top: 14px; font-size: .88rem; color: var(--muted); }
.serial-line code { font-family: var(--f-caps); letter-spacing: .1em; color: var(--ink); font-size: .8rem; }
.order-box { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }
.order-box p { margin: 0; font-size: .95rem; }
.order-box strong { font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }

/* ---------- Verifiering ---------- */
.verify-grid { display: grid; grid-template-columns: 1.35fr .9fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .verify-grid { grid-template-columns: 1fr; } }
.verify-panel { background: var(--card); border: 1px solid var(--line); padding: 30px; border-radius: var(--r); position: relative; overflow: hidden; }
.verify-status { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.verify-status .badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: rgba(134, 176, 143, .2); color: var(--alien-2); border: 1px solid var(--alien); flex: none; }
.verify-status .badge .icon { width: 28px; height: 28px; stroke-width: 2.2; }
.verify-status.bad .badge { background: rgba(110, 31, 36, .1); color: var(--oxblood); border-color: var(--oxblood); }
.verify-status h2 { font-size: 1.7rem; margin: 0; }
.verify-panel dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0 0 18px; }
.verify-panel dt { font-family: var(--f-caps); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); padding-top: .45em; }
.verify-panel dd { margin: 0; color: var(--ink); }

/* ---------- Antagningsprov ---------- */
.quiz { max-width: 820px; margin: 0 auto; }
.quiz-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(26px, 4vw, 52px); box-shadow: var(--shadow); position: relative; }
.quiz-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; font-family: var(--f-caps); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.quiz-progress .bar { flex: 1; height: 3px; background: var(--line-2); position: relative; }
.quiz-progress .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--gold-2); transition: width .4s; }
.quiz-q { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); line-height: 1.18; margin-bottom: 26px; font-weight: 500; }
.quiz-answers { display: grid; gap: 12px; }
.quiz-answers button {
  text-align: left; background: #fffdf8; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; cursor: pointer; font-size: 1.08rem;
  display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; transition: all .2s; color: var(--text);
}
.quiz-answers button b { font-family: var(--f-caps); color: var(--gold); font-size: .85rem; }
.quiz-answers button:hover { border-color: var(--ink); transform: translateX(3px); background: #fff; }
.quiz-anim { animation: quizIn .45s ease both; }
@keyframes quizIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.letter { background: #fbf6ea; border: 1px solid var(--line); padding: clamp(28px, 5vw, 64px); box-shadow: var(--shadow-lg); position: relative; }
.letter::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--line); pointer-events: none; }
.letter-head { display: flex; align-items: center; gap: 18px; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 26px; }
.letter-head .crest { width: 70px; flex: none; }
.letter-head .t { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); line-height: 1.1; font-weight: 600; }
.letter-head .s { font-family: var(--f-caps); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.letter .ref { margin-left: auto; text-align: right; font-family: var(--f-caps); font-size: .6rem; letter-spacing: .12em; color: var(--muted); }
.letter h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.letter .sig { font-family: var(--f-script); font-size: 2.4rem; color: #22305c; line-height: 1; margin-top: 26px; }
.letter .stamp { position: absolute; right: 40px; bottom: 40px; font-size: 1.15rem; }
.rec-list { display: grid; gap: 10px; margin: 18px 0 26px; padding: 0; list-style: none; }
.rec-list li { border-left: 2px solid var(--gold-2); padding: 4px 0 4px 14px; }
.rec-list li b { font-family: var(--f-display); font-size: 1.18rem; color: var(--ink); display: block; }
.rec-list li span { font-size: .92rem; color: var(--muted); }

/* ---------- Åldersräknare ---------- */
.age-calc { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(26px, 5vw, 64px); align-items: start; }
@media (max-width: 900px) { .age-calc { grid-template-columns: 1fr; } }
.age-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.age-form .field { margin: 0; flex: 1; min-width: 200px; }
.age-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.age-tile { background: rgba(255, 255, 255, .03); border: 1px solid rgba(226, 201, 145, .2); border-radius: var(--r); padding: 14px 16px; }
.age-tile .p { font-family: var(--f-caps); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted); }
.age-tile .a { font-family: var(--f-display); font-size: 2.1rem; color: var(--gold-3); line-height: 1.1; font-variant-numeric: lining-nums; }
.age-tile .a small { font-size: .9rem; color: var(--on-night-muted); margin-left: 4px; }
.age-tile .n { font-size: .82rem; color: var(--on-night-muted); line-height: 1.35; }
.age-tile.special { border-style: dashed; border-color: rgba(134, 176, 143, .5); }
.age-tile.special .a { color: var(--alien); }
.section-night input[type="date"] { background: rgba(255, 255, 255, .06); border-color: rgba(226, 201, 145, .3); color: var(--on-night); color-scheme: dark; }
.section-night .field label { color: var(--on-night); }

/* ---------- Lärarkår & campus ---------- */
.staff-card { text-align: center; }
.staff-card .avatar-svg { width: 132px; margin: 0 auto 16px; }
.staff-card h3 { font-size: 1.32rem; margin-bottom: 2px; }
.staff-card .role { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--oxblood); margin-bottom: 6px; }
.staff-card .origin { font-size: .86rem; color: var(--gold); font-style: italic; margin-bottom: 10px; }
.staff-card p { font-size: .95rem; color: var(--muted); }

.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 132px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 112px 1fr; gap: 40px; padding: 14px 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 127px; top: 24px; width: 11px; height: 11px; transform: rotate(45deg); background: var(--paper); border: 1px solid var(--gold); }
.timeline .yr { font-family: var(--f-caps); font-weight: 600; color: var(--gold); text-align: right; font-size: .82rem; letter-spacing: .08em; padding-top: 4px; }
.timeline h4 { margin: 0 0 2px; font-size: 1.25rem; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 560px) {
  .timeline::before { left: 6px; } .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 30px; } .timeline li::before { left: 1px; top: 20px; } .timeline .yr { text-align: left; }
}

.campus-wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: stretch; }
@media (max-width: 900px) { .campus-wrap { grid-template-columns: 1fr; } }
.campus-map { border: 1px solid rgba(226, 201, 145, .25); border-radius: var(--r); background: rgba(0, 0, 0, .18); position: relative; }
.campus-map svg { width: 100%; height: auto; }
.campus-map .node { cursor: pointer; }
.campus-map .node circle.hit { fill: transparent; }
.campus-map .node .dot { fill: var(--gold-2); transition: r .2s; }
.campus-map .node .halo { fill: none; stroke: var(--gold-2); opacity: .45; }
.campus-map .node.active .dot { fill: var(--alien); }
.campus-map .node.active .halo { stroke: var(--alien); opacity: .9; }
.campus-map .node text { fill: var(--on-night); font-family: var(--f-caps); font-size: 13px; letter-spacing: .1em; }
.campus-map .node:focus { outline: none; }
.campus-map .node:focus-visible .halo { stroke: #fff; opacity: 1; }
.campus-info { border: 1px solid rgba(226, 201, 145, .25); border-radius: var(--r); padding: 28px; background: rgba(255, 255, 255, .03); }
.campus-info .latin { color: var(--gold-3); }
.campus-info h3 { margin: 8px 0 10px; }
.campus-info p { color: var(--on-night-muted); }
.campus-info .kv { font-size: .92rem; border-top: 1px solid rgba(226, 201, 145, .2); padding-top: 12px; margin-top: 12px; color: var(--on-night); }

.accred { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .accred { grid-template-columns: 1fr; } }
.accred .card { text-align: center; }
.accred .badge-crest { width: 92px; height: 92px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-2); color: var(--ink); font-family: var(--f-caps); font-weight: 700; letter-spacing: .1em; font-size: 1.05rem; background: radial-gradient(circle, #fff, var(--paper-2)); box-shadow: inset 0 0 0 5px var(--card), inset 0 0 0 6px var(--line); }

/* ---------- Butik & priser ---------- */
.price-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); }
.price-table th, .price-table td { text-align: left; padding: 18px 20px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.price-table th { font-family: var(--f-caps); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; background: var(--paper); }
.price-table td.p { font-family: var(--f-display); font-size: 1.5rem; color: var(--ink); white-space: nowrap; font-weight: 600; }
.price-table td .t { font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); font-weight: 600; display: block; line-height: 1.2; }
.price-table td .d { font-size: .92rem; color: var(--muted); }
.price-table td:last-child { text-align: right; }
@media (max-width: 640px) {
  .price-table thead { display: none; }
  .price-table tr { display: grid; grid-template-columns: 1fr auto; padding: 14px 16px; border-bottom: 1px solid var(--line-2); gap: 6px 12px; }
  .price-table td { padding: 0; border: 0; }
  .price-table td:last-child { grid-column: 1 / -1; text-align: left; }
}
.product-card { display: flex; flex-direction: column; }
.product-art { height: 150px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #fff, var(--paper-2)); border: 1px solid var(--line-2); border-radius: 2px; margin-bottom: 18px; color: var(--ink); position: relative; overflow: hidden; }
.product-art .icon { width: 64px; height: 64px; stroke-width: 1.1; }
.product-art::after { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(168, 130, 60, .3); }
.product-card h3 { font-size: 1.28rem; }
.product-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.product-card .buy { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.product-card .buy .p { font-family: var(--f-display); font-size: 1.45rem; color: var(--ink); font-weight: 600; }
.note { font-size: .9rem; color: var(--muted); font-style: italic; }

.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--f-display); font-size: 1.36rem; color: var(--ink); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--f-body); font-size: 1.6rem; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 0 22px; color: var(--muted); }

/* ---------- Sidfot ---------- */
#site-footer { min-height: 200px; }
.site-footer { padding: 72px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand { display: flex; gap: 22px; align-items: flex-start; }
.footer-seal { width: 120px; flex: none; }
.footer-brand address { font-style: normal; color: var(--on-night-muted); line-height: 1.6; }
.footer-col h4 { font-family: var(--f-caps); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-3); font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--on-night); text-decoration: none; padding: 3px 0; }
.footer-col a:hover { color: var(--gold-3); }
.footer-bottom { border-top: 1px solid rgba(226, 201, 145, .18); margin-top: 52px; padding-top: 22px; color: var(--on-night-muted); font-size: .85rem; }
.footer-bottom p { margin: 0 0 6px; }
.footer-bottom .disclaimer { font-style: italic; opacity: .85; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .footer-seal { width: 90px; } }

/* ---------- Kundvagn ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(8, 12, 24, .55); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 80; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--paper); z-index: 81; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 1.6rem; }
.drawer-close { background: none; border: 0; cursor: pointer; color: var(--ink); padding: 4px; }
.drawer-body { flex: 1; overflow: auto; padding: 8px 24px; }
.drawer-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line); background: var(--paper-2); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
.drawer-total strong { font-size: 1.7rem; }
.drawer-empty { text-align: center; padding: 50px 10px; color: var(--muted); }
.drawer-empty .icon { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--gold); }
.cart-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.ci-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.ci-icon .icon { width: 20px; height: 20px; }
.ci-text strong { display: block; font-family: var(--f-display); font-size: 1.08rem; color: var(--ink); line-height: 1.2; }
.ci-meta { display: block; font-size: .8rem; color: var(--muted); font-style: italic; line-height: 1.3; }
.ci-price { font-size: .9rem; color: var(--oxblood); }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); }
.qty button { background: none; border: 0; width: 28px; height: 30px; cursor: pointer; color: var(--ink); font-size: 1.05rem; }
.qty span { min-width: 22px; text-align: center; font-size: .92rem; }

/* ---------- Toast & modal ---------- */
.toast-stack { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 10px; width: min(92vw, 520px); pointer-events: none; }
.toast { background: var(--night); color: var(--on-night); border: 1px solid rgba(226, 201, 145, .3); border-radius: var(--r); padding: 12px 18px; box-shadow: var(--shadow-lg); display: flex; gap: 12px; align-items: center; font-size: .96rem; opacity: 0; transform: translateY(14px); transition: all .35s; pointer-events: auto; }
.toast.in { opacity: 1; transform: none; }
.toast .icon { color: var(--alien); flex: none; }
dialog.modal { border: 0; padding: 0; background: transparent; max-width: min(560px, 92vw); width: 100%; }
dialog.modal::backdrop { background: rgba(8, 12, 24, .6); backdrop-filter: blur(3px); }
.modal-inner { background: var(--paper); border: 1px solid var(--line); padding: 40px 36px 32px; position: relative; text-align: center; box-shadow: var(--shadow-lg); }
.modal-inner::before { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line-2); pointer-events: none; }
.modal-crest { width: 86px; margin: 0 auto 14px; }
.modal-inner h3 { font-size: 1.9rem; }
.modal-body { color: var(--muted); }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; position: relative; }
.modal-close { position: absolute; right: 14px; top: 14px; background: none; border: 0; cursor: pointer; color: var(--ink); z-index: 1; }

/* ---------- Avslöjande ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- Utskrift av diplom ---------- */
#print-area { display: none; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block; }
  body.printing #print-area img { width: 297mm; height: 210mm; object-fit: contain; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ufo { display: none; }
}

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost .big { font-family: var(--f-display); font-size: clamp(6rem, 18vw, 12rem); line-height: .9; color: var(--gold-3); font-weight: 500; }
