/* حوليات نجد — public pages (1.6.0).
   Identity: the site's theme (OmranTheme). Colours, radii, shadows and type sizes are the
   theme's own tokens (--alomran-*), with the same values as fallbacks so the pages keep the
   identity under another theme. No web font is loaded: the theme's font (NeoSansArabic) is
   inherited. An optional accent override (plugin settings) replaces the green. */

.hn {
	--hn-green: var(--hn-accent-override, var(--alomran-green, #1E4724));
	--hn-green-dark: var(--alomran-green-dark, #173D23);
	--hn-green-deep: var(--alomran-green-deep, #0F2F1C);
	--hn-green-hover: var(--alomran-green-hover, #285B30);
	--hn-gold: var(--alomran-gold, #D4AF37);
	--hn-gold-light: var(--alomran-gold-light, #E8D08C);
	--hn-gold-mid: var(--alomran-gold-mid, #C4A35A);
	--hn-gold-text: #7D5D22;
	--hn-text: var(--alomran-text, #3C2B1A);
	--hn-muted: var(--alomran-text-muted, #6A5A3A);
	--hn-soft-text: var(--alomran-text-soft, #7A6A49);
	--hn-surface: var(--alomran-surface, #FFF9ED);
	--hn-surface-alt: var(--alomran-surface-alt, #F5EDD8);
	--hn-surface-warm: var(--alomran-surface-warm, #EFE1C2);
	--hn-border: var(--alomran-border, #D4BF8A);
	--hn-border-soft: var(--alomran-border-soft, #E3D2A2);
	--hn-white: var(--alomran-white, #FFFFFF);
	--hn-r-xs: var(--alomran-radius-xs, 6px);
	--hn-r-sm: var(--alomran-radius-sm, 8px);
	--hn-r-md: var(--alomran-radius-md, 12px);
	--hn-r-lg: var(--alomran-radius-lg, 16px);
	--hn-pill: var(--alomran-radius-pill, 999px);
	--hn-shadow-sm: var(--alomran-shadow-sm, 0 3px 10px rgba(44, 30, 5, .08));
	--hn-shadow-md: var(--alomran-shadow-md, 0 9px 24px rgba(44, 30, 5, .11));
	--hn-focus: var(--alomran-focus-ring, 0 0 0 6px rgba(212, 175, 55, .42));
	--hn-t: var(--alomran-transition, .25s ease);
	--hn-fs-xs: var(--alomran-fs-caption, 13px);
	--hn-fs-sm: var(--alomran-fs-sm, 14px);
	--hn-fs-ui: var(--alomran-fs-ui, 15px);
	--hn-fs-body: var(--alomran-fs-body, 16px);
	--hn-fs-reading: var(--alomran-fs-reading, 19px);
	--hn-fs-h4: var(--alomran-fs-h4, 20px);
	--hn-fs-h3: var(--alomran-fs-h3, 24px);
	--hn-fs-h2: var(--alomran-fs-h2, 28px);
	--hn-tap: 44px;
	direction: rtl;
	text-align: right;
	font-family: inherit;
	font-size: var(--hn-fs-body);
	line-height: 1.85;
	color: var(--hn-text);
	max-width: 1240px;
	margin: 0 auto;
	padding: 1.25rem 16px 3rem;
	box-sizing: border-box;
}
/* Inside OmranTheme's content card the theme's container gives the width and gutters. */
.hn-omran .hn { max-width: none; padding: 0 0 2.5rem; }
.hn-omran .alomran-breadcrumbs { margin-bottom: 14px; }

.hn *, .hn *::before, .hn *::after { box-sizing: inherit; }
.hn h1, .hn h2, .hn h3, .hn h4, .hn input, .hn button, .hn select, .hn textarea, .hn legend, .hn label, .hn table { font-family: inherit; }
.hn input, .hn button, .hn select, .hn textarea { font-size: inherit; line-height: 1.5; color: inherit; }
.hn h1, .hn h2, .hn h3, .hn h4 { line-height: 1.45; color: var(--hn-text); }
.hn p { margin: 0 0 .75rem; }
.hn a { color: var(--hn-green); text-underline-offset: 3px; }
.hn a:hover { color: var(--hn-green-hover); }
.hn .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.hn :focus-visible { outline: 2px solid var(--hn-green); outline-offset: 2px; box-shadow: var(--hn-focus); border-radius: var(--hn-r-xs); }
.hn [hidden] { display: none !important; }
.hn-muted { color: var(--hn-muted); }
.hn-sep { margin-inline: .5em; color: var(--hn-soft-text); }
.hn-dot { margin-inline: .3em; color: var(--hn-gold-mid); font-weight: 700; }
.hn-empty { padding: 18px 20px; background: var(--hn-surface-alt); border: 1px dashed var(--hn-border); border-radius: var(--hn-r-md); color: var(--hn-muted); }
.hn-section-note, .hn-order-note { font-size: var(--hn-fs-sm); color: var(--hn-muted); line-height: 1.8; }
.hn-lead { font-size: var(--hn-fs-body); color: var(--hn-muted); max-width: 70ch; margin-top: -10px; }

/* Breadcrumbs printed by the plugin (themes other than OmranTheme, which prints its own). */
.hn-crumbs ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--hn-fs-sm); color: var(--hn-muted); }
.hn-crumbs li + li::before { content: "‹"; margin-inline-end: 4px; color: var(--hn-soft-text); }
.hn-crumbs a { color: var(--hn-green); text-decoration: none; }

/* Heading (non-Omran themes; OmranTheme draws its own section header). */
.hn-page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--hn-border-soft); }
.hn-page-head h1 { margin: 0; font-size: var(--hn-fs-h3); font-weight: 700; }

/* ------------------------------------------------------------------ */
/* Buttons, chips, badges                                             */
/* ------------------------------------------------------------------ */
.hn-btn, .hn-adv-actions button, .hn-pick-go button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: var(--hn-tap); padding: 8px 24px; border-radius: var(--hn-pill);
	background: var(--hn-green); border: 1px solid var(--hn-gold); color: var(--hn-gold-light);
	font-size: var(--hn-fs-ui); font-weight: 700; text-decoration: none; cursor: pointer;
	box-shadow: var(--hn-shadow-sm); transition: background-color var(--hn-t), color var(--hn-t);
}
.hn-btn:hover, .hn-btn:focus-visible, .hn-adv-actions button:hover, .hn-pick-go button:hover { background: var(--hn-green-dark); color: var(--hn-white); }
/* A <button class="hn-btn"> keeps its colours over «.hn button { color: inherit }». */
.hn button.hn-btn { color: var(--hn-gold-light); }
.hn button.hn-btn:hover, .hn button.hn-btn:focus-visible { color: var(--hn-white); }
.hn-btn-secondary { background: transparent; color: var(--hn-green); border-color: var(--hn-green); box-shadow: none; }
.hn-btn-secondary:hover, .hn-btn-secondary:focus-visible { background: var(--hn-surface); color: var(--hn-green-dark); border-color: var(--hn-gold); }
.hn-btn[disabled], .hn-pick-go button[disabled] { opacity: .5; cursor: not-allowed; }

.hn-chip {
	display: inline-flex; align-items: center; gap: 6px; min-height: var(--hn-tap); padding: 6px 16px;
	border-radius: var(--hn-pill); border: 1px solid var(--hn-border); background: var(--hn-surface);
	color: var(--hn-text) !important; text-decoration: none; font-size: var(--hn-fs-ui); white-space: nowrap;
	transition: background-color var(--hn-t), border-color var(--hn-t);
}
.hn-chip:hover { border-color: var(--hn-gold); background: var(--hn-surface-alt); }
.hn-chip[aria-current="true"] { background: var(--hn-green); border-color: var(--hn-green); color: var(--hn-gold-light) !important; font-weight: 700; }
.hn-chip-n { font-size: var(--hn-fs-xs); color: var(--hn-muted); background: var(--hn-surface-alt); border-radius: var(--hn-pill); padding: 0 8px; line-height: 1.7; }
.hn-chip[aria-current="true"] .hn-chip-n { background: rgba(255, 255, 255, .14); color: var(--hn-gold-light); }

.hn-badge { display: inline-block; font-size: var(--hn-fs-xs); line-height: 1.6; padding: 1px 10px; border-radius: var(--hn-pill); background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); color: var(--hn-text); }
.hn-badge-editor { background: #FFF1CC; border-color: #E6C774; color: #6B4A00; }
.hn-badge-unique { background: var(--hn-surface-alt); border-color: var(--hn-gold-text); color: var(--hn-gold-text); font-weight: 700; }
.hn-ev-badges { margin: 0 0 6px; }
.hn-place { margin: 6px 0 0; font-size: var(--hn-fs-sm); color: var(--hn-muted); }
.hn-place .fa-solid { color: var(--hn-gold-text); margin-inline-end: 4px; }

/* ------------------------------------------------------------------ */
/* Navigation of the plugin's sections                                */
/* ------------------------------------------------------------------ */
.hn-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.hn-tabs { list-style: none; margin: 0; padding: 4px; display: flex; gap: 4px; flex-wrap: wrap; background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); border-radius: var(--hn-pill); }
.hn-tabs a { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 4px 16px; border-radius: var(--hn-pill); color: var(--hn-text); text-decoration: none; font-size: var(--hn-fs-ui); font-weight: 600; }
.hn-tabs a i { color: var(--hn-gold-text); font-size: .9em; }
.hn-tabs a:hover { background: var(--hn-surface); }
.hn-tabs a[aria-current="page"] { background: var(--hn-green); color: var(--hn-gold-light); }
.hn-tabs a[aria-current="page"] i { color: var(--hn-gold-light); }
.hn-nav-search { display: flex; border: 1px solid var(--hn-border); border-radius: var(--hn-pill); overflow: hidden; background: var(--hn-white); }
.hn-nav-search input { border: 0; background: transparent; padding: 8px 16px; min-height: var(--hn-tap); width: 210px; color: var(--hn-text); }
.hn-nav-search input:focus { outline: none; }
.hn-nav-search:focus-within { box-shadow: var(--hn-focus); border-color: var(--hn-gold); }
.hn-nav-search button { border: 0; background: var(--hn-green); color: var(--hn-gold-light); padding: 0 18px; min-width: var(--hn-tap); cursor: pointer; }

/* Back to the search results (added by front.js). */
.hn-backbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 4px 6px 4px 14px; background: var(--hn-surface-alt); border: 1px solid var(--hn-border); border-radius: var(--hn-r-md); }
.hn-backbar a { display: inline-flex; align-items: center; min-height: var(--hn-tap); padding-inline: 8px; font-weight: 700; text-decoration: none; }
.hn-backbar-x { min-width: var(--hn-tap); min-height: var(--hn-tap); border: 0; background: transparent; font-size: 22px; color: var(--hn-muted); cursor: pointer; }

/* ------------------------------------------------------------------ */
/* Search fields                                                      */
/* ------------------------------------------------------------------ */
.hn-bigsearch { display: flex; width: 100%; max-width: 820px; background: var(--hn-white); border: 2px solid var(--hn-border); border-radius: var(--hn-r-md); overflow: hidden; box-shadow: var(--hn-shadow-sm); }
.hn-bigsearch:focus-within { border-color: var(--hn-gold); box-shadow: var(--hn-focus); }
.hn-bigsearch input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 18px; font-size: var(--hn-fs-h4); color: var(--hn-text); }
.hn-bigsearch input:focus { outline: none; }
.hn-bigsearch input::placeholder, .hn-nav-search input::placeholder { color: var(--hn-soft-text); opacity: 1; }
.hn-bigsearch button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--hn-green); color: var(--hn-gold-light); font-weight: 700; font-size: var(--hn-fs-body); padding: 0 28px; min-height: 56px; cursor: pointer; transition: background-color var(--hn-t); }
.hn-bigsearch button:hover { background: var(--hn-green-dark); color: var(--hn-white); }

/* ------------------------------------------------------------------ */
/* Home                                                               */
/* ------------------------------------------------------------------ */
.hn-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 34px 20px 26px; margin-bottom: 30px; background: linear-gradient(to bottom, var(--hn-surface) 0%, var(--hn-surface-alt) 100%); border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-lg); }
.hn-hero-q { margin: 0; font-size: var(--hn-fs-h2); font-weight: 700; color: var(--hn-green); line-height: 1.4; }
.hn-hero .hn-intro { max-width: 720px; margin: 0; color: var(--hn-muted); font-size: var(--hn-fs-body); }
.hn-examples { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 0; font-size: var(--hn-fs-sm); color: var(--hn-muted); }
.hn-examples .hn-chip { min-height: 38px; padding: 4px 14px; font-size: var(--hn-fs-sm); }
.hn-hero-stats { margin: 0; font-size: var(--hn-fs-sm); color: var(--hn-muted); }

.hn-block { margin-bottom: 34px; }
.hn-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.hn-block-title { font-size: var(--hn-fs-h4); font-weight: 700; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--hn-border-soft); flex: 1; }
.hn-block-head .hn-block-title { border-bottom: 0; padding-bottom: 0; }
.hn-block-head { border-bottom: 2px solid var(--hn-border-soft); margin-bottom: 10px; }
.hn-more { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hn-tap); font-weight: 600; text-decoration: none; }

/* A fixed plotting area keeps every column on the same baseline. */
.hn-chart-scroll { overflow-x: auto; padding-bottom: 8px; overscroll-behavior-inline: contain; }
.hn-chart-scroll:focus-visible { outline: 2px solid var(--hn-green); outline-offset: 2px; }
.hn-bars { list-style: none; margin: 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(var(--hn-bars, 15), minmax(0, 1fr)); gap: 6px; width: 100%; min-width: 1080px; box-sizing: border-box; }
.hn-bars li { margin: 0; padding: 0; }
.hn-bars a { display: flex; flex-direction: column; align-items: center; gap: 0; text-decoration: none; color: var(--hn-text); border-radius: var(--hn-r-sm); padding: 4px 2px; }
.hn-bars a:hover { background: var(--hn-surface-alt); }
.hn-bar-track { display: block; position: relative; height: 210px; width: 100%; }
.hn-bar { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); display: block; box-sizing: border-box; width: 75%; max-width: 54px; height: var(--h); min-height: 4px; background: linear-gradient(to top, var(--hn-green) 0%, var(--hn-green-hover) 100%); border-radius: 6px 6px 0 0; border-top: 3px solid var(--hn-gold); }
.hn-bar-n { position: absolute; bottom: calc(var(--h) + 6px); left: 0; width: 100%; text-align: center; white-space: nowrap; font-size: var(--hn-fs-xs); color: var(--hn-muted); font-weight: 600; line-height: 20px; }
.hn-bar-l { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; box-sizing: border-box; height: 48px; line-height: 1.5; font-size: 12px; font-weight: 700; border-top: 1px solid var(--hn-border); width: 100%; text-align: center; padding-top: 5px; }
.hn-bar-l1, .hn-bar-l2 { white-space: nowrap; }
.hn-bar-l1 { font-weight: 400; color: var(--hn-muted); }
.hn-bar-l2 { font-weight: 700; color: var(--hn-text); }

.hn-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 34px; }
.hn-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hn-border-soft); }
.hn-list li { border-bottom: 1px solid var(--hn-border-soft); }
.hn-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 6px 4px; text-decoration: none; color: var(--hn-text); }
.hn-list a:hover { background: var(--hn-surface-alt); }
.hn-list-main { font-weight: 700; font-size: var(--hn-fs-body); }
.hn-list-side { font-size: var(--hn-fs-sm); color: var(--hn-muted); white-space: nowrap; }
.hn-list-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.hn-more-list { margin-top: 8px; }
.hn-more-list summary, .hn-coverage summary, .hn-absent summary, .hn-pick-rest summary, .hn-facet summary, .hn-toc summary {
	display: flex; align-items: center; min-height: var(--hn-tap); cursor: pointer; font-weight: 700; color: var(--hn-green);
}

.hn-method { margin: 6px 0 26px; padding: 20px 24px; background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); border-inline-start: 4px solid var(--hn-gold); border-radius: var(--hn-r-md); }
.hn-method .hn-block-title { border: 0; padding: 0; margin-bottom: 6px; }
.hn-method .hn-block-title i { color: var(--hn-gold-text); }
.hn-method p { color: var(--hn-text); line-height: 1.95; }
.hn-method-links { margin: 0; font-weight: 600; }
.hn-method-links a { display: inline-flex; align-items: center; min-height: var(--hn-tap); }

.hn-coverage { margin-top: 10px; }
.hn-table-wrap { overflow-x: auto; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-md); background: var(--hn-white); }
.hn-coverage table { border-collapse: collapse; width: 100%; font-size: var(--hn-fs-sm); }
.hn-coverage th, .hn-coverage td { padding: 6px 10px; border-bottom: 1px solid var(--hn-border-soft); text-align: right; }
.hn-coverage thead th { background: var(--hn-surface-alt); position: sticky; top: 0; }
.hn-coverage td { text-align: center; color: var(--hn-muted); font-variant-numeric: tabular-nums; }
.hn-coverage tbody th { font-weight: 600; min-width: 240px; }

/* ------------------------------------------------------------------ */
/* Years                                                              */
/* ------------------------------------------------------------------ */
.hn-years-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 18px; position: sticky; top: 0; z-index: 3; padding: 8px 0; background: var(--hn-surface); border-bottom: 1px solid var(--hn-border-soft); }
.hn-jump-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.hn-jump-list a { display: inline-flex; align-items: center; justify-content: center; min-width: var(--hn-tap); min-height: 38px; padding: 0 8px; border-radius: var(--hn-r-sm); border: 1px solid var(--hn-border-soft); background: var(--hn-surface); color: var(--hn-text); text-decoration: none; font-size: var(--hn-fs-sm); font-weight: 600; }
.hn-jump-list a:hover { border-color: var(--hn-gold); background: var(--hn-surface-alt); }
.hn-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: var(--hn-fs-xs); color: var(--hn-muted); }
.hn-legend-t { font-weight: 700; }
.hn-legend-i { display: inline-flex; align-items: center; gap: 5px; }
.hn-sw { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--hn-border); }

/* Colour tiers: cream → gold → green (the site's palette); text keeps ≥ 4.5:1 contrast. */
.hn .hn-t0, .hn a.hn-t0:hover { background: transparent; color: var(--hn-soft-text); }
.hn .hn-t1, .hn a.hn-t1:hover { background: var(--hn-surface-alt); color: var(--hn-text); border-color: var(--hn-border-soft) !important; }
.hn .hn-t2, .hn a.hn-t2:hover { background: var(--hn-gold-light); color: var(--hn-text); border-color: var(--hn-gold-mid) !important; }
.hn .hn-t3, .hn a.hn-t3:hover { background: var(--hn-gold-mid); color: #2A1D0E; border-color: var(--hn-gold-text) !important; }
.hn .hn-t4, .hn a.hn-t4:hover { background: var(--hn-green-hover); color: var(--hn-white); border-color: var(--hn-green) !important; }
.hn .hn-t5, .hn a.hn-t5:hover { background: var(--hn-green-deep); color: var(--hn-gold-light); border-color: var(--hn-gold) !important; }

.hn-century { margin: 0 0 34px; scroll-margin-top: 80px; }
.hn-century-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--hn-border-soft); }
.hn-century-title { margin: 0; font-size: var(--hn-fs-h4); font-weight: 700; color: var(--hn-green); }
.hn-century-meta { margin: 0; font-size: var(--hn-fs-sm); color: var(--hn-muted); }
.hn-grid { display: flex; flex-direction: column; gap: 6px; }
.hn-decade { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px; align-items: center; }
.hn-decade-l { margin: 0; display: flex; flex-direction: column; font-size: var(--hn-fs-sm); font-weight: 700; color: var(--hn-text); line-height: 1.35; font-variant-numeric: tabular-nums; }
.hn-decade-n { font-weight: 400; font-size: var(--hn-fs-xs); color: var(--hn-muted); }
.hn-cells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
.hn-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 52px; padding: 4px 2px; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-sm); text-decoration: none; line-height: 1.25; font-variant-numeric: tabular-nums; transition: transform var(--hn-t), box-shadow var(--hn-t); }
.hn-cell.hn-t0 { border-style: dashed; opacity: .6; }
a.hn-cell:hover { transform: translateY(-2px); box-shadow: var(--hn-shadow-md); }
.hn-cell-y { font-size: var(--hn-fs-sm); font-weight: 700; }
.hn-cell-n { font-size: var(--hn-fs-xs); opacity: .95; }
.hn-decade-empty .hn-cells { opacity: .75; }
.hn-yearchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hn-yearchips a { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 76px; min-height: 52px; padding: 4px 10px; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-sm); text-decoration: none; line-height: 1.3; }
.hn-yearchips a:hover { box-shadow: var(--hn-shadow-md); }
.hn-undated-link { margin-top: 10px; }

