/* ==========================================================================
   IT-ordbogen — design tokens + component styles
   Kilde: design_handoff_it-ordbogen (README.md + IT-ordbogen.dc.html)
   ========================================================================== */

:root {
	--accent: #3d63f5;
	--accent-tint: #eef2ff;
	--accent-hover-border: #c9d3ff;
	--accent-hover-bg: #f7f9ff;

	--text-primary: #14161a;
	--text-body: #2c303a;
	--text-secondary: #5b6270;
	--text-weak: #8a909c;
	--text-placeholder: #9aa1ad;
	--text-vweak: #b0b5bf;
	--text-disabled: #c2c7d0;

	--bg-white: #fff;
	--bg-panel: #f7f8fa;
	--bg-panel-weak: #fbfcfd;
	--bg-panel-weak-2: #fbfcff;
	--bg-hover: #f4f5f7;

	--border: #e6e8ec;
	--border-header: #e9ebef;
	--border-weak: #eceef1;
	--border-vweak: #f1f2f4;

	--dark: #14161a;
	--dark-hover: #2a2d35;
	--green: #22a06b;

	--radius-sm: 9px;
	--radius-md: 12px;
	--radius-lg: 14px;
	--radius-xl: 16px;
	--radius-pill: 999px;

	--shadow-card-hover: 0 8px 24px rgba(20, 22, 26, 0.07);
	--shadow-dropdown-header: 0 12px 32px rgba(20, 22, 26, 0.12);
	--shadow-dropdown-hero: 0 16px 40px rgba(20, 22, 26, 0.14);
	--shadow-hero-input: 0 4px 20px rgba(20, 22, 26, 0.05);
	--shadow-logo: 0 2px 8px rgba(61, 99, 245, 0.35);

	--container: 1180px;

	--font-sans: 'IBM Plex Sans', system-ui, sans-serif;
	--font-mono: 'IBM Plex Mono', monospace;
}

/* ---------- Reset ---------- */
html, body { margin: 0; padding: 0; }
*, *::before, *::after { box-sizing: border-box; }

body {
	background: var(--bg-white);
	color: var(--text-primary);
	font-family: var(--font-sans);
	-webkit-font-smoothing: antialiased;
}

::selection { background: #dbe3ff; color: var(--text-primary); }

input::placeholder { color: var(--text-placeholder); }
button, input, textarea, select { font-family: inherit; }

img { max-width: 100%; height: auto; }

a { color: inherit; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}

.itord-skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; overflow: visible;
	position: fixed; top: 8px; left: 8px; z-index: 100;
	background: var(--dark); color: #fff; padding: 10px 16px;
	border-radius: var(--radius-md); font-size: 14px; font-weight: 500; text-decoration: none;
}

@keyframes fadeUp {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ---------- Shared bits ---------- */
.itord-eyebrow {
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 600;
	color: var(--text-weak);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	margin-bottom: 8px;
}

.itord-mono { font-family: var(--font-mono); }

.itord-tag {
	display: inline-flex;
	align-items: center;
	font-family: var(--font-mono);
	font-size: 11px;
	font-weight: 500;
	color: var(--accent);
	background: var(--accent-tint);
	padding: 3px 9px;
	border-radius: 6px;
}

.itord-tag--lg {
	display: inline-block;
	font-size: 12px;
	padding: 4px 11px;
	border-radius: 7px;
	margin-bottom: 16px;
}

.itord-link-accent {
	background: none;
	border: none;
	color: var(--accent);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	padding: 0;
	text-decoration: none;
}
.itord-link-accent:hover { text-decoration: underline; }

.itord-chip {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--bg-white);
	font-size: 13px;
	color: var(--text-secondary);
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.itord-chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-hover-bg); }

.itord-chip--pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	font-size: 14px;
	color: var(--text-primary);
}
.itord-chip__arrow { color: var(--text-disabled); font-family: var(--font-mono); }

.itord-btn-dark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 16px;
	background: var(--dark);
	color: #fff;
	border: none;
	border-radius: var(--radius-md);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
	text-decoration: none;
	transition: background 0.15s;
}
.itord-btn-dark:hover { background: var(--dark-hover); color: #fff; }

.itord-btn-outline {
	display: block;
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--bg-white);
	font-size: 14px;
	font-weight: 500;
	color: var(--text-secondary);
	cursor: pointer;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}
