/* The compact front page. */

/* Hero: heading and intro beside the search. */
.hero-section.n3tw-hero-split { text-align: left; margin-bottom: 1.5rem; }
.n3tw-hero-split .hero-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	grid-template-areas: "title search" "subtitle search";
	column-gap: 2.5rem;
	align-content: center;
	max-width: none !important;
	text-align: left !important;
}
.n3tw-hero-split .hero-content > * { min-width: 0; }
.n3tw-hero-split .hero-title { grid-area: title; align-self: end; font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin: 0 0 0.5rem; }
.n3tw-hero-split .hero-subtitle { grid-area: subtitle; align-self: start; font-size: 1rem; margin: 0; padding: 0; max-width: none; }
.n3tw-hero-split .n3tw-search-box { grid-area: search; align-self: center; width: 100%; max-width: none !important; margin: 0 !important; }
.n3tw-hero-split .hero-badge-container,
.n3tw-hero-split .hero-logo-wrap,
.n3tw-hero-split .hero-actions,
.n3tw-hero-split .hero-extra-content { grid-column: 1 / -1; }

/* "Right now". */
.n3tw-now { margin-bottom: 2rem; }
.n3tw-now-box {
	display: flex;
	gap: 1.25rem;
	align-items: center;
	padding: 1rem 1.25rem;
	border: 1px solid rgba(229, 174, 69, 0.45);
	border-radius: 10px;
	background: linear-gradient(100deg, #1d1a14, #141e2e 55%);
}
.n3tw-now-count { display: flex; gap: 1rem; align-items: center; flex: 0 0 auto; max-width: 340px; }
.n3tw-now-count[hidden], .n3tw-now-number[hidden] { display: none; }
.n3tw-now-number { font: 700 3.5rem/1 var(--font-fantasy); color: #e5ae45; }
.n3tw-now-info { display: flex; flex-direction: column; }
.n3tw-now-info strong { color: #f1f5f9; }
.n3tw-now-date { color: #94a3b8; font-size: 0.9rem; }
.n3tw-now-info a { color: #e5ae45; font-weight: 700; font-size: 0.9rem; }
.n3tw-now-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); gap: 0.6rem; flex: 1; min-width: 0; }
.n3tw-now-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 0.7rem 0.35rem;
	background: #101827;
	border: 1px solid rgba(148, 163, 184, 0.15);
	border-radius: 8px;
	color: #f1f5f9;
	font-size: 0.88rem;
	text-align: center;
}
.n3tw-now-tile b { font: 700 1.5rem/1.2 var(--font-fantasy); color: #54bfff; }
.n3tw-now-tile:hover { border-color: rgba(84, 191, 255, 0.5); color: #f1f5f9; }

/* Section heading shared by the news and the community columns. */
.n3tw-fp-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.15);
	padding-bottom: 0.5rem;
	margin-bottom: 0.85rem;
}
/* The front page sits in .entry-content, whose heading margins must not apply here. */
.n3tw-fp-head > h2:first-child { font-size: 1.3rem; margin: 0; }
.n3tw-fp-head a { color: #54bfff; font-size: 0.82rem; font-weight: 600; white-space: nowrap; }

/* Lead story and list. */
.n3tw-fp-news { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; }
.n3tw-fp-news.is-single { grid-template-columns: minmax(0, 1fr); }
.n3tw-fp-lead, .n3tw-fp-row, .n3tw-fp-line {
	background: #141e2e;
	border: 1px solid rgba(148, 163, 184, 0.15);
	border-radius: 10px;
	color: #f1f5f9;
	transition: border-color 0.2s, background 0.2s;
}
.n3tw-fp-lead:hover, .n3tw-fp-row:hover, .n3tw-fp-line:hover { border-color: rgba(84, 191, 255, 0.45); background: #19263a; color: #f1f5f9; }
.n3tw-fp-lead { display: flex; flex-direction: column; overflow: hidden; }
.n3tw-fp-lead .n3tw-fp-pic img { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.n3tw-fp-body { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.n3tw-fp-lead .n3tw-fp-body { padding: 0.9rem 1rem 1.1rem; }
.n3tw-fp-meta { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #54bfff; }
.n3tw-fp-title { font-family: var(--font-fantasy); font-weight: 700; line-height: 1.3; }
.n3tw-fp-lead .n3tw-fp-title { font-size: 1.3rem; }
.n3tw-fp-excerpt { color: #94a3b8; font-size: 0.92rem; }
.n3tw-fp-rows { display: flex; flex-direction: column; gap: 0.5rem; }
.n3tw-fp-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem; flex: 1; }
.n3tw-fp-row .n3tw-fp-pic { flex: 0 0 112px; }
.n3tw-fp-row .n3tw-fp-pic:empty { display: none; }
.n3tw-fp-row .n3tw-fp-pic img { display: block; width: 112px; height: 63px; object-fit: cover; border-radius: 6px; }
.n3tw-fp-row .n3tw-fp-title { font-size: 0.9rem; }

/* Compact quick access. */
.n3tw-qa-compact .section-header { margin-bottom: 0.85rem; padding-bottom: 0.5rem; }
.n3tw-qa-compact .section-title { font-size: 1.3rem; margin: 0; }
.n3tw-qa-compact .section-title svg { display: none; }
.quick-access-section.n3tw-qa-compact .quick-card { padding: 0.8rem 0.85rem !important; }
.n3tw-qa-compact .quick-card-icon,
.n3tw-qa-compact .quick-card-arrow,
.n3tw-qa-compact .quick-card-banner { display: none; }
.n3tw-qa-compact .quick-card-title { font-size: 0.92rem; margin: 0 0 0.25rem; }
.n3tw-qa-compact .quick-card-desc { font-size: 0.78rem; margin: 0; }

/* Three community columns. */
.n3tw-fp-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr); gap: 1rem; }
.n3tw-fp-line { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; margin-bottom: 0.5rem; }
.n3tw-fp-line > span { display: flex; flex-direction: column; min-width: 0; }
.n3tw-fp-line b { font-family: var(--font-fantasy); font-size: 0.95rem; overflow-wrap: anywhere; }
.n3tw-fp-line.is-headline b { font-family: inherit; font-size: 0.85rem; font-weight: 600; }
.n3tw-fp-line small { color: #94a3b8; font-size: 0.76rem; }
.n3tw-fp-line i { font-style: normal; color: #54bfff; }

@media (max-width: 1024px) {
	.n3tw-now-box { flex-direction: column; align-items: stretch; }
	.n3tw-now-count { max-width: none; }
	.n3tw-fp-news { grid-template-columns: minmax(0, 1fr); }
	.n3tw-fp-columns { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.n3tw-fp-columns > .is-wide { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
	.n3tw-hero-split .hero-content { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "subtitle" "search"; row-gap: 0.6rem; }
}

@media (max-width: 640px) {
	.n3tw-now-box { padding: 0.75rem; }
	.n3tw-now-number { font-size: 2.9rem; }
	.n3tw-now-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.n3tw-now-tile { font-size: 0.75rem; }
	.n3tw-fp-row .n3tw-fp-pic { flex-basis: 92px; }
	.n3tw-fp-row .n3tw-fp-pic img { width: 92px; height: 56px; }
	.quick-access-section.n3tw-qa-compact .quick-access-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 0.5rem !important; }
	.n3tw-fp-columns { grid-template-columns: minmax(0, 1fr); }
}