/* ------------------------------------------------------------------ */
/* Year page                                                          */
/* ------------------------------------------------------------------ */
.hn-year-facts { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; margin: -6px 0 12px; color: var(--hn-muted); font-size: var(--hn-fs-ui); }
.hn-year-facts p { margin: 0; }
.hn-year-count strong { color: var(--hn-green); font-size: var(--hn-fs-h4); }
.hn-prevnext { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: 10px; margin: 0 0 20px; }
.hn-pn { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 16px; border: 1px solid var(--hn-border); border-radius: var(--hn-r-md); background: var(--hn-surface); text-decoration: none; color: var(--hn-text) !important; transition: background-color var(--hn-t), border-color var(--hn-t); }
.hn-pn:hover { background: var(--hn-surface-alt); border-color: var(--hn-gold); }
.hn-next { justify-content: flex-end; text-align: left; }
.hn-pn-none { visibility: hidden; }
.hn-pn-arrow { font-size: 20px; color: var(--hn-gold-text); }
.hn-pn-y { font-weight: 700; font-size: var(--hn-fs-body); }
.hn-pn-n { font-size: var(--hn-fs-xs); color: var(--hn-muted); }
.hn-jump { display: flex; align-items: center; gap: 6px; padding: 4px 6px 4px 4px; border: 1px solid var(--hn-border); border-radius: var(--hn-r-md); background: var(--hn-white); }
.hn-jump label { font-size: var(--hn-fs-sm); color: var(--hn-muted); padding-inline-start: 8px; white-space: nowrap; }
.hn-jump input { width: 84px; min-height: var(--hn-tap); border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-sm); padding: 4px 8px; text-align: center; font-weight: 700; background: var(--hn-surface); }
.hn-jump button { min-height: var(--hn-tap); padding: 0 14px; border: 0; border-radius: var(--hn-r-sm); background: var(--hn-green); color: var(--hn-gold-light); font-weight: 700; cursor: pointer; }

.hn-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 10px 0; margin-bottom: 4px; border-top: 1px solid var(--hn-border-soft); scroll-margin-top: 70px; }
.hn-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hn-switch { display: inline-flex; padding: 3px; gap: 3px; border: 1px solid var(--hn-border); border-radius: var(--hn-pill); background: var(--hn-surface-alt); }
.hn-switch a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--hn-pill); color: var(--hn-text); text-decoration: none; font-size: var(--hn-fs-sm); font-weight: 600; white-space: nowrap; }
.hn-switch a[aria-current="true"] { background: var(--hn-green); color: var(--hn-gold-light); }
.hn-order-note { margin: 4px 0 6px; }

.hn-month, .hn-book { margin: 0 0 8px; scroll-margin-top: 70px; }
.hn-month-h, .hn-book-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 22px 0 2px; padding: 8px 14px; font-size: var(--hn-fs-h4); font-weight: 700; color: var(--hn-green); background: var(--hn-surface-alt); border-inline-start: 4px solid var(--hn-gold); border-radius: var(--hn-r-sm); }
.hn-month-n { font-size: var(--hn-fs-xs); font-weight: 400; color: var(--hn-muted); }
.hn-book-h { font-size: var(--hn-fs-body); color: var(--hn-text); }
.hn-book-h a { color: var(--hn-green); }
.hn-section-h { font-size: var(--hn-fs-h4); font-weight: 700; margin: 30px 0 6px; color: var(--hn-green); }
.hn-circa, .hn-pointers { margin-top: 10px; }
.hn-pointers ul { margin: 0; padding-inline-start: 1.2em; }
.hn-pointers li { margin-bottom: 8px; }
.hn-undated-note { margin-top: 22px; padding: 12px 16px; background: var(--hn-surface-alt); border-radius: var(--hn-r-md); font-size: var(--hn-fs-sm); }
.hn-absent { margin-top: 18px; font-size: var(--hn-fs-sm); color: var(--hn-muted); }

/* ------------------------------------------------------------------ */
/* An event                                                           */
/* ------------------------------------------------------------------ */
.hn-ev { padding: 16px 4px 12px; border-bottom: 1px solid var(--hn-border-soft); scroll-margin-top: 90px; }
.hn-ev:target { background: #FFF6D9; box-shadow: 0 0 0 2px var(--hn-gold); border-radius: var(--hn-r-md); padding-inline: 14px; }
.hn-text { font-size: var(--hn-fs-reading); line-height: 2; color: var(--hn-text); }
.hn-text p { margin: 0 0 .5rem; }
.hn-text p:last-child { margin-bottom: 0; }
.hn-date-tag { margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: var(--hn-fs-sm); }
.hn-date-label { font-weight: 700; color: var(--hn-gold-text); }
.hn-greg { color: var(--hn-muted); }
.hn-trunc, .hn-source-date { margin: 6px 0 0; font-size: var(--hn-fs-sm); color: var(--hn-muted); }
.hn-source-date { display: inline-block; padding: 2px 12px; background: #FFF6D9; border: 1px solid #EAD48F; border-radius: var(--hn-r-sm); color: #6B4A00; }
.hn-ev-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; margin-top: 8px; }
.hn-attr { margin: 0; font-size: var(--hn-fs-ui); color: var(--hn-muted); line-height: 1.7; }
.hn-attr-author { color: var(--hn-text); font-weight: 700; }
.hn-attr-book { color: var(--hn-muted) !important; text-decoration: none; }
a.hn-attr-book:hover { color: var(--hn-green) !important; text-decoration: underline; }
.hn-edition-label { font-size: var(--hn-fs-xs); color: var(--hn-muted); margin-inline-start: 4px; }
.hn-ev-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-inline-start: auto; }
.hn-act { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--hn-pill); background: transparent; color: var(--hn-green) !important; font-size: var(--hn-fs-sm); font-weight: 600; text-decoration: none; cursor: pointer; transition: background-color var(--hn-t), border-color var(--hn-t); }
.hn-act:hover, .hn-act:focus-visible { background: var(--hn-surface-alt); border-color: var(--hn-border-soft); }
.hn-act.is-done { color: var(--hn-green-hover) !important; background: var(--hn-surface-alt); }
.hn-act i { font-size: .9em; }
.hn-notes { margin-top: 10px; padding: 10px 14px; background: var(--hn-surface-alt); border-radius: var(--hn-r-sm); font-size: var(--hn-fs-ui); }
.hn-note p { display: inline; margin: 0; }
.hn-note-label { font-weight: 700; color: var(--hn-gold-text); }
.hn-note-editor { border-inline-start: 3px solid #E6C774; padding-inline-start: 8px; background: #FFFBEF; }
.hn-note-editor .hn-note-label { color: #6B4A00; }
.hn-related { margin: 8px 0 0; padding-inline-start: 1.2em; font-size: var(--hn-fs-sm); }
.hn-section-title { font-size: var(--hn-fs-h4); color: var(--hn-green); margin: 18px 0 6px; }

/* ------------------------------------------------------------------ */
/* Search                                                             */
/* ------------------------------------------------------------------ */
.hn-search-form { margin-bottom: 18px; }
.hn-search-help { margin: 8px 0 0; font-size: var(--hn-fs-sm); color: var(--hn-muted); max-width: 820px; }
.hn-adv { margin-top: 10px; max-width: 820px; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-md); background: var(--hn-surface); }
.hn-adv > summary { display: flex; align-items: center; min-height: var(--hn-tap); padding: 0 16px; cursor: pointer; font-weight: 700; color: var(--hn-green); }
.hn-adv-body { padding: 4px 16px 16px; }
.hn-adv fieldset { border: 0; border-top: 1px solid var(--hn-border-soft); margin: 0; padding: 10px 0; }
.hn-adv legend { font-weight: 700; padding: 0 4px 0 0; font-size: var(--hn-fs-ui); }
.hn-adv label { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-inline-end: 14px; font-size: var(--hn-fs-ui); }
.hn-adv input[type="text"], .hn-adv select { min-height: 40px; border: 1px solid var(--hn-border); border-radius: var(--hn-r-sm); padding: 4px 10px; background: var(--hn-white); }
.hn-adv input[type="checkbox"], .hn-adv input[type="radio"], .hn-pick input { width: 20px; height: 20px; accent-color: var(--hn-green); }
.hn-checks-box { max-height: 220px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 12px; padding: 4px; }
.hn-adv-actions { display: flex; align-items: center; gap: 14px; margin: 10px 0 0; }

.hn-result-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 10px 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--hn-border-soft); }
.hn-result-count { margin: 0; font-size: var(--hn-fs-body); }
.hn-result-count strong { color: var(--hn-green); font-size: var(--hn-fs-h4); }
.hn-filters-on { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--hn-fs-sm); color: var(--hn-muted); }
.hn-clear { display: inline-flex; align-items: center; min-height: 36px; font-weight: 600; }
.hn-suggest { margin: 0 0 18px; padding: 14px 18px; background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); border-inline-start: 4px solid var(--hn-gold); border-radius: var(--hn-r-md); }
.hn-suggest p { margin: 4px 0; line-height: 2.2; }
.hn-suggest .hn-chip { margin: 2px 0 2px 4px; }
.hn-suggest .hn-chip { min-height: 38px; }
.hn-results-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.hn-facets { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 8px; }
.hn-facet { border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-md); background: var(--hn-surface); padding: 0 12px 8px; }
.hn-facet ul { list-style: none; margin: 0; padding: 0; }
.hn-facet a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 6px; border-radius: var(--hn-r-sm); color: var(--hn-text); text-decoration: none; font-size: var(--hn-fs-sm); }
.hn-facet a:hover { background: var(--hn-surface-alt); }
.hn-facet a[aria-current="true"] { background: var(--hn-green); color: var(--hn-gold-light); }
.hn-facet-n { font-size: var(--hn-fs-xs); color: var(--hn-muted); font-variant-numeric: tabular-nums; }
.hn-facet a[aria-current="true"] .hn-facet-n { color: var(--hn-gold-light); }
.hn-result-group { margin-bottom: 8px; }
.hn-result-year { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 0; padding: 6px 14px; font-size: var(--hn-fs-body); font-weight: 700; background: var(--hn-surface-alt); border-inline-start: 4px solid var(--hn-gold); border-radius: var(--hn-r-sm); }
.hn-result-year a { color: var(--hn-green); text-decoration: none; }
.hn-result-year .hn-year-g { font-size: var(--hn-fs-xs); font-weight: 400; color: var(--hn-muted); }
.hn-snippet { margin: 0; font-size: var(--hn-fs-body); line-height: 1.95; }
.hn-snippet mark { background: var(--hn-gold-light); color: inherit; padding: 0 2px; border-radius: 3px; }
.hn-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 24px 0 0; }
.hn-pagination a, .hn-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: var(--hn-tap); min-height: var(--hn-tap); border-radius: var(--hn-r-sm); border: 1px solid var(--hn-border-soft); text-decoration: none; color: var(--hn-text); background: var(--hn-surface); }
.hn-pagination [aria-current="page"] { background: var(--hn-green); color: var(--hn-gold-light); border-color: var(--hn-green); font-weight: 700; }
.hn-pagination .hn-gap { border: 0; background: transparent; }