.itord-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.itord-section {
	max-width: var(--container);
	margin: 0 auto;
	padding: 8px 28px 64px;
}
.itord-section h2 {
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin: 0 0 22px;
}
.itord-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 22px;
}
.itord-section__head h2 { margin: 0; }
.itord-section__hint { font-size: 15px; color: var(--text-weak); margin: 0 0 24px; }

.itord-grid { display: grid; gap: 16px; }
.itord-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.itord-grid--3 { grid-template-columns: repeat(3, 1fr); }
.itord-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ==========================================================================
   Header
   ========================================================================== */
.itord-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border-header);
}
.itord-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 28px;
	height: 64px;
	display: flex;
	align-items: center;
	gap: 24px;
}

.itord-logo {
	display: flex;
	align-items: center;
	gap: 11px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	flex-shrink: 0;
}
.itord-logo__tile {
	width: 30px;
	height: 30px;
	border-radius: var(--radius-sm);
	background: var(--accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--font-mono);
	font-weight: 600;
	font-size: 18px;
	line-height: 1;
	box-shadow: var(--shadow-logo);
}
.itord-logo__tile--sm { width: 26px; height: 26px; border-radius: 8px; font-size: 15px; box-shadow: none; }
.itord-logo__text { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.itord-logo__text--sm { font-size: 15px; }

.itord-nav {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: 8px;
	list-style: none;
	padding: 0;
	margin-block: 0;
}
.itord-nav li { list-style: none; }
.itord-nav .sub-menu { display: none; }
.itord-nav__link {
	background: none;
	border: none;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 14.5px;
	color: var(--text-secondary);
	cursor: pointer;
	font-weight: 500;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}
.itord-nav__link:hover { background: var(--bg-hover); color: var(--text-primary); }

.itord-header__right {
	flex: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

/* ---------- Search ---------- */
.itord-search { position: relative; }
.itord-search__form { position: relative; display: block; }

.itord-search--header { width: 300px; max-width: 42vw; }
.itord-search--hero { width: 100%; max-width: 600px; }

.itord-search__icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-placeholder);
	font-size: 15px;
	pointer-events: none;
}
.itord-search--hero .itord-search__icon { left: 20px; font-size: 22px; }

