/*
Theme Name: OilfieldGuide
Theme URI: https://oilfieldguide.com/
Description: Custom theme for OilfieldGuide.com – America's Guide to the Oilfield. "Field Manual" design: paper, ink and oxide red, slab-serif headings. Built for the OilfieldGuide Core plugin. Fast, accessible and readable on phones in the field.
Version: 0.2.7
Requires at least: 6.3
Requires PHP: 8.0
Author: OilfieldGuide.com
License: GPL-2.0-or-later
Text Domain: oilfieldguide
*/

/* Fonts are bundled (SIL Open Font License, see assets/fonts). No calls to outside font services. */
@font-face { font-family: "Zilla Slab"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Zilla Slab"; font-weight: 700; font-style: normal; font-display: swap; src: url("assets/fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-style: normal; font-display: swap; src: url("assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
	--ink: #1b1d1f;
	--ink-2: #3b3a36;
	--paper: #f4efe4;
	--paper-2: #ebe3d2;
	--card: #fffdf8;
	--rule: #cbbfa6;
	--oxide: #a33a1f;
	--oxide-dark: #7e2a14;
	--oxide-light: #e2734f;
	--brown: #5a4a3a;
	--green: #2d6a43;
	--text: #1b1d1f;
	--muted: #4f4b44;
	/* legacy names used by plugin templates */
	--navy: var(--ink);
	--navy-2: var(--ink-2);
	--amber: var(--oxide);
	--amber-dark: var(--oxide-dark);
	--sand: var(--paper-2);
	--line: var(--rule);
	--white: #fff;
	--radius: 0;
	--head: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
	--body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
	--wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.6 var(--body); color: var(--text); background: var(--paper); }
img, svg { max-width: 100%; height: auto; }
a { color: var(--oxide-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1.08; color: var(--ink); margin: 1.4em 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-top: .2em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3, .ofg-h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--oxide); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; background: var(--card); padding: 8px 12px; }

.ofg-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.ofg-main { padding: 24px 0 56px; }
.ofg-lead { font-size: 1.15rem; color: var(--ink-2); max-width: 760px; }
.ofg-fine { font-size: .85rem; color: var(--muted); }
.ofg-label { font: 600 .78rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brown); }
.ofg-section { margin: 52px 0; }
.ofg-section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); margin-bottom: 18px; }
.ofg-section__head h2 { margin: 0 0 8px; }
.ofg-section__head a { font-weight: 600; }

/* Header */
.site-header { background: var(--paper); color: var(--ink); position: sticky; top: 0; z-index: 50; border-bottom: 2px solid var(--ink); }
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.site-logo { color: var(--ink); display: block; width: 190px; line-height: 0; padding: 8px 0; }
.site-logo svg { width: 100%; height: auto; }
.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px 4px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: var(--ink); text-decoration: none; font: 600 .98rem/1.2 var(--body); padding: 10px 8px; display: block; }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--oxide-dark); text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav .menu-cta > a { background: var(--oxide); color: var(--paper); margin-left: 8px; padding: 10px 16px; }
.site-nav .menu-cta > a:hover { background: var(--oxide-dark); color: var(--paper); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: transparent; border: 2px solid var(--ink); color: var(--ink); padding: 8px 14px; min-height: 44px; font: 600 1rem var(--body); cursor: pointer; }
@media (max-width: 1080px) {
	.nav-toggle { display: block; }
	.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 2px solid var(--ink); }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; align-items: stretch; padding: 8px 16px 16px; }
	.site-nav a { padding: 13px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--rule); }
	.site-nav .menu-cta > a { margin: 12px 0 0; text-align: center; }
	.site-logo { width: 150px; }
}