/* ------------------------------------------------------------------ */
/* Compare                                                            */
/* ------------------------------------------------------------------ */
.hn-compare-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.hn-compare-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.hn-compare-cols { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hn-compare-cols.hn-cols-1 { grid-template-columns: minmax(0, 1fr); }
.hn-compare-cols.hn-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hn-col { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--hn-white); border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-lg); box-shadow: var(--hn-shadow-sm); }
.hn-col-base { border-color: var(--hn-gold); box-shadow: 0 0 0 1px var(--hn-gold), var(--hn-shadow-sm); }
.hn-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hn-col-tag { font-size: var(--hn-fs-xs); font-weight: 700; color: var(--hn-gold-text); }
.hn-col-base .hn-col-tag { color: var(--hn-green); }
.hn-col-year { font-size: var(--hn-fs-sm); color: var(--hn-muted); font-weight: 600; }
.hn-col .hn-text { font-size: var(--hn-fs-h4); flex: 1; }
.hn-col .hn-ev-foot { border-top: 1px solid var(--hn-border-soft); padding-top: 8px; }
.hn-compare-pick { background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-lg); padding: 16px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.hn-compare-pick .hn-block-title { font-size: var(--hn-fs-body); }
.hn-pick-h { font-size: var(--hn-fs-sm); font-weight: 700; color: var(--hn-green); margin: 12px 0 2px; }
.hn-pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin: 6px 0; background: var(--hn-white); border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-md); cursor: pointer; }
.hn-pick-s { border-color: var(--hn-gold-mid); }
.hn-pick:has(input:checked) { border-color: var(--hn-green); box-shadow: 0 0 0 1px var(--hn-green); }
.hn-pick input { margin-top: 4px; flex: none; }
.hn-pick-body { display: flex; flex-direction: column; gap: 2px; font-size: var(--hn-fs-sm); line-height: 1.7; }
.hn-pick-text { color: var(--hn-text); }
.hn-pick-shared { font-size: var(--hn-fs-xs); color: var(--hn-gold-text); font-weight: 600; }
.hn-pick-go { position: sticky; bottom: -16px; margin: 10px -16px -16px; padding: 12px 16px; background: var(--hn-surface-alt); border-top: 1px solid var(--hn-border-soft); }
.hn-pick-go button { width: 100%; }

/* ------------------------------------------------------------------ */
/* Chronicle, segment, undated                                        */
/* ------------------------------------------------------------------ */
.hn-book-info { margin-bottom: 18px; }
.hn-author { font-size: var(--hn-fs-body); font-weight: 700; margin-bottom: 6px; }
.hn-death { font-weight: 400; color: var(--hn-muted); margin-inline-start: 6px; }
.hn-edition { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 8px 0; padding: 12px 16px; background: var(--hn-surface-alt); border-radius: var(--hn-r-md); font-size: var(--hn-fs-sm); }
.hn-edition dt { font-weight: 700; color: var(--hn-muted); }
.hn-edition dd { margin: 0; }
.hn-relations { font-size: var(--hn-fs-sm); padding-inline-start: 1.2em; }
.hn-toc { margin: 10px 0 18px; padding: 0 14px; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-md); background: var(--hn-surface); }
.hn-toc ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.hn-toc a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 10px; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-sm); text-decoration: none; font-size: var(--hn-fs-sm); }
.hn-reading { max-width: 920px; }
.hn-reading-heading { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 4px; padding: 6px 14px; font-size: var(--hn-fs-h4); background: var(--hn-surface-alt); border-inline-start: 4px solid var(--hn-gold); border-radius: var(--hn-r-sm); }
.hn-reading-heading a { color: var(--hn-green); text-decoration: none; }
.hn-heading-text { font-size: var(--hn-fs-sm); color: var(--hn-muted); font-weight: 400; }
.hn-in-context a { display: inline-flex; align-items: center; min-height: var(--hn-tap); font-weight: 700; }
.hn-undated .hn-part { margin: 0 0 18px; }
.hn-part-title { font-size: var(--hn-fs-body); font-weight: 700; color: var(--hn-gold-text); margin: 14px 0 4px; }
.hn-undated-item { border-bottom: 1px solid var(--hn-border-soft); }
.hn-undated-item .hn-ev { border-bottom: 0; }
.hn-undated-src { margin: 12px 0 0; font-size: var(--hn-fs-ui); color: var(--hn-muted); }
.hn-undated-src strong { color: var(--hn-text); }
.hn-index-entry { padding: 10px 0; border-bottom: 1px solid var(--hn-border-soft); font-size: var(--hn-fs-ui); }
.hn-chronicle-block .hn-ch-title { font-size: var(--hn-fs-body); margin: 16px 0 0; }

/* ------------------------------------------------------------------ */
/* Phones and tablets                                                 */
/* ------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.hn-compare-layout { grid-template-columns: minmax(0, 1fr); }
	.hn-compare-pick { position: static; max-height: none; }
	.hn-compare-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.hn-results-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
	.hn-facets { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.hn-two { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}
@media (max-width: 700px) {
	.hn { padding-inline: 12px; }
	.hn-omran .hn { padding-inline: 0; }
	.hn-nav { margin-bottom: 16px; }
	/* Five sections: the tabs wrap onto two rows rather than hide one off-screen. */
	.hn-tabs { width: 100%; flex-wrap: wrap; border-radius: var(--hn-r-md); }
	.hn-tabs::-webkit-scrollbar { display: none; }
	.hn-tabs li { flex: 1 1 auto; }
	.hn-tabs a { width: 100%; min-height: var(--hn-tap); justify-content: center; padding: 4px 8px; font-size: var(--hn-fs-sm); }
	.hn-tabs a i { display: none; }
	.hn-nav-search { width: 100%; }
	.hn-nav-search input { width: auto; flex: 1; }
	.hn-hero { padding: 22px 14px 18px; }
	.hn-hero-q { font-size: var(--hn-fs-h3); }
	.hn-bigsearch { flex-direction: column; }
	.hn-bigsearch input { font-size: var(--hn-fs-body); padding: 14px; }
	.hn-bigsearch button { justify-content: center; min-height: 50px; }
	.hn-list-2 { grid-template-columns: minmax(0, 1fr); }
	.hn-method { padding: 16px; }
	/* Years grid: five years per row. */
	.hn-years-tools { position: static; }
	.hn-jump-list { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 4px; }
	.hn-jump-list a { min-height: var(--hn-tap); }
	.hn-decade { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 6px; }
	.hn-decade-l { flex-direction: row; gap: 8px; align-items: baseline; }
	.hn-cells { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.hn-cell { min-height: 54px; }
	.hn-decade-empty { display: none; }
	/* Year page. */
	.hn-prevnext { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hn-jump { grid-column: 1 / -1; order: 3; justify-content: space-between; }
	.hn-jump input { flex: 1; }
	.hn-pn { padding: 6px 12px; flex-wrap: wrap; gap: 0 8px; }
	.hn-pn-none { display: none; }
	.hn-toolbar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
	.hn-toolbar > * { min-width: 0; max-width: 100%; }
	.hn-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
	.hn-switch { align-self: stretch; }
	.hn-switch a { flex: 1; justify-content: center; min-height: var(--hn-tap); }
	.hn-month-h, .hn-book-h { font-size: var(--hn-fs-body); }
	.hn-text { font-size: 18px; line-height: 1.95; }
	.hn-ev-foot { flex-direction: column; align-items: stretch; }
	.hn-ev-actions { margin-inline-start: 0; }
	.hn-act { min-height: var(--hn-tap); }
	.hn-facets { grid-template-columns: minmax(0, 1fr); }
	.hn-compare-cols, .hn-compare-cols.hn-cols-2 { grid-template-columns: minmax(0, 1fr); }
	.hn-col .hn-text { font-size: 18px; }
	.hn-adv label { min-height: var(--hn-tap); }
	.hn-coverage tbody th { min-width: 180px; }
	/* Touch targets: at least 44px on phones. */
	.hn-facet a, .hn-toc a, .hn-aside-box a { min-height: var(--hn-tap); }
	.hn-book-h a, .hn-result-year a, .hn-reading-heading a, .hn-ch-title a { display: inline-flex; align-items: center; min-height: var(--hn-tap); }
	.hn-month-h, .hn-book-h, .hn-result-year { padding-block: 2px; }
}
@media (prefers-reduced-motion: reduce) {
	.hn *, .hn *::before, .hn *::after { transition: none !important; }
	a.hn-cell:hover { transform: none; }
}
@media print {
	.hn-nav, .hn-prevnext, .hn-toolbar, .hn-ev-actions, .hn-backbar, .hn-compare-pick, .hn-facets { display: none !important; }
	.hn-ev { break-inside: avoid; }
}

/* Year page: reading column and, on wide screens, an index of the year's months and books. */
.hn-year-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 32px; align-items: start; }
.hn-year-main { max-width: none; min-width: 0; }
.hn-year-aside { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 12px; }
.hn-aside-box { background: var(--hn-surface); border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-md); padding: 10px 12px; }
.hn-aside-box h2 { margin: 0 0 6px; font-size: var(--hn-fs-ui); font-weight: 700; color: var(--hn-green); }
.hn-aside-box ul { list-style: none; margin: 0; padding: 0; }
.hn-aside-box a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 2px 6px; border-radius: var(--hn-r-sm); color: var(--hn-text); text-decoration: none; font-size: var(--hn-fs-sm); line-height: 1.5; }
.hn-aside-box a:hover { background: var(--hn-surface-alt); }
@media (max-width: 1100px) {
	.hn-year-layout { grid-template-columns: minmax(0, 1fr); }
	.hn-year-aside { display: none; }
}

