/* Layout and components. Values come from tokens.css. Square corners, rules instead of shadows. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--fs-md);
	line-height: 1.55;
	word-break: keep-all;
	overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text, .skip-link:not(:focus) {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10; background: var(--paper); padding: 8px 12px; border: 1px solid var(--ink); }

/* ---------- Disclaimer (FR-28~31) ---------- */
.disclaimer { background: var(--band); color: var(--ink); font-size: var(--fs-xs); line-height: 1.5; }
.disclaimer p { max-width: var(--wrap); margin: 0 auto; padding: 8px 16px; }
.disclaimer--top { border-bottom: 1px solid var(--rule); }
.disclaimer--bottom { font-size: var(--fs-sm); }

/* ---------- Head ---------- */
.site-head__inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: end;
	gap: var(--gap);
	padding-top: 18px;
	padding-bottom: 14px;
}
.site-head__date { font-size: var(--fs-sm); color: var(--muted); }
.brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.brand__name {
	font-family: var(--font-serif);
	font-weight: 700;
	font-size: 2.75rem;
	line-height: 1.1;
	letter-spacing: 0.08em;
}
.brand__name:hover { text-decoration: none; }
.brand__en { font-size: var(--fs-xs); letter-spacing: 0.12em; color: var(--muted); }
.brand__motto { font-size: var(--fs-xs); color: var(--muted); }
.custom-logo-link img { max-height: 72px; width: auto; }
.site-head__search { justify-self: end; }

.search { display: flex; }
.search input {
	width: 11rem; min-width: 0;
	border: 1px solid var(--ink); border-right: 0; border-radius: 0;
	padding: 5px 8px; font: inherit; font-size: var(--fs-sm); background: var(--paper);
}
.search button {
	border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper);
	padding: 5px 10px; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap; flex-shrink: 0;
}

.nav { border-top: 1px solid var(--rule); border-bottom: 3px solid var(--ink); }
.nav__list {
	display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.nav__list::-webkit-scrollbar { display: none; }
.nav__list a {
	display: block; padding: 11px 14px; font-weight: 700; font-size: var(--fs-md); white-space: nowrap;
}
.nav__list li:first-child a { padding-left: 0; }

.site-main { padding: var(--gap-lg) 0 48px; }

/* ---------- Shared pieces ----------
   Rules: thick ink lines only divide big sections (under the menu, between page bands, above the foot).
   Thin grey lines divide one article from the next. Block titles carry no rule of their own. */
.label { color: var(--accent); font-weight: 700; }
.kicker { color: var(--accent); font-weight: 700; font-size: var(--fs-sm); }
.block-head {
	display: flex; justify-content: space-between; align-items: baseline;
	margin-bottom: 6px;
}
.block-head h2 { font-size: var(--fs-lg); font-weight: 800; }
.block-head__more { font-size: var(--fs-xs); color: var(--muted); }

.thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--band); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.item { padding: 12px 0; border-bottom: 1px solid var(--rule); }
.item:last-child { border-bottom: 0; }
.item__title { font-size: var(--fs-md); font-weight: 700; line-height: 1.4; letter-spacing: -0.01em; }
.item__summary { margin-top: 6px; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.6; }
.item__meta { margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
.item--thumb .thumb { margin-bottom: 8px; }
.item--line { padding: 8px 0; }
.item--line .item__title { font-weight: 500; font-size: var(--fs-sm); }
.item--small { display: grid; grid-template-columns: 1fr 96px; gap: 10px; }
.item--small .thumb { order: 2; margin: 0; }
.item--small .item__title { font-size: var(--fs-sm); }

.box { margin-bottom: var(--gap-lg); }
.box + .box { border-top: 1px solid var(--rule); padding-top: var(--gap); }

.columns { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside); }
.columns__main { padding-right: 24px; }
.columns__aside { border-left: 1px solid var(--rule); padding-left: 24px; }