/* Buttons */
.ofg-btn { display: inline-block; background: var(--oxide); color: var(--paper); border: 0; border-radius: 0; padding: 12px 20px; min-height: 44px; font: 600 1rem/1.25 var(--body); text-decoration: none; cursor: pointer; }
.ofg-btn:hover { background: var(--oxide-dark); color: var(--paper); }
.ofg-btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.ofg-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.ofg-btn--ink { background: var(--ink); }
.ofg-btn--ink:hover { background: #000; }
.ofg-btn--lg { padding: 16px 28px; font-size: 1.08rem; }
.ofg-btn--block { display: block; text-align: center; }

/* Home hero: Field Manual */
.ofg-hero { position: relative; overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--paper); }
.ofg-hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #d9cfba; stroke-width: 1.2; pointer-events: none; }
.ofg-hero__inner { position: relative; display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding: 56px 16px 64px; }
.ofg-hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.ofg-hero h1 { margin: 0; font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.02; }
.ofg-hero__text > p { margin: 0; font-size: 1.2rem; max-width: 600px; color: var(--ink-2); }
.ofg-hero__fig { flex: 1 1 420px; align-self: center; margin: 0; display: flex; flex-direction: column; border: 2px solid var(--ink); background: var(--paper-2); }
.ofg-hero__jacks { position: relative; color: var(--ink); line-height: 0; margin-top: -8px; }
.ofg-hero__jacks svg { display: block; width: 100%; height: clamp(90px, 13vw, 170px); }
.ofg-hero:not(.ofg-hero--photo) .ofg-hero__inner { padding-bottom: 28px; }
.ofg-hero:not(.ofg-hero--photo) { border-bottom: 0; }
.ofg-hero__art { flex-grow: 1; display: flex; align-items: flex-end; padding: 36px 24px 0; color: var(--ink); background: #e4dccb; }
.ofg-hero__art svg { width: 100%; display: block; }
.ofg-hero__photo { flex-grow: 1; background: #e4dccb center/cover no-repeat; min-height: 260px; }
.ofg-hero__fig figcaption { border-top: 2px solid var(--ink); padding: 8px 12px; font: 400 .78rem/1.4 var(--mono); color: var(--ink-2); background: var(--paper); }
.ofg-hero__fig figcaption a { color: inherit; }

.ofg-search { display: flex; flex-wrap: wrap; max-width: 660px; background: var(--card); border: 2px solid var(--ink); }
.ofg-search input { flex: 1 1 240px; min-width: 0; border: 0; font: 400 1.08rem var(--body); padding: 0 16px; height: 54px; color: var(--text); background: transparent; }
.ofg-search input:focus { outline: none; }
.ofg-search:focus-within { outline: 3px solid var(--oxide); outline-offset: 2px; }
.ofg-search .ofg-btn { height: 54px; padding: 0 26px; background: var(--ink); }
.ofg-search .ofg-btn:hover { background: #000; }
.ofg-search-hints { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* Almanac table of regions */
.ofg-almanac { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 1rem; }
.ofg-almanac th { text-align: left; font: 600 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brown); padding: 12px 8px 8px; }
.ofg-almanac th:first-child, .ofg-almanac td:first-child { padding-left: 0; }
.ofg-almanac td { padding: 12px 8px; border-top: 1px solid var(--rule); vertical-align: baseline; color: var(--ink-2); }
.ofg-almanac tr:last-child td { border-bottom: 1px solid var(--rule); }
.ofg-almanac td a { font: 700 1.25rem/1.2 var(--head); color: var(--ink); text-decoration: none; }
.ofg-almanac td a:hover { color: var(--oxide-dark); text-decoration: underline; }
@media (max-width: 640px) { .ofg-almanac { min-width: 0; } .ofg-almanac th:nth-child(3), .ofg-almanac td:nth-child(3) { display: none; } .ofg-hero__inner { padding-top: 36px; padding-bottom: 40px; gap: 28px; } .ofg-almanac .ofg-mono { white-space: normal; } }
.ofg-almanac .ofg-mono { font-family: var(--mono); font-size: .92rem; color: var(--ink); }
@media (min-width: 641px) { .ofg-almanac .ofg-mono { white-space: nowrap; } }

/* Cards, grids */
.ofg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ofg-card { background: var(--card); border: 1px solid var(--rule); padding: 16px 18px; }
.ofg-card__title { margin: 0 0 4px; font-size: 1.3rem; }
.ofg-card__title a { text-decoration: none; color: var(--ink); }
.ofg-card__title a:hover { color: var(--oxide-dark); text-decoration: underline; }
.ofg-card__meta { color: var(--muted); font-size: .92rem; margin: 0 0 8px; }
.ofg-card__text { font-size: .95rem; margin: 0 0 8px; }
.ofg-card__phone { margin: 0; font-weight: 600; font-family: var(--mono); }
.ofg-field-card { padding: 0; overflow: hidden; display: block; color: var(--ink); }
.ofg-field-card:hover { border-color: var(--ink); }
.ofg-field-card__img { aspect-ratio: 16/9; background: var(--paper-2) center/cover; display: block; border-bottom: 1px solid var(--rule); }
.ofg-field-card__img--empty { aspect-ratio: auto; height: 6px; background: var(--ink); border: 0; }
.ofg-field-card__body { display: block; padding: 14px 16px; }
.ofg-field-card__type { font: 600 .74rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--oxide-dark); }

.ofg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.ofg-tag { display: inline-block; background: var(--paper-2); border: 1px solid var(--rule); color: var(--ink); font-size: .82rem; padding: 2px 9px; text-decoration: none; }
.ofg-tag--pay { background: #e3eee6; border-color: #b9d4c1; color: var(--green); font-weight: 600; }
.ofg-tag--muted { color: var(--muted); }
.ofg-badge { display: inline-block; font: 600 .72rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 2px 8px; background: var(--paper-2); color: var(--ink); vertical-align: middle; border: 1px solid var(--rule); }
.ofg-badge--verified { background: var(--green); border-color: var(--green); color: var(--white); }
.ofg-badge--muted { color: var(--muted); }

/* Category grid: ruled cells, like a printed index */
.ofg-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; margin: 18px 0; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.ofg-cat { display: block; padding: 14px 16px; min-height: 44px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); font-weight: 600; background: transparent; }
.ofg-cat:hover { background: var(--card); color: var(--oxide-dark); text-decoration: underline; }

/* Home: services + record */
.ofg-home-split { display: flex; flex-wrap: wrap; gap: 40px; }
.ofg-home-split > :first-child { flex: 999 1 560px; min-width: 0; }
.ofg-record { flex: 1 1 320px; align-self: start; background: var(--ink); color: var(--paper); padding: 24px; }
.ofg-record h2 { color: var(--paper); margin: 0 0 6px; font-size: 1.6rem; }
.ofg-record ol { list-style: none; margin: 0 0 12px; padding: 0; }
.ofg-record li { display: flex; gap: 14px; border-top: 1px solid #4a4a46; padding: 12px 0; }
.ofg-record b { font: 600 1rem/1.5 var(--mono); color: var(--oxide-light); flex: 0 0 48px; }
.ofg-record a { color: var(--paper); font-weight: 600; }

/* Market strip */
.ofg-strip { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); background: var(--paper-2); }
.ofg-strip .ofg-wrap { padding-top: 18px; padding-bottom: 18px; }
.ofg-strip .ofg-stats { margin: 0; }
.ofg-strip .ofg-stats--links { background: none; border: 0; padding: 0; margin: 0; }

/* Stats */
.ofg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; margin: 16px 0; border-left: 1px solid var(--rule); }
.ofg-stat { padding: 6px 16px; display: flex; flex-direction: column; border-right: 1px solid var(--rule); }
.ofg-stat__label { font: 600 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--brown); }
.ofg-stat__value { font: 600 1.9rem/1.15 var(--mono); color: var(--ink); }
.ofg-stat__meta { font-size: .8rem; color: var(--muted); }
.ofg-stats__src { grid-column: 1 / -1; margin: 8px 0 0; padding-left: 16px; }
.ofg-stats--links { display: block; background: var(--paper-2); padding: 12px 16px; border: 1px solid var(--rule); }

