/* Pigeonbasics.com — new site styles (from homepage mockup C2b) */

/* Fonts are served from our own server (SIL Open Font License, see fonts/) */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/open-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Open Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/open-sans-latin-700-normal.woff2') format('woff2'); }
:root {
	--navy: #0E2748;
	--brand: #1B3A6B;
	--brand-lt: #5788BD;
	--blue: #1B5AA6;
	--sky: #C7DCF3;
	--pale: #DCEAF8;
	--wash: #EEF4FB;
	--rule: #C2D3E8;
	--muted: #3F5878;
	--input: #5F7896;
	--white: #FFFFFF;
	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body: Barlow, Arial, sans-serif;
	--mark: 'Open Sans', Tahoma, Verdana, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.5; color: var(--navy); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: #003366; text-decoration: underline; }
/* Links inside running text are underlined so they don't rely on colour alone */
p a, li a, .prose a, td a { text-decoration: underline; text-underline-offset: 2px; }
.prose .ad a { text-decoration: none; }
:focus-visible { outline: 3px solid #F2B705; outline-offset: 2px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }

/* Header */
.masthead { background: var(--white); }
.site-header { padding-top: 20px; padding-bottom: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.wordmark { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mark); color: var(--brand); }
.wordmark:hover { text-decoration: none; }
.wordmark-name { font-size: 34px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; text-shadow: 2px 2px 3px rgba(14, 39, 72, 0.35); }
.wordmark-name .lt { color: var(--brand-lt); }
.wordmark-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-weight: 600; }
.site-nav > a { color: var(--navy); padding: 12px 0; }
.site-nav > a.nav-forum { background: var(--navy); color: var(--white); padding: 12px 20px; }
.search { display: flex; }
.search input { height: 44px; width: 200px; max-width: 100%; min-width: 0; border: 1px solid var(--input); border-right: 0; padding: 0 12px; font: inherit; font-size: 16px; color: var(--navy); background: var(--white); }
.search button, .btn { height: 44px; padding: 0 16px; background: var(--blue); color: var(--white); border: 0; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.btn { display: inline-flex; align-items: center; height: auto; padding: 14px 24px; font-size: 17px; }
.btn:hover { background: var(--brand); color: var(--white); text-decoration: none; }

/* Hero */
.hero { background: var(--navy); }
.hero .wrap { padding-top: 56px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 40px; }
.hero-top { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.hero h1 { flex: 999 1 480px; min-width: 0; margin: 0; font-family: var(--display); font-size: clamp(56px, 9vw, 112px); line-height: 0.92; font-weight: 700; text-transform: uppercase; color: var(--white); text-wrap: balance; }
.hero figure { flex: 0 1 380px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hero figcaption { font-size: 13px; color: var(--sky); }
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.path { padding: 28px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; color: var(--navy); background: var(--white); }
.path:hover { text-decoration: none; outline: 3px solid var(--sky); }
.path.p1 { background: var(--blue); color: var(--white); }
.path.p2 { background: var(--sky); }
.path-title { font-family: var(--display); font-size: 38px; line-height: 1; font-weight: 700; text-transform: uppercase; }
.path-text { line-height: 1.45; }

/* Main */
.content { display: flex; flex-direction: column; gap: 48px; padding-top: 48px; padding-bottom: 64px; }
.ad { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #4A5E78; }
.ad ins { width: 100%; max-width: 728px; }
.ad-inarticle ins { max-width: none; text-align: center; }
/* Reserve the slot's height so the page doesn't jump when the ad loads */
.ad-leaderboard ins.adsbygoogle { min-height: 90px; }
.ad-list ins.adsbygoogle, .ad-inarticle ins.adsbygoogle { min-height: 250px; }
@media (max-width: 600px) { .ad-leaderboard ins.adsbygoogle { min-height: 100px; } }
/* If Google has no ad to show, hide the whole slot */
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }

.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 32px; }
.list { display: flex; flex-direction: column; gap: 4px; }
.h2 { margin: 0; font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 700; text-transform: uppercase; color: var(--navy); }
.list .h2 { margin-bottom: 8px; padding-bottom: 10px; border-bottom: 4px solid var(--navy); }
.item { display: flex; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); color: var(--navy); }
.item:hover { text-decoration: none; }
.item:hover .item-title { text-decoration: underline; }
.item-date { flex: 0 0 76px; white-space: nowrap; font-family: var(--display); font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--blue); text-transform: uppercase; }
.item-title { font-weight: 600; line-height: 1.3; }
.item.stack { flex-direction: column; gap: 3px; }
.item-meta { font-size: 14px; color: var(--muted); }
.more { padding: 12px 0; font-weight: 700; font-size: 16px; }
.empty { padding: 12px 0; color: var(--muted); }

/* Pale band (full-bleed) */
.band { background: var(--pale); box-shadow: 0 0 0 100vmax var(--pale); clip-path: inset(0 -100vmax); padding: 48px 0; display: flex; flex-direction: column; gap: 48px; }
.topics { display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: var(--navy); color: var(--white); padding: 12px 18px; font-family: var(--display); font-size: 22px; line-height: 1.1; font-weight: 600; text-transform: uppercase; }
.chip:hover { background: var(--blue); color: var(--white); text-decoration: none; }

.panel { background: var(--white); border: 2px solid var(--navy); padding: 32px; display: flex; flex-wrap: wrap; gap: 28px 48px; }
.panel-intro { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel .h2 { font-size: 44px; }
.panel p { margin: 0; color: var(--muted); }

.calc { align-items: flex-end; }
.calc form { flex: 2 1 480px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; }
.calc label { flex: 1 1 110px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.calc label.wide { flex-basis: 150px; }
.calc input { height: 48px; border: 1px solid var(--input); padding: 0 12px; font: inherit; font-size: 18px; color: var(--navy); min-width: 0; }
.calc button { height: 48px; padding: 0 28px; font-size: 17px; }
.calc output { flex: 1 1 100%; font-family: var(--display); font-size: 30px; font-weight: 700; color: var(--blue); min-height: 1.2em; }

.more-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.more-tools .h2 { font-size: 28px; }
.more-tools div { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 600; }
.more-tools div a { padding: 10px 0; }

.facebook { align-items: center; }
.facebook .btn { align-self: flex-start; }
.fb-frame { flex: 1 1 340px; min-width: 0; max-width: 500px; }
.fb-frame iframe { display: block; width: 100%; height: 400px; border: 0; background: var(--wash); }

/* Page heading band (inner pages) */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-head { background: var(--navy); color: var(--white); }
.page-head .wrap { padding-top: 40px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { margin: 0; font-family: var(--display); font-size: clamp(44px, 6vw, 76px); line-height: 0.95; font-weight: 700; text-transform: uppercase; max-width: 900px; text-wrap: balance; }
.page-head .article-title { font-size: clamp(38px, 5.2vw, 68px); }
.lede { margin: 0; color: var(--sky); max-width: 760px; }
.byline a { color: var(--white); font-weight: 600; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; font-weight: 600; color: var(--sky); }
.crumbs a { color: var(--sky); padding: 4px 0; }
.crumbs span { padding: 4px 0; }
.crumbs [aria-current] { color: var(--white); }

/* Two-column pages */
.with-side { flex-direction: row; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.main-col { flex: 999 1 560px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 32px; }
.side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.h3 { margin: 0 0 4px; padding-bottom: 10px; border-bottom: 4px solid var(--navy); font-family: var(--display); font-size: 26px; line-height: 1; font-weight: 700; text-transform: uppercase; color: var(--navy); }
.h3 a { color: inherit; }
.chips.small { gap: 8px; padding-top: 10px; }
.chips.small .chip { font-size: 18px; padding: 10px 14px; }

/* Articles index */
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.topic-card { background: var(--pale); color: var(--navy); padding: 24px; display: flex; flex-direction: column; gap: 8px; min-height: 170px; }
.topic-card:hover { background: var(--sky); text-decoration: none; }
.topic-card-name { font-family: var(--display); font-size: 30px; line-height: 1; font-weight: 700; text-transform: uppercase; }
.topic-card-blurb { font-size: 16px; line-height: 1.4; color: var(--muted); flex: 1; }
.topic-card-count { font-size: 14px; font-weight: 700; color: var(--blue); }
.item-count { margin-left: auto; font-weight: 700; color: var(--blue); }
.more-writers summary { cursor: pointer; list-style: none; color: var(--blue); }
.more-writers summary::-webkit-details-marker { display: none; }
.more-writers[open] summary { display: none; }
.more-writers .item { display: flex; }

/* Article text (old articles use <br> as well as <p>, and inline font tags) */
.prose { font-size: 19px; line-height: 1.65; color: #1B2F4B; gap: 0; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1em; }
.prose font { font-size: inherit !important; font-family: inherit !important; }
.prose img { display: inline-block; max-width: 100%; height: auto; margin: 8px 0; }
.prose table { max-width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose td, .prose th { padding: 4px 8px; vertical-align: top; }
.prose h2, .prose h3 { font-family: var(--display); text-transform: uppercase; line-height: 1; margin: 1em 0 .4em; }
.prose b, .prose strong { color: var(--navy); }
.prose .ad { margin: 24px 0; }
.discuss { margin-top: 32px; padding: 24px; background: var(--pale); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.discuss p { margin: 0; flex: 1 1 260px; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--navy); }
.btn.dark { background: var(--navy); }
.btn.dark:hover { background: var(--blue); }

/* Tools */
.tool { align-items: flex-start; }
.tool form { flex: 2 1 520px; }
.units { flex: 1 1 100%; border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.units label, .calc .units label { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 8px; font-size: 16px; }
.units input { height: auto; }
.calc label[hidden] { display: none; }
.from-times { flex: 1 1 100%; font-size: 16px; }
.from-times summary { cursor: pointer; color: var(--blue); font-weight: 600; padding: 6px 0; }
.from-times .row { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 10px; }
.from-times .hint { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 16px; padding-top: 16px; }

/* Lost & found, contact */
.union-table { overflow-x: auto; margin: 8px 0 16px; }
.union-table table { display: table; width: 100%; font-size: 16px; }
.union-table th, .union-table td { border-bottom: 1px solid var(--rule); padding: 10px 12px 10px 0; text-align: left; }
.union-table th { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.checklist { margin: 12px 0 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.prose h3 { font-size: 24px; margin-top: 1.2em; }
.contact-form { display: flex; flex-direction: column; gap: 18px; max-width: 620px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.contact-form input, .contact-form textarea { font: inherit; font-size: 17px; font-weight: 400; color: var(--navy); border: 1px solid var(--input); padding: 10px 12px; }
.contact-form input { height: 48px; }
.contact-form .short input { max-width: 120px; }
.contact-form [aria-invalid="true"] { border-color: #B3261E; outline: 1px solid #B3261E; }
.contact-form .btn { align-self: flex-start; }
.field-error, .form-error { color: #B3261E; font-weight: 600; font-size: 15px; }
.form-error { margin: 0; }
.hp { position: absolute; left: -9999px; }

/* Sponsors (ads from the forum's AdminCP) */
.sponsors { display: flex; flex-direction: column; gap: 8px; }
.sponsor-list { display: flex; flex-wrap: wrap; gap: 12px; }
.sponsor { display: block; line-height: 0; }
.sponsor img { max-width: 100%; height: auto; border: 1px solid var(--rule); }
.sponsor:hover img { border-color: var(--blue); }
.sponsor-html { line-height: normal; max-width: 100%; overflow: hidden; }
.sponsors-side .sponsor-list { gap: 8px; }
.sponsors-side .sponsor img { max-height: 120px; }
.sponsors-strip { align-items: center; }
.sponsors-strip .sponsor-list { justify-content: center; align-items: center; }
.sponsors-strip .sponsor img { max-height: 90px; width: auto; }

/* Search page */
.search.big { max-width: 720px; }
.search.big input { flex: 1; width: auto; height: 52px; font-size: 18px; border-color: var(--sky); }
.search.big button { height: 52px; padding: 0 24px; }
.search.big.light input { border-color: var(--input); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { color: var(--sky); padding: 8px 14px; font-weight: 600; border: 1px solid rgba(199,220,243,.4); }
.tabs a:hover { color: var(--white); text-decoration: none; border-color: var(--sky); }
.tabs a[aria-current] { background: var(--white); color: var(--navy); border-color: var(--white); }
.h3 .count { font-family: var(--body); font-size: 16px; font-weight: 700; color: var(--blue); vertical-align: middle; margin-left: 6px; }

/* News */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; color: var(--muted); }
.side-note { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.archive-note { background: var(--wash); border-left: 4px solid var(--brand-lt); padding: 10px 14px; font-size: 16px; color: var(--muted); }

/* Footer */
.site-footer { background: var(--navy); color: var(--sky); font-size: 15px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--white); padding: 4px 0; }

@media (max-width: 600px) {
	.site-header { justify-content: center; }
	.wordmark { align-items: center; }
	.site-nav { justify-content: center; gap: 4px 20px; }
	.search { flex: 1 1 100%; }
	.search input { flex: 1; width: auto; }
	.panel { padding: 24px; }
	.panel .h2 { font-size: 36px; }
	.path-title { font-size: 32px; }
}