/* ---------- Main page (FR-32) ---------- */
.lead {
	display: grid;
	/* Same right column as the band below, so the vertical rules line up. */
	grid-template-columns: minmax(0, 1fr) var(--aside);
	border-bottom: 2px solid var(--ink);
	padding-bottom: var(--gap-lg); /* Vertical rules stop short of the band's dividing line. */
	margin-bottom: var(--gap-lg);
}
.lead--single { grid-template-columns: minmax(0, 1fr); }
.lead__top { padding-right: 24px; }
.lead--single .lead__top { padding-right: 0; }
.lead__side { padding-left: 24px; border-left: 1px solid var(--rule); }
.lead__side .item:first-child { padding-top: 0; }

.top-story__title { font-size: var(--fs-top); font-weight: 800; line-height: 1.25; letter-spacing: -0.03em; margin-bottom: 14px; }
.top-story__body.has-thumb { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
.top-story__summary { color: var(--ink-soft); font-size: var(--fs-md); line-height: 1.7; }
.related-lines { margin-top: 12px; }
.related-lines li { position: relative; padding-left: 12px; font-size: var(--fs-sm); margin-top: 4px; }
.related-lines li::before { content: "·"; position: absolute; left: 2px; color: var(--muted); }

.lead__under { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); }
.lead__under .item { border: 0; padding: 0; }
.slot-empty { min-height: 120px; }
.lead__side .slot-empty { min-height: 200px; }
.item--side { display: grid; grid-template-columns: 40% 1fr; gap: 14px; align-items: start; }
.item--side .thumb { margin: 0; }

.opinion { padding: 11px 0; border-bottom: 1px solid var(--rule); }
.opinion:last-child { border-bottom: 0; }
.opinion .kicker { display: block; font-size: var(--fs-xs); margin-bottom: 3px; }
.opinion__title { font-size: var(--fs-md); font-weight: 700; line-height: 1.4; }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-lg) 32px; }
.section-block .item:first-child { padding-top: 0; }

.video-row { margin-top: var(--gap-lg); }
.video-row__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.video-item { border: 0; padding: 0; }
.video-item .thumb { aspect-ratio: 16 / 9; margin-bottom: 8px; }
.video-item .item__title { font-size: var(--fs-sm); }

.ranked { counter-reset: rank; }
.ranked li {
	counter-increment: rank; display: grid; grid-template-columns: 1.6em 1fr; gap: 6px;
	padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); font-weight: 500; line-height: 1.45;
}
.ranked li:last-child { border-bottom: 0; }
.ranked li::before { content: counter(rank); font-weight: 800; color: var(--accent); }

.border-brief__date { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 4px; }
.border-brief__text { font-family: var(--font-serif); font-size: var(--fs-sm); }

/* Indicator box (FR-21) */
.ucol-indicator { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 10px 0 12px; margin-bottom: 8px; }
.ucol-indicator__name { font-size: var(--fs-sm); font-weight: 700; }
.ucol-indicator__value { margin-top: 2px; }
.ucol-indicator__value strong { font-size: 1.875rem; font-weight: 800; letter-spacing: -0.02em; }
.ucol-indicator__unit { font-size: var(--fs-sm); }
.ucol-indicator__prev { font-size: var(--fs-sm); color: var(--muted); }
.ucol-indicator__desc { margin-top: 4px; font-size: var(--fs-sm); color: var(--ink-soft); }
.ucol-indicator__byline { margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); }
.article .ucol-indicator { margin: 0 0 var(--gap-lg); }

