/* The Draft Core — block styles. Uses theme presets with safe fallbacks. */

/* Breaking news bar */
.the-draft-breaking {
	background: var(--wp--preset--color--accent, #c21a1a);
	color: #fff;
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	margin-block: 0;
}
.the-draft-breaking[hidden] { display: none; }
.the-draft-breaking__inner {
	align-items: center;
	display: flex;
	gap: 0.75rem;
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size, 1320px);
	padding: 0.6rem var(--wp--preset--spacing--40, 1rem);
}
.the-draft-breaking__label {
	background: #fff;
	color: var(--wp--preset--color--accent, #c21a1a);
	flex: none;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	padding: 0.2em 0.5em;
	text-transform: uppercase;
}
.the-draft-breaking__text {
	color: #fff !important;
	flex: 1;
	font-size: 0.95rem;
	font-weight: 600;
	text-decoration: none;
}
.the-draft-breaking__text:hover { text-decoration: underline; }
.the-draft-breaking__dismiss {
	background: transparent;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
	padding: 0 0.25rem;
}

/* Ad slots */
.the-draft-ad {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin-block: var(--wp--preset--spacing--40, 1.5rem);
}
.the-draft-ad__label {
	color: var(--wp--preset--color--muted, #5e5d58);
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	font-size: 0.65rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}
.the-draft-ad.is-slot-top { border-bottom: 1px solid var(--wp--preset--color--rule, #e2dfd7); padding-bottom: var(--wp--preset--spacing--30, 1rem); }
.the-draft-house-ad {
	align-items: center;
	background: var(--wp--preset--color--surface, #f0eee8);
	border: 1px solid var(--wp--preset--color--rule, #e2dfd7);
	box-sizing: border-box;
	color: var(--wp--preset--color--ink, #121212) !important;
	display: flex;
	font-family: var(--wp--preset--font-family--serif, Georgia, serif);
	gap: 1rem;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	text-decoration: none !important;
	width: 100%;
}
.the-draft-house-ad.is-slot-top { max-width: 970px; min-height: 90px; }
.the-draft-house-ad.is-slot-in-content { min-height: 120px; }
.the-draft-house-ad.is-slot-sidebar { aspect-ratio: 6 / 5; flex-direction: column; justify-content: center; text-align: center; }
.the-draft-house-ad__copy { font-size: 1.15rem; font-weight: 600; line-height: 1.25; }
.the-draft-house-ad__cta {
	background: var(--wp--preset--color--accent, #c21a1a);
	color: #fff;
	flex: none;
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	font-size: 0.8rem;
	font-weight: 700;
	padding: 0.5em 1em;
}

/* Story lists (trending, related) */
.the-draft-stories { list-style: none; margin: 0; padding: 0; }
.the-draft-story + .the-draft-story { border-top: 1px solid var(--wp--preset--color--rule, #e2dfd7); }
.the-draft-story { padding-block: 0.75rem; }
.the-draft-story__section {
	color: var(--wp--preset--color--accent, #c21a1a);
	display: block;
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 0.2rem;
	text-transform: uppercase;
}
.the-draft-story__title { color: inherit; font-weight: 600; line-height: 1.25; text-decoration: none; }
.the-draft-story__title:hover { text-decoration: underline; }
.the-draft-stories.is-layout-numbered { counter-reset: the-draft-rank; }
.the-draft-stories.is-layout-numbered .the-draft-story { counter-increment: the-draft-rank; display: grid; gap: 0.75rem; grid-template-columns: 2rem 1fr; }
.the-draft-stories.is-layout-numbered .the-draft-story::before {
	color: var(--wp--preset--color--accent, #c21a1a);
	content: counter(the-draft-rank);
	font-family: var(--wp--preset--font-family--serif, Georgia, serif);
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}
.the-draft-stories.is-layout-grid { display: grid; gap: var(--wp--preset--spacing--40, 1.5rem); grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.the-draft-stories.is-layout-grid .the-draft-story { border: 0; padding: 0; }
.the-draft-story__media img { aspect-ratio: 3 / 2; display: block; height: auto; margin-bottom: 0.6rem; object-fit: cover; width: 100%; }

/* Live */
.the-draft-live { margin: 0; }
.the-draft-live.is-archived {
	color: var(--wp--preset--color--muted, #5e5d58);
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
}

.the-draft-key-events ul { list-style: none; margin: 0; padding: 0; }
.the-draft-key-events li { border-left: 2px solid var(--wp--preset--color--live, #e4002b); font-size: 0.95rem; margin-bottom: 0.75rem; padding-left: 0.75rem; }

/* Newsletter */
.the-draft-newsletter.is-variant-inline {
	background: var(--wp--preset--color--surface, #f0eee8);
	border-top: 3px solid var(--wp--preset--color--ink, #121212);
	padding: var(--wp--preset--spacing--40, 1.5rem);
}
.the-draft-newsletter__heading { font-size: 1.5rem; font-weight: 700; margin: 0 0 0.25rem; }
.the-draft-newsletter__text { margin: 0 0 0.75rem; }
.the-draft-newsletter__form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.the-draft-newsletter__form input {
	border: 1px solid var(--wp--preset--color--muted, #5e5d58);
	flex: 1 1 12rem;
	font: inherit;
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	padding: 0.6em 0.8em;
}
.the-draft-newsletter.is-variant-footer { margin-top: var(--wp--preset--spacing--40, 1.5rem); }
.the-draft-newsletter__status { font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif); font-size: 0.85rem; margin: 0.5rem 0 0; min-height: 1.2em; }

/* New stories prompt */
.the-draft-new-stories {
	bottom: 1.25rem;
	left: 50%;
	position: fixed;
	transform: translateX(-50%);
	z-index: 50;
}
.the-draft-new-stories[hidden] { display: none; }
.the-draft-new-stories__button {
	background: var(--wp--preset--color--ink, #121212);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	color: #fff;
	cursor: pointer;
	font-family: var(--wp--preset--font-family--sans, system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 600;
	padding: 0.7em 1.3em;
}
.the-draft-new-stories__count {
	background: var(--wp--preset--color--accent, #c21a1a);
	border-radius: 999px;
	display: inline-block;
	margin-right: 0.35em;
	min-width: 1.5em;
	padding: 0 0.4em;
	text-align: center;
}

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