/* Namnsdagar.nu: tydliga handlingar, glada färger och plats för riktiga namn.
   Datum och namn är alltid text; illustrationerna är bara dekoration. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/nunito-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("fonts/nunito-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #fff9ed; --yta: #fff; --text: #1c2546; --svag: #505972; --linje: #d9dfed;
  --primar: #3347cc; --primar-mork: #2437ad; --pa-primar: #fff; --lank: #293cb5;
  --rod: #ba3544; --pa-rod: #fff; --lyft: #edf1ff; --gul: #ffe082; --rosa: #ffe4ed;
  --mint: #e1f3e9; --korall: #ff806b; --skugga: 0 4px 0 rgb(40 54 103 / .05), 0 18px 46px rgb(40 54 103 / .08);
  --sans: "Nunito", ui-rounded, "Avenir Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: var(--sans); color-scheme: light;
}
:where(.nd), :where(.nd) *, :where(.nd) *::before, :where(.nd) *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 2rem; }
body.nd { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--sans); }
.nd [hidden] { display: none !important; }
.nd img { max-width: 100%; height: auto; }
.nd a { color: var(--lank); text-underline-offset: .18em; text-decoration-thickness: 1.3px; }
.nd a:hover { text-decoration-thickness: 2px; }
.nd :focus-visible { outline: 3px solid #17246a; outline-offset: 4px; border-radius: 6px; }
.nd h1, .nd h2, .nd h3 { font-family: var(--sans); font-weight: 900; line-height: 1.15; letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.nd h1 { font-size: clamp(2.25rem, 5.2vw, 3.7rem); margin: .8em 0 .45em; }
.nd h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); margin: 0 0 .65em; }
.nd h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.nd p { margin: 0 0 1em; white-space: normal; overflow-wrap: break-word; }
.nd p a:not(.knapp), .nd p strong, .nd p em, .nd p small { white-space: normal; }
.nd section { margin: 2.5rem 0; }
.nd button, .nd input, .nd select, .nd textarea { font-family: inherit; }
.nd button, .nd a, .nd input, .nd label { -webkit-tap-highlight-color: rgb(51 71 204 / .12); }
.nd a, .nd button, .nd input, .nd textarea, .nd select { touch-action: manipulation; }
.nd :is(button,input,select,textarea):disabled { opacity: .6; cursor: wait; }
.nd ::selection { background: var(--gul); color: var(--text); }
.nd .skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 99; padding: .7rem 1rem; color: #fff; background: var(--primar); }
.nd .skip-link:focus { top: 1rem; }

/* Tre synliga val räcker även på en liten skärm. */
.nd .topp { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; max-width: 1224px; margin: 0 auto; padding: 1.4rem 32px; }
.nd .logga { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font: 900 clamp(1.5rem, 3vw, 1.9rem)/1 var(--sans); letter-spacing: -.055em; min-height: 44px; white-space: nowrap; }
.nd .logga__nu { color: var(--primar); }
.nd .logga__blad { display: inline-block; position: relative; flex: 0 0 34px; width: 34px; height: 37px; border-radius: 9px; background: linear-gradient(#ffb4a5, #ff806b 30%, #fff 31%); border: 2px solid #1c2546; box-shadow: 2px 3px 0 #ffe082; transform: rotate(-7deg); }
.nd .logga__blad::after { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 2px; background: var(--primar); left: 6px; top: 18px; box-shadow: 11px 0 0 var(--primar); }
.nd .logga__ikon, .nd .logga > img, .nd .logga > svg { display: block; flex: 0 0 42px; width: 42px; height: 44px; object-fit: contain; }
.nd .meny { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.nd .meny a { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .6rem 1rem; border-radius: 100px; color: var(--text); font-size: .96rem; font-weight: 800; text-decoration: none; white-space: normal; line-height: 1.25; text-align: center; transition: background .18s, color .18s, transform .18s; }
.nd .meny a:hover { background: #e9edff; }
.nd .meny a[aria-current="page"] { background: var(--primar); color: #fff; }
.nd .meny li { list-style: none; margin: 0; padding: 0; }
.nd main { max-width: 1224px; margin: 0 auto; padding: .25rem 32px 4.5rem; }
.nd main > * { max-width: 800px; margin-left: auto; margin-right: auto; }
.nd main > :is(.hem-hero,.hem-grid,.hem-lista,.hem-notiser,.hem-steg,.kalender-grid,.kalender-manader) { max-width: none; }
.nd main > :first-child:not(.hem-hero) { margin-top: 2.3rem; }
.nd main > .ingress { font-size: clamp(1.1rem, 1.8vw, 1.25rem); }
.nd .ingress { font-size: 1.15rem; line-height: 1.6; color: #414d6b; }
.nd .svag { color: var(--svag); font-size: .9em; line-height: 1.55; }
.nd .fel { color: #a62439; background: #fff0f2; border: 1px solid #edbdc5; border-radius: 12px; font-weight: 700; padding: .85rem 1rem; }
.nd .overrad { color: var(--primar); font-size: .78rem; font-weight: 900; letter-spacing: .11em; line-height: 1.5; text-transform: uppercase; margin-bottom: 1rem; }

/* Startsidan är en snabb väg till ett namn eller en personlig lista. */
.nd .hem-hero { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(0, .83fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); margin: 2.2rem 0 3rem; }
.nd .hem-hero__text { min-width: 0; padding: .4rem 0; }
.nd .hem-hero h1 { font-size: clamp(2.8rem, 5vw, 4.3rem); letter-spacing: -.055em; line-height: 1.035; margin: .3rem 0 1.25rem; max-width: 18ch; }
.nd .hem-hero .ingress { max-width: 41ch; font-size: 1.15rem; margin-bottom: 1.6rem; }
.nd .hem-hero .sok { margin-top: 1.7rem; }
.nd .hem-hero .sok label { font-weight: 800; margin-bottom: .65rem; font-size: 1rem; }
.nd .hem-hero .sok__rad { padding: 5px; border: 1.5px solid #aebbe2; border-radius: 18px; background: #fff; box-shadow: 0 7px 0 rgb(51 71 204 / .05); gap: .2rem; }
.nd .hem-hero .sok__rad input { border: 0; box-shadow: none; background: transparent; padding-left: .9rem; }
.nd .hem-hero .sok__rad input:focus { box-shadow: none; }
.nd .hem-hero .sok__rad:focus-within { border-color: var(--primar); box-shadow: 0 0 0 3px rgb(51 71 204 / .1); }
.nd .hem-hero .sok button { border-radius: 12px; min-width: 78px; }
.nd .hem-hero__dag { min-width: 0; position: relative; isolation: isolate; padding: 2.3rem 1.2rem 1.2rem; }
.nd .hem-hero__dag .blad { width: 100%; max-width: 355px; margin: 0 auto; position: relative; z-index: 2; transform: rotate(2deg); }
.nd .hem-hero__bild { position: absolute; z-index: 0; right: -12%; top: -15%; width: 76%; max-width: 340px; margin: 0; pointer-events: none; }
.nd .hem-hero__bild img { display: block; width: 100%; border-radius: 50%; }
.nd .hem-hero__dag > img.hem-hero__bild { border-radius: 50%; }
.nd .hem-hero__dag > .svag { position: relative; z-index: 3; margin: 1.4rem auto 0; max-width: 28ch; text-align: center; }
.nd .hem-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; margin: 2rem 0 3.5rem; }
.nd .hem-grid > section { min-width: 0; margin: 0; padding: 1.8rem; border-radius: 24px; border: 1px solid var(--linje); background: #fff; }
.nd .hem-grid .hem-kommande { border-top: 5px solid var(--primar); }
.nd .hem-grid .hem-firar { border-top: 5px solid var(--korall); }
.nd .hem-grid h2 { font-size: 1.65rem; }
.nd .hem-grid .tabell { box-shadow: none; border-color: transparent; }
.nd .hem-grid .tabell td, .nd .hem-grid .tabell th { padding-left: .4rem; padding-right: .4rem; }
.nd .sektionshuvud { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .9rem; }
.nd .sektionshuvud h2 { margin: 0; }
.nd .hem-lista { display: block; align-items: center; gap: 2rem; padding: 2.6rem 3rem; background: var(--gul); border: 1px solid #f2ca65; border-radius: 30px; margin: 3rem 0; overflow: hidden; }
.nd .hem-lista h2 { font-size: clamp(2rem, 3.5vw, 3rem); max-width: 17ch; margin-bottom: .6em; }
.nd .hem-lista p { max-width: 65ch; }
.nd .hem-lista .hem-steg { max-width: none; }
.nd .hem-steg strong, .nd .hem-steg span { display: block; }
.nd .hem-steg strong { line-height: 1.3; margin-bottom: .35rem; }
.nd .hem-steg span { color: var(--svag); font-size: .92rem; line-height: 1.5; }
.nd .hem-hero__dag > .overrad { position: relative; z-index: 3; text-align: left; width: min(100%,355px); margin: 0 auto .8rem; padding-left: .4rem; }
.nd .hem-hero__gratulera { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.4rem; }
.nd .hem-lista__bild { margin: 0; min-width: 0; }
.nd .hem-lista__bild img { display: block; width: 100%; max-width: 310px; margin: auto; border-radius: 28px; }
.nd .hem-steg { list-style: none; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; padding: 0; margin: 2.5rem 0; counter-reset: steg; }
.nd .hem-steg li { position: relative; padding-left: 3.4rem; min-width: 0; counter-increment: steg; }
.nd .hem-steg li::before { content: counter(steg); position: absolute; left: 0; top: 0; width: 40px; height: 40px; display: grid; place-items: center; font-weight: 900; font-size: 1.2rem; background: var(--gul); color: var(--text); border-radius: 14px; }
.nd .hem-steg li:nth-child(2)::before { background: var(--rosa); }
.nd .hem-steg li:nth-child(3)::before { background: var(--mint); }
.nd .hem-steg h3 { margin: .15rem 0 .4rem; }
.nd .hem-notiser { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem; }
.nd .hem-notiser > section, .nd .hem-notiser > article { min-width: 0; margin: 0; border-radius: 22px; padding: 1.8rem; background: var(--mint); }
.nd .hem-notiser > :nth-child(2) { background: var(--rosa); }
.nd .hem-notiser h2 { font-size: 1.5rem; }
.nd .hem-notiser p:last-child { margin-bottom: 0; }

/* Det riktiga almanacksbladet håller ihop även långa svenska namn. */
.nd .blad { position: relative; width: min(100%, 390px); margin: 1rem auto 2rem; text-align: center; background: #fff; border: 2px solid #233eb9; border-radius: 23px; box-shadow: 6px 8px 0 #dce4ff, 0 22px 45px rgb(35 45 93 / .1); overflow: hidden; }
.nd .blad p { margin: 0; }
.nd .blad__manad { background: linear-gradient(180deg,#5066eb 0%, #3347cc 100%); color: #fff; padding: 1.1rem 1rem .95rem; font-size: .86rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.nd .blad__siffra { font: 900 clamp(6rem, 12vw, 8.6rem)/1 var(--sans); color: var(--text); padding-top: .7rem; font-variant-numeric: lining-nums; letter-spacing: -.08em; padding-right: .08em; }
.nd .blad__siffra a { color: inherit; text-decoration: none; }
.nd .blad--rod .blad__siffra { color: var(--rod); }
.nd .blad__veckodag { color: var(--svag); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: .25rem .8rem 1rem; }
.nd .blad__namn { font-size: clamp(1.75rem, 3.2vw, 2.35rem); line-height: 1.15; margin: 0; padding: 1.15rem 1.1rem 1.25rem; border-top: 1px solid #e4e8f5; background: #f6f8ff; }
.nd .blad__namn a { color: var(--primar-mork); text-decoration: none; }
.nd .blad__namn a:hover { text-decoration: underline; }
.nd .blad__ingen { color: var(--svag); font-size: .9em; }
.nd .blad__dagnamn, .nd .blad__kommande { color: var(--svag); font-size: .9rem; padding: 0 1rem 1rem; background: #f6f8ff; }

/* Formulär och knappar är medvetet stora, med samma beteende överallt. */
.nd .ruta { background: #fff; border: 1px solid var(--linje); border-radius: 24px; padding: clamp(1.2rem,3vw,2rem); box-shadow: 0 5px 0 rgb(40 54 103 / .025); }
.nd .ruta > :last-child { margin-bottom: 0; }
.nd .ruta--lyft { background: var(--lyft); border-color: #d4dcff; }
.nd label { display: block; font-weight: 700; margin-bottom: .5rem; }
.nd input[type="text"], .nd textarea, .nd select { width: 100%; min-width: 0; max-width: 100%; min-height: 50px; font: inherit; color: var(--text); background: #fff; border: 1.5px solid #aab4ce; border-radius: 12px; padding: .75rem 1rem; transition: border-color .15s, box-shadow .15s; }
.nd input::placeholder, .nd textarea::placeholder { color: #69728a; opacity: 1; }
.nd :is(input[type="text"],textarea,select):focus { border-color: var(--primar); box-shadow: 0 0 0 3px rgb(51 71 204 / .09); outline: 2px solid transparent; }
.nd select { width: auto; padding-right: 2.6rem; }
.nd textarea { resize: vertical; min-height: 10rem; line-height: 1.7; }
.nd .sok__rad { display: flex; gap: .6rem; margin-bottom: .9rem; }
.nd .sok__rad input { flex: 1; min-width: 0; }
.nd .knapp, .nd .sok button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; max-width: 100%; padding: .75rem 1.2rem; background: var(--primar); color: #fff; border: 1.5px solid var(--primar); border-radius: 13px; font: 800 1rem/1.3 var(--sans); letter-spacing: -.01em; text-align: center; text-decoration: none; white-space: normal; overflow-wrap: anywhere; cursor: pointer; box-shadow: 0 3px 0 rgb(26 40 115 / .13), inset 0 1px 0 rgb(255 255 255 / .16); transition: background .18s, box-shadow .18s, transform .18s; }
.nd .knapp:hover, .nd .sok button:hover { background: var(--primar-mork); border-color: var(--primar-mork); transform: translateY(-1px); text-decoration: none; }
.nd .knapp:active, .nd .sok button:active { transform: translateY(1px); box-shadow: none; }
.nd .knapp--tyst { background: #fff; color: var(--primar-mork); border-color: #aebbe2; box-shadow: none; }
.nd .knapp--tyst:hover { color: var(--primar-mork); background: #eef2ff; border-color: var(--primar); }
.nd .knapp--liten { min-height: 44px; padding: .6rem .85rem; font-size: .9rem; }
.nd .knapprad { display: flex; flex-wrap: wrap; gap: .75rem; }
.nd .lankknapp { min-height: 44px; background: none; border: 0; padding: .4rem .2rem; font: 700 1rem/1.4 var(--sans); color: var(--lank); text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.nd .lankknapp--fara { color: #a62439; font-size: .92rem; }
.nd .filrad { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; margin: 1rem 0; }
.nd .filrad label { margin: 0; }
.nd .kopierarad { display: flex; gap: .6rem; }
.nd .kopierarad input { flex: 1; min-width: 0; font-size: .9rem; }
.nd .sida-intro { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: 2rem; align-items: center; max-width: 900px; }
.nd .sida-intro h1 { margin-top: .35rem; }
.nd .sida-intro .ingress { max-width: 44ch; }
.nd .sida-intro__bild { min-width: 0; margin: 0; }
.nd .sida-intro__bild img { display: block; width: 100%; max-width: 270px; margin: auto; border-radius: 28px; }
.nd #mina-tavla { background: #fff; border: 1px solid var(--linje); border-radius: 24px; padding: 1.7rem; scroll-margin-top: 1rem; }
.nd #mina-kalender { background: var(--mint); border-color: #bcddcd; }
.nd #mina-lanksektion { border-style: dashed; background: #fffcf5; }
.nd #mina-form { margin-top: 2rem; }
.nd #mina-form label:not(.knapp) { font-size: .94rem; }

.nd .kontaktimport { margin: 1.2rem 0; padding: .3rem 1rem; border: 1px solid var(--linje); border-radius: 13px; background: #fafbff; }
.nd .kontaktimport summary { min-height: 44px; padding: .55rem 0; font-weight: 800; color: var(--primar-mork); cursor: pointer; }
.nd .kontaktimport .filrad { display: block; margin-top: .5rem; }
.nd .kontaktimport input[type="file"] { max-width: 100%; width: 100%; padding: .3rem 0; font-size: .9rem; color: var(--svag); }
.nd .kontaktimport input[type="file"]::file-selector-button { min-height: 44px; margin-right: .7rem; padding: .65rem .9rem; border: 1px solid #aebbe2; border-radius: 10px; color: var(--primar-mork); background: #fff; font: 800 .9rem var(--sans); cursor: pointer; }
.nd .kontaktimport input[type="file"]::file-selector-button:hover { background: #eef2ff; }
.nd .kontaktimport #mina-filinfo { display: block; margin-top: .4rem; }

/* Tabeller behåller sin tabellstruktur och siffror har jämn bredd. */
.nd .tabellomslag { width: 100%; overflow-x: auto; border-radius: 16px; }
.nd .tabell { width: 100%; border-collapse: separate; border-spacing: 0; margin-bottom: 1rem; border: 1px solid var(--linje); border-radius: 16px; overflow: hidden; background: #fff; font-size: .96rem; }
.nd .tabell th { color: #3e4f79; background: #eef2ff; font-weight: 800; font-size: .76rem; line-height: 1.4; text-align: left; letter-spacing: .04em; text-transform: uppercase; }
.nd .tabell th, .nd .tabell td { padding: .9rem 1rem; vertical-align: top; border-bottom: 1px solid #e4e8f1; overflow-wrap: anywhere; }
.nd .tabell tr:last-child td { border-bottom: 0; }
.nd .tabell tbody tr:nth-child(even) { background: #fafbff; }
.nd .tabell tbody tr:hover { background: #f3f6ff; }
.nd .tabell td > a { font-weight: 800; }
.nd .tabell .tal { text-align: right; font-variant-numeric: tabular-nums; }
.nd .tabell td.tal { white-space: nowrap; }
.nd .tabell th.tal { white-space: normal; }
.nd .tabell .svag { font-size: .87em; }

.nd .dagrad { list-style: none; margin: 0 0 1rem; padding: 0; }
.nd .dagrad li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; min-width: 0; padding: .9rem 0; border-bottom: 1px solid var(--linje); }
.nd .dagrad li:last-child { border-bottom: 0; }
.nd .dagrad__datum { flex: 0 0 auto; min-width: 9rem; color: var(--svag); font-size: .94rem; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.nd .dagrad__datum span { display: inline-block; width: 2.1rem; color: #5a6481; font-size: .74rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; }
.nd .dagrad__namn { flex: 1 1 10rem; min-width: 0; font-size: 1.08rem; font-weight: 800; overflow-wrap: anywhere; }
.nd .dagrad__namn a { text-decoration: none; }
.nd .dagrad__namn a:hover { text-decoration: underline; }
.nd .dagrad__namn .svag { font-weight: 400; }
.nd .dagrad--mina li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .1rem .75rem; padding: 1rem 0; }
.nd .dagrad--mina .dagrad__datum, .nd .dagrad--mina .dagrad__namn { grid-column: 1; }
.nd .dagrad--mina .knapp { grid-column: 2; grid-row: 1 / span 2; }
.nd .dagrad--mina li.idag { background: #fff2b8; padding-inline: 1rem; margin: .4rem -1rem; border-radius: 15px; border-bottom: 0; }
.nd .bricka { display: inline-block; max-width: 100%; padding: .4rem .7rem; border-radius: 100px; border: 1px solid #c8d2ee; color: #34436f; background: #edf1ff; font: 800 .72rem/1.35 var(--sans); letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; white-space: normal; }
.nd .bricka--officiell, .nd .bricka--idag { background: #dff2e9; border-color: #badbca; color: #20553f; }
.nd .bricka--stavning { background: #f0ebff; color: #55428a; border-color: #d8caef; }
.nd .bricka--slakt { background: #fff0d2; color: #75531b; border-color: #e6d1a6; }
.nd .bricka--form { background: #e8f1ff; color: #344b86; }
.nd .bricka--dubbelnamn { background: #ffeaf0; color: #86384f; border-color: #edcad5; }
.nd .bricka--ingen { border-style: dashed; color: #596075; background: #f2f3f7; }
.nd .namnhuvud { padding: 1.3rem 0 .2rem; margin-top: 1.3rem; }
.nd .namnhuvud p { margin: 0; }
.nd .namnhuvud h1 { margin-top: .8rem; }
.nd .namnhuvud h1 a { color: var(--primar); text-decoration-thickness: 2px; }
.nd .nedrakning { color: var(--svag); font-size: 1.12rem; margin-bottom: 1rem !important; }
.nd .nedrakning strong { color: var(--primar); }
.nd .brodsmulor { font-size: .94rem; margin: 1rem auto; }
.nd .brodsmulor a { display: inline-block; min-height: 44px; padding: .5rem 0; }
.nd .bladdra { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; border-top: 1px solid var(--linje); padding-top: 1.5rem; }
.nd .bladdra a { flex: 1; min-width: 0; padding: .8rem 1rem; border: 1px solid var(--linje); border-radius: 14px; background: #fff; text-decoration: none; font-weight: 800; }
.nd .bladdra a:hover { border-color: var(--primar); }
.nd .bladdra a:last-child { text-align: right; }
.nd .bladdra span { display: block; margin-top: .2rem; color: var(--svag); font-size: .88rem; font-weight: 400; }

/* Månadsväljaren ligger synlig ovanför kalendern. */
.nd .manadsnav { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .45rem; margin: 1.7rem auto 2.4rem; text-transform: capitalize; }
.nd .manadsnav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .5rem; background: #fff; color: var(--primar-mork); border: 1px solid #cdd6ef; border-radius: 11px; text-decoration: none; font-weight: 800; }
.nd .manadsnav a:hover, .nd .manadsnav a:focus-visible { background: var(--primar); color: #fff; }
.nd .kalender-grid, .nd .kalender-manader { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1.5rem; }
.nd .kalender-grid > section, .nd .kalender-manader > section { margin: 0; border: 1px solid var(--linje); border-radius: 22px; padding: 1.5rem; background: #fff; scroll-margin-top: 1rem; }
.nd .kalender-grid h2, .nd .kalender-manader h2 { padding-bottom: .7rem; border-bottom: 3px solid var(--gul); }
.nd .manad { list-style: none; padding: 0; margin: 0; }
.nd .manad li { display: flex; gap: .8rem; min-width: 0; padding: .45rem 0; border-bottom: 1px solid #e5e8f0; align-items: baseline; }
.nd .manad li > span { min-width: 0; overflow-wrap: anywhere; }
.nd .manad__dag { flex: 0 0 2rem; text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; text-decoration: none; color: var(--primar); }
.nd .manad li.idag { background: #fff0ad; margin: 0 -.65rem; padding-inline: .65rem; border-radius: 10px; border-color: transparent; }
.nd .manad li:last-child { border-bottom: 0; }

/* En färdig hälsning ska vara lätt att välja, dela och läsa. */
.nd .halsningar { display: grid; gap: .7rem; margin-bottom: 1.3rem; }
.nd .halsning { display: flex; gap: .8rem; align-items: flex-start; font-weight: 600; margin: 0; padding: 1rem; background: #fff; border: 1.5px solid #bcc6e3; border-radius: 14px; cursor: pointer; transition: background .18s,border-color .18s; }
.nd .halsning:has(input:checked) { border-color: var(--primar); background: #f9faff; box-shadow: inset 0 0 0 1px var(--primar); }
.nd .halsning input { width: 19px; height: 19px; flex: 0 0 19px; margin: .15rem 0 0; accent-color: var(--primar); }
.nd .kort { position: relative; text-align: center; background: #eaf0ff; color: var(--text); border: 2px solid #c6d1f5; border-radius: 30px; padding: 2.4rem 2rem 2.7rem; margin: 2rem auto; box-shadow: 0 8px 0 #d4def8, 0 25px 55px rgb(35 45 93 / .08); overflow: hidden; }
.nd .kort h1 { position: relative; margin: .75rem auto .4rem; font-size: clamp(2.3rem, 5.5vw, 3.8rem); max-width: 17ch; }
.nd .kort p { position: relative; margin: 0; }
.nd .kort__ovan { text-transform: uppercase; letter-spacing: .13em; color: #4f5d81; font-size: .8rem; font-weight: 900; }
.nd .kort__fran { font: 800 1.4rem/1.4 var(--sans); color: var(--primar); margin-top: 1rem !important; }
.nd .kort__bild { display: block; width: 220px; height: auto; margin: .5rem auto 1.2rem; border-radius: 24px; }
.nd .kort__bild img { display: block; width: 100%; border-radius: 24px; }
.nd .grattiskort { margin-inline: auto; }

/* Den skrivna texten använder vanligt inlineflöde, även runt källänkar. */
.nd pre { background: #f3f6ff; border: 1px solid var(--linje); border-radius: 14px; padding: 1rem 1.2rem; overflow-x: auto; font-size: .86rem; line-height: 1.55; white-space: pre; }
.nd code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
.nd ul { padding-left: 1.2rem; }
.nd li { margin-bottom: .4rem; }
.nd .dagrad li, .nd .manad li { margin-bottom: 0; }
.nd .wp-innehall { max-width: 800px; }
.nd .wp-innehall img { max-width: 100%; height: auto; border-radius: 18px; }
.nd .wp-innehall .alignwide, .nd .wp-innehall .alignfull { max-width: 100%; }
.nd .inlaggslista { list-style: none; padding: 0; }
.nd .inlaggslista li { padding: 1.25rem 0; border-bottom: 1px solid var(--linje); }
.nd .inlaggslista h2 { margin: 0 0 .4rem; }

/* Sidfoten samlar fördjupning och källor utanför den enkla huvudmenyn. */
.nd .fot { max-width: none; margin: 0; padding: 3.2rem max(32px,calc((100vw - 1160px)/2)) 2rem; background: #eaf0ff; border-top: 1px solid #d1dbf5; color: #475472; font-size: .92rem; }
.nd .fot__inner { max-width: 1160px; margin: 0 auto; }
.nd .fot__grid { display: grid; grid-template-columns: minmax(0,1.5fr) repeat(2,minmax(0,1fr)); gap: 3rem; }
.nd .fot__brand p { max-width: 38ch; margin: 1rem 0; }
.nd .fot h2, .nd .fot h3 { margin: .3rem 0 .8rem; color: var(--text); font-size: 1.05rem; font-weight: 900; letter-spacing: -.01em; }
.nd .fot__nav { display: flex; flex-direction: column; align-items: flex-start; }
.nd .fot__nav a { min-height: 40px; display: inline-flex; align-items: center; padding: .35rem 0; text-decoration: none; }
.nd .fot__nav a:hover { text-decoration: underline; }
.nd .fot__meta { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #cbd6ee; font-size: .85rem; }
.nd .fot__meta p { max-width: 100ch; }
.nd .fot > p { max-width: 1160px; margin-inline: auto; }

@media (min-width: 800px) {
  .nd .dagrad--mina li { grid-template-columns: 10rem minmax(0,1fr) auto; gap: 1rem; }
  .nd .dagrad--mina .dagrad__datum { grid-column: 1; }
  .nd .dagrad--mina .dagrad__namn { grid-column: 2; }
  .nd .dagrad--mina .knapp { grid-column: 3; grid-row: 1; }
}
@media (max-width: 1023px) {
  .nd .hem-hero { gap: 2rem; }
  .nd .hem-hero h1 { font-size: clamp(2.7rem,5.4vw,3.6rem); }
  .nd .hem-hero__dag { padding-inline: .3rem; }
  .nd .hem-hero__bild { right: -5%; top: -12%; width: 68%; }
  .nd .hem-grid > section { padding: 1.35rem; }
  .nd .hem-lista { padding: 2rem; }
  .nd .kalender-grid, .nd .kalender-manader { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nd .fot__grid { gap: 1.5rem; }
}
@media (max-width: 760px) {
  .nd .topp { padding: 1rem 20px 1rem; justify-content: center; gap: 1rem; }
  .nd .logga { font-size: 1.7rem; }
  .nd .meny { width: 100%; justify-content: center; gap: .35rem; }
  .nd .meny a { padding: .65rem .8rem; min-height: 44px; font-size: .9rem; }
  .nd main { padding: .1rem 20px 3rem; }
  .nd main > :first-child:not(.hem-hero) { margin-top: 1.6rem; }
  .nd h1 { font-size: clamp(2rem,6.2vw,2.9rem); }
  .nd .hem-hero { grid-template-columns: minmax(0,1fr); gap: 1.2rem; margin: 1.5rem 0 2.5rem; }
  .nd .hem-hero h1 { max-width: 14ch; font-size: clamp(2.7rem,7.9vw,3.6rem); }
  .nd .hem-hero .ingress { max-width: 46ch; font-size: 1.07rem; }
  .nd .hem-hero .sok { margin-top: 1.25rem; }
  .nd .hem-hero__dag { padding: 1.5rem 0 .5rem; width: 100%; max-width: 430px; margin: 0 auto; }
  .nd .hem-hero__dag .blad { max-width: 300px; transform: rotate(1.5deg); }
  .nd .hem-hero__bild { width: 190px; right: -2%; top: -5%; }
  .nd .hem-hero__dag .blad__siffra { font-size: 6.7rem; }
  .nd .hem-hero__dag .blad__manad { padding-block: .8rem; }
  .nd .hem-hero__dag .blad__namn { font-size: 1.85rem; padding-block: .9rem; }
  .nd .hem-grid { grid-template-columns: minmax(0,1fr); gap: 1.1rem; margin-bottom: 2rem; }
  .nd .hem-grid > section { padding: 1.4rem; }
  .nd .hem-lista { grid-template-columns: minmax(0,1fr); gap: 1rem; padding: 1.7rem; border-radius: 24px; margin: 2rem 0; }
  .nd .hem-lista__bild img { max-width: 240px; }
  .nd .hem-lista h2 { max-width: 21ch; }
  .nd .hem-steg { grid-template-columns: minmax(0,1fr); gap: 1.3rem; margin: 2rem 0; }
  .nd .hem-notiser { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .nd .sida-intro { gap: 1rem; grid-template-columns: minmax(0,1fr) 135px; }
  .nd .sida-intro__bild img { border-radius: 18px; }
  .nd .sida-intro h1 { font-size: 2.25rem; }
  .nd .tabell th, .nd .tabell td { padding: .75rem .7rem; }
  .nd .fot { padding: 2.3rem 20px 1.5rem; }
  .nd .fot__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.8rem 1rem; }
  .nd .fot__brand { grid-column: 1 / -1; }
  .nd .fot__brand p { max-width: 46ch; }
}
@media (max-width: 480px) {
  .nd .topp { padding-inline: 16px; }
  .nd main { padding-inline: 16px; }
  .nd .hem-hero h1 { font-size: clamp(2.5rem,10vw,3.2rem); }
  .nd .hem-hero__text .overrad { font-size: .71rem; letter-spacing: .08em; }
  .nd .hem-hero__dag { padding-inline: 13px; }
  .nd .hem-hero__bild { right: 0; width: 170px; }
  .nd .hem-hero__dag .blad { max-width: 285px; }
  .nd .hem-grid > section { padding: 1.2rem; }
  .nd .hem-grid h2 { font-size: 1.5rem; }
  .nd .hem-lista { padding: 1.5rem; }
  .nd .hem-notiser > section, .nd .hem-notiser > article { padding: 1.4rem; }
  .nd .sida-intro { grid-template-columns: minmax(0,1fr); }
  .nd .sida-intro__bild { max-width: 180px; width: 100%; margin: -.3rem auto 0; }
  .nd .sida-intro .ingress { margin-bottom: .5rem; }
  .nd .sida-intro h1 { font-size: 2.4rem; }
  .nd .ruta { padding: 1.25rem; border-radius: 20px; }
  .nd .knapp { padding-inline: 1rem; font-size: .94rem; }
  .nd .knapprad { gap: .65rem; }
  .nd #mina-kalender .knapprad .knapp { width: 100%; }
  .nd #mina-tavla { padding: 1.25rem; }
  .nd .dagrad__datum { font-size: .9rem; }
  .nd .dagrad--mina .dagrad__namn { font-size: 1rem; }
  .nd .dagrad--mina .knapp { font-size: .82rem; padding-inline: .65rem; }
  .nd .dagrad--mina .dagrad__namn .svag { display: inline; }
  .nd .tabell { font-size: .85rem; border-radius: 12px; }
  .nd .tabell th { font-size: .66rem; letter-spacing: .025em; }
  .nd .tabell th, .nd .tabell td { padding: .7rem .45rem; }
  .nd .tabell .svag { font-size: .9em; }
  .nd .kalender-grid, .nd .kalender-manader { grid-template-columns: minmax(0,1fr); gap: 1rem; }
  .nd .kalender-grid > section, .nd .kalender-manader > section { padding: 1.25rem; }
  .nd .manadsnav { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .nd .blad { max-width: 300px; }
  .nd .blad__siffra { font-size: 7rem; }
  .nd .blad__namn { font-size: 1.9rem; }
  .nd .bladdra { gap: .7rem; }
  .nd .bladdra a { padding: .7rem; font-size: .9rem; }
  .nd .bladdra span { font-size: .8rem; }
  .nd .kort { border-radius: 24px; padding: 1.8rem 1.2rem 2rem; }
  .nd .kort h1 { font-size: clamp(2rem,8.2vw,2.6rem); }
  .nd .kort__bild { width: 175px; }
  .nd .fot { padding-inline: 16px; }
}
@media (max-width: 480px) {
  .nd .hem-hero { margin-top: 1rem; gap: .7rem; }
  .nd .hem-hero h1 { font-size: clamp(2.25rem,9vw,2.8rem); margin-bottom: 1rem; }
  .nd .hem-hero .ingress { font-size: 1rem; margin-bottom: 1rem; }
  .nd .hem-hero__text > .svag { font-size: .82rem; }
  .nd .hem-hero__text > p:last-child { margin-bottom: 0; }
  .nd .hem-hero__dag { padding-top: 1.5rem; }
  .nd .hem-hero__dag > .overrad { width: min(100%,300px); font-size: .7rem; margin-bottom: .65rem; }
  .nd .hem-hero__dag .blad { display: grid; grid-template-columns: .85fr 1.15fr; max-width: 300px; text-align: center; }
  .nd .hem-hero__dag .blad__manad { grid-column: 1 / -1; padding: .75rem .5rem; font-size: .74rem; }
  .nd .hem-hero__dag .blad__siffra { grid-column: 1; grid-row: 2; font-size: 5rem; padding-top: .7rem; }
  .nd .hem-hero__dag .blad__veckodag { grid-column: 1; grid-row: 3; font-size: .58rem; padding: .3rem .4rem .7rem; letter-spacing: .01em; }
  .nd .hem-hero__dag .blad__namn { grid-column: 2; grid-row: 2 / 4; display: block; align-content: center; font-size: 1.65rem; padding: .9rem .7rem; border-top: 0; border-left: 1px solid #e4e8f5; }
  .nd .hem-hero__dag .blad__dagnamn, .nd .hem-hero__dag .blad__kommande { grid-column: 1 / -1; }
  .nd .hem-hero__gratulera { margin-top: 1.15rem; }
}
@media (max-width: 360px) {
  .nd .meny { gap: .15rem; }
  .nd .meny a { padding-inline: .65rem; font-size: .8rem; }
  .nd .hem-hero h1 { font-size: 2.5rem; }
  .nd .hem-hero__dag { padding-inline: 7px; }
  .nd .dagrad--mina li { grid-template-columns: minmax(0,1fr); gap: .3rem; }
  .nd .dagrad--mina .knapp { grid-column: 1; grid-row: auto; justify-self: start; margin-top: .3rem; }
  .nd .kopierarad { flex-wrap: wrap; }
  .nd .kopierarad input { flex-basis: 100%; }
  .nd .tabell th, .nd .tabell td { padding-inline: .3rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nd *, .nd *::before, .nd *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .nd .knapp:hover, .nd .knapp:active, .nd .sok button:hover, .nd .sok button:active { transform: none; }
}
@media print {
  body.nd { background: #fff; color: #000; font-size: 11pt; }
  .nd .topp, .nd .fot, .nd .knapprad, .nd .sok, .nd .hem-hero__bild, .nd .hem-lista__bild, .nd .sida-intro__bild { display: none; }
  .nd main { max-width: none; padding: 0; }
  .nd .blad, .nd .ruta, .nd .kort { box-shadow: none; border: 1px solid #aaa; break-inside: avoid; }
  .nd .hem-hero, .nd .hem-grid, .nd .hem-lista, .nd .kalender-grid, .nd .kalender-manader { display: block; }
}