/* Map */
.ofg-map-figure { margin: 0 0 24px; }
.ofg-map { width: 100%; background: var(--paper-2); border: 2px solid var(--ink); position: relative; display: flex; align-items: center; justify-content: center; }
.ofg-map-caption { font: .8rem/1.4 var(--mono); color: var(--muted); margin-top: 6px; }
.ofg-map-legend { background: rgba(255, 253, 248, .95); padding: 8px 10px; border: 1px solid var(--ink); font: 12px/1.5 var(--body); }
.ofg-map-legend span { display: block; }
.ofg-map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* Oilfield page */
.ofg-field-hero { position: relative; color: var(--paper); background: var(--ink) center/cover; min-height: 300px; display: flex; align-items: flex-end; margin-bottom: 0; border-bottom: 2px solid var(--ink); }
.ofg-field-hero::before { content: ""; position: absolute; inset: 0; background: rgba(27, 29, 31, .55); }
.ofg-field-hero:not([style*="background-image"])::before { background: none; }
.ofg-field-hero:not([style*="background-image"]) { min-height: 210px; }
.ofg-field-hero .ofg-crumbs li { color: #e6dfd0; }
.ofg-field-hero__inner { position: relative; width: 100%; padding: 36px 16px 24px; }
.ofg-field-hero h1 { color: var(--paper); margin: 0; }
.ofg-field-hero .ofg-crumbs a, .ofg-field-hero .ofg-crumbs { color: #e6dfd0; }
.ofg-field-hero__type { color: var(--oxide-light); font: 600 .8rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.ofg-field-hero__credit { position: absolute; right: 10px; bottom: 6px; z-index: 1; font: .72rem var(--mono); color: #d8d0bf; }
.ofg-field-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
@media (max-width: 900px) { .ofg-field-layout { grid-template-columns: 1fr; } }
.ofg-toc { position: sticky; top: 100px; }
.ofg-toc ol { padding-left: 18px; margin: 0; font-size: .95rem; }
.ofg-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0; margin: 0 0 24px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); background: var(--card); }
.ofg-facts > div { padding: 10px 14px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.ofg-facts dt { font: 600 .72rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--brown); }
.ofg-facts dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.ofg-review-note { background: #f7ead0; border: 1px solid #d9b77a; padding: 10px 14px; font-size: .92rem; }
.ofg-timeline { list-style: none; padding: 0; margin: 0 0 24px; }
.ofg-timeline li { padding: 10px 0; border-top: 1px solid var(--rule); }
.ofg-timeline li:last-child { border-bottom: 1px solid var(--rule); }
.ofg-sources { font-size: .92rem; }
.ofg-contribute-box { background: var(--paper-2); border: 2px solid var(--ink); padding: 20px; margin-top: 32px; }
.ofg-contribute-box h2 { margin-top: 0; }
.ofg-columns { columns: 3 220px; padding-left: 18px; }

/* Forms */
.ofg-form { max-width: 760px; }
.ofg-form fieldset { border: 1px solid var(--rule); background: var(--card); padding: 14px 18px 6px; margin: 0 0 16px; }
.ofg-form legend { font: 700 1.3rem var(--head); color: var(--ink); padding: 0 6px; }
.ofg-form label { display: block; font-weight: 600; margin: 0 0 14px; }
.ofg-form input[type=text], .ofg-form input[type=email], .ofg-form input[type=tel], .ofg-form input[type=url], .ofg-form input[type=number], .ofg-form input[type=search], .ofg-form select, .ofg-form textarea,
.ofg-filters input, .ofg-filters select {
	display: block; width: 100%; margin-top: 4px; font: 400 1rem var(--body); padding: 10px 12px; border: 1px solid #8f8576; border-radius: 0; background: var(--card); color: var(--text); min-height: 44px;
}
.ofg-form select[multiple] { min-height: 140px; }
.ofg-form .ofg-check, .ofg-filters .ofg-check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.ofg-check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--oxide); }
.ofg-form .hint { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); margin-top: 3px; }
.ofg-form .req { color: var(--oxide-dark); }
.ofg-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.ofg-cat-picker details { border-bottom: 1px solid var(--rule); padding: 8px 0; }
.ofg-cat-picker summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.ofg-cat-picker .ofg-check { margin: 6px 0 6px 6px; }
.ofg-more { margin: 0 0 16px; }
.ofg-more summary { cursor: pointer; font-weight: 600; color: var(--oxide-dark); margin-bottom: 10px; }
.ofg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ofg-alert { padding: 12px 16px; margin: 0 0 16px; background: var(--paper-2); border: 1px solid var(--rule); }
.ofg-alert ul { margin: 0; padding-left: 18px; }
.ofg-alert--error { background: #f8e3dc; border-color: #d99a86; color: #6e1f0c; }
.ofg-alert--ok { background: #e3eee6; border-color: #b9d4c1; color: #1d4a2c; font-weight: 600; }
.ofg-site-notice { background: var(--green); color: var(--white); padding: 12px 0; font-weight: 600; }
.ofg-site-notice a { color: var(--white); }
.ofg-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 14px; align-items: end; background: var(--card); border: 1px solid var(--rule); padding: 14px; margin: 0 0 16px; }
.ofg-filters label { font-weight: 600; font-size: .9rem; }
.ofg-count { color: var(--muted); font-weight: 600; }
.ofg-empty { background: var(--paper-2); border: 1px dashed #a89c86; padding: 18px; }
.ofg-subscribe { display: flex; flex-wrap: wrap; gap: 8px; max-width: 520px; }
.ofg-subscribe input[type=email] { flex: 1 1 220px; padding: 11px 12px; border: 1px solid #8f8576; border-radius: 0; font-size: 1rem; min-height: 44px; background: var(--card); }
.ofg-subscribe .ofg-fine { flex-basis: 100%; margin: 0; }

/* Profile / job */
.ofg-profile__head { display: flex; gap: 18px; align-items: center; }
.ofg-profile__head h1 { margin: 0; }
.ofg-profile__logo img { width: 88px; height: 88px; object-fit: contain; background: var(--white); border: 1px solid var(--rule); }
.ofg-profile__loc { color: var(--muted); margin: 2px 0 6px; font-size: 1.1rem; }
.ofg-profile__grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; margin-top: 18px; }
.ofg-profile__side { align-self: start; position: sticky; top: 100px; }
@media (max-width: 860px) { .ofg-profile__grid { grid-template-columns: 1fr; } .ofg-profile__side { position: static; order: -1; } }
.ofg-list { padding-left: 18px; }
.ofg-job-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.ofg-table-wrap { overflow-x: auto; }
.ofg-table { width: 100%; border-collapse: collapse; background: var(--card); font-size: .95rem; }
.ofg-table th, .ofg-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ofg-table th { background: transparent; color: var(--brown); border-bottom: 2px solid var(--ink); font: 600 .75rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; }

/* Breadcrumbs */
.ofg-crumbs ol { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .88rem; color: var(--muted); }
.ofg-crumbs li + li::before { content: "›"; margin-right: 4px; }

/* Home bands */
.ofg-band { background: var(--ink); color: var(--paper); padding: 48px 0; }
.ofg-band h2 { color: var(--paper); margin-top: 0; }
.ofg-band p { color: #ddd5c4; }
.ofg-band a:not(.ofg-btn) { color: var(--paper); }
.ofg-band .ofg-btn--ghost { color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
.ofg-band .ofg-btn--ghost:hover { background: var(--paper); color: var(--ink); }
.ofg-band--sand { background: var(--paper-2); color: var(--text); border-top: 2px solid var(--ink); }
.ofg-band--sand h2 { color: var(--ink); }
.ofg-band--sand p { color: var(--ink-2); }
.ofg-band--sand a:not(.ofg-btn) { color: var(--oxide-dark); }
.ofg-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; align-items: center; }
.ofg-cta { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.ofg-cta > div { flex: 1 1 520px; }
.ofg-cta h2 { margin: 0 0 6px; }
.ofg-cta p { margin: 0; font-size: 1.1rem; }
.ofg-mini-list { list-style: none; padding: 0; margin: 0; }
.ofg-mini-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ofg-mini-list a { font-weight: 600; }

/* Articles */
.entry-content { max-width: 760px; }
.wp-caption-text, figcaption { font-size: .85rem; color: var(--muted); }
.ofg-post-list { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Footer */
.site-footer { background: var(--ink); color: #d8d0bf; padding: 44px 0 24px; font-size: .95rem; }
.site-footer a { color: #f4efe4; text-decoration: none; }
.site-footer a:hover { color: var(--oxide-light); text-decoration: underline; }
.site-footer h2 { color: var(--paper); font-size: 1.25rem; margin: 0 0 10px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 6px; }
.site-footer__bottom { border-top: 1px solid #4a4a46; margin-top: 28px; padding-top: 16px; font-size: .85rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.site-footer .site-logo { width: 200px; color: var(--paper); margin-bottom: 10px; }
.site-footer .ofg-logo-accent { fill: var(--oxide-light); }
.site-footer .ofg-subscribe input[type=email] { border-color: #6b665d; }
.site-footer .ofg-fine { color: #c9c1b0; }

/* Price ticker (under the header) */
.ofg-ticker { background: var(--paper-2); border-bottom: 1px solid var(--ink); }
.ofg-ticker__bar { display: flex; align-items: center; gap: 14px; min-height: 46px; }
.ofg-ticker__label { flex: 0 0 auto; font: 600 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 6px 8px; }
.ofg-ticker__tape { flex: 1 1 auto; min-width: 0; overflow: hidden; --tv-widget-background-color: transparent; }
.ofg-ticker__tape { position: relative; }
.ofg-ticker__live { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.ofg-ticker.is-live .ofg-ticker__live { position: static; opacity: 1; pointer-events: auto; }
.ofg-ticker.is-live .ofg-ticker__fallback { display: none; }
.ofg-ticker__live .tradingview-widget-copyright { font: .6rem/1 var(--mono); text-align: right; margin: -2px 0 3px; }
.ofg-ticker__live .tradingview-widget-copyright a { color: var(--muted); }
.ofg-ticker__fallback { display: flex; flex-wrap: wrap; gap: 2px 22px; align-items: baseline; font: .9rem/1.5 var(--mono); padding: 8px 0; }
.ofg-ticker__fallback b { font-weight: 600; color: var(--brown); text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; }
.ofg-ticker__fallback small, .ofg-ticker__src { color: var(--muted); font-size: .75rem; }
.ofg-px { white-space: nowrap; }
.ofg-chg { font: 600 .8em/1 var(--mono); color: var(--muted); white-space: nowrap; }
.ofg-chg--up { color: var(--green); }
.ofg-chg--down { color: var(--oxide); }
.ofg-stat__value .ofg-chg { font-size: .5em; vertical-align: middle; }
.ofg-ticker__more { flex: 0 0 auto; font: 600 .75rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 640px) { .ofg-ticker__more { display: none; } .ofg-ticker__bar { gap: 10px; } .ofg-ticker__fallback { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }

/* Industry headlines */
.ofg-news-split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.ofg-news-split--solo { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 860px) { .ofg-news-split { grid-template-columns: minmax(0, 1fr); } }
.ofg-news-split .ofg-label, .ofg-news-page .ofg-label { margin: 14px 0 4px; }
.ofg-wire { list-style: none; margin: 0; padding: 0; }
.ofg-wire li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.ofg-wire__date { font: .82rem/1.4 var(--mono); color: var(--oxide-dark); white-space: nowrap; }
.ofg-wire__title { font-weight: 600; line-height: 1.35; }
.ofg-wire__src { font: .72rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; white-space: nowrap; }
.ofg-wire__credit { margin: 10px 0 0; }
.ofg-news-split--solo .ofg-wire { columns: 2 360px; column-gap: 36px; }
.ofg-news-split--solo .ofg-wire li { break-inside: avoid; }
@media (max-width: 640px) { .ofg-wire li { grid-template-columns: 4.2em minmax(0, 1fr); } .ofg-wire__src { grid-column: 2; text-align: left; } }
.ofg-news-page { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 12px; }
.ofg-news-page--wire-only { grid-template-columns: minmax(0, 1fr); }
.ofg-news-page--wire-only .ofg-wire { columns: 2 380px; column-gap: 40px; }
.ofg-news-page--wire-only .ofg-wire li { break-inside: avoid; }
.ofg-news-page .ofg-post-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 900px) { .ofg-news-page { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header, .site-footer, .ofg-ticker, .ofg-contribute-box, .ofg-map-figure { display: none; } body { background: #fff; } }

/* Fixes */
[hidden] { display: none !important; }
.ofg-field-layout section { margin-bottom: 36px; }

/* Page photo (About, Contribute, Contact). */
.ofg-page-photo { margin: 0 0 28px; border: 2px solid var(--ink); background: var(--paper); }
.ofg-page-photo img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: cover; }
.ofg-page-photo figcaption { border-top: 2px solid var(--ink); padding: 8px 12px; font: 400 .78rem/1.4 var(--mono); color: var(--ink-2); }
.ofg-page-photo figcaption a { color: inherit; }
.ofg-intexas { padding: 10px 14px; border-left: 4px solid var(--oxide); background: var(--paper-2); }
