/* ==========================================================================
   Downs & Dunks — main stylesheet
   Colours and sizes are variables at the top: change them here to restyle the site.
   ========================================================================== */

:root {
	--navy: #0c1b33;
	--navy-2: #15294b;
	--navy-3: #22385f;
	--accent: #ff5a1f;
	--accent-dark: #e04411;
	--nfl: #13803f;
	--nfl-soft: #e6f4ec;
	--nba: #d9480f;
	--nba-soft: #fdeee6;

	--bg: #f4f5f7;
	--surface: #ffffff;
	--ink: #111827;
	--ink-2: #374151;
	--muted: #6b7280;
	--line: #e5e7eb;

	--font-head: "Oswald", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: 16px;
	--radius: 10px;
	--shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; letter-spacing: .005em; }
button { font: inherit; cursor: pointer; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; margin: 0; z-index: 1000;
	top: 8px; left: 8px; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 6px;
}

.dd-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.dd-wrap--narrow { max-width: 820px; }
.dd-main { padding-bottom: 48px; min-height: 50vh; }

.dd-button {
	display: inline-block; background: var(--accent); color: #fff; font-weight: 700;
	padding: 11px 22px; border-radius: 999px; font-size: 15px; transition: background .15s;
}
.dd-button:hover { background: var(--accent-dark); color: #fff; }

/* ---------- Top bar ---------- */
.dd-topbar { background: #07111f; color: #aab4c3; font-size: 12.5px; }
.dd-topbar__inner { display: flex; align-items: center; gap: 16px; min-height: 34px; }
.dd-topbar__tag { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-topbar .dd-social a { color: #aab4c3; }
.dd-topbar .dd-social a:hover { color: #fff; }

.dd-social { display: flex; gap: 12px; align-items: center; }
.dd-social .dd-icon { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.dd-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--accent); }
.admin-bar .dd-header { top: 32px; }
.dd-header__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }

.dd-wordmark {
	font-family: var(--font-head); font-weight: 700; font-size: 28px; line-height: 1;
	text-transform: uppercase; letter-spacing: .01em; color: #fff; display: inline-flex; align-items: baseline; white-space: nowrap;
	font-style: italic;
}
.dd-wordmark:hover { color: #fff; }
.dd-wordmark__amp { color: var(--accent); margin: 0 .08em; font-size: 1.05em; }
.dd-brand .custom-logo { max-height: 44px; width: auto; }

.dd-nav { flex: 1; }
.dd-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.dd-menu > li { position: relative; display: flex; align-items: center; }
.dd-menu > li > a {
	display: block; padding: 21px 12px; font-family: var(--font-head); font-weight: 600;
	font-size: 16px; text-transform: uppercase; letter-spacing: .04em; color: #e8edf5;
}
.dd-menu > li > a:hover,
.dd-menu > li.current-menu-item > a,
.dd-menu > li.current-menu-ancestor > a,
.dd-menu > li.current-category-ancestor > a { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.submenu-toggle { background: none; border: 0; color: #9fb0c8; padding: 6px 4px; margin-left: -8px; display: flex; }

.dd-menu .sub-menu {
	list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 12px 30px rgba(12, 27, 51, .18);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.dd-menu .sub-menu a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); font-weight: 600; font-size: 14.5px; }
.dd-menu .sub-menu a:hover { background: var(--bg); color: var(--accent-dark); }
.dd-menu > li:hover > .sub-menu,
.dd-menu > li:focus-within > .sub-menu,
.dd-menu > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.dd-header__actions { display: flex; gap: 4px; margin-left: auto; }
.dd-iconbtn { background: none; border: 0; color: #fff; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.dd-iconbtn:hover { background: var(--navy-3); }
.dd-iconbtn .dd-icon { width: 22px; height: 22px; }
.dd-menu-toggle { display: none; }
.dd-menu-toggle__close { display: none; }

.dd-search { background: var(--navy-2); padding: 14px 0; }
.dd-searchform { display: flex; background: #fff; border-radius: 999px; overflow: hidden; max-width: 640px; border: 1px solid var(--line); }
.dd-searchform input { flex: 1; border: 0; padding: 12px 18px; font-size: 16px; min-width: 0; background: transparent; color: var(--ink); }
.dd-searchform input:focus { outline: none; }
.dd-searchform button { border: 0; background: var(--accent); color: #fff; padding: 0 18px; display: grid; place-items: center; }

/* ---------- Trending ticker ---------- */
.dd-ticker { background: #fff; border-bottom: 1px solid var(--line); }
.dd-ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.dd-ticker__label {
	display: inline-flex; align-items: center; gap: 4px; flex: none;
	font-family: var(--font-head); text-transform: uppercase; font-weight: 700; font-size: 14px;
	color: var(--accent-dark); letter-spacing: .04em;
}
.dd-ticker__list {
	list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none;
	-webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.dd-ticker__list::-webkit-scrollbar { display: none; }
.dd-ticker__list li { flex: none; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.dd-ticker__sport { font-size: 10.5px; font-weight: 800; color: #fff; padding: 2px 6px; border-radius: 4px; letter-spacing: .04em; }
.dd-ticker__sport--nfl { background: var(--nfl); }
.dd-ticker__sport--nba { background: var(--nba); }

/* ---------- Ads ---------- */
.dd-ad { margin: 24px auto; text-align: center; max-width: 100%; overflow: hidden; }
.dd-ad__label { display: block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.dd-ad--header { padding: 0 var(--gutter); }
.dd-content .dd-ad { margin: 32px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Badges, chips, pills ---------- */
.dd-badge {
	display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
	color: var(--accent-dark); margin-bottom: 6px;
}
.dd-badge--nfl { color: var(--nfl); }
.dd-badge--nba { color: var(--nba); }
.dd-badge:hover { text-decoration: underline; }

.dd-chip { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; margin: 0 6px 8px 0; }
.dd-chip--nfl { background: var(--nfl-soft); border-color: #c7e6d3; color: #0d5c2d; }
.dd-chip--nba { background: var(--nba-soft); border-color: #f8d3c0; color: #9a3209; }
.dd-chip:hover { border-color: currentColor; }

.dd-pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-top: 18px; padding-bottom: 2px; }
.dd-pills::-webkit-scrollbar { display: none; }
.dd-pill { flex: none; padding: 7px 15px; border-radius: 999px; border: 1px solid rgba(255,255,255,.25); color: #dfe6f1; font-weight: 600; font-size: 14px; }
.dd-pill:hover { color: #fff; border-color: #fff; }
.dd-pill.is-active { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Section headings ---------- */
.dd-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.dd-section-head__title {
	font-size: 22px; text-transform: uppercase; letter-spacing: .03em; margin: 0; padding: 0 0 6px;
	position: relative; font-weight: 700;
}
.dd-section-head__title::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 4px; background: var(--accent); }
.dd-section-head--nfl .dd-section-head__title::after { background: var(--nfl); }
.dd-section-head--nba .dd-section-head__title::after { background: var(--nba); }
.dd-section-head__more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.dd-section-head__more .dd-icon { width: 15px; height: 15px; }

/* ---------- Cards ---------- */
.dd-card { position: relative; }
.dd-card__media { display: block; overflow: hidden; border-radius: var(--radius); background: var(--navy-2); aspect-ratio: 16 / 9; }
.dd-card__media .dd-img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.dd-card:hover .dd-card__media .dd-img { transform: scale(1.03); }
.dd-card__title { font-size: 19px; margin: 0 0 6px; font-weight: 600; }
.dd-card__title a:hover { color: var(--accent-dark); }
.dd-card__excerpt { color: var(--ink-2); margin: 0 0 8px; font-size: 15.5px; }
.dd-card__meta { font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; }

.dd-img--placeholder {
	display: grid !important; place-items: center; width: 100%; height: 100%;
	background:
		repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(255,255,255,.07) 9.5% 10%),
		linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
	color: rgba(255,255,255,.85); font-family: var(--font-head); font-weight: 700; font-size: 26px; font-style: italic; letter-spacing: .04em;
}
.dd-img--nfl { background: repeating-linear-gradient(90deg, transparent 0 9.5%, rgba(255,255,255,.12) 9.5% 10%), linear-gradient(135deg, #0d5c2d, var(--nfl)); }
.dd-img--nba { background: radial-gradient(circle at 50% 50%, transparent 0 18%, rgba(255,255,255,.14) 18% 19%, transparent 19%), linear-gradient(135deg, #a3370b, var(--nba)); }

/* Lead story */
.dd-card--lead .dd-card__media { aspect-ratio: 16 / 9; }
.dd-card--lead .dd-card__body { padding-top: 14px; }
.dd-card--lead .dd-card__title { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.08; font-weight: 700; }
.dd-card--lead .dd-card__excerpt { font-size: 17px; }

/* Grid card */
.dd-card--card .dd-card__body { padding-top: 12px; }

/* Row (image left) */
.dd-card--row { display: grid; grid-template-columns: 1fr 136px; gap: 14px; align-items: start; }
.dd-card--row .dd-card__media { order: 2; aspect-ratio: 16 / 9; border-radius: 8px; }
.dd-card--row .dd-card__title { font-size: 17px; line-height: 1.22; }
.dd-card--row .dd-img--placeholder { font-size: 15px; }

/* Ranked (trending) */
.dd-card--rank { display: grid; grid-template-columns: 36px 1fr; gap: 10px; align-items: start; }
.dd-card__rank { font-family: var(--font-head); font-weight: 700; font-size: 30px; line-height: 1; color: var(--accent); font-style: italic; }
.dd-card--rank .dd-card__title { font-size: 16px; line-height: 1.25; }
.dd-card--rank .dd-badge { margin-bottom: 2px; font-size: 10.5px; }

.dd-list { display: grid; gap: 16px; }
.dd-list > .dd-card + .dd-card { padding-top: 16px; border-top: 1px solid var(--line); }
.dd-list > .dd-ad + .dd-card { padding-top: 0; border-top: 0; }
.dd-list--stream .dd-card--row { grid-template-columns: 1fr 200px; }
.dd-list--stream .dd-card--row .dd-card__title { font-size: 21px; }

.dd-grid { display: grid; gap: 24px; }
.dd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dd-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Homepage ---------- */
.dd-hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 8px; }
.dd-hero__side { align-content: start; background: var(--surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }

.dd-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 36px; }
.dd-split__col { background: var(--surface); padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }
.dd-split__col > .dd-card--card { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dd-split__col > .dd-card--card .dd-card__title { font-size: 24px; }

.dd-band { background: var(--navy); color: #fff; margin-top: 40px; padding: 32px 0 36px; }
.dd-band .dd-section-head { border-color: rgba(255,255,255,.3); }
.dd-band .dd-card__title a:hover { color: #ffb08f; }
.dd-band .dd-card__meta { color: #9fb0c8; }
.dd-band .dd-badge { color: #ffb08f; }

.dd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; margin-top: 36px; align-items: start; }
.dd-layout__main { min-width: 0; }
/* New site with few posts: show Trending full width instead of an empty column. */
.dd-layout--sidebar-only { grid-template-columns: 1fr; }
.dd-layout--sidebar-only .dd-layout__main { display: none; }
.dd-layout--sidebar-only .dd-sidebar { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dd-more-wrap { text-align: center; margin: 28px 0 0; }
.dd-empty { padding: 48px 0; text-align: center; }

/* ---------- Sidebar ---------- */
.dd-sidebar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; position: relative; height: 100%; align-content: start; }
.dd-box { background: var(--surface); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.dd-sidebar__sticky { position: sticky; top: 90px; }
.dd-sidebar .dd-ad { margin: 0; }
.dd-widgets .widget + .widget { margin-top: 20px; }
.widget-title { font-size: 18px; text-transform: uppercase; }

/* ---------- Archive headers ---------- */
.dd-archive-head { background: var(--navy); color: #fff; padding: 22px 0 28px; border-bottom: 4px solid var(--accent); }
.dd-archive-head--nfl { border-bottom-color: var(--nfl); background: linear-gradient(120deg, var(--navy) 55%, #0f3a2a); }
.dd-archive-head--nba { border-bottom-color: var(--nba); background: linear-gradient(120deg, var(--navy) 55%, #4a2412); }
.dd-archive-head__kicker { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: .1em; color: #ffb08f; margin-bottom: 4px; }
.dd-archive-head--nfl .dd-archive-head__kicker { color: #7fd6a2; }
.dd-archive-head__title { font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; font-weight: 700; margin: 0; line-height: 1.02; }
.dd-archive-head__desc { color: #c8d2e0; max-width: 760px; margin-top: 8px; }
.dd-archive-head__desc p { margin: 0 0 .5em; }
.dd-archive-head__page { margin: 6px 0 0; color: #9fb0c8; }
.dd-archive-head__search { margin-top: 16px; }
.dd-archive-head .dd-crumbs { color: #9fb0c8; }
.dd-archive-head .dd-crumbs a { color: #c8d2e0; }
.dd-author-head { display: flex; gap: 18px; align-items: center; }
.dd-author-head img { border-radius: 50%; }

.dd-archive-top { display: grid; gap: 24px; margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }

/* Breadcrumbs */
.dd-crumbs { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.dd-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.dd-crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; opacity: .6; }
.dd-crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.dd-crumbs a:hover { text-decoration: underline; }

/* Pagination */
.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-numbers:hover:not(.current):not(.dots) { border-color: var(--accent); color: var(--accent-dark); }
.page-numbers.dots { border: 0; background: none; }

/* ---------- Single article ---------- */
.dd-article .dd-layout { margin-top: 24px; }
.dd-article__head { margin-bottom: 20px; }
.dd-article__title { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.06; font-weight: 700; margin: 2px 0 12px; }
.dd-article__dek { font-size: 19px; color: var(--ink-2); margin: 0 0 18px; line-height: 1.5; }
.dd-article__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.dd-byline { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dd-byline__avatar { border-radius: 50%; }
.dd-byline__text { display: flex; flex-direction: column; line-height: 1.35; }
.dd-byline__author { font-weight: 700; }
.dd-byline__author a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.dd-byline__dates { color: var(--muted); font-size: 13px; }
.dd-byline__sep { margin: 0 4px; }

.dd-share { display: flex; align-items: center; gap: 8px; }
.dd-share__label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 2px; }
.dd-share__btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.dd-share__btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.dd-share__copied { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 3px 8px; border-radius: 4px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.dd-share__btn.is-copied .dd-share__copied { opacity: 1; }

.dd-article__image { margin: 0 0 24px; }
.dd-article__image .dd-img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.dd-article__image figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Article text */
.dd-content { font-size: 18.5px; line-height: 1.72; color: #1f2937; max-width: 740px; }
.dd-content > * { margin-top: 0; margin-bottom: 1.15em; }
.dd-content h2 { font-size: 30px; margin: 1.5em 0 .5em; }
.dd-content h3 { font-size: 23px; margin: 1.4em 0 .5em; }
.dd-content h4 { font-size: 19px; }
.dd-content a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.dd-content a:hover { color: var(--ink); }
.dd-content ul, .dd-content ol { padding-left: 1.3em; }
.dd-content li { margin-bottom: .4em; }
.dd-content li::marker { color: var(--accent); font-weight: 700; }
.dd-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); font-size: 1.08em; color: var(--ink); font-style: italic; }
.dd-content blockquote cite { display: block; font-size: 14px; font-style: normal; color: var(--muted); margin-top: 6px; }
.dd-content figure { margin: 1.6em 0; }
.dd-content figure img { border-radius: 8px; }
.dd-content figcaption, .dd-content .wp-element-caption { font-size: 13.5px; color: var(--muted); margin-top: 8px; text-align: left; }
.dd-content hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.dd-content iframe, .dd-content .wp-block-embed { max-width: 100%; }
.dd-content .wp-block-embed__wrapper { display: flex; justify-content: center; }

/* Tables (great for schedules and stats) */
.dd-content table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; display: block; overflow-x: auto; }
.dd-content .wp-block-table { overflow-x: auto; width: 100%; }
.dd-content .wp-block-table table { display: table; width: 100%; min-width: 480px; }
.dd-content th { background: var(--navy); color: #fff; text-align: left; font-family: var(--font-head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 14px; }
.dd-content th, .dd-content td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.dd-content tbody tr:nth-child(even) { background: #f8f9fb; }

/* "Key facts" box: add the CSS class "dd-keyfacts" to a Group block in the editor */
.dd-content .dd-keyfacts { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 18px 20px; box-shadow: var(--shadow); }
.dd-content .dd-keyfacts > :last-child { margin-bottom: 0; }

.dd-article__tags { margin: 32px 0 8px; }
.dd-article__tags-label { display: block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.dd-article__share-bottom { margin: 18px 0 8px; }

.dd-authorbox { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin: 32px 0; }
.dd-authorbox img { border-radius: 50%; flex: none; }
.dd-authorbox__name { font-family: var(--font-head); font-size: 20px; font-weight: 600; margin: 0 0 4px; }
.dd-authorbox__bio { margin: 0; color: var(--ink-2); font-size: 15px; }
.dd-authorbox__bio--hint { color: var(--muted); font-style: italic; }

.dd-related { margin-top: 36px; }

.dd-page-links { margin: 24px 0; font-weight: 700; }

/* Comments */
.dd-comments { margin-top: 40px; }
.dd-comments__list { list-style: none; padding: 0; }
.dd-comments__list .comment-body { background: var(--surface); padding: 16px; border-radius: 8px; margin-bottom: 12px; }
.dd-comments__list .children { list-style: none; padding-left: 24px; }
.comment-author img { border-radius: 50%; float: left; margin-right: 10px; }
.comment-metadata { font-size: 12.5px; color: var(--muted); }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}
.comment-form .submit { background: var(--accent); color: #fff; border: 0; padding: 11px 22px; border-radius: 999px; font-weight: 700; }
.dd-comments__title { font-size: 22px; }

/* Pages */
.dd-page__head { padding-top: 28px; }
.dd-page .dd-content { max-width: none; }

/* Teams page */
.dd-teams { margin-top: 32px; }
.dd-teams__conf + .dd-teams__conf { margin-top: 36px; }
.dd-teams__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.dd-teams__div { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.dd-teams__div h3 { font-size: 17px; text-transform: uppercase; color: var(--muted); letter-spacing: .04em; margin-bottom: 10px; }
.dd-teams__div ul { list-style: none; margin: 0; padding: 0; }
.dd-teams__div li a, .dd-teams__div li > span { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; }
.dd-teams__div li:first-child a, .dd-teams__div li:first-child > span { border-top: 0; }
.dd-teams__count { font-size: 12px; color: var(--muted); font-weight: 600; background: var(--bg); padding: 1px 8px; border-radius: 999px; }

/* 404 */
.dd-404 { padding-top: 40px; text-align: center; }
.dd-404 .dd-searchform { margin: 24px auto; }
.dd-404__code { font-family: var(--font-head); font-size: 110px; font-weight: 700; line-height: 1; color: var(--accent); margin: 0; font-style: italic; }
.dd-404__latest { text-align: left; margin-top: 40px; }

/* ---------- Footer ---------- */
.dd-footer { background: var(--navy); color: #c8d2e0; margin-top: 56px; border-top: 4px solid var(--accent); }
.dd-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-top: 44px; padding-bottom: 36px; }
.dd-footer__brand p { font-size: 14.5px; max-width: 360px; }
.dd-footer .dd-social a { color: #c8d2e0; }
.dd-footer .dd-social a:hover { color: #fff; }
.dd-footer__title { font-size: 16px; text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 12px; }
.dd-footer ul { list-style: none; margin: 0; padding: 0; }
.dd-footer li { margin-bottom: 7px; font-size: 14.5px; }
.dd-footer li a:hover { color: #fff; text-decoration: underline; }
.dd-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: 12.5px; color: #8796ad; }
.dd-footer__bottom p { margin: 0 0 4px; }
.dd-wordmark--footer { font-size: 26px; margin-bottom: 4px; }

/* ---------- Block editor alignment helpers ---------- */
.alignwide, .alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.has-text-align-center { text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.dd-menu > li > a { padding: 21px 9px; font-size: 15px; }
	.dd-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dd-teams__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dd-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
}

@media (max-width: 960px) {
	/* Mobile menu */
	.dd-menu-toggle { display: grid; }
	.dd-header__inner { gap: 12px; min-height: 58px; }
	.dd-nav {
		position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 60px); height: calc(100dvh - 60px);
		background: var(--navy); overflow-y: auto; border-top: 3px solid var(--accent);
		padding: 8px var(--gutter) 40px; opacity: 0; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; visibility: hidden;
	}
	.dd-nav-open .dd-nav { opacity: 1; transform: none; visibility: visible; }
	.dd-nav-open { overflow: hidden; }
	.dd-nav-open .dd-menu-toggle__open { display: none; }
	.dd-nav-open .dd-menu-toggle__close { display: block; }
	.dd-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.dd-menu > li { flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.1); }
	.dd-menu > li > a { flex: 1; padding: 16px 4px; font-size: 19px; box-shadow: none !important; }
	.submenu-toggle { margin: 0; padding: 12px; }
	.submenu-toggle svg { width: 14px; height: 14px; }
	.dd-menu > li.is-open > .submenu-toggle svg { transform: rotate(180deg); }
	.dd-menu .sub-menu {
		position: static; width: 100%; display: none; background: transparent; box-shadow: none; padding: 0 0 12px 8px;
		opacity: 1; visibility: visible; transform: none; transition: none; min-width: 0;
	}
	.dd-menu > li.is-open > .sub-menu { display: block; }
	.dd-menu > li:hover > .sub-menu { display: none; }
	.dd-menu > li.is-open:hover > .sub-menu { display: block; }
	.dd-menu .sub-menu a { color: #c8d2e0; font-size: 16px; }
	.dd-menu .sub-menu a:hover { background: var(--navy-3); color: #fff; }

	.dd-hero, .dd-split { grid-template-columns: 1fr; }
	.dd-split { gap: 24px; }
	.dd-layout { grid-template-columns: 1fr; }
	.dd-sidebar__sticky { position: static; }
	.dd-footer__grid { grid-template-columns: 1fr 1fr; }
	.dd-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 782px) {
	.admin-bar .dd-header { top: 46px; }
}
@media (max-width: 600px) {
	.admin-bar .dd-header { top: 0; }
}

@media (max-width: 640px) {
	:root { --gutter: 16px; }
	.dd-topbar__date { display: none; }
	.dd-wordmark { font-size: 23px; }
	.dd-grid--2, .dd-grid--4 { grid-template-columns: 1fr; }
	.dd-grid--4 { gap: 20px; }
	.dd-band .dd-grid--4 .dd-card--card { display: grid; grid-template-columns: 1fr 120px; gap: 14px; }
	.dd-band .dd-grid--4 .dd-card--card .dd-card__media { order: 2; aspect-ratio: 16 / 9; }
	.dd-band .dd-grid--4 .dd-card--card .dd-card__body { padding-top: 0; }
	.dd-band .dd-grid--4 .dd-card--card .dd-card__title { font-size: 17px; }
	.dd-list--stream .dd-card--row { grid-template-columns: 1fr 110px; }
	.dd-list--stream .dd-card--row .dd-card__title { font-size: 17px; }
	.dd-card--row { grid-template-columns: 1fr 104px; }
	.dd-hero { padding-top: 16px; gap: 20px; }
	.dd-hero__side, .dd-split__col, .dd-box { padding: 16px; }
	.dd-split__col > .dd-card--card .dd-card__title { font-size: 21px; }
	.dd-article__meta { flex-direction: column; align-items: flex-start; }
	.dd-content { font-size: 17.5px; }
	.dd-content h2 { font-size: 26px; }
	.dd-teams__grid { grid-template-columns: 1fr; }
	.dd-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.dd-authorbox { flex-direction: column; }
}

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

@media print {
	.dd-topbar, .dd-header, .dd-ticker, .dd-ad, .dd-sidebar, .dd-share, .dd-footer, .dd-related, .dd-comments { display: none !important; }
	.dd-layout { display: block; }
}
