/* ASÍ-UNG theme styles. Ported from the Figma Make design "Asi_ung_els". */

/* ── Fonts (self-hosted Montserrat, latin subset covers Icelandic) ── */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }

/* ── Tokens ── */
:root {
	--red: #b5121b;
	--red-dark: #96080f;
	--red-tint: #fff0f0;
	--ink: #111;
	--text: #444;
	--muted: #666;
	--faint: #888;
	--line: #e5e5e5;
	--line-soft: #e8e8e8;
	--line-faint: #f0f0f0;
	--surface: #f7f7f7;
	--surface-alt: #fafafa;
	--nav-h: 58px;
	--wrap: 1040px;
	--gutter: 28px;
}

/* ── Base ── */
html { scroll-behavior: smooth; box-sizing: border-box; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body {
	margin: 0;
	background-color: #fff;
	color: var(--ink);
	font-family: "Montserrat", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: #fff; padding: 10px 16px; font-weight: 600; }
.skip-link:focus { left: 16px; top: 8px; }

.site-main { padding-top: var(--nav-h); min-height: 60vh; }

/* ── Layout containers ── */
.section-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.page-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 64px; }
.home-top { padding-bottom: 0; }
.wide { max-width: var(--wrap); margin: 0 auto; }
.narrow { max-width: 760px; margin: 0 auto; }

.rule { height: 1px; background: #ebebeb; border: 0; margin: 0; }
.rule-full { background: var(--line); }
.muted { color: var(--faint); font-size: 14px; }

/* ── Type helpers ── */
.h-lg { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 20px; }
.h-md { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }
.h-sm { font-size: 20px; font-weight: 700; color: var(--ink); margin: 0 0 24px; }
.h-light { color: #fff; margin: 0 0 12px; }

.kicker { font-size: 11px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 8px; }
.kicker-sm { margin-bottom: 4px; }
.kicker-xs { font-size: 10px; margin-bottom: 4px; }
.kicker-bold { font-weight: 700; letter-spacing: 0.1em; }
.kicker-light { color: rgba(255, 255, 255, 0.6); font-weight: 700; letter-spacing: 0.12em; margin-bottom: 12px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-head-lg { margin-bottom: 32px; }
.see-all { font-size: 13px; color: var(--red); font-weight: 500; transition: opacity 0.15s; }
.see-all:hover { opacity: 0.75; }

/* ── Buttons ── */
.btn {
	display: inline-flex; align-items: center; justify-content: center;
	font-size: 13px; font-weight: 700; color: #fff; background: var(--red);
	border: 0; padding: 11px 22px; border-radius: 7px; cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 6px 20px rgba(181, 18, 27, 0.3); }
.btn-sm { font-size: 12px; padding: 9px 16px; border-radius: 6px; }
.btn-lg { font-size: 14px; padding: 13px 28px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-ghost {
	font-size: 13.5px; font-weight: 500; padding: 11px 24px;
	background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }

/* ── Nav ── */
.site-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.admin-bar .site-nav { top: 32px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); padding: 0 var(--gutter); max-width: var(--wrap); margin: 0 auto; }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; display: block; }
.nav-links { display: flex; gap: 2px; align-items: center; }
.nav-link { position: relative; font-size: 13.5px; font-weight: 500; color: #555; padding: 7px 13px; border-radius: 7px; transition: color 0.15s; }
.nav-link::after { content: ""; position: absolute; bottom: -2px; left: 13px; right: 13px; height: 2px; background: var(--red); border-radius: 2px; transform: scaleX(0); transition: transform 0.2s ease; }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-current { color: var(--red); background: var(--red-tint); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { background: none; border: 0; cursor: pointer; padding: 4px; display: none; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: inline; }

.nav-panel { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1); border-top: 1px solid var(--line-faint); }
.nav-panel-inner { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter) 24px; display: flex; flex-direction: column; gap: 2px; }
.nav-panel-link { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--ink); padding: 12px 16px; border-radius: 9px; transition: background 0.15s; }
.nav-panel-link:hover { background: var(--surface); }
.nav-panel-link.is-current { font-weight: 700; color: var(--red); background: #fff5f5; }
.nav-panel-link.is-current::before { content: ""; width: 4px; height: 18px; background: var(--red); border-radius: 2px; flex-shrink: 0; }

/* ── Hero ── */
.hero { position: relative; width: 100%; height: 520px; overflow: hidden; background-color: var(--red); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%); }
.hero-content { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 0 80px 0 var(--gutter); max-width: var(--wrap); width: 100%; margin: 0 auto; height: 100%; }
.hero-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 14px; }
.hero-h1 { font-size: 50px; font-weight: 700; color: #fff; line-height: 1.12; margin: 0 0 18px; }
.hero-p { font-size: 15px; color: rgba(255, 255, 255, 0.85); line-height: 1.7; margin: 0 0 30px; max-width: 420px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Grids ── */
.r-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.r-grid-2-equal { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.r-grid-events { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.r-grid-news { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px; }
.r-grid-podcast { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.r-grid-3-gap { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── Home: feature cards ── */
.home-cards { border-bottom: 1px solid var(--line); padding: 40px 0; }
.feature-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07); transform: translateY(-2px); }
.feature-card-img { height: 180px; overflow: hidden; flex-shrink: 0; }
.feature-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.feature-card p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; flex: 1; }
.feature-card .btn { margin-top: 4px; }
.feature-card:hover .btn { background: var(--red-dark); }

/* ── Home: Þing ── */
.thing-wrap { padding: 56px var(--gutter) 48px; }
.thing-text p { font-size: 14px; color: var(--text); line-height: 1.8; margin: 0 0 8px; }
.thing-text p:last-child { margin-bottom: 28px; }
.thing-img { border-radius: 16px; overflow: hidden; height: 420px; min-height: 420px; align-self: stretch; }
.thing-img img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.15); }

/* ── Pistlar ── */
.home-pistlar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.pistlar-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; align-items: start; }
.pistlar-grid-archive { row-gap: 48px; }
.pistill-card { display: flex; flex-direction: column; }
.pistlar-img { height: 260px; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.pistlar-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.pistill-card:hover .pistlar-img img { transform: scale(1.03); }
.pistill-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 6px; transition: color 0.15s; }
.pistill-card:hover h3 { color: var(--red); }
.pistill-card p { font-size: 13px; color: var(--faint); line-height: 1.6; margin: 0; }

/* ── Podcast ── */
.podcast-wrap { background: var(--red); border-radius: 16px; padding: 40px; margin: 48px 0 40px; }
.podcast-text { font-size: 13px; color: rgba(255, 255, 255, 0.8); line-height: 1.7; margin: 0 0 18px; }
.episode { position: relative; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 9px; background: rgba(255, 255, 255, 0.12); margin-bottom: 8px; transition: background 0.15s; }
.episode:hover { background: rgba(255, 255, 255, 0.2); }
.episode-play { width: 32px; height: 32px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.episode-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
/* The whole row opens the episode; the play button sits above that link. */
.episode-link::after { content: ""; position: absolute; inset: 0; border-radius: 9px; }
.episode .clip-btn { position: relative; z-index: 1; }
.see-all-light { display: inline-block; margin-top: 10px; color: #fff; font-weight: 600; }
.episode-num { font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.55); margin-bottom: 1px; }
.episode-title { font-size: 13px; font-weight: 500; color: #fff; }
.episode-dur { font-size: 12px; color: rgba(255, 255, 255, 0.55); flex-shrink: 0; }
.r-grid-podcast.is-single { grid-template-columns: minmax(0, 560px); }
.podcast-video { border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: rgba(0, 0, 0, 0.2); }
.podcast-video iframe { width: 100%; height: 100%; display: block; border: 0; }

/* ── Clip player (main.js) ── */
:where(.clip-btn) { border: 0; padding: 0; cursor: pointer; color: inherit; background: none; }
.clip-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.clip-icon svg + svg, .clip-btn.is-playing .clip-icon svg:first-child { display: none; }
.clip-btn.is-playing .clip-icon svg + svg { display: block; }
/* Progress ring, driven by --p (0 to 1). */
.clip-icon::before { content: ""; position: absolute; inset: -3px; border-radius: 50%; opacity: 0; background: conic-gradient(currentColor calc(var(--p, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px)); transition: opacity 0.2s; }
.clip-btn.is-playing .clip-icon::before { opacity: 1; }
.episode-play.clip-btn { color: #fff; }
.episode-play.clip-btn:hover { background: rgba(255, 255, 255, 0.32); }
.episode-play .clip-icon { width: 100%; height: 100%; }
.clip-btn-ghost { gap: 10px; color: #fff; }
.clip-btn-ghost .clip-icon { width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }
.clip-btn-red { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; font-weight: 700; color: var(--red); }
.clip-btn-red .clip-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--red); transition: background 0.15s; }
.clip-btn-red:hover .clip-icon { background: var(--red-dark); }
.episode-embed { margin: 0 0 8px; }
.episode-embed iframe { width: 100%; height: 152px; border: 0; border-radius: 12px; display: block; }

/* ── Hlaðvarp page ── */
.podcast-intro { max-width: 640px; margin-top: 10px; }
.podcast-intro p { font-size: 14px; color: var(--muted); line-height: 1.75; margin: 0 0 10px; }
.podcast-platforms { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.platform-btn { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: #fff; padding: 10px 16px; border-radius: 10px; transition: opacity 0.15s, transform 0.15s; }
.platform-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.platform-spotify { background: #1db954; box-shadow: 0 2px 8px rgba(29, 185, 84, 0.3); }
.platform-podcast { background: linear-gradient(180deg, #f452ff, #832bc1); box-shadow: 0 2px 8px rgba(131, 43, 193, 0.3); }
.platform-rss { background: #f26522; box-shadow: 0 2px 8px rgba(242, 101, 34, 0.3); }
.podcast-feature { margin: 0 0 48px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.podcast-feature-grid { display: grid; grid-template-columns: 280px 1fr; gap: 36px; align-items: center; }
.podcast-feature-media { border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: rgba(0, 0, 0, 0.2); }
.podcast-feature-media.is-video { aspect-ratio: 16 / 9; }
.podcast-feature-grid:has(.is-video) { grid-template-columns: 1.1fr 1fr; }
.podcast-feature-media img, .podcast-feature-media iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.podcast-meta { font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, 0.65); margin: -4px 0 14px; }
.podcast-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.btn-light { background: #fff; color: var(--red); }
.btn-light:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.ep-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ep-card { display: flex; gap: 18px; border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px; transition: border-color 0.15s, box-shadow 0.2s; scroll-margin-top: calc(var(--nav-h) + 20px); }
.ep-card:hover, .ep-card:target { border-color: #d6d6d6; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.ep-cover { width: 96px; height: 96px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.ep-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ep-title { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 0 0 6px; }
.ep-title a { transition: color 0.15s; }
.ep-title a:hover { color: var(--red); }
.ep-excerpt { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 14px; }
.ep-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: auto; }
.ep-dur { font-size: 12px; color: var(--faint); }
.ep-spotify { margin-left: auto; font-size: 12px; }
.ep-card + .episode-embed, .ep-list .episode-embed { grid-column: 1 / -1; }

/* ── Events ── */
.home-block { padding: 48px 0 40px; }
.home-news { padding: 40px 0; }
.home-social { padding: 48px 0 0; }
.event-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px 20px; display: flex; gap: 16px; align-items: flex-start; transition: border-color 0.15s, box-shadow 0.2s; }
.event-card:hover { border-color: #d6d6d6; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.event-date { text-align: center; min-width: 44px; }
.event-day { font-size: 22px; font-weight: 700; color: var(--red); line-height: 1; }
.event-month { font-size: 10px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }
.event-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; margin-bottom: 4px; }
.event-location { font-size: 12px; color: var(--faint); display: flex; align-items: center; gap: 4px; }
.events-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* ── News cards (home) ── */
.news-col { display: flex; flex-direction: column; gap: 16px; }
.news-card { border-radius: 12px; overflow: hidden; border: 1px solid var(--line-soft); display: flex; flex-direction: column; transition: box-shadow 0.2s; }
.news-card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.news-card-img { height: 110px; overflow: hidden; }
.news-card-featured .news-card-img { height: 220px; }
.news-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card-body { padding: 12px 14px; }
.news-card-featured .news-card-body { padding: 16px 18px 18px; }
.news-card-featured .kicker { margin-bottom: 6px; }
.news-card-title { font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.35; transition: color 0.15s; }
.news-card-featured .news-card-title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.news-card:hover .news-card-title { color: var(--red); }
.news-card-excerpt { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── CTA box ── */
.cta-box { background: var(--surface); border-radius: 12px; padding: 32px 32px 28px; }
.cta-box-sm { border-radius: 14px; padding: 24px 26px; }
.cta-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.cta-title-sm, .cta-box-sm .cta-title { font-size: 16px; margin-bottom: 8px; }
.cta-box p { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0 0 20px; }
.cta-box-sm p { color: #555; margin-bottom: 14px; }
.social-btns { display: flex; gap: 12px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #fff; padding: 11px 18px; border-radius: 10px; transition: opacity 0.15s, transform 0.15s; }
.social-btn:hover { opacity: 0.9; transform: translateY(-1px); }
.social-instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 2px 8px rgba(220, 39, 67, 0.35); }
.social-facebook { background: #1877f2; box-shadow: 0 2px 8px rgba(24, 119, 242, 0.35); }
.social-x { background: #000; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25); }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-alt); }
.footer-inner { padding: 24px var(--gutter); display: flex; justify-content: space-between; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.footer-brand img { width: 28px; height: 28px; border-radius: 5px; object-fit: cover; display: block; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 12px; color: #aaa; transition: color 0.15s; }
.footer-links a:hover { color: var(--red); }

/* ── Subpage shell ── */
.subpage-hero { background: var(--red); padding: 52px var(--gutter) 48px; }
.subpage-hero h1 { font-size: 38px; font-weight: 800; color: #fff; line-height: 1.15; margin: 0 0 14px; }
.subpage-hero p { font-size: 15px; color: rgba(255, 255, 255, 0.82); line-height: 1.75; max-width: 520px; margin: 0; }
.subpage-cover { padding: 36px var(--gutter) 0; }
.subpage-cover-img { border-radius: 14px; overflow: hidden; height: 340px; }
.subpage-cover-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.subpage-body { padding: 40px var(--gutter) 80px; }
.subpage-body > .entry-content { margin-bottom: 36px; }
.subpage-body > .entry-content:empty { display: none; }

/* ── Entry content (editor output) ── */
.entry-content { font-size: 14px; color: var(--text); line-height: 1.9; }
.entry-content > :first-child { margin-top: 0; }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content p { margin: 0 0 20px; }
.entry-content h2 { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 36px 0 14px; }
.entry-content h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 28px 0 10px; }
.entry-content a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 20px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: 12px; }
.entry-content blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--red); font-size: 16px; color: var(--ink); }
.entry-content hr { border: 0; height: 1px; background: var(--line); margin: 36px 0; }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { font-size: 12px; color: var(--faint); margin-top: 8px; }
.entry-content .wp-block-button__link { background: var(--red); color: #fff; text-decoration: none; border-radius: 7px; font-size: 13px; font-weight: 700; padding: 11px 22px; }

/* ── Timeline ── */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { display: flex; gap: 24px; padding-bottom: 32px; }
.timeline-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.timeline-year { width: 44px; height: 44px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.timeline-item:not(:last-child) .timeline-marker::after { content: ""; width: 2px; flex: 1; background: var(--line-soft); margin-top: 8px; }
.timeline-body { padding-top: 10px; }
.timeline-title { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.timeline-body p { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 0; }

/* ── Stjórn ── */
.members { margin-bottom: 48px; }
.member { text-align: center; }
.member-photo { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; margin: 0 auto 12px; border: 3px solid var(--line-faint); }
.member-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.member-name { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 3px; }
.member-role { font-size: 12px; color: var(--red); font-weight: 600; }
.member-union { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.board-history h2 { font-size: 20px; margin: 0 0 8px; }
.board-history .wp-block-details { border-bottom: 1px solid var(--line-soft); margin: 0; }
.board-history .wp-block-details summary { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink); }
.board-history .wp-block-details summary::-webkit-details-marker { display: none; }
.board-history .wp-block-details summary::after { content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #f4f4f4; color: #555; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 400; line-height: 1; transition: background 0.2s, color 0.2s; }
.board-history .wp-block-details[open] summary::after { content: "\2212"; background: var(--red); color: #fff; }
.board-history .wp-block-details > :not(summary) { font-size: 14px; margin: 0 0 12px; }
.board-history .wp-block-details > :last-child { margin-bottom: 20px; }

/* ── Fræðsla topics ── */
.topics { gap: 16px; margin-bottom: 40px; }
.topic-card { border: 1px solid var(--line-soft); border-radius: 12px; padding: 20px 22px; transition: border-color 0.15s, box-shadow 0.2s; }
.topic-card:hover { border-color: #d6d6d6; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.topic-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.topic-card p { font-size: 13px; color: #777; line-height: 1.65; margin: 0; }

/* ── Facts (Þing, events) ── */
.facts { margin: 32px 0 40px; }
.facts-top { margin-top: 0; }
.fact { background: var(--surface); border-radius: 12px; padding: 20px 22px; }
.fact .kicker { letter-spacing: 0.1em; margin-bottom: 6px; }
.fact-value { font-size: 16px; font-weight: 700; color: var(--ink); }
.back-link { margin-top: 32px; font-size: 13px; }
.back-link a { color: var(--red); font-weight: 500; }

/* ── FAQ ── */
.faq-hero { position: relative; height: 340px; overflow: hidden; }
.faq-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.faq-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.55) 100%); }
.faq-hero-text { position: absolute; bottom: 0; left: 0; right: 0; padding: 0 var(--gutter) 36px; max-width: 860px; margin: 0 auto; }
.faq-hero-text .kicker { color: rgba(255, 255, 255, 0.7); margin-bottom: 10px; }
.faq-hero h1 { font-size: 36px; font-weight: 800; color: #fff; line-height: 1.15; }
.faq-body { max-width: 760px; margin: 0 auto; padding: 44px var(--gutter) 80px; }
.faq-intro { font-size: 15px; color: #555; line-height: 1.85; margin-bottom: 44px; }
.faq-list { margin-bottom: 48px; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.faq-icon { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: #f4f4f4; color: #555; display: flex; align-items: center; justify-content: center; transition: background 0.2s, color 0.2s; }
.faq-item[open] .faq-icon { background: var(--red); color: #fff; }
.faq-item[open] .faq-v { display: none; }
.faq-a { font-size: 14px; color: #555; line-height: 1.8; padding: 0 44px 20px 0; }
.faq-a p { margin: 0 0 12px; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-body .cta-box { border-radius: 14px; padding: 28px; }
.faq-body .cta-box p { font-size: 14px; margin-bottom: 18px; }

/* ── Um ASÍ-UNG ── */
.about-title { text-align: center; padding: 48px var(--gutter) 36px; }
.about-title h1 { font-size: 36px; font-weight: 800; color: var(--ink); }
.about-wrap { padding: 0 var(--gutter) 56px; gap: 48px; align-items: start; }
.about-photo { border-radius: 12px; overflow: hidden; height: 340px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.about-text { padding-top: 8px; }
.about-text .h-sm { margin-bottom: 16px; }
.about-text .entry-content { color: #555; line-height: 1.85; }
.about-text .entry-content p { margin-bottom: 14px; }
.about-saga { text-align: center; padding: 52px var(--gutter) 20px; }
.about-saga p { font-size: 14px; color: var(--muted); line-height: 1.85; max-width: 720px; margin: 0 auto; }
.about-photos { padding-top: 36px; padding-bottom: 56px; }
.about-photos .r-grid-events { gap: 20px; }
.about-figure { margin: 0; }
.about-figure-img { border-radius: 12px; overflow: hidden; height: 200px; margin-bottom: 12px; }
.about-figure-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-figure figcaption { font-size: 12px; color: var(--faint); line-height: 1.65; }
.about-body { max-width: 900px; margin: 0 auto; padding: 56px var(--gutter) 72px; }
.about-body p { margin-bottom: 28px; }

/* ── Listing pages (Fréttir, Pistlar, Viðburðir) ── */
.list-header { border-bottom: 1px solid var(--line); padding: 40px var(--gutter) 32px; }
.list-header h1 { font-size: 32px; font-weight: 800; color: var(--ink); }
.list-header p { font-size: 14px; color: var(--faint); margin: 8px 0 0; }
.list-body { padding: 36px var(--gutter) 72px; }
.news-featured { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-soft); display: flex; flex-direction: column; margin-bottom: 28px; transition: box-shadow 0.2s; }
.news-featured:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07); }
.news-featured-img { height: 300px; overflow: hidden; }
.news-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-featured-body { padding: 22px 26px 26px; }
.news-featured h2 { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.3; margin: 0 0 10px; }
.news-featured p { font-size: 14px; color: var(--muted); line-height: 1.7; margin: 0; }
.news-rows { display: flex; flex-direction: column; }
.news-row { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line-faint); align-items: flex-start; }
.news-row-img { width: 110px; height: 80px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.news-row-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-row-body { flex: 1; }
.news-row .kicker { letter-spacing: 0.08em; margin-bottom: 5px; }
.news-row h3 { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.35; margin: 0 0 6px; transition: color 0.15s; }
.news-row:hover h3 { color: var(--red); }
.news-row p { font-size: 13px; color: var(--faint); line-height: 1.6; margin: 0; }

.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pagination .page-numbers { font-size: 13px; font-weight: 600; padding: 8px 13px; border-radius: 7px; border: 1px solid var(--line-soft); color: #555; }
.pagination .page-numbers.current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ── Reader (single post / pistill) ── */
.reader-header { max-width: 660px; margin: 0 auto; padding: 44px 24px 0; text-align: center; }
.reader-date { font-size: 12px; color: #aaa; margin-bottom: 16px; }
.reader-header h1 { font-size: 34px; font-weight: 800; color: var(--ink); line-height: 1.2; margin: 0 0 16px; }
.reader-byline { font-size: 13px; color: #aaa; }
.reader-header { padding-bottom: 36px; }
.reader-cover { max-width: 660px; margin: 0 auto; padding: 0 24px 40px; }
.reader-cover img { border-radius: 12px; width: 100%; height: 340px; object-fit: cover; display: block; }
.reader-body { max-width: 620px; margin: 0 auto; padding: 0 24px 80px; }
.reader-content { color: #333; }
.reader-content h2 { font-size: 17px; margin: 40px 0 12px; padding-top: 40px; border-top: 1px solid var(--line-faint); }
.reader-content > h2:first-child { padding-top: 0; border-top: 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-faint); }
.tag { font-size: 11px; font-weight: 600; color: var(--red); background: var(--red-tint); padding: 4px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.more { border-top: 1px solid var(--line); background: var(--surface-alt); padding: 48px 24px 64px; }
.more-inner { max-width: 620px; margin: 0 auto; }
.more h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 24px; }
.more-list { display: flex; flex-direction: column; }
.more-item { display: flex; gap: 16px; padding: 18px 0; align-items: center; }
.more-item:not(:last-child) { border-bottom: 1px solid #ebebeb; }
.more-img { width: 80px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.more-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.more-item .kicker { margin-bottom: 4px; }
.more-title { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.35; transition: color 0.15s; }
.more-item:hover .more-title { color: var(--red); }

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
	.hero-content { padding: 0 40px 0 var(--gutter); }
	.hero-h1 { font-size: 42px; }
	.r-grid-news { grid-template-columns: 1fr 1fr; }
	.r-grid-news > :nth-child(3) { display: none; }
}

@media (max-width: 782px) {
	.admin-bar .site-nav { top: 46px; }
}

/* ── Mobile (≤760px) ── */
@media (max-width: 760px) {
	:root { --gutter: 16px; }

	.nav-links { display: none; }
	.nav-toggle { display: flex; }
	.nav-panel:not([hidden]) { display: block; }

	.hero { height: auto; min-height: 420px; }
	.hero-content { padding: 48px 16px 52px; max-width: 100%; margin: 0; }
	.hero-h1 { font-size: 30px; line-height: 1.18; }
	.hero-p { font-size: 13.5px; max-width: 100%; margin-bottom: 24px; }
	.hero-tag { font-size: 10px; }
	.hero-btns { flex-direction: column; gap: 10px; }
	.hero-btns .btn { width: 100%; }

	.r-grid-2 { grid-template-columns: 1fr; gap: 24px; }
	.r-grid-2-equal { grid-template-columns: 1fr; gap: 20px; }
	.r-grid-3-gap { grid-template-columns: 1fr 1fr; gap: 12px; }
	.events-grid { grid-template-columns: 1fr; }

	.r-grid-podcast { grid-template-columns: 1fr; gap: 20px; }

	.r-grid-events,
	.r-grid-news,
	.pistlar-grid:not(.pistlar-grid-archive) {
		display: flex; flex-direction: row; overflow-x: auto;
		gap: 14px; scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch; padding-bottom: 8px;
		scrollbar-width: none;
	}
	.r-grid-events::-webkit-scrollbar,
	.r-grid-news::-webkit-scrollbar,
	.pistlar-grid::-webkit-scrollbar { display: none; }
	.r-grid-events > *, .pistlar-grid:not(.pistlar-grid-archive) > * { flex: 0 0 76vw; max-width: 300px; scroll-snap-align: start; }
	.r-grid-news > * { flex: 0 0 82vw; max-width: 320px; scroll-snap-align: start; }
	.r-grid-news > :nth-child(3) { display: flex; }
	.pistlar-grid-archive { grid-template-columns: 1fr; row-gap: 36px; }
	.pistlar-img { height: 200px; }

	.thing-img { height: 220px; min-height: 220px; }
	.thing-wrap { padding: 32px 16px 28px; }
	.about-wrap { padding: 28px 16px 48px; }
	.podcast-wrap { padding: 28px 20px; margin: 24px 0; }
	.podcast-feature { margin: 0 0 36px; }
	.podcast-feature-grid, .podcast-feature-grid:has(.is-video) { grid-template-columns: 1fr; gap: 22px; }
	.podcast-feature-media:not(.is-video) { width: 160px; }
	.ep-list { grid-template-columns: 1fr; }
	.ep-card { padding: 14px; gap: 14px; }
	.ep-cover { width: 72px; height: 72px; }
	.ep-spotify { margin-left: 0; }

	.subpage-hero { padding: 36px 16px 32px; }
	.subpage-hero h1 { font-size: 28px; }
	.subpage-cover { padding: 20px 16px 0; }
	.subpage-cover-img { height: 220px; }
	.subpage-body { padding: 28px 16px 60px; }

	.faq-hero { height: 260px; }
	.faq-hero h1 { font-size: 28px; }
	.faq-body { padding: 32px 16px 60px; }
	.about-title h1, .list-header h1 { font-size: 28px; }
	.reader-header h1 { font-size: 26px; }
	.reader-cover img { height: 220px; }
	.news-featured-img { height: 200px; }

	.footer-inner { flex-direction: column; gap: 12px; text-align: center; }
	.footer-links { flex-wrap: wrap; justify-content: center; gap: 14px; }

	.social-btns { flex-wrap: wrap; }
	.section-head-lg { margin-bottom: 24px; }
}

/* ── Small mobile (≤400px) ── */
@media (max-width: 400px) {
	.hero-h1 { font-size: 26px; }
	.r-grid-events > * { flex: 0 0 88vw; }
	.r-grid-news > * { flex: 0 0 90vw; }
	.r-grid-3-gap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}