.itord-search__input {
	width: 100%;
	height: 38px;
	padding: 0 12px 0 32px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	font-size: 14px;
	font-family: inherit;
	color: var(--text-primary);
	background: var(--bg-panel);
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.itord-search__input:focus {
	border-color: var(--accent);
	background: var(--bg-white);
	box-shadow: 0 0 0 3px var(--accent-tint);
}

.itord-search--hero .itord-search__input {
	height: 60px;
	padding: 0 20px 0 52px;
	font-size: 17px;
	border-radius: var(--radius-lg);
	background: var(--bg-white);
	box-shadow: var(--shadow-hero-input);
}
.itord-search--hero .itord-search__input:focus {
	box-shadow: 0 0 0 4px var(--accent-tint), 0 4px 20px rgba(20, 22, 26, 0.06);
}

.itord-search__dropdown {
	position: absolute;
	left: 0;
	right: 0;
	background: var(--bg-white);
	border: 1px solid var(--border);
	overflow: hidden;
	z-index: 60;
	animation: fadeUp 0.12s ease;
}
.itord-search__dropdown[hidden] { display: none; }

.itord-search--header .itord-search__dropdown { top: 46px; border-radius: var(--radius-md); box-shadow: var(--shadow-dropdown-header); }
.itord-search--hero .itord-search__dropdown { top: 68px; border-radius: var(--radius-lg); box-shadow: var(--shadow-dropdown-hero); z-index: 40; }

.itord-search__result {
	display: flex;
	width: 100%;
	align-items: baseline;
	gap: 10px;
	padding: 11px 14px;
	background: none;
	border: none;
	border-bottom: 1px solid var(--border-vweak);
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	color: inherit;
}
.itord-search__result:hover { background: var(--bg-panel); }
.itord-search__result-title { font-weight: 600; font-size: 14px; color: var(--text-primary); white-space: nowrap; }
.itord-search__result-desc { font-size: 12.5px; color: var(--text-weak); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.itord-search--hero .itord-search__result { gap: 12px; padding: 14px 18px; }
.itord-search--hero .itord-search__result-title { font-size: 15.5px; }
.itord-search--hero .itord-search__result-desc { font-size: 13.5px; }
.itord-search__result-tag {
	font-family: var(--font-mono);
	font-size: 11px;
	color: var(--accent);
	background: var(--accent-tint);
	padding: 2px 7px;
	border-radius: 5px;
}

.itord-search__empty { padding: 14px; font-size: 13.5px; color: var(--text-weak); }
.itord-search--hero .itord-search__empty { padding: 16px 18px; font-size: 14px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.itord-hero { max-width: var(--container); margin: 0 auto; padding: 80px 28px 56px; }
.itord-hero__inner { max-width: 720px; }

.itord-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	font-size: 12.5px;
	color: var(--text-secondary);
	font-family: var(--font-mono);
	margin-bottom: 22px;
}
.itord-badge__dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: var(--green); }

.itord-hero__title {
	font-size: 52px;
	line-height: 1.05;
	letter-spacing: -0.03em;
	font-weight: 600;
	margin: 0 0 18px;
}
.itord-hero__subtitle {
	font-size: 19px;
	line-height: 1.55;
	color: var(--text-secondary);
	margin: 0 0 32px;
	max-width: 600px;
}
.itord-hero__subtitle em { font-style: normal; color: var(--accent); font-weight: 500; }

.itord-popular { display: flex; align-items: center; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.itord-popular__label { font-size: 13px; color: var(--text-placeholder); }

/* ==========================================================================
   Cards (udvalgte opslag)
   ========================================================================== */
.itord-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--bg-white);
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.itord-card:hover { border-color: var(--accent-hover-border); box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.itord-card__top { display: flex; align-items: center; justify-content: space-between; }
.itord-card__arrow { font-family: var(--font-mono); font-size: 12px; color: var(--text-disabled); }
.itord-card__title { font-size: 19px; font-weight: 600; margin: 2px 0 0; letter-spacing: -0.01em; }
.itord-card__desc { font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); margin: 0; }

/* ==========================================================================
   Bladr efter bogstav (forside)
   ========================================================================== */
.itord-letters-section { background: var(--bg-panel); border-top: 1px solid var(--border-weak); border-bottom: 1px solid var(--border-weak); }
.itord-letters-section__inner { max-width: var(--container); margin: 0 auto; padding: 56px 28px; }
.itord-letters-section h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 6px; }

.itord-letters-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
	gap: 10px;
}
.itord-letter-btn {
	height: 52px;
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	background: var(--bg-white);
	color: var(--text-primary);
	font-size: 17px;
	font-weight: 600;
	font-family: var(--font-mono);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: border-color 0.15s;
}
.itord-letter-btn:hover { border-color: var(--accent); }
.itord-letter-btn--disabled { background: var(--bg-hover); color: var(--text-disabled); cursor: default; }
.itord-letter-btn--disabled:hover { border-color: var(--border); }

/* ==========================================================================
   Kategorier (forside)
   ========================================================================== */
.itord-cat-card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	padding: 22px;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	background: var(--bg-white);
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, box-shadow 0.15s;
}
.itord-cat-card:hover { border-color: var(--accent-hover-border); box-shadow: 0 8px 24px rgba(20, 22, 26, 0.06); }
.itord-cat-card__icon {
	width: 38px;
	height: 38px;
	border-radius: var(--radius-md);
	background: var(--accent-tint);
	color: var(--accent);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 19px;
}
.itord-cat-card__name { font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.itord-cat-card__count { font-size: 13px; color: var(--text-weak); font-family: var(--font-mono); }

/* ==========================================================================
   Footer
   ========================================================================== */
.itord-footer { border-top: 1px solid var(--border-weak); background: var(--bg-panel-weak); }
.itord-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 48px 28px;
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 32px;
}
.itord-footer__about { max-width: 300px; }
.itord-footer__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.itord-footer__about p { font-size: 13.5px; line-height: 1.6; color: var(--text-weak); margin: 0; }

.itord-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.itord-footer__col { display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--text-secondary); list-style: none; padding: 0; margin-block: 0; }
.itord-footer__col li { list-style: none; }
.itord-footer__col a { text-decoration: none; color: inherit; }
.itord-footer__col a:hover { color: var(--accent); }
.itord-footer__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: 12px;
	font-family: var(--font-mono);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.itord-footer__bottom {
	border-top: 1px solid var(--border-weak);
	padding: 18px 28px;
	text-align: center;
	font-size: 12.5px;
	color: var(--text-vweak);
	font-family: var(--font-mono);
}

/* ==========================================================================
   Bladr / A–Å (archive-opslag / taxonomy-kategori / search)
   ========================================================================== */
.itord-browse { max-width: var(--container); margin: 0 auto; padding: 52px 28px 80px; }
.itord-browse__title { font-size: 38px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.itord-browse__subtitle { font-size: 16px; color: var(--text-secondary); margin: 0 0 32px; }

.itord-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.itord-cat-chip {
	padding: 7px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	background: var(--bg-white);
	color: var(--text-secondary);
	font-size: 13.5px;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: border-color 0.15s;
}
.itord-cat-chip:hover { border-color: var(--accent); }
.itord-cat-chip.is-active { background: var(--dark); color: #fff; border-color: var(--dark); }

.itord-letter-bar {
	position: sticky;
	top: 64px;
	z-index: 20;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 12px 0;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--border-weak);
}
.itord-letter-chip {
	width: 36px;
	height: 36px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-white);
	color: var(--text-primary);
	font-size: 14px;
	font-weight: 600;
	font-family: var(--font-mono);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: border-color 0.15s;
}
.itord-letter-chip:hover { border-color: var(--accent); }
.itord-letter-chip.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.itord-letter-chip--disabled { background: var(--bg-hover); color: var(--text-disabled); cursor: default; }
.itord-letter-chip--disabled:hover { border-color: var(--border); }

.itord-letter-group { margin-top: 20px; }
.itord-letter-group__label {
	font-family: var(--font-mono);
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
	padding: 8px 0;
	border-bottom: 1px solid var(--border-weak);
	margin-bottom: 8px;
}

.itord-row-card {
	display: flex;
	align-items: baseline;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--border-weak);
	border-radius: var(--radius-md);
	background: var(--bg-white);
	text-align: left;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	transition: border-color 0.15s, background 0.15s;
}
.itord-row-card:hover { border-color: var(--accent-hover-border); background: var(--bg-panel-weak-2); }
.itord-row-card__title { font-weight: 600; font-size: 15.5px; white-space: nowrap; }
.itord-row-card__desc { font-size: 13.5px; color: var(--text-weak); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.itord-empty { padding: 48px; text-align: center; color: var(--text-weak); font-size: 15px; }
.itord-empty a { color: var(--accent); cursor: pointer; font-size: 15px; font-weight: 500; text-decoration: none; }
.itord-empty a:hover { text-decoration: underline; }

.itord-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 32px; }
.itord-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 36px; padding: 0 10px;
	border: 1px solid var(--border); border-radius: var(--radius-sm);
	background: var(--bg-white); color: var(--text-primary);
	font-size: 14px; font-weight: 500; text-decoration: none;
}
.itord-pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.itord-pagination .page-numbers:hover:not(.current) { border-color: var(--accent); }
.itord-pagination .page-numbers.dots { border: none; background: none; }

/* ==========================================================================
   Almindelig side (page.php)
   ========================================================================== */
.itord-page { max-width: var(--container); margin: 0 auto; padding: 52px 28px 80px; }
.itord-page__title { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 28px; line-height: 1.1; }

/* ==========================================================================
   Opslagsside
   ========================================================================== */
.itord-single { max-width: var(--container); margin: 0 auto; padding: 36px 28px 80px; }

.itord-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	color: var(--text-weak);
	margin-bottom: 28px;
	font-family: var(--font-mono);
}
.itord-breadcrumb a { text-decoration: none; color: inherit; }
.itord-breadcrumb a:hover { color: var(--accent); }
.itord-breadcrumb__current { color: var(--text-secondary); }

.itord-single__grid {
	display: grid;
	grid-template-columns: 1fr 300px;
	gap: 56px;
	align-items: start;
}
.itord-single__article { min-width: 0; }

.itord-single__title { font-size: 44px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.08; }
.itord-single__abbr { font-size: 17px; color: var(--text-weak); margin: 0 0 28px; font-family: var(--font-mono); }

.itord-summary-box {
	background: var(--bg-panel);
	border: 1px solid var(--border-weak);
	border-radius: var(--radius-lg);
	padding: 22px 24px;
	margin: 20px 0 32px;
}
.itord-summary-box p { font-size: 18px; line-height: 1.55; color: var(--text-primary); margin: 0; font-weight: 500; }