/* ---------- Article ---------- */
.article__head { border-bottom: 1px solid var(--rule); padding-bottom: 12px; margin-bottom: 20px; }
.article__crumbs { display: flex; gap: 12px; align-items: baseline; font-size: var(--fs-sm); }
.article__day { color: var(--muted); }
.article__title { margin-top: 8px; font-size: var(--fs-title); font-weight: 800; line-height: 1.3; letter-spacing: -0.03em; }
.article__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--muted); }
.article__reporters { color: var(--ink); font-weight: 600; }
.tools { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tools button {
	border: 1px solid var(--rule); background: var(--paper); border-radius: 0;
	padding: 4px 10px; font-size: var(--fs-xs); cursor: pointer;
}
.tools button:hover { border-color: var(--ink); }
.tools__status { font-size: var(--fs-xs); color: var(--muted); }

.article__subhead {
	border-left: 3px solid var(--ink); padding: 2px 0 2px 14px; margin-bottom: 22px;
	font-size: var(--fs-lg); font-weight: 700; line-height: 1.6;
}
.article__photo { margin: 0 0 22px; }
.article__photo figcaption { margin-top: 8px; font-size: var(--fs-sm); color: var(--ink-soft); line-height: 1.55; }
.credit { display: block; text-align: right; font-size: var(--fs-xs); color: var(--muted); }

.article__body {
	font-family: var(--font-serif);
	font-size: calc(var(--fs-body) * var(--ufn-scale, 1));
	line-height: 1.9;
}
.article__body > * + * { margin-top: 1.1em; }
.article__body h2, .article__body h3 { font-family: var(--font-sans); font-size: 1.15em; font-weight: 800; }
.article__body figure figcaption, .article__body .wp-element-caption { font-family: var(--font-sans); font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 6px; }
.article__body table { border-collapse: collapse; width: 100%; font-family: var(--font-sans); font-size: var(--fs-sm); }
.article__body th, .article__body td { border: 1px solid var(--rule); padding: 6px 8px; text-align: left; }
.article__body thead th { border-bottom: 2px solid var(--ink); }
.article__body ul { list-style: disc; padding-left: 1.3em; }
.article__body ol { list-style: decimal; padding-left: 1.3em; }
.article__byline { font-family: var(--font-sans); font-size: var(--fs-sm); color: var(--ink-soft); }

/* Timestamp list (FR-24): fixed-width times that never wrap */
.is-style-ucol-timestamps { list-style: none !important; padding-left: 0 !important; font-family: var(--font-sans); }
.is-style-ucol-timestamps li { display: grid; grid-template-columns: 3.6em 1fr; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.is-style-ucol-timestamps li::before { content: none; }
.ufn-time { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

/* Court ruling / record quote (FR-25) */
.is-style-ucol-document {
	margin-left: 0; padding: 10px 16px; border-left: 3px solid var(--rule);
	font-size: 0.9em; line-height: 1.75; color: var(--ink-soft); background: transparent;
}
.article__body blockquote { margin-left: 0; padding-left: 16px; border-left: 3px solid var(--rule); }

.correction { border: 1px solid var(--ink); padding: 12px 14px; margin-top: 24px; font-size: var(--fs-sm); }
.correction strong { display: block; margin-bottom: 4px; }
.article__copyright { margin: 24px 0; padding-top: 10px; border-top: 1px solid var(--rule); font-size: var(--fs-xs); color: var(--muted); }

.reporter-box { border-top: 1px solid var(--rule); padding: 12px 0; margin-bottom: 12px; }
.reporter-box__name { font-weight: 800; }
.reporter-box__dept { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); margin-left: 8px; }
.reporter-box__list { margin-top: 6px; }
.reporter-box__list li { font-size: var(--fs-sm); padding: 3px 0; }

.serial-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: var(--gap-lg) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.serial-nav a { display: block; padding: 12px 0; font-weight: 700; font-size: var(--fs-sm); }
.serial-nav span { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 2px; }
.serial-nav__next { grid-column: 2; text-align: right; }

.history { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
.history th, .history td { border-bottom: 1px solid var(--rule); padding: 6px 4px; text-align: left; }
.history .is-current { font-weight: 700; }

/* Video (FR-19, NFR-07) */
.ucol-video { position: relative; aspect-ratio: 16 / 9; background: #000; margin-bottom: 14px; }
.ucol-video__play { position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer; background: #000; }
.ucol-video__play img { width: 100%; height: 100%; object-fit: cover; }
.ucol-video__icon {
	position: absolute; left: 50%; top: 50%; width: 68px; height: 48px; transform: translate(-50%, -50%);
	background: rgba(0, 0, 0, 0.75);
}
.ucol-video__icon::after {
	content: ""; position: absolute; left: 27px; top: 14px;
	border-style: solid; border-width: 10px 0 10px 18px; border-color: transparent transparent transparent #fff;
}
.ucol-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article__video-summary { margin-bottom: 22px; font-size: var(--fs-md); line-height: 1.7; }

/* ---------- Lists ---------- */
.list-head { border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.list-head h1 { font-size: var(--fs-xl); font-weight: 800; }
.list-head p { margin-top: 4px; color: var(--muted); font-size: var(--fs-sm); }
.list .item { padding: 16px 0; }
.list .item--thumb { display: grid; grid-template-columns: 1fr 200px; gap: 20px; }
.list .item--thumb .thumb { order: 2; margin: 0; }
.list .item__title { font-size: var(--fs-lg); }
.list-empty { padding: 24px 0; }

.pagination { margin-top: 20px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px; }
.page-numbers { display: inline-block; min-width: 2.2em; padding: 4px 8px; border: 1px solid var(--rule); text-align: center; font-size: var(--fs-sm); }
.page-numbers.current { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.calendar-month { margin-top: 20px; }
.calendar-month h2 { font-size: var(--fs-lg); font-weight: 800; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.calendar-days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.calendar-days li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); display: flex; gap: 8px; align-items: baseline; }
.calendar-days a { font-weight: 700; }
.calendar-days__count { color: var(--muted); font-size: var(--fs-xs); }

/* ---------- Foot ---------- */
.site-foot { border-top: 3px solid var(--ink); padding: 22px 0; font-size: var(--fs-sm); }
.site-foot__inner { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; }
.site-foot__name { font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-lg); }
.site-foot__info, .site-foot__links { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-soft); }
.site-foot__links a { text-decoration: underline; }

/* ---------- Responsive (NFR-11) ---------- */
@media (max-width: 1024px) {
	.columns { grid-template-columns: 1fr; gap: var(--gap-lg); }
	.columns__main { padding-right: 0; }
	.columns__aside { border-left: 0; padding-left: 0; border-top: 2px solid var(--ink); padding-top: var(--gap-lg); }
	.lead { grid-template-columns: 1fr; }
	.lead__top { padding-right: 0; }
	.lead__side { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); margin-top: 16px; padding-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.lead__side .item { padding: 0; border: 0; }
	.video-row__list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
	.site-head__inner { grid-template-columns: 1fr; justify-items: center; padding-top: 12px; gap: 8px; }
	.site-head__date { order: 2; }
	.site-head__search { order: 3; justify-self: stretch; }
	.search input { width: 100%; }
	.brand__name { font-size: 2.125rem; }
	.top-story__title { font-size: 1.625rem; }
	.top-story__body.has-thumb { grid-template-columns: 1fr; }
	.lead__under, .lead__side { grid-template-columns: 1fr; }
	.section-grid { grid-template-columns: 1fr; }
	.article__title { font-size: 1.5rem; }
	.list .item--thumb { grid-template-columns: 1fr 104px; gap: 12px; }
	.list .item__title { font-size: var(--fs-md); }
	.serial-nav { grid-template-columns: 1fr; gap: 0; }
	.serial-nav__next { grid-column: 1; text-align: left; border-top: 1px solid var(--rule); }
}

/* ---------- Print: article only, disclaimer kept ---------- */
@media print {
	.site-head, .site-foot, .columns__aside, .tools, .serial-nav, .reporter-box, .related, .box,
	.skip-link, .disclaimer--bottom, .ucol-video { display: none !important; }
	.columns { display: block; }
	body { font-size: 11pt; }
	.article__body { font-size: 11pt; }
	.disclaimer--top { border: 1px solid #000; background: none; }
	a { text-decoration: none; }
}

@media (prefers-reduced-motion: reduce) {
	* { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
