/* ==========================================================================
   Download Free Fonts - Classic compact theme (2000-era look)
   Replaces the previous "2026 Revamp". Plain, dense, table-like layout.
   Loaded after Bootstrap 3.3.6, so a few !important calls override Bootstrap.
   ========================================================================== */

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	background: #ffffff;
	color: #000000;
	font-family: Verdana, Geneva, Tahoma, Arial, sans-serif;
	font-size: 12px;
	line-height: 1.45;
}

/* kill the old animated "Aa" watermark, gradients and floating orbs */
body::before,
body::after { content: none !important; display: none !important; }

img { border: 0; max-width: 100%; }

a { color: #15489c; text-decoration: none; }
a:hover, a:focus { color: #cc0000; text-decoration: underline; }

h1, h2, h3, h4 { font-family: Verdana, Geneva, Tahoma, Arial, sans-serif; }

code { background: #f2f2f2; border: 1px solid #ddd; padding: 0 3px; color: #b00; font-size: 11px; }

/* ---------- Page frame ---------- */
.main-container {
	position: relative;
	z-index: auto;
	max-width: 1180px;
	margin: 0 auto;
	padding: 6px 12px 30px;
}

.container,
.top-bar-section,
main,
footer { position: static; z-index: auto; }

/* ---------- Header ---------- */
.site-header { padding: 0; }
.site-header-nav { max-width: none; margin: 0; }
.top-bar-section { display: block; }

.site-header .navigation {
	position: static;
	overflow: visible;
	padding: 6px 0 8px;
	background: #ffffff;
	border: 0;
	border-bottom: 2px solid #cc0000;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
}

/* hide the modern flourishes entirely */
.header-orb,
.header-orb-one,
.header-orb-two,
.brand-logo-aura,
.brand-logo-sheen,
.dff-mark-logo,
.brand-meta,
.brand-pill,
.header-tools,
.theme-toggle { display: none !important; }

.header-top-row {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.header-brand { display: flex; flex-direction: column; gap: 1px; }
.header-brand-row { display: flex; align-items: center; gap: 12px; }

.banner { background: transparent; padding: 0; }
.brand-link { display: inline-flex; }

.brand-logo-shell {
	position: static;
	display: inline-flex;
	align-items: center;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

.dff-svg-logo {
	/* wide wordmark (intrinsic ~300x22): size by width so it stays
	   proportional at any container size instead of being squashed */
	position: static;
	z-index: auto;
	width: 430px;
	max-width: 100%;
	height: auto;
	filter: none;
}

.brand-copy { display: block; max-width: none; }
.brand-tagline {
	margin: 0;
	font-size: 11px;
	line-height: 1.3;
	color: #555;
}

/* ---------- Intro / browse panel ---------- */
.intro { display: block; }
.intro .alert {
	margin: 6px 0;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 0;
	background: #fbfbe8;
	color: #000;
	box-shadow: none;
	font-size: 11px;
}

.top-nav { display: block; margin: 0; }
.top-categories { display: block; }

.top-categories .browse-panel,
.browse-panel {
	position: static;
	overflow: visible;
	padding: 6px 0;
	background: #ffffff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
}
.browse-panel::before,
.top-categories .browse-panel::before { content: none; }

/* ---------- Search box ---------- */
.category-search-row { margin: 2px 0 6px; }
.search.header-search,
.header-search { display: block; width: auto; }
.header-search-form,
.search-autocomplete { position: relative; display: inline-block; width: auto; }

.search-input-shell {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
}
.search-input-leading,
.search-input-caption { display: none; }
.search-input-copy { display: inline-block; min-width: 0; }

.header-search-input.form-control,
input.header-search-input {
	height: 24px;
	width: 320px;
	max-width: 60vw;
	padding: 2px 6px;
	border: 1px solid #7f9db9;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: normal;
	color: #000;
}
.header-search-input.form-control:focus { box-shadow: none; outline: 1px solid #cc0000; }

.header-search-button,
.btn.header-search-button {
	height: 24px;
	min-width: 0;
	padding: 1px 12px;
	border: 1px solid #888 !important;
	border-radius: 0 !important;
	background: #ececec !important;
	background-image: none !important;
	color: #000 !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: bold;
	box-shadow: none !important;
	text-transform: none;
}
.header-search-button:hover { background: #e0e0e0 !important; box-shadow: none !important; transform: none !important; }

/* autocomplete suggestions */
.search-suggestions {
	position: absolute;
	z-index: 60;
	left: 0;
	top: 26px;
	min-width: 320px;
	margin: 0;
	padding: 3px;
	border: 1px solid #888;
	border-radius: 0;
	background: #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,.2);
}
.search-suggestions-head { display: flex; justify-content: space-between; gap: 8px; margin: 0 0 4px; padding: 2px 4px; }
.search-suggestions-title { font-family: inherit; font-size: 11px; font-weight: bold; color: #333; }
.search-suggestions-copy { font-size: 10px; color: #888; }
.search-suggestions-list { display: block; }
.search-suggestion-option {
	display: flex;
	align-items: center;
	gap: 6px;
	width: 100%;
	padding: 2px 5px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #000;
	text-align: left;
	transition: none;
}
.search-suggestion-option:hover,
.search-suggestion-option.is-active { background: #ffe9e9; transform: none; box-shadow: none; }
.search-suggestion-type {
	padding: 0 4px;
	border-radius: 0;
	background: #eee;
	color: #777;
	font-size: 9px;
	font-weight: bold;
	text-transform: uppercase;
}
.search-suggestion-text { min-width: 0; font-weight: normal; font-size: 11px; }
.search-suggestion-option mark { background: transparent; color: #cc0000; padding: 0; }

/* ---------- Alphabet browser ---------- */
.alphabet-browser {
	margin: 4px 0;
	padding: 3px 0;
	border: 0;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
	text-align: center;
}
.azsort,
.azsort-scroll,
.top-categories .azsort-scroll {
	display: block;
	overflow: visible;
	scrollbar-width: auto;
}
.top-categories .azsort.azsort-scroll { width: auto; min-width: 0; margin: 0; }
.azsort-scroll a,
.top-categories .azsort-scroll a {
	display: inline-block;
	flex: none;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 0 4px;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	font-weight: bold;
	text-transform: uppercase;
	color: #15489c;
}
.azsort-scroll a:hover,
.top-categories .azsort-scroll a:hover { transform: none; color: #cc0000; text-decoration: underline; }

/* ---------- Category directory (the red grid) ---------- */
.mobile-nav { display: none; }
.desktop-category-nav { display: block; margin: 6px 0 0; }

.top-categories .category-directory,
.category-directory {
	display: flex;
	gap: 0;
	border: 2px solid #cc0000;
	border-radius: 0;
	background: #ffffff;
	overflow: hidden;
}
.top-categories .category-column,
.category-column {
	flex: 1 1 0;
	min-width: 0;
	padding: 0 0 6px;
	border-right: 1px dotted #d8a3a3;
}
.top-categories .category-column:last-child,
.category-column:last-child { border-right: 0; }

.category-group { margin: 0; }
.top-categories .category-group + .category-group,
.category-group + .category-group { margin-top: 4px; }

/* continuation columns (no heading) start one header-row lower to line up */
.category-column > .category-group-secondary:first-child { margin-top: 18px; }

.top-categories .category-group-title,
.category-group-title {
	display: block;
	min-width: 0;
	margin: 0 0 2px;
	padding: 1px 5px;
	background: #cc0000;
	border-radius: 0;
	color: #ffffff;
	font-family: inherit;
	font-size: 11px;
	font-weight: bold;
	line-height: 1.5;
}
.category-group-title a { color: #ffffff; text-decoration: none; }
.category-group-title a:hover { color: #ffffff; text-decoration: underline; }

.top-categories .category-list,
.category-list {
	display: block;
	margin: 0;
	padding: 0 5px;
	list-style: none;
}
.category-list li { margin: 0; }
.top-categories .category-list a,
.category-list a {
	display: block;
	padding: 0;
	color: #000000;
	font-size: 11px;
	font-weight: normal;
	line-height: 1.5;
}
.top-categories .category-list a:hover,
.category-list a:hover { transform: none; color: #cc0000; text-decoration: underline; }

/* ---------- Custom preview bar ---------- */
.cst-sample {
	margin: 6px 0;
	padding: 5px 8px;
	background: #f3f3f3;
	border: 1px solid #ccc;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}
.cst-sample::before { content: none; }
.cst-txt-input,
.custom-text-form,
.cst-sample form,
.custom-preview-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	width: 100%;
}
.custom-preview-field { display: flex; align-items: center; gap: 5px; }
.custom-preview-field-text { flex: 1 1 280px; }
.custom-preview-label { margin: 0; font-size: 11px; font-weight: bold; color: #333; }

.cst-sample input[type="text"],
.cst-sample input.form-control,
input.cst-txt {
	flex: 1;
	min-width: 150px;
	width: auto;
	height: 24px;
	margin: 0;
	padding: 2px 6px;
	border: 1px solid #7f9db9;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	color: #000;
}
.cst-size-select,
select.cst-size-select,
.cst-sample select.form-control {
	height: 24px;
	width: auto;
	padding: 1px 4px;
	border: 1px solid #7f9db9;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
}
.custom-preview-actions { display: flex; gap: 6px; }

/* ---------- Generic classic buttons (overrides Bootstrap .btn family) ---------- */
.btn,
a.btn,
button.btn,
.font-card-button,
.site-primary-action,
.font-detail-share-link,
.footer-box .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 2px 10px;
	border: 1px solid #888 !important;
	border-radius: 0 !important;
	background: #ececec !important;
	background-image: none !important;
	color: #000000 !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: bold;
	line-height: 18px;
	text-shadow: none;
	box-shadow: none !important;
	cursor: pointer;
	transition: none !important;
	text-transform: none;
}
.btn:hover, a.btn:hover, button.btn:hover,
.font-card-button:hover,
.site-primary-action:hover,
.font-detail-share-link:hover {
	background: #e0e0e0 !important;
	color: #000 !important;
	text-decoration: none;
	transform: none !important;
	box-shadow: none !important;
}
.btn-sm { padding: 1px 8px; font-size: 11px; line-height: 16px; }
.btn .glyphicon { font-size: 11px; top: 1px; }

/* the danger/reset button gets a faintly red classic look */
.btn-danger { color: #a00 !important; }

/* ---------- Font list cards (home / category / search / related) ---------- */
.font-box,
.search-results-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.single-font,
.font-item.font-card,
.font-card {
	position: relative;
	display: block;
	gap: 0;
	margin: 0;
	padding: 0;
	background: #ffffff;
	border: 1px solid #cccccc;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	animation: none !important;
}
.single-font::before,
.font-item.font-card::before,
.font-card::before { content: none; }
.single-font:hover,
.font-item.font-card:hover,
.font-card:hover { transform: none; box-shadow: none; }

/* red title bar */
.font-card-head {
	position: static;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 3px 8px;
	background: #cc0000;
	color: #ffffff;
}
.font-name,
.font-card-copy {
	display: block;
	flex: 1 1 auto;
	gap: 0;
	min-width: 0;
	color: #ffffff;
	font-size: 11px;
	line-height: 1.35;
	overflow: hidden;
}
.font-card-title,
.search-h2 {
	display: block;
	margin: 0;
	font-family: inherit;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.25;
	color: #ffffff;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.font-name a,
.font-card-copy a { color: #ffffff; }
.font-name a:hover,
.font-card-copy a:hover { color: #ffffff; text-decoration: underline; }

.font-card-actions,
.down-btn {
	position: static;
	display: flex;
	flex-direction: row-reverse;   /* Download button sits to the right of the category */
	align-items: center;
	gap: 6px;
	flex: 0 0 auto;
	padding: 0;
}

/* category link inside the red bar */
.font-card-license,
.font-card-category,
.cp,
.font-card-meta span {
	display: inline-block;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: #ffffff;
	font-size: 11px;
	font-weight: normal;
}
.font-card-actions .font-card-category:hover,
.cp:hover { color: #ffffff; text-decoration: underline; }

/* preview area */
.font-sample,
.font-preview-panel { position: static; display: block; }
.font-preview-visual {
	position: static;
	display: block;
	padding: 6px 8px;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	overflow: hidden;
}
.font-preview-backdrop,
.font-preview-zoom { display: none !important; }
.font-preview-visual img,
.font-preview-visual .prev-img,
.prev-img,
.prev-img-details {
	position: static;
	z-index: auto;
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	margin: 0;
	transform: none !important;
	transition: none !important;
	filter: none !important;
}
.font-preview-visual:hover img,
.font-preview-visual:hover .prev-img { transform: none !important; }

/* ---------- Section headers / page headers ---------- */
.latest-fonts,
.download-box {
	position: static;
	overflow: visible;
	margin-top: 10px;
	padding: 0;
	background: #ffffff;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	backdrop-filter: none;
}
.latest-fonts::before,
.download-box::before { content: none; }

.page-header,
.category-page-intro {
	margin: 8px 0 6px;
	padding: 0;
}
.page-header-kicker { display: none; }

.page-header h1,
.cat-header,
.download-box > h1 {
	margin: 2px 0 3px;
	font-family: inherit;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.2;
	color: #cc0000;
}
.page-header p,
.page-header p.roboto,
.download-box > p,
.cat-keywords small {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: #333;
}
/* "Recently added fonts" heading (a <p class="roboto">) */
.latest-fonts > .page-header p.roboto {
	font-size: 15px;
	font-weight: bold;
	color: #cc0000;
}
.cat-keywords { margin: 2px 0 0; }

.breadcrumb {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin: 0 0 6px;
	padding: 0;
	background: none;
	color: #777;
	font-size: 11px;
}

/* ---------- Pagination ---------- */
.website-pagination { grid-column: 1 / -1; margin-top: 8px; padding-top: 6px; }
.website-pagination > p { margin: 0; }
.pagi { display: block; }
.pagi-pages.pagination,
ul.pagination.pagi-pages,
.pagination {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 3px;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pagi-pages li,
.pagination > li { display: inline-block; margin: 0; }
.pagi-pages li a,
.pagi-pages .active a,
.pagination > li > a,
.pagination > li > span {
	display: inline-block;
	min-width: 0;
	height: auto;
	margin: 0;
	padding: 1px 7px;
	border: 1px solid #aaa;
	border-radius: 0;
	background: #fff;
	color: #15489c;
	font-size: 12px;
	font-weight: normal;
	line-height: 18px;
}
.pagi-pages li.active a,
.pagi-pages li a:hover,
.pagination > .active > a,
.pagination > li > a:hover {
	background: #cc0000;
	border-color: #cc0000;
	color: #fff;
	text-decoration: none;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	padding: 0 4px;
	color: #777;
	font-weight: normal;
	font-size: 11px;
}

/* empty-search / error notice */
.red,
.font-details .main-content {
	padding: 8px 10px;
	border: 1px solid #cc0000;
	border-radius: 0;
	background: #fff5f5;
	color: #cc0000;
	font-size: 12px;
}

/* ==========================================================================
   Font details page
   ========================================================================== */
.font-details { display: block; }
.font-detail-shell {
	border: 1px solid #cccccc;
	background: #fff;
	padding: 0;
	margin: 0 0 8px;
}
.font-detail-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	padding: 10px;
	background: #f7f7f7;
	border-bottom: 1px solid #ddd;
}
.font-detail-copy { flex: 1 1 320px; min-width: 0; }
.font-detail-copy h1 { margin: 2px 0 4px; font-size: 19px; font-weight: bold; color: #000; }
.font-detail-subtitle { margin: 0 0 4px; font-size: 12px; color: #555; }
.font-detail-description { margin: 0 0 8px; font-size: 12px; color: #333; }
.font-detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.font-detail-preview { flex: 1 1 320px; min-width: 0; }
.font-preview-panel-detail { border: 1px solid #ddd; background: #fff; }

.font-detail-meta-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin: 0;
	padding: 0;
	border-top: 1px solid #eee;
}
.font-detail-meta-card {
	flex: 1 1 18%;
	min-width: 120px;
	padding: 5px 8px;
	border-right: 1px solid #eee;
	border-bottom: 1px solid #eee;
	background: #fff;
}
.font-detail-meta-label {
	display: block;
	margin: 0 0 1px;
	font-size: 10px;
	font-weight: normal;
	text-transform: uppercase;
	color: #888;
}
.font-detail-meta-card strong { font-size: 12px; color: #000; }

.font-detail-content-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px;
}
.font-detail-panel {
	flex: 1 1 300px;
	min-width: 0;
	padding: 8px 10px;
	border: 1px solid #ddd;
	background: #fafafa;
}
.font-detail-panel h2 { margin: 0 0 6px; font-size: 14px; font-weight: bold; color: #cc0000; }
.font-detail-richtext { font-size: 12px; color: #333; }
.font-detail-richtext p { margin: 0 0 6px; }
.font-detail-muted { font-size: 12px; color: #777; }
.font-detail-illustration { margin: 0 0 8px; }
.font-detail-illustration img {
	display: block;
	max-width: 100%;
	height: auto;
	border: 1px solid #ddd;
}
.font-detail-share { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.font-detail-share-link { padding: 1px 8px; font-size: 11px; font-weight: normal; }

/* comments */
.font-comments-shell {
	margin-top: 8px;
	padding: 10px;
	border: 1px solid #ccc;
	background: #fff;
}
.font-comments-head h2 { margin: 2px 0 4px; font-size: 15px; font-weight: bold; color: #cc0000; }
.font-comments-head p { margin: 0 0 6px; font-size: 12px; color: #555; }
.font-comments-grid { display: block; }
.font-comments-list { margin: 0 0 8px; }
.font-comment-card {
	padding: 6px 8px;
	margin: 0 0 6px;
	border: 1px solid #e2e2e2;
	background: #fafafa;
	font-size: 12px;
}
.font-comment-card-empty { color: #777; }

/* related fonts reuse .latest-fonts / .font-box */
.related-fonts-section { margin-top: 10px; }

/* ==========================================================================
   Forms (contact / submit / comment / account)
   ========================================================================== */
.site-form-card {
	margin: 0 0 10px;
	padding: 10px;
	border: 1px solid #ccc;
	background: #fff;
}
.site-form-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.site-form-field {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 240px;
	min-width: 0;
}
.site-form-field-full { flex: 1 1 100%; }
.site-form-field label { font-size: 11px; font-weight: bold; color: #333; }
.site-form-field input,
.site-form-field textarea,
.site-form-field select,
.site-form-grid input,
.site-form-grid textarea,
.site-form-grid select {
	width: 100%;
	padding: 3px 6px;
	border: 1px solid #7f9db9;
	border-radius: 0;
	background: #fff;
	box-shadow: none;
	font-family: inherit;
	font-size: 12px;
	color: #000;
}
.site-form-field textarea { min-height: 70px; }
.site-form-honeypot,
.honeypot-field { display: none !important; }
.site-form-actions { flex: 1 1 100%; margin-top: 2px; }
.site-primary-action { padding: 3px 14px; font-size: 12px; }

/* generic bootstrap form-control fallback */
.form-control {
	border: 1px solid #7f9db9;
	border-radius: 0;
	box-shadow: none;
	font-size: 12px;
	color: #000;
}

/* account / admin */
.admin-shell { display: block; }
.admin-login-card {
	max-width: 360px;
	margin: 24px auto;
	padding: 14px;
	border: 1px solid #ccc;
	background: #fff;
}
.admin-login-form { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 14px; }
.footer-shell {
	padding: 10px 12px;
	background: #f5f5f5;
	border: 1px solid #ccc;
	border-radius: 0;
	box-shadow: none;
}
.footer-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
}
.footer-brand-block { flex: 2 1 280px; min-width: 0; display: block; }
.footer-link-column { flex: 1 1 150px; min-width: 0; display: block; }
.footer-eyebrow,
.site-modal-eyebrow {
	margin: 0 0 2px;
	color: #cc0000;
	font-size: 10px;
	font-weight: bold;
	text-transform: uppercase;
}
.footer-brand-block h2,
.footer-link-column h2 {
	margin: 0 0 5px;
	font-family: inherit;
	font-size: 13px;
	font-weight: bold;
	line-height: 1.3;
	color: #000;
}
.footer-copy { margin: 0 0 6px; font-size: 11px; line-height: 1.45; color: #444; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 4px; }
.footer-meta span {
	display: inline-block;
	padding: 1px 5px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	color: #666;
	font-size: 10px;
	font-weight: normal;
}
.footer-link-column a,
.footer-back-to-top {
	display: block;
	padding: 1px 0;
	color: #15489c;
	font-weight: normal;
	font-size: 11px;
}

.footer-search-queries {
	margin-top: 10px;
	padding: 8px 12px;
	background: #f5f5f5;
	border: 1px solid #ccc;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}
.footer-search-queries h2 { margin: 0 0 5px; font-family: inherit; font-size: 13px; font-weight: bold; color: #cc0000; }
.search-queries { display: block; line-height: 1.7; }
.search-queries a,
.footer-link-column-queries .search-queries a {
	display: inline;
	padding: 0 6px 0 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #15489c;
	font-size: 11px;
	font-weight: normal;
}

.footer-bottom-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 8px;
	padding-top: 6px;
	border-top: 1px solid #ccc;
}
.footer-visitors { margin: 0; font-size: 11px; color: #555; font-weight: normal; }
.footer-back-to-top {
	display: inline-block;
	padding: 1px 8px;
	border: 1px solid #aaa;
	border-radius: 0;
	background: #ececec;
	color: #000;
}
.top-symbol { display: none; }

.footer-box {
	margin: 8px 0 14px;
	padding: 0;
	background: none;
	border: 0;
	box-shadow: none;
	text-align: center;
}
.footer-box a { margin-right: 16px; text-decoration: none; }

/* ==========================================================================
   Modals
   ========================================================================== */
.modal-open { overflow: hidden; }
.site-modal[hidden] { display: none; }
.site-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.site-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.site-modal-dialog {
	position: relative;
	z-index: 1;
	width: min(680px, 100%);
	max-height: 88vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 2px solid #cc0000;
	border-radius: 0;
	box-shadow: 0 3px 10px rgba(0,0,0,.35);
}
.site-modal-header { padding: 8px 12px 0; }
.site-modal-header h2 { margin: 2px 0 4px; font-family: inherit; font-size: 16px; font-weight: bold; color: #000; }
.site-modal-close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	border: 1px solid #888;
	border-radius: 0;
	background: #ececec;
	color: #000;
	font-size: 16px;
	line-height: 1;
}
.site-modal-body { padding: 8px 12px 12px; overflow: auto; }
.site-modal-templates { display: none; }

.site-copy-block { display: block; color: #333; }
.site-copy-block h1,
.site-copy-block h2,
.site-copy-block h3,
.site-copy-block h4 {
	margin: 8px 0 4px;
	font-family: inherit;
	color: #cc0000;
}
.site-copy-block h1 { font-size: 17px; }
.site-copy-block h3 { font-size: 15px; }
.site-copy-block h2, .site-copy-block h4 { font-size: 13px; }
.site-copy-block p,
.site-copy-block ul { margin: 0 0 6px; font-size: 12px; line-height: 1.5; color: #333; }
.site-copy-block ul { padding-left: 18px; }

.site-faq-accordion details {
	margin: 0 0 4px;
	padding: 4px 6px;
	border: 1px solid #ddd;
	background: #fafafa;
}
.site-faq-accordion summary { font-size: 12px; font-weight: bold; cursor: pointer; }
.site-faq-accordion details p { margin: 4px 0 0; font-size: 12px; color: #444; }

/* ==========================================================================
   Helpers / Bootstrap overrides
   ========================================================================== */
.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0);
	border: 0;
}
.strong, strong, b { font-weight: bold; }
.roboto { font-family: inherit; }

.glyphicon { font-size: 12px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 900px) {
	.top-categories .category-directory,
	.category-directory { flex-wrap: wrap; }
	.top-categories .category-column,
	.category-column {
		flex: 1 1 30%;
		border-right: 1px dotted #d8a3a3;
		border-bottom: 1px dotted #d8a3a3;
	}
	.font-box,
	.search-results-grid { grid-template-columns: 1fr; }
}

@media screen and (max-width: 640px) {
	.main-container { padding: 6px 8px 24px; }

	/* --- compact mobile header --- */
	.site-header .navigation { padding: 6px 0; }
	.header-top-row {
		flex-wrap: wrap;
		gap: 4px;
		margin-bottom: 4px;
	}
	.header-brand { width: 100%; }
	.header-brand-row { gap: 8px; }
	/* tagline was crowding the logo on the right - drop it on phones */
	.brand-copy { display: none; }
	/* wide wordmark (intrinsic 300x22): constrain by an explicit width so it
	   never distorts or overflows; height stays proportional via height:auto */
	.dff-svg-logo {
		width: 270px;
		max-width: 90vw;
		height: auto;
	}

	.mobile-nav { display: block; margin: 6px 0; }
	.mobile-nav select {
		width: 100%;
		height: 32px;
		padding: 0 6px;
		border: 1px solid #7f9db9;
		border-radius: 0;
		font-size: 13px;
	}
	.desktop-category-nav { display: none; }

	/* search + alphabet sizing on phones */
	.category-search-row { margin: 2px 0 4px; }
	.header-search-input.form-control,
	input.header-search-input { width: 100%; max-width: none; }
	.search-input-shell { display: flex; gap: 6px; }
	.search-input-copy { flex: 1; }
	.header-search-button,
	.btn.header-search-button { padding: 1px 10px; }

	.alphabet-browser { margin: 4px 0; padding: 4px 0; }
	.azsort-scroll a { padding: 0 5px; font-size: 13px; line-height: 1.9; }

	.cst-sample { padding: 5px 6px; }
	.footer-grid { gap: 12px; }
	.category-column > .category-group-secondary:first-child { margin-top: 0; }
}