/* Links inside running text are underlined (the theme removes underlines), so they are told
   apart from the text without relying on colour alone. */
.hn .hn-suggest p > a:not(.hn-chip), .hn .hn-pointers a, .hn .hn-undated-note a, .hn .hn-relations a, .hn .hn-index-entry a, .hn .hn-section-note a { text-decoration: underline; }
@media (max-width: 700px) {
	.hn-relations a, .hn-in-context a { display: inline-flex; align-items: center; min-height: var(--hn-tap); }
}

/* How a search of several words matched (joined / apart). */
.hn-match-note { flex-basis: 100%; margin: 0; font-size: var(--hn-fs-sm); color: var(--hn-muted); }
.hn-match-note a { font-weight: 700; text-decoration: underline; }
.hn-match-warn { padding: 8px 12px; background: #FFF6D9; border: 1px solid #EAD48F; border-radius: var(--hn-r-sm); color: #6B4A00; }
.hn-partial-h { margin: 26px 0 0; padding-top: 14px; border-top: 2px dashed var(--hn-border); font-size: var(--hn-fs-body); font-weight: 700; color: var(--hn-gold-text); }

/* Books table: open by default, in its own scroll box with the header row kept in view. */
.hn-coverage > summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 2px solid var(--hn-border-soft); list-style: none; }
.hn-coverage > summary::-webkit-details-marker { display: none; }
.hn-cov-title { font-size: var(--hn-fs-h4); color: var(--hn-text); }
.hn-cov-toggle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border: 1px solid var(--hn-green); border-radius: var(--hn-pill); color: var(--hn-green); font-size: var(--hn-fs-sm); }
.hn-coverage[open] .hn-when-closed, .hn-coverage:not([open]) .hn-when-open { display: none; }
.hn-coverage .hn-table-wrap { max-height: 560px; overflow: auto; margin-top: 8px; }
.hn-coverage thead th { z-index: 1; white-space: nowrap; font-size: var(--hn-fs-xs); }
.hn-th-small { display: block; font-weight: 400; color: var(--hn-muted); }
.hn .hn-coverage tbody th a { text-decoration: underline; text-decoration-color: var(--hn-gold-mid); }

/* ------------------------------------------------------------------ */
/* Statistics page (1.6.0) and the way to it from the home page       */
/* ------------------------------------------------------------------ */
.hn-more-links { display: inline-flex; flex-wrap: wrap; gap: 0 18px; }
.hn-stats-teaser { display: flex; align-items: center; gap: 16px; margin: 0 0 26px; padding: 16px 20px; background: var(--hn-surface); border: 1px solid var(--hn-border); border-inline-start: 4px solid var(--hn-green); border-radius: var(--hn-r-md); color: var(--hn-text) !important; text-decoration: none; box-shadow: var(--hn-shadow-sm); transition: background-color var(--hn-t), border-color var(--hn-t); }
.hn-stats-teaser:hover { background: var(--hn-surface-alt); border-color: var(--hn-gold); }
.hn-stats-teaser > i:first-child { font-size: 26px; color: var(--hn-gold-text); flex: none; }
.hn-stats-teaser-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.hn-stats-teaser-text strong { font-size: var(--hn-fs-h4); color: var(--hn-green); }
.hn-stats-teaser-text span { font-size: var(--hn-fs-ui); color: var(--hn-muted); line-height: 1.8; }
.hn-stats-teaser-go { color: var(--hn-green); flex: none; }

/* Search: the books facet and the books grouped by collection in the advanced search. */
.hn-facet-sub { display: block; font-size: var(--hn-fs-xs); color: var(--hn-muted); line-height: 1.5; }
.hn-facet a[aria-current="true"] .hn-facet-sub { color: var(--hn-gold-light); }
.hn-facet a > span:first-child { padding-block: 4px; }
.hn-facet-more { margin: 4px 6px 0; font-size: var(--hn-fs-xs); color: var(--hn-muted); }
.hn-checks-group { grid-column: 1 / -1; margin-top: 6px; padding-bottom: 2px; border-bottom: 1px solid var(--hn-border-soft); font-size: var(--hn-fs-sm); font-weight: 700; color: var(--hn-text); }

/* Filters */
.hn-st-filter { margin: 0 0 18px; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-md); background: var(--hn-surface); }
.hn-st-filter > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-height: var(--hn-tap); padding: 4px 16px; cursor: pointer; font-weight: 700; color: var(--hn-green); }
.hn-st-filter-on { display: inline-flex; flex-wrap: wrap; gap: 4px; font-weight: 400; }
.hn-st-form { padding: 4px 16px 14px; border-top: 1px solid var(--hn-border-soft); }
.hn-st-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; padding-top: 10px; }
.hn-st-field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: var(--hn-fs-sm); font-weight: 700; color: var(--hn-text); min-width: 0; }
.hn-st-field-wide { grid-column: 1 / -1; }
.hn-st-field select, .hn-st-field input { box-sizing: border-box; max-width: 100%; width: 100%; min-width: 0; min-height: var(--hn-tap); border: 1px solid var(--hn-border); border-radius: var(--hn-r-sm); padding: 4px 10px; background: var(--hn-white); font-weight: 400; font-size: var(--hn-fs-ui); color: var(--hn-text); }
.hn-st-span-in { display: flex; align-items: center; gap: 6px; }
.hn-st-span-in label { flex: 1; min-width: 0; }
.hn-st-span-in input { text-align: center; }
.hn-st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 0; }
.hn-st-actions a { display: inline-flex; align-items: center; min-height: var(--hn-tap); font-weight: 600; text-decoration: underline; }

/* Sections */
.hn-st-jump { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hn-st-jump .hn-chip { min-height: 38px; padding: 4px 14px; font-size: var(--hn-fs-sm); }
.hn-st-sec { margin: 0 0 40px; scroll-margin-top: 80px; }
.hn-st-sec > .hn-block-head { margin-bottom: 6px; }
.hn-st-h-note { margin-inline-start: 8px; font-size: var(--hn-fs-sm); font-weight: 400; color: var(--hn-muted); }
.hn-nowrap { white-space: nowrap; }

.hn-st-cards { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.hn-st-card { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--hn-white); border: 1px solid var(--hn-border-soft); border-top: 3px solid var(--hn-gold); border-radius: var(--hn-r-md); box-shadow: var(--hn-shadow-sm); }
.hn-st-card-l { font-size: var(--hn-fs-sm); font-weight: 700; color: var(--hn-muted); }
.hn-st-card-n { font-size: var(--hn-fs-h2); font-weight: 700; line-height: 1.3; color: var(--hn-green); font-variant-numeric: tabular-nums; }
.hn-st-card-n a { display: inline-flex; align-items: center; min-height: var(--hn-tap); color: inherit; text-decoration: none; }
.hn-st-card-n a:hover { text-decoration: underline; }
.hn-st-card-d { font-size: var(--hn-fs-xs); color: var(--hn-muted); line-height: 1.6; }

.hn-st-method { padding: 14px 20px; background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); border-inline-start: 4px solid var(--hn-gold); border-radius: var(--hn-r-md); }
.hn-st-method h3 { margin: 0 0 6px; font-size: var(--hn-fs-body); font-weight: 700; color: var(--hn-green); }
.hn-st-method h3 i { color: var(--hn-gold-text); }
.hn-st-method ul { margin: 0; padding-inline-start: 1.2em; font-size: var(--hn-fs-sm); line-height: 1.95; }
.hn-st-method li + li { margin-top: 4px; }
.hn .hn-st-method a { text-decoration: underline; }