.itord-body { font-size: 17px; line-height: 1.72; color: var(--text-body); }
.itord-body p { margin: 0 0 18px; }

/* Generic article typography — real content is long-form (H2/H3, lists,
   FAQ, sources), not just short paragraphs, so style it generically here. */
.itord-body h2 {
	font-size: 26px;
	font-weight: 600;
	letter-spacing: -0.01em;
	color: var(--text-primary);
	margin: 40px 0 16px;
	line-height: 1.25;
}
.itord-body h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--text-primary);
	margin: 28px 0 12px;
	line-height: 1.3;
}
.itord-body h4 { font-size: 17px; font-weight: 600; margin: 24px 0 10px; }
.itord-body ul, .itord-body ol { margin: 0 0 18px; padding-left: 22px; }
.itord-body li { margin-bottom: 8px; line-height: 1.6; }
.itord-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.itord-body strong, .itord-body b { font-weight: 600; color: var(--text-primary); }
.itord-body blockquote {
	margin: 24px 0;
	padding: 4px 20px;
	border-left: 3px solid var(--accent);
	color: var(--text-secondary);
	font-style: italic;
}
.itord-body img { border-radius: var(--radius-md); margin: 8px 0; }
.itord-body figure { margin: 24px 0; }
.itord-body figcaption { font-size: 13.5px; color: var(--text-weak); margin-top: 8px; }
.itord-body hr { border: none; border-top: 1px solid var(--border-weak); margin: 32px 0; }
.itord-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15.5px; }
.itord-body th, .itord-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border-weak); }
.itord-body th { font-weight: 600; color: var(--text-primary); }
.itord-body code {
	font-family: var(--font-mono);
	font-size: 0.9em;
	background: var(--bg-panel);
	padding: 2px 6px;
	border-radius: 4px;
}
.itord-body pre {
	background: var(--bg-panel-weak);
	border: 1px solid var(--border-weak);
	border-radius: var(--radius-md);
	padding: 16px 18px;
	overflow-x: auto;
	font-family: var(--font-mono);
	font-size: 14.5px;
}
.itord-body pre code { background: none; padding: 0; }

.itord-example { margin: 28px 0; border: 1px solid var(--border-weak); border-radius: var(--radius-lg); overflow: hidden; }
.itord-example__header {
	background: var(--dark);
	color: var(--text-placeholder);
	font-family: var(--font-mono);
	font-size: 11px;
	padding: 9px 16px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}
.itord-example__body {
	padding: 18px 20px;
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--text-body);
	font-family: var(--font-mono);
	background: var(--bg-panel-weak);
	white-space: pre-wrap;
	word-break: break-word;
}

.itord-see-also { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border-weak); }
.itord-see-also__label { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 14px; }
.itord-see-also__list { display: flex; flex-wrap: wrap; gap: 9px; }

.itord-sidebar { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.itord-details-card { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 18px 20px; }
.itord-details-row {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	padding: 7px 0;
	border-bottom: 1px solid var(--border-vweak);
}
.itord-details-row--last { border-bottom: none; }
.itord-details-row span:first-child { color: var(--text-weak); }
.itord-details-row span:last-child { font-weight: 500; }

.itord-sidebar__hint { font-size: 12.5px; color: var(--text-vweak); line-height: 1.5; padding: 0 4px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
	.itord-grid--3, .itord-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.itord-single__grid { grid-template-columns: 1fr; gap: 32px; }
	.itord-sidebar { position: static; }
}

@media (max-width: 720px) {
	.itord-header__inner { gap: 12px; }
	.itord-nav { display: none; }
	.itord-search--header { width: 100%; max-width: none; }
	.itord-hero { padding: 48px 20px 40px; }
	.itord-hero__title { font-size: 36px; }
	.itord-hero__subtitle { font-size: 17px; }
	.itord-section, .itord-browse, .itord-single, .itord-letters-section__inner, .itord-header__inner, .itord-footer__inner { padding-left: 20px; padding-right: 20px; }
	.itord-grid--2, .itord-grid--3, .itord-grid--4 { grid-template-columns: 1fr; }
	.itord-browse__title { font-size: 30px; }
	.itord-single__title { font-size: 32px; }
}