/* Tables */
.hn-st-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: var(--hn-fs-sm); }
.hn-st-table th, .hn-st-table td { padding: 6px 10px; border-bottom: 1px solid var(--hn-border-soft); text-align: right; vertical-align: middle; background: var(--hn-white); }
.hn-st-table thead th { position: sticky; top: 0; z-index: 2; background: var(--hn-surface-alt); font-size: var(--hn-fs-xs); font-weight: 700; white-space: nowrap; }
.hn-st-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hn-st-table tbody th { font-weight: 600; }
.hn-st-table tbody tr:hover th, .hn-st-table tbody tr:hover td { background: var(--hn-surface); }
.hn-st-table tfoot th, .hn-st-table tfoot td { background: var(--hn-surface-alt); font-weight: 700; border-top: 2px solid var(--hn-border); }
.hn-st-table td a { display: inline-flex; align-items: center; min-height: 32px; min-width: 28px; font-weight: 600; }
.hn .hn-st-table tbody th a { text-decoration: underline; text-decoration-color: var(--hn-gold-mid); }
.hn .hn-st-table tr.hn-st-group th { background: var(--hn-surface-warm); color: var(--hn-text); font-weight: 700; font-size: var(--hn-fs-sm); }
.hn .hn-st-table .hn-st-total { background: var(--hn-surface); font-weight: 700; }
.hn-st-scroll { overflow: auto; }
.hn-st-tall { max-height: 640px; }
/* Long tables keep the book column in view while scrolling sideways. */
.hn-st-covtable tbody th, .hn-st-covtable tfoot th, .hn-st-covtable thead th:first-child,
.hn-st-btable tbody th, .hn-st-btable thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; min-width: 240px; box-shadow: inset -1px 0 0 var(--hn-border-soft); }
.hn-st-covtable thead th:first-child, .hn-st-btable thead th:first-child { z-index: 3; }
.hn-st-covtable td { text-align: center; }
.hn-st-covtable td > span { color: var(--hn-soft-text); }

.hn-st-ctable th[scope="row"] { white-space: nowrap; }
.hn-st-barcell { width: 50%; min-width: 200px; }
.hn-st-table td.hn-st-barcell a { display: flex; width: 100%; align-items: center; gap: 8px; min-height: 36px; text-decoration: none; }
.hn-st-hbar { display: block; flex: none; width: calc((100% - 64px) * var(--s, 1)); min-width: 3px; height: 16px; background: linear-gradient(to left, var(--hn-green) 0%, var(--hn-green-hover) 100%); border-inline-end: 3px solid var(--hn-gold); border-radius: 4px 0 0 4px; }
.hn-st-num { font-weight: 700; color: var(--hn-text); }
.hn-st-barcell a:hover .hn-st-num { text-decoration: underline; }

/* Decades */
.hn-st-decades { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.hn-st-drow { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; }
.hn-st-dlabel { margin: 0; display: flex; flex-direction: column; font-size: var(--hn-fs-sm); font-weight: 700; line-height: 1.35; }
.hn-st-dcells { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.hn-st-dcell { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 46px; padding: 2px; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-sm); text-decoration: none; line-height: 1.25; font-variant-numeric: tabular-nums; transition: transform var(--hn-t), box-shadow var(--hn-t); }
.hn-st-dy { font-size: 12px; }
.hn-st-dn { font-size: var(--hn-fs-sm); font-weight: 700; }
.hn-st-dcell.hn-t0 { border-style: dashed; }
.hn .hn-st-out { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--hn-surface-alt) 5px 10px); border-style: dotted; }
a.hn-st-dcell:hover { transform: translateY(-2px); box-shadow: var(--hn-shadow-md); }
.hn-st-sw0 { border-style: dashed; }
.hn-stats .hn-legend { margin: 4px 0 0; }

/* Best documented years */
.hn-st-toplist { max-width: 780px; }
.hn-st-rank a { gap: 12px; }
.hn-st-rank-i { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); font-size: var(--hn-fs-xs); font-weight: 700; color: var(--hn-text); }
.hn-st-rank .hn-list-main { flex: 1; min-width: 0; }
.hn-st-greg { margin-inline-start: 6px; font-size: var(--hn-fs-xs); font-weight: 400; color: var(--hn-muted); }
.hn-st-rank strong { color: var(--hn-green); }

/* Books on the time axis */
.hn-st-btable th.hn-st-tl-h { min-width: 280px; }
.hn-st-axis { position: relative; display: block; height: 18px; margin-top: 4px; }
.hn-st-axis span { position: absolute; top: 0; transform: translateX(50%); font-size: 11px; font-weight: 400; color: var(--hn-muted); }
.hn-st-tl { min-width: 280px; width: 30%; }
.hn-st-tl-track { position: relative; display: block; height: 12px; background: var(--hn-surface-alt); border-radius: 6px; }
.hn-st-tl-bar { position: absolute; top: 0; bottom: 0; min-width: 4px; background: var(--hn-green); border-inline-start: 2px solid var(--hn-gold); border-radius: 6px; }

/* Years by number of books */
.hn-st-buckets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-width: 920px; }
.hn-st-bucket details { border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-md); background: var(--hn-surface); }
.hn-st-bucket summary { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 24px; align-items: center; gap: 12px; min-height: var(--hn-tap); padding: 6px 14px; cursor: pointer; list-style: none; }
.hn-st-bucket summary::-webkit-details-marker { display: none; }
.hn-st-bucket-l { font-weight: 700; }
.hn-st-bucket-bar { display: block; height: 14px; background: var(--hn-surface-alt); border-radius: 4px; overflow: hidden; }
.hn-st-bucket-bar span { display: block; height: 100%; width: calc(100% * var(--s, 0)); background: var(--hn-gold-mid); }
.hn-st-bucket-n { font-size: var(--hn-fs-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hn-st-chev { color: var(--hn-green); transition: transform var(--hn-t); text-align: center; }
.hn-st-bucket details[open] .hn-st-chev { transform: rotate(180deg); }
.hn-st-ychips { list-style: none; margin: 0; padding: 8px 14px 14px; display: flex; flex-wrap: wrap; gap: 6px; max-height: 300px; overflow-y: auto; border-top: 1px solid var(--hn-border-soft); }
.hn-st-ychips a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 2px 12px; border: 1px solid var(--hn-border-soft); border-radius: var(--hn-pill); background: var(--hn-white); color: var(--hn-text); text-decoration: none; font-size: var(--hn-fs-sm); font-variant-numeric: tabular-nums; }
.hn-st-ychips a:hover { border-color: var(--hn-gold); background: var(--hn-surface-alt); }
.hn-st-mini { display: inline-flex; align-items: center; min-height: 32px; font-size: var(--hn-fs-xs); font-weight: 600; text-decoration: underline; }

/* Long tables can be folded (folded at first on phones, see front.js). */
.hn-st-fold > summary { display: inline-flex; align-items: center; min-height: 40px; margin: 0 0 8px; padding: 0 16px; border: 1px solid var(--hn-green); border-radius: var(--hn-pill); color: var(--hn-green); font-size: var(--hn-fs-sm); font-weight: 700; cursor: pointer; list-style: none; }
.hn-st-fold > summary::-webkit-details-marker { display: none; }
.hn-st-fold[open] .hn-when-closed, .hn-st-fold:not([open]) .hn-when-open { display: none; }

@media (max-width: 1100px) {
	.hn-st-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.hn-st-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.hn-stats-teaser { padding: 14px; gap: 12px; }
	.hn-stats-teaser > i:first-child { display: none; }
	.hn-more-links { width: 100%; justify-content: space-between; }
	.hn-st-fields { grid-template-columns: minmax(0, 1fr); }
	.hn-st-jump { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; }
	.hn-st-jump .hn-chip { min-height: var(--hn-tap); }
	.hn-st-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
	.hn-st-card { padding: 10px 12px; }
	.hn-st-card-n { font-size: var(--hn-fs-h3); }
	.hn-st-method { padding: 12px 14px; }
	.hn-st-table th, .hn-st-table td { padding: 4px 8px; }
	.hn-st-table td a, .hn-st-mini { min-height: var(--hn-tap); min-width: 36px; }
	.hn-st-covtable tbody th, .hn-st-covtable tfoot th, .hn-st-covtable thead th:first-child,
	.hn-st-btable tbody th, .hn-st-btable thead th:first-child { min-width: 150px; max-width: 170px; white-space: normal; }
	.hn-st-barcell { min-width: 150px; }
	.hn-st-drow { grid-template-columns: minmax(0, 1fr); gap: 4px; margin-bottom: 6px; }
	.hn-st-dlabel { flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: baseline; }
	.hn-st-dcells { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.hn-st-dcell { min-height: 48px; }
	.hn-st-bucket summary { grid-template-columns: minmax(0, 1fr) auto 24px; gap: 6px 10px; padding: 8px 12px; }
	.hn-st-bucket-bar { grid-column: 1 / -1; grid-row: 2; }
	.hn-st-ychips a { min-height: var(--hn-tap); }
	.hn-stats .hn-block-head .hn-switch { width: 100%; margin-bottom: 8px; }
	.hn-stats .hn-switch a { flex: 1; justify-content: center; min-height: var(--hn-tap); white-space: normal; text-align: center; line-height: 1.4; }
	.hn-st-fold > summary { min-height: var(--hn-tap); }
	/* Tables of one item per row become stacked rows: the name on its line, then the figures. */
	.hn-st-stack, .hn-st-stack tbody, .hn-st-stack tfoot { display: block; width: 100%; }
	.hn-st-stack thead { display: none; }
	.hn-st-stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; padding: 8px 12px; border-bottom: 1px solid var(--hn-border-soft); background: var(--hn-white); }
	.hn-st-stack tr.hn-st-group { display: block; padding: 0; background: var(--hn-surface-warm); }
	.hn .hn-st-stack tr.hn-st-group th { display: block; padding: 6px 12px; }
	.hn-st-stack th[scope="row"], .hn-st-stack td { padding: 0; border: 0; background: transparent !important; }
	.hn-st-stack th[scope="row"] { flex: 1 1 100%; position: static; min-width: 0; max-width: none; white-space: normal; box-shadow: none; }
	.hn-st-stack td { display: inline-flex; align-items: center; gap: 4px; font-size: var(--hn-fs-sm); }
	.hn-st-stack td[data-label]::before { content: attr(data-label) ":"; font-size: var(--hn-fs-xs); color: var(--hn-muted); }
	.hn-st-stack td:empty { display: none; }
	.hn-st-stack td.hn-st-barcell, .hn-st-stack td.hn-st-tl { flex: 1 1 100%; width: auto; min-width: 0; padding-block: 4px; }
	.hn-st-stack td.hn-st-tl { padding-block: 8px 4px; }
	.hn-st-stack .hn-st-tl-track { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	a.hn-st-dcell:hover { transform: none; }
}
@media print {
	.hn-st-filter, .hn-st-jump, .hn-switch { display: none !important; }
	.hn-st-scroll, .hn-st-tall { max-height: none; overflow: visible; }
}

/* Review of 11 Oct: reset, the meaning of the colours, the note on years without entries, the decades on phones. */
.hn-st-filter-n { font-weight: 400; color: var(--hn-muted); font-size: var(--hn-fs-sm); }
.hn .hn-st-actions .hn-st-reset { box-shadow: none; text-decoration: none; }
.hn .hn-st-reset i { font-size: .85em; }
.hn-st-active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: -6px 0 18px; padding: 8px 14px; background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); border-inline-start: 4px solid var(--hn-green); border-radius: var(--hn-r-md); font-size: var(--hn-fs-sm); }
.hn-st-active-t { font-weight: 700; color: var(--hn-text); }
.hn .hn-st-reset-link { display: inline-flex; align-items: center; gap: 6px; min-height: var(--hn-tap); margin-inline-start: auto; padding: 0 14px; border: 1px solid var(--hn-green); border-radius: var(--hn-pill); background: var(--hn-white); color: var(--hn-green); font-weight: 700; text-decoration: none; }
.hn .hn-st-reset-link:hover { background: var(--hn-green); color: var(--hn-gold-light); }
.hn-st-colornote { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 0; font-size: var(--hn-fs-sm); color: var(--hn-text); }
.hn-st-colornote i, .hn-st-caution > i { color: var(--hn-gold-text); flex: none; }
.hn-st-caution { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; padding: 12px 16px; background: #FFF6D9; border: 1px solid #EAD48F; border-inline-start: 4px solid var(--hn-gold); border-radius: var(--hn-r-md); color: #4A3410; }
.hn-st-caution > i { margin-top: 6px; font-size: 18px; }
.hn-st-caution p { margin: 0; font-size: var(--hn-fs-ui); line-height: 1.9; }
.hn-st-dpick { display: none; }
@media (max-width: 700px) {
	.hn-st-active .hn-st-reset-link { margin-inline-start: 0; }
	.hn-st-dpick:not([hidden]) { display: flex; flex-direction: column; gap: 4px; margin: 12px 0 4px; font-size: var(--hn-fs-sm); font-weight: 700; }
	.hn-st-dpick select { box-sizing: border-box; width: 100%; min-height: var(--hn-tap); border: 1px solid var(--hn-border); border-radius: var(--hn-r-sm); padding: 4px 10px; background: var(--hn-white); font-weight: 400; font-size: var(--hn-fs-ui); color: var(--hn-text); }
	.hn-st-drow.is-off { display: none; }
	/* Books × centuries on phones: each book with only the centuries it has entries in. */
	.hn-st-covtable td.hn-st-zero { display: none; }
	.hn-st-covtable.hn-st-stack tr:not(.hn-st-group) { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 0 12px; }
	.hn-st-stack td { min-width: 0; white-space: normal; flex-wrap: wrap; }
	.hn-st-covtable.hn-st-stack th[scope="row"] { grid-column: 1 / -1; margin-bottom: 2px; }
	.hn-st-covtable.hn-st-stack td.hn-st-total { grid-column: 1 / -1; border-top: 1px dashed var(--hn-border-soft); }
	.hn-st-covtable td { gap: 4px; }
	.hn-st-tall { max-height: none; }
	.hn-st-covtable tfoot tr { background: var(--hn-surface-alt); }
	.hn-st-stack tfoot th[scope="row"], .hn-st-stack tfoot td { background: transparent !important; border: 0; }
}
.hn-years-colornote { margin: -6px 0 18px; }

/* 1.6.1 — source names: who else took part in a book, its other titles, and the full source line. */
.hn .hn-credits { list-style: none; margin: 4px 0 12px; padding: 0; color: var(--hn-muted); font-size: var(--hn-fs-sm); }
.hn .hn-credits li { margin: 2px 0; padding: 0; }
.hn .hn-credits li::before { content: none; }
.hn .hn-source-detail { color: var(--hn-muted); font-size: var(--hn-fs-sm); overflow-wrap: anywhere; }

/* 1.7.0: editions of one work, exact twins, the fuller source's wording */
.hn-work-banner { margin: 10px 0; padding: 10px 14px; background: var(--hn-surface-alt); border: 1px solid var(--hn-border-soft); border-radius: var(--hn-r-sm); font-size: var(--hn-fs-sm); }
.hn-work-banner p { margin: 4px 0; }
.hn-twins { margin: 4px 0 0; font-size: var(--hn-fs-xs); color: var(--hn-muted); }
.hn .hn-twins a, .hn .hn-work-banner a { text-decoration: underline; }
.hn-source-text { margin: 12px 0; padding: 8px 12px; border: 1px dashed var(--hn-border); border-radius: var(--hn-r-sm); }
.hn-source-text summary { cursor: pointer; font-weight: 600; min-height: var(--hn-tap, 44px); display: flex; align-items: center; }
.hn-source-text .hn-text { margin-top: 8px; }
.hn-checks-work { display: block; margin-top: 6px; font-size: var(--hn-fs-sm); color: var(--hn-text); }
.hn-check-edition { padding-inline-start: 1.4em; }
.hn-badge-twin { background: var(--hn-surface-alt); color: var(--hn-muted); border: 1px solid var(--hn-border-soft); }

.hn-other-quote { margin: 10px 0 0; padding: 8px 14px; border-inline-start: 3px solid var(--hn-border-soft); background: var(--hn-surface-alt); border-radius: var(--hn-r-sm); }
.hn-other-label { margin: 0 0 4px; font-size: var(--hn-fs-sm); color: var(--hn-muted); }
.hn-other-label .fa-solid { color: var(--hn-gold-text); margin-inline-end: 4px; }
.hn-other-text { margin: 0; font-size: var(--hn-fs-ui); }

/* 1.7.6 — «قبل الإسلام»: its column on the home chart, its block on the years page and the undated page. */
.hn-bar-pre .hn-bar { background: linear-gradient(to top, var(--hn-gold) 0%, var(--hn-green-hover) 100%); }
.hn-bar-pre a { border-inline-start: 1px dashed var(--hn-border); }
.hn-pre-eras { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.hn-yearchips.hn-pre-eras .hn-cell-y { white-space: normal; }

/* 1.8: clearer reading, compact tools, accessible source identity. */
.hn { color-scheme: light; }
.hn-source-info { cursor: pointer; border-bottom: 1px dotted currentColor; text-decoration: none; }
.hn-source-info:hover { border-bottom-style: solid; }
dialog.hn-source-dialog { position: fixed; inset: 0; margin: auto; width: min(92vw,580px); max-height: 85vh; padding: 32px; background: #fff9ed; color: #3c2b1a; border: 1px solid #d4bf8a; border-radius: 18px; box-shadow: 0 24px 80px #0004; overflow-y:auto; }
.hn-source-dialog::backdrop { background: #10231699; }
.hn-source-dialog h2 { font-size:24px; margin: 8px 0 24px; padding-inline-end:16px; }
.hn-source-eyebrow { color:#7d5d22; font-size:14px; }
.hn-dialog-close { position:absolute; inset-inline-end:12px; top:10px; width:44px; height:44px; background:transparent; border:0; font-size:28px!important; cursor:pointer; }
.hn-source-dialog dt { font-size:14px; color:#6a5a3a; margin-top:16px; }
.hn-source-dialog dd { margin: 4px 0 20px; font-size:18px; }
.hn-source-dialog .hn-dialog-read { color:#fff; }
.hn details>summary { cursor:pointer; padding: 10px 0; font-weight:600; }
.hn-date-reason { font-size:14px; flex-basis:100%; }
.hn-date-tag { flex-wrap:wrap; }
.hn-date-reason p { max-width:65ch; }
.hn .hn-note-editor { border-inline-start:3px solid #b28b39; background:#f6efdf; padding:10px 14px; }
.hn .hn-compare-bar .hn-btn-secondary { color:#1e4724; background:#fff9ed; }
.hn input:focus-visible,.hn button:focus-visible,.hn a:focus-visible,.hn summary:focus-visible { outline:2px solid #1e4724; outline-offset:3px; }
.hn .hn-st-sec>summary { font-size:20px; color:#1e4724; }
@media(max-width:640px) {
 .hn { padding-inline:12px; --hn-fs-reading:18px; }
 .hn-nav { gap:8px; margin-bottom:12px; }
 .hn-tabs { gap:4px; }
 .hn-tabs a { padding:6px 10px; }
 .hn-ev { padding-block:18px; }
 .hn-ev-foot { gap:8px; }
 .hn-search-help { font-size:13px; }
 .hn-source-dialog { padding:24px; }
}
@media print { .hn-source-dialog,.hn-date-reason summary { display:none!important; } .hn { color:#000; background:#fff; print-color-adjust:exact; } }

.hn-contribute-callout { border:1px solid var(--hn-border-soft); border-inline-start:4px solid var(--hn-green); border-radius:12px; background:var(--hn-surface-alt); padding:20px 24px; margin:24px 0; }
.hn-contribute-callout h2 { font-size:20px; margin:0 0 10px; }
.hn-contribute-callout p { font-size:15px; max-width:88ch; }
.hn-contribute-form { max-width:720px; margin:24px 0; display:grid; gap:20px; }
.hn-contribute-form label { display:grid; gap:8px; }
.hn-contribute-form input,.hn-contribute-form textarea,.hn-contribute-form select { width:100%; border:1px solid var(--hn-border); border-radius:8px; background:#fff; padding:12px; }
.hn-contribute-form button { justify-self:start; }
.hn-contribute-context { max-width:720px; border-inline-start:3px solid var(--hn-border); padding:16px; background:var(--hn-surface-alt); }
.hn-honeypot { position:absolute!important; inset-inline-start:-10000px; width:1px;height:1px;overflow:hidden; }

.hn-year-options { display:block; margin-block:12px; }
.hn-year-options .hn-chips,.hn-year-options .hn-switch { margin-block:10px; }
@media(max-width:640px){ .hn-prevnext .hn-jump { display:none; } .hn-year-facts { margin-block:8px; } .hn-year-facts .hn-year-words { font-size:14px; } .hn-year-page .hn-order-note { font-size:13px; } .hn-st-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* 1.10: readable source pages and navigation. */
.hn-home .hn-bar-track{height:175px}.hn-home .hn-hero-stats{font-size:var(--hn-fs-sm);line-height:1.9}.hn-home .hn-section-note,.hn-home .hn-list-meta{font-size:var(--hn-fs-sm)}
.hn-source-description{font-size:var(--hn-fs-body);line-height:1.9;margin:12px 0 18px}.hn-source-description p{margin:8px 0}.hn-dialog-description{white-space:pre-line;line-height:1.8}.hn-page-range{text-align:center;color:var(--hn-muted);margin:18px 0 6px}.hn-pagination{flex-wrap:wrap}.hn-method-points{padding-inline-start:22px;line-height:1.9}.hn-contribute-callout{margin-top:28px}
.hn-years-tools{position:sticky;top:32px;z-index:5;background:var(--hn-bg,var(--hn-surface));padding:10px 0}.hn-years-filter{display:block;margin-bottom:8px}.hn-cell-y{font-size:var(--hn-fs-sm);font-weight:700}.hn-cell-n{font-size:var(--hn-fs-xs)}.hn-populated-only .hn-cells li:has(.hn-t0){visibility:hidden}.hn-populated-only .hn-decade-empty{display:none}.hn-back-centuries{text-align:end;font-size:var(--hn-fs-sm);margin:8px 0 20px}.hn-century-meta{line-height:1.8}.hn-book-search{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin:16px 0}.hn-book-search input{font:inherit;max-width:100%;padding:8px;border:1px solid var(--hn-border);border-radius:4px}.hn-index-entry{background:var(--hn-surface-alt);padding:10px 12px;line-height:1.8}.hn-undated-item{margin-bottom:22px}.hn-st-table{font-size:var(--hn-fs-sm)}
@media(max-width:700px){.hn-years-tools{top:0}.hn-years-tools .hn-jump-list{flex-wrap:wrap;overflow:visible}.hn-years-tools .hn-legend{display:none}}

.hn-st-table tr[hidden]{display:none!important}.hn-note-editor summary{font-size:var(--hn-fs-sm);font-weight:600}.hn-document-ref{font-size:var(--hn-fs-sm);color:var(--hn-muted)}

.hn-years-tools{top:var(--hn-sticky-offset,0px)}.hn-years-page .hn-century{scroll-margin-top:calc(var(--hn-sticky-offset,0px) + 120px)}
@media(max-width:700px){.hn-years-tools{position:static;top:auto}.hn-years-page .hn-century{scroll-margin-top:70px}}

/* 1.10.2: shared page rhythm, full-width search and readable choices. */
.hn-search .hn-bigsearch,.hn-search-help,.hn-adv { max-width:none; width:100%; }
.hn .hn-adv-body { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 24px; padding:16px; }
.hn .hn-adv fieldset { min-width:0; margin:0; }
.hn-adv .hn-years-in { grid-column:1; grid-row:1; }
.hn-adv-authors { grid-column:1; grid-row:2; }
.hn-adv-books { grid-column:2; grid-row:2; }
.hn-adv .hn-inline,.hn-adv-actions { grid-column:1 / -1; }
.hn .hn-checks-box { max-height:none; overflow:visible; grid-template-columns:minmax(0,1fr); gap:4px; padding:0; }
.hn .hn-checks-box label { display:flex; align-items:flex-start; margin:0; padding:8px; border-radius:var(--hn-r-sm); line-height:1.65; overflow-wrap:anywhere; }
.hn .hn-checks-box label:hover,.hn .hn-checks-box label:focus-within { background:var(--hn-surface-alt); }
.hn .hn-checks-box input { flex:none; margin-top:3px; }
.hn .hn-adv label.hn-choice-search { display:flex; flex-direction:column; align-items:stretch; gap:4px; margin:0 0 10px; font-size:var(--hn-fs-sm); }
.hn .hn-choice-search input { width:100%; min-width:0; padding:8px 12px; border:1px solid var(--hn-border); border-radius:var(--hn-r-sm); background:var(--hn-white); color:var(--hn-text); font:inherit; }
.hn-choice-status,.hn-choice-hint { font-size:var(--hn-fs-sm); color:var(--hn-muted); margin:8px 0; }
.hn-choice-summary { margin-inline-start:auto; font-size:var(--hn-fs-sm); color:var(--hn-muted); font-weight:400; }
.hn-adv>summary { gap:12px; flex-wrap:wrap; }
.hn .hn-btn,.hn .hn-adv-actions button { border-radius:var(--hn-r-sm); }
.hn .hn-bigsearch button { border-radius:0; }
.hn-results-layout,.hn-year-layout { grid-template-columns:260px minmax(0,1fr); grid-template-areas:"aside main"; gap:24px; }
.hn-facets,.hn-year-aside { grid-area:aside; min-width:0; }
.hn-results,.hn-year-main { grid-area:main; min-width:0; }
.hn-facet a { overflow-wrap:anywhere; }
.hn-facet a[aria-current] { background:var(--hn-surface-alt); color:var(--hn-green); font-weight:700; border-radius:var(--hn-r-xs); }
.hn .hn-reading { max-width:920px; }
.hn .hn-text { overflow-wrap:anywhere; }
.hn .hn-ev { padding:20px 12px; }
.hn .hn-ev-foot { border-top:1px solid var(--hn-border-soft); padding-top:10px; gap:8px 16px; }
.hn .hn-attr { flex:1 1 260px; margin:0; overflow-wrap:anywhere; }
.hn .hn-ev-actions { margin-inline-start:0; gap:6px; }
.hn .hn-ev-actions .hn-act { min-height:40px; }
.hn .hn-st-toplist,.hn .hn-st-buckets { max-width:none; }
@media(max-width:900px) {
 .hn-results-layout,.hn-year-layout { grid-template-columns:minmax(0,1fr); grid-template-areas:"aside" "main"; }
 .hn-facets { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .hn-year-aside { display:none; }
}
@media(max-width:700px) {
 .hn .hn-adv-body { grid-template-columns:minmax(0,1fr); gap:12px; padding:12px; }
 .hn-adv .hn-years-in,.hn-adv-authors,.hn-adv-books,.hn-adv .hn-inline { grid-column:auto; grid-row:auto; }
 .hn-adv .hn-years-in { order:0; }.hn-adv-authors { order:1; }.hn-adv-books { order:2; }
 .hn-adv-body>fieldset:not(.hn-years-in):not(.hn-checks) { order:3; }.hn-adv-actions { order:4; flex-wrap:wrap; }
 .hn .hn-ev { padding-inline:4px; }.hn-choice-summary { width:100%; }
}
@media(max-width:480px) { .hn-facets { grid-template-columns:minmax(0,1fr); } }
@media print { .hn-results-layout,.hn-year-layout { display:block; } .hn-choice-search,.hn-choice-more { display:none; } }

.hn-facet a[aria-current="true"] .hn-facet-n { color:inherit; }

.hn-facets,.hn-year-aside { top:calc(var(--hn-sticky-offset,0px) + 16px); }
.hn .hn-snippet,.hn .hn-col .hn-text { font-size:var(--hn-fs-reading); line-height:2; overflow-wrap:anywhere; }
@media(max-width:700px) { .hn .hn-snippet,.hn .hn-col .hn-text { font-size:18px; line-height:1.95; } }

.hn-readership { color:var(--hn-muted); font-size:var(--hn-fs-sm); margin:8px 0 16px; }
.hn-readership strong { color:var(--hn-green); font-variant-numeric:tabular-nums; }

/* Keep editorial explanation visibly separate from the historical text in every view. */
.hn details.hn-date-reason { display:block; flex-basis:100%; margin:8px 0; padding:8px 12px; border:1px solid var(--hn-border-soft); border-radius:var(--hn-r-sm); background:var(--hn-surface-alt); color:var(--hn-muted); }
.hn details.hn-date-reason>summary { display:list-item; min-height:36px; font-size:14px; font-weight:600; padding:4px 0; cursor:pointer; }
.hn details.hn-date-reason:not([open])>.hn-date-reason__body { display:none; }
.hn .hn-date-reason__body,.hn .hn-date-reason__body p { font-size:14px; line-height:1.85; margin:6px 0; font-weight:400; }

.hn .hn-context-note { font-size:14px; line-height:1.8; color:var(--hn-muted); border-inline-start:3px solid var(--hn-gold); padding:8px 12px; background:var(--hn-surface-alt); }
