/*
Theme Name: The Wayland Post
Description: Custom newspaper theme for The Wayland Post, Wayland MA
Version: 1.5.0
Author: Dave Watkins
Text Domain: wayland-post
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    color: #1a1a1a;
    background: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.12s ease; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* Sans-serif utility */
.twp-sans {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== LAYOUT CONTAINER ===== */
.twp-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== UTILITY BAR ===== */
.twp-topbar {
    background: #1a1a1a;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.twp-topbar .twp-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 6px;
    padding-bottom: 6px;
}

.twp-topbar a { color: #eee; }
.twp-topbar a:hover { color: #fff; }

.twp-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.twp-topbar-right .twp-subscribe-btn {
    background: #2980b9;
    color: #fff;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 2px;
}

.twp-topbar-right .twp-subscribe-btn:hover { background: #2471a3; color: #fff; }

.twp-topbar-right .twp-advertise-btn {
    background: transparent;
    color: #eee;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid #666;
    border-radius: 2px;
}

.twp-topbar-right .twp-advertise-btn:hover { background: #333; color: #fff; border-color: #999; }

.twp-topbar-right .twp-donate {
    background: #27ae60;
    color: #fff;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 2px;
}

.twp-topbar-right .twp-donate:hover { background: #219a52; }

.twp-topbar-right .twp-myaccount-btn {
    background: transparent;
    color: #fff;
    padding: 3px 10px;
    font-weight: 700;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid #999;
    border-radius: 2px;
}
.twp-topbar-right .twp-myaccount-btn:hover { background: #333; color: #fff; border-color: #fff; }

.twp-social-icons { display: flex; gap: 10px; align-items: center; }
.twp-social-icons a { color: #999; display: flex; align-items: center; }
.twp-social-icons a:hover { color: #fff; }
.twp-social-icons svg { width: 16px; height: 16px; fill: currentColor; }

/* ===== MASTHEAD ===== */
.twp-masthead {
    text-align: center;
    padding: 10px 0 8px;
    border-bottom: 1px solid #e0e0e0;
}

.twp-logo {
    max-width: 860px;
    width: 100%;
    height: auto;
    display: inline-block;
}

/* ===== PRIMARY NAV (horizontal sub-bar, no dropdowns) ===== */
.twp-nav {
    border-bottom: 3px double #1a1a1a;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.twp-nav > .twp-container > ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.twp-nav > .twp-container > ul > li {
    border-right: 1px solid #e0e0e0;
    position: relative;
}

.twp-nav > .twp-container > ul > li:last-child { border-right: none; }

.twp-nav > .twp-container > ul > li > a {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 10px 18px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #333;
}

.twp-nav > .twp-container > ul > li > a:hover { color: #c0392b; background: #faf9f5; }

/* Active section highlight */
.twp-nav > .twp-container > ul > li.twp-nav-active > a {
    color: #c0392b;
    border-bottom: 2px solid #c0392b;
}

/* Sub-nav bar — click-to-toggle strip below entire nav */
.twp-subnav-bar {
    display: none;
    background: #faf9f5;
    border-top: 1px solid #e0e0e0;
    padding: 0;
}

.twp-subnav-bar.twp-subnav-open {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hide the old per-item subnav divs (walker still emits them; JS moves content to the shared bar) */
.twp-subnav { display: none !important; }

.twp-subnav-bar a {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 8px 16px;
    color: #555;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.twp-subnav-bar a:hover {
    color: #c0392b;
    background: #f0efe8;
}

/* ===== SECTION TITLE ===== */
.twp-section-header {
    padding: 12px 0 0;
}

/* Section headings must read LARGER than any story headline (max 1.08rem)
   and carry the brand accent — the reader's wayfinding layer. */
.twp-section-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c0392b;
    padding-bottom: 8px;
    border-bottom: 2px solid #c0392b;
    margin-bottom: 16px;
}

.twp-section-title a:hover { color: #922b21; }

.twp-section-header { scroll-margin-top: 70px; }

/* ===== SECTION JUMP BAR ===== */
.twp-jumpbar {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 7px 0;
    border-bottom: 2px solid #1a1a1a;
    overflow-x: auto;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.twp-jumpbar-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #1a1a1a;
    margin-right: 12px;
    flex-shrink: 0;
}

.twp-jumpbar a {
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #c0392b;
    padding: 0 10px;
    border-right: 1px solid #ddd;
    white-space: nowrap;
    display: inline-block;
}

.twp-jumpbar a:last-child { border-right: none; }
.twp-jumpbar a:hover { color: #922b21; text-decoration: underline; }

/* ===== VIEW BADGE ===== */
.twp-views {
    display: inline-block;
    color: #4d4d4d;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 400;
}

/* ===== CATEGORY LABEL ===== */
.twp-cat {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #c0392b;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-top: 6px;
}

/* ===== META LINE ===== */
.twp-meta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    color: #4d4d4d;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.twp-meta strong { color: #333; font-weight: 600; }

/* ===== READ MORE ===== */
.twp-more {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    color: #c0392b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-top: 6px;
}

.twp-more:hover { color: #922b21; }

/* ===== SECTION ARCHIVE LINK ===== */
.twp-section-archive-link {
    text-align: right;
    padding: 6px 0 18px;
}

.twp-section-archive-link a {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #c0392b;
}

.twp-section-archive-link a:hover { color: #922b21; text-decoration: underline; }

.twp-re-archive-top { text-align: left; padding: 0 0 10px; }

/* ===== CATEGORY SUB-LABEL (Talk of the Town within Community) ===== */
.twp-cat-sub {
    color: #c0392b;
    font-weight: 800;
    font-style: italic;
}

/* ===== HOMEPAGE TOP SPACING ===== */
.twp-homepage-content {
    padding-top: 16px;
}

/* ===== PUBLIC SAFETY CARDS ===== */
.twp-ps-card {
    padding: 14px 0;
    border-bottom: 1px solid #e8e8e8;
}

.twp-ps-card:first-child { padding-top: 0; }

.twp-ps-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px;
}

.twp-ps-title a:hover { color: #555; }

.twp-ps-card .twp-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.55;
    margin: 4px 0;
}

.twp-ps-card .twp-more {
    margin-top: 4px;
}

/* ===== HERO: LEAD + FIXED-WIDTH TOP READS ===== */
.twp-hero-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 0;
    border-bottom: 1px solid #ddd;
}

/* Left column: lede + secondary row stacked beside fixed-width Top Reads */
.twp-hero-left {
    padding-right: 20px;
    border-right: 1px solid #e0e0e0;
    min-width: 0;
}

/* Lede: text on the left, photo on the right; photo width scales with the
   strength of the image (full variant vs -smallimg vs -noimg). */
.twp-hero-lead {
    display: grid;
    grid-template-columns: 60% 40%;
    gap: 20px;
    align-items: stretch;
}

.twp-hero-lead-noimg { grid-template-columns: 1fr; }

/* Weak / head-shot lede art: roughly a quarter of the row, text beside it */
.twp-hero-lead-smallimg { grid-template-columns: 60% 40%; }

.twp-hero-lead-smallimg .twp-hero-lead-img img {
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.twp-hero-lead-img {
    position: relative;
    min-height: 300px;
}

.twp-hero-lead-img a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.twp-hero-lead-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
}

.twp-hero-lead-text {
    padding: 8px 0 10px;
}

/* Byline rule: the writer's name sits immediately BELOW the headline,
   everywhere a story appears — never above it as a kicker. */
.twp-hero-author {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4d4d4d;
    display: block;
    margin: 2px 0 8px;
}

.twp-hero-split .twp-hero-lead-text h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 4px;
}

.twp-hero-split .twp-hero-lead-text h2 a:hover { color: #444; }

.twp-hero-deck {
    font-size: 0.8rem;
    line-height: 1.45;
    color: #555;
}

/* Top Reads sidebar */
.twp-hero-top-reads {
    padding-left: 20px;
}

.twp-top-reads-header {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #c0392b;
    padding-bottom: 8px;
    border-bottom: 2px solid #c0392b;
    margin-bottom: 6px;
}

.twp-tr-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.twp-tr-item:last-child { border-bottom: none; }

.twp-tr-num {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #9a9a9a;
    line-height: 1;
    flex-shrink: 0;
    width: 22px;
    text-align: center;
}

.twp-tr-content {
    min-width: 0;
}

.twp-tr-content a {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.25;
    display: block;
}

.twp-tr-content a:hover { color: #555; }

.twp-tr-views {
    font-size: 0.7rem;
    color: #4d4d4d;
}

/* ===== SECONDARY STORIES ROW =====
   Three larger cards (not four small ones) so the page steps down
   hero -> secondary -> section stories, largest to smallest. */
.twp-secondary-stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 14px 0 18px;
    border-top: 1px solid #e0e0e0;
}

.twp-globe-story {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.twp-globe-story-img {
    display: block;
    margin-bottom: 8px;
}

.twp-globe-story-img img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.twp-globe-story-text { min-width: 0; }

.twp-globe-story-text h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.22;
    margin: 0 0 4px;
}

.twp-globe-story-text h3 a:hover { color: #555; }

.twp-globe-story-text .twp-excerpt {
    font-size: 0.78rem;
    line-height: 1.4;
    color: #666;
    margin-bottom: 3px;
}

/* ===== HAMBURGER BUTTON ===== */
.twp-hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 14px 10px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.twp-hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: #333;
    transition: all 0.2s;
}
/* Margin rather than flex gap so the three bars stay separate on Safari <14.1
   and Chrome <84, where flex gap is ignored and the icon collapsed into a blob. */
.twp-hamburger span + span { margin-top: 4px; }

.twp-hamburger:hover span { background: #c0392b; }

/* ===== HAMBURGER PANEL ===== */
.twp-hamburger-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 340px;
    height: 100%;
    background: #fff;
    z-index: 1001;
    box-shadow: 4px 0 20px rgba(0,0,0,0.15);
    overflow-y: auto;
}

.twp-hamburger-panel.twp-hamburger-open { display: block; }

.twp-hamburger-panel-inner {
    padding: 20px 24px;
}

.twp-hamburger-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    float: right;
    line-height: 1;
    padding: 0 4px;
}

.twp-hamburger-close:hover { color: #c0392b; }

.twp-hamburger-nav {
    clear: both;
    padding-top: 12px;
}

.twp-hamburger-nav > li {
    border-bottom: 1px solid #e8e8e8;
}

.twp-hamburger-nav > li > a {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 0;
    color: #1a1a1a;
}

.twp-hamburger-nav > li > a:hover { color: #c0392b; }

.twp-hamburger-panel .twp-subnav {
    display: block !important;
    position: static !important;
    padding: 0 0 8px 14px;
    background: transparent;
    border: none;
}

.twp-hamburger-nav .twp-subnav a {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: #666;
    padding: 5px 0;
}

.twp-hamburger-nav .twp-subnav a:hover { color: #c0392b; }

.twp-hamburger-extras {
    padding-top: 20px;
    border-top: 2px solid #1a1a1a;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.twp-hamburger-extras .twp-cta-btn {
    text-align: center;
    padding: 12px;
    font-size: 0.82rem;
}

.twp-cta-btn-outline {
    background: transparent !important;
    color: #c0392b !important;
    border: 2px solid #c0392b;
}

.twp-cta-btn-outline:hover {
    background: #c0392b !important;
    color: #fff !important;
}

/* ===== 3-COL GRID ===== */
.twp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 0;
}

.twp-grid-3 > .twp-story {
    padding: 16px 20px 16px 0;
    border-right: 1px solid #e0e0e0;
}

.twp-grid-3 > .twp-story:nth-child(2) { padding-left: 20px; }
.twp-grid-3 > .twp-story:nth-child(3) { padding-left: 20px; border-right: none; padding-right: 0; }
.twp-grid-3 > .twp-story:nth-child(3n+1):nth-child(n+4) { border-right: 1px solid #e0e0e0; padding-right: 20px; }
.twp-grid-3 > .twp-story:nth-child(3n+2):nth-child(n+4) { padding-left: 20px; }
.twp-grid-3 > .twp-story:nth-child(3n+3):nth-child(n+4) { padding-left: 20px; border-right: none; padding-right: 0; }
.twp-grid-3 > .twp-story:nth-child(n+4) { border-top: 1px solid #e0e0e0; }

/* ===== SECTION PREVIEW (3-column with stories) ===== */
.twp-section-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 3px solid #1a1a1a;
    border-bottom: 2px solid #e0e0e0;
    margin: 20px 0 24px;
    padding: 0;
}
.twp-preview-col {
    padding: 14px 22px;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}
.twp-preview-col:first-child { padding-left: 0; }
.twp-preview-col:last-child { border-right: none; padding-right: 0; }
.twp-preview-col > .twp-story {
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}
.twp-preview-col > .twp-story:last-of-type { border-bottom: none; }
.twp-preview-heading {
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #c41200;
    margin-bottom: 4px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e8e8;
}
.twp-preview-heading a { color: #c41200; text-decoration: none; }
.twp-preview-heading a:hover { text-decoration: underline; }
.twp-preview-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 10px;
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c41200;
    text-decoration: none;
}
.twp-preview-more:hover { text-decoration: underline; }

/* ===== DONATE BAR ===== */
.twp-donate-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: #f8f0e8;
    border: 1px solid #e8d8c8;
    border-radius: 4px;
    padding: 12px 24px;
    margin-bottom: 24px;
}
.twp-donate-bar-text {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.95rem;
    color: #333;
    font-weight: 600;
}
.twp-donate-bar-btn {
    display: inline-block;
    background: #c41200;
    color: #fff;
    font-family: 'Source Sans 3', -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 8px 22px;
    border-radius: 3px;
    text-decoration: none;
    white-space: nowrap;
}
.twp-donate-bar-btn:hover {
    background: #a01000;
    color: #fff;
}

.twp-story h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.22;
    margin: 5px 0 6px;
}

.twp-story h3 a:hover { color: #555; }

.twp-story .twp-excerpt {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
}

/* ===== FLOATED THUMBNAILS ===== */
img.twp-thumb {
    width: 140px !important;
    max-width: 140px !important;
    height: 100px !important;
    object-fit: cover;
    margin-bottom: 6px;
    display: inline;
}

img.twp-thumb-left {
    float: left !important;
    margin-right: 14px;
    margin-left: 0;
}

img.twp-thumb-right {
    float: right !important;
    margin-left: 14px;
    margin-right: 0;
}

.twp-story::after,
.twp-list-story::after,
.twp-trending::after {
    content: '';
    display: table;
    clear: both;
}

/* ===== 2-COL WITH SIDEBAR ===== */
.twp-2col {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0;
}

.twp-2col-main {
    padding-right: 28px;
    border-right: 1px solid #e0e0e0;
}

.twp-2col-side {
    padding-left: 24px;
}

/* ===== LIST STORIES ===== */
.twp-list-story {
    padding: 12px 0;
    border-bottom: 1px solid #e8e8e8;
}

.twp-list-story:first-child { padding-top: 0; }

.twp-list-story h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 4px 0 3px;
}

.twp-list-story h3 a:hover { color: #555; }

.twp-list-story .twp-excerpt {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.55;
}

/* ===== HEADLINE-ONLY LIST ===== */
.twp-headline {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.twp-headline:first-child { padding-top: 0; }

.twp-headline h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.28;
}

.twp-headline h3 a:hover { color: #555; }

/* ===== MOST READ ===== */
.twp-most-read {
    background: #f9f8f4;
    padding: 16px 18px;
    border: 1px solid #e8e5da;
}

.twp-most-read-header {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 10px;
}

.twp-mr-item {
    display: flex;
    gap: 8px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e5da;
    align-items: flex-start;
}

.twp-mr-item:last-child { border-bottom: none; }

.twp-mr-num {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 900;
    color: #d5d0c3;
    min-width: 18px;
    line-height: 1;
}

.twp-mr-title {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.28;
}

.twp-mr-title a:hover { color: #555; }

/* ===== AD ===== */
.twp-ad {
    border: 1px solid #e8e5da;
    padding: 45px 16px;
    text-align: center;
    color: #c8c4b8;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fcfbf7;
}

.twp-ad + .twp-ad { margin-top: 16px; }

/* ===== SAFETY TABLE ===== */
.twp-safety-tbl { width: 100%; border-collapse: collapse; }
.twp-safety-tbl tr { border-bottom: 1px solid #e8e8e8; }

.twp-safety-tbl td {
    padding: 10px 14px 10px 0;
    vertical-align: top;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #555;
}

.twp-safety-tbl .twp-sdate {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap;
    color: #4d4d4d;
    font-size: 0.72rem;
    min-width: 70px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ===== SIDEBAR LINK ===== */
.twp-slink {
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.twp-slink:first-child { padding-top: 0; }

.twp-slink h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.28;
}

.twp-slink h4 a:hover { color: #555; }

.twp-slink-views {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.65rem;
    color: #4d4d4d;
}

/* ===== OBITS ===== */
.twp-obit h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.twp-obit h3 a:hover { color: #555; }

.twp-obit-detail {
    font-size: 0.82rem;
    color: #777;
    line-height: 1.5;
}

/* ===== SECTION BORDER ===== */
.twp-section-border {
    padding-bottom: 8px;
}

/* ===== FOOTER ===== */
.twp-footer {
    background: #1a1a1a;
    color: #999;
    padding: 36px 0 28px;
    margin-top: 0;
}

.twp-footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.twp-footer h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.twp-footer p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 2px 0;
}

.twp-footer h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #777;
    margin-bottom: 10px;
}

.twp-footer li {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    line-height: 1.9;
}

.twp-footer a { color: #aaa; }
.twp-footer a:hover { color: #fff; }

.twp-footer-social { display: flex; gap: 12px; margin-top: 10px; }
.twp-footer-social a { color: #666; display: flex; align-items: center; }
.twp-footer-social a:hover { color: #fff; }
.twp-footer-social svg { width: 18px; height: 18px; fill: currentColor; }

.twp-footer-bottom {
    border-top: 1px solid #333;
    margin-top: 24px;
    padding-top: 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    color: #666;
    text-align: center;
}

/* ===== SINGLE POST — GLOBE STYLE ===== */

/* Article + sidebar layout */
.twp-article-layout {
    display: grid;
    grid-template-columns: 1fr 260px;
    gap: 0;
    padding-top: 28px;
}

.twp-article-col {
    padding-right: 32px;
    border-right: 1px solid #e0e0e0;
}

.twp-article-sidebar {
    padding-left: 28px;
    position: sticky;
    top: 60px;
    align-self: start;
}

/* Category label link */
.twp-article-header .twp-cat {
    margin-bottom: 6px;
    font-size: 0.7rem;
}

/* Headline */
.twp-article-header h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.025em;
    margin: 6px 0 14px;
}

/* Deck / subtitle */
.twp-article-header .twp-subtitle {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 16px;
}

/* Byline bar */
.twp-byline-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 0;
    margin-bottom: 20px;
}

.twp-byline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    color: #4d4d4d;
}

.twp-byline strong {
    color: #292929;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
}

.twp-byline-date {
    display: block;
    margin-top: 2px;
    font-size: 0.72rem;
    color: #4d4d4d;
}

/* Share icons */
.twp-share {
    display: flex;
    gap: 6px;
}

.twp-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    color: #4d4d4d;
    transition: all 0.15s;
}

.twp-share a:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

/* Featured image — landscape shots run column width (capped); portrait /
   head-shot / logo images run small, floated right so text stays left. */
.twp-article-featured {
    margin: 0 0 24px;
}

.twp-article-featured img { width: 100%; max-height: 440px; object-fit: cover; }

.twp-article-featured.twp-featured-portrait {
    float: right;
    width: 260px;
    max-width: 42%;
    margin: 0 0 16px 20px;
}

.twp-article-featured.twp-featured-portrait img {
    max-height: none;
    object-fit: contain;
}

.twp-article-featured figcaption {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    color: #4d4d4d;
    padding-top: 6px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
}

.twp-photo-credit {
    font-style: italic;
    color: #767676;
}

/* Article body */
.twp-article-body {
    padding-bottom: 32px;
}

.twp-article-body p {
    margin-bottom: 1.25em;
    font-size: 1.08rem;
    line-height: 1.78;
}

.twp-article-body h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 1.8em 0 0.6em;
}

.twp-article-body h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5em 0 0.5em;
}

.twp-article-body blockquote {
    border-left: 3px solid #c0392b;
    padding: 4px 0 4px 20px;
    margin: 1.5em 0;
    font-style: italic;
    color: #555;
}

.twp-article-body ul, .twp-article-body ol {
    padding-left: 1.5em;
    margin-bottom: 1.2em;
}

.twp-article-body li {
    list-style: disc;
    margin-bottom: 0.4em;
    font-size: 1.08rem;
    line-height: 1.78;
}

.twp-article-body ol li { list-style: decimal; }

.twp-article-body figure { margin: 1.5em 0; }
.twp-article-body figure img { width: 100%; }
.twp-article-body figcaption {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    color: #4d4d4d;
    padding-top: 6px;
}

/* Post views footer */
.twp-post-views-footer {
    border-top: 1px solid #e0e0e0;
    padding: 10px 0;
    margin-top: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    color: #4d4d4d;
}

/* Newsletter CTA */
.twp-newsletter-cta {
    background: #f9f8f4;
    border: 1px solid #e8e5da;
    padding: 24px 28px;
    margin: 32px 0;
    text-align: center;
}

.twp-newsletter-cta h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 6px;
}

.twp-newsletter-cta p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 12px !important;
    line-height: 1.5 !important;
}

.twp-newsletter-cta .twp-cta-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 10px 28px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
}

.twp-newsletter-cta .twp-cta-btn:hover { background: #a93226; }

/* Tags */
.twp-article-tags {
    border-top: 1px solid #e0e0e0;
    padding-top: 14px;
    margin-bottom: 32px;
}

.twp-article-tags span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #4d4d4d;
    margin-right: 6px;
}

.twp-article-tags a {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    color: #555;
    border: 1px solid #ddd;
    padding: 3px 10px;
    margin: 3px 4px 3px 0;
}

.twp-article-tags a:hover { background: #f5f5f0; border-color: #bbb; }

/* Related stories */
.twp-related {
    border-top: 2px solid #1a1a1a;
    padding-top: 20px;
    margin-top: 8px;
}

.twp-related-header {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 14px;
}

.twp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.twp-related-grid > div {
    padding-right: 16px;
    border-right: 1px solid #e0e0e0;
}

.twp-related-grid > div:nth-child(2) { padding-left: 16px; }
.twp-related-grid > div:last-child { padding-left: 16px; border-right: none; padding-right: 0; }

.twp-related-grid .twp-rel-img {
    margin-bottom: 8px;
    overflow: hidden;
}

.twp-related-grid .twp-rel-img img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.twp-related-grid h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
}

.twp-related-grid h4 a:hover { color: #555; }

/* Sidebar subscribe CTA */
.twp-sidebar-cta {
    margin-top: 28px;
    padding: 20px 18px;
    background: #f9f8f4;
    border: 1px solid #e8e5da;
    text-align: center;
}

.twp-sidebar-cta h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.twp-sidebar-cta p {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
}

.twp-sidebar-cta .twp-cta-btn {
    display: inline-block;
    background: #c0392b;
    color: #fff;
    padding: 8px 22px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.twp-sidebar-cta .twp-cta-btn:hover { background: #a93226; }

/* ===== ARCHIVE / CATEGORY ===== */
.twp-archive-header {
    padding: 28px 0 0;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 20px;
}

.twp-archive-header h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 8px;
}

.twp-archive-list {
    max-width: 720px;
}

.twp-archive-story {
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 20px;
    align-items: start;
}

.twp-archive-story h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 4px 0 6px;
}

.twp-archive-story h2 a:hover { color: #555; }

.twp-archive-story .twp-excerpt {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.55;
}

.twp-archive-img { overflow: hidden; }

.twp-archive-img img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}

/* ===== SEARCH TOGGLE IN NAV ===== */
.twp-search-toggle {
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.twp-search-toggle:hover { color: #c0392b; }

.twp-nav > .twp-container {
    position: relative;
}

/* ===== SEARCH OVERLAY ===== */
.twp-search-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26,26,26,0.95);
    z-index: 1000;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
}

.twp-search-overlay.twp-search-open { display: flex; }

.twp-search-overlay-inner {
    width: 100%;
    max-width: 640px;
    padding: 0 20px;
}

.twp-search-overlay-form {
    display: flex;
    gap: 0;
    position: relative;
}

.twp-search-overlay-form input[type="text"] {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-bottom: 3px solid #fff;
    background: transparent;
    color: #fff;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.6rem;
    outline: none;
}

.twp-search-overlay-form input::placeholder { color: #888; }

.twp-search-overlay-form button[type="submit"] {
    padding: 16px 24px;
    background: #c0392b;
    color: #fff;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.twp-search-overlay-form button[type="submit"]:hover { background: #a93226; }

.twp-search-close {
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
}

.twp-search-close:hover { color: #fff; }

.twp-search-hints {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.twp-search-hints span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.twp-search-hints a {
    padding: 4px 12px;
    border: 1px solid #555;
    color: #ccc;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    transition: all 0.15s;
}

.twp-search-hints a:hover { background: #fff; color: #1a1a1a; border-color: #fff; }

/* ===== SEARCH RESULTS PAGE ===== */
.twp-search-header {
    padding: 28px 0 0;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 20px;
}

.twp-search-header h1 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding-bottom: 8px;
}

.twp-search-form {
    display: flex;
    gap: 0;
    margin: 12px 0 20px;
}

.twp-search-form input[type="text"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #1a1a1a;
    border-right: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
}

.twp-search-form input[type="text"]:focus { outline: none; border-color: #c0392b; }

.twp-search-form button {
    padding: 12px 24px;
    background: #1a1a1a;
    color: #fff;
    border: 2px solid #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
}

.twp-search-form button:hover { background: #333; border-color: #333; }

.twp-search-meta {
    margin-bottom: 16px;
}

.twp-search-count {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    color: #666;
}

.twp-search-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e0e0e0;
}

.twp-search-filters a {
    padding: 5px 14px;
    border: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    transition: all 0.15s;
}

.twp-search-filters a:hover,
.twp-search-filters a.twp-filter-active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.twp-search-results { max-width: 800px; }

.twp-search-result {
    display: flex;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid #e8e8e8;
    align-items: flex-start;
}

.twp-search-result-img { flex-shrink: 0; }

.twp-search-result-img img {
    width: 120px;
    height: 90px;
    object-fit: cover;
}

.twp-search-result-body h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.22;
    margin: 3px 0 5px;
}

.twp-search-result-body h2 a:hover { color: #555; }

.twp-search-result-body .twp-excerpt {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.55;
}

.twp-search-empty {
    text-align: center;
    padding: 60px 20px;
}

.twp-search-empty h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.twp-search-empty p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 24px;
}

.twp-search-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.twp-search-suggestions a {
    padding: 8px 18px;
    border: 1px solid #ddd;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
}

.twp-search-suggestions a:hover { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }

/* ===== TALK OF THE TOWN SIDEBAR ===== */
.twp-talk-sidebar {
    border: 2px solid #1a1a1a;
    padding: 20px;
    margin-bottom: 20px;
}

.twp-talk-cta-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    margin: 10px 0 14px;
}

.twp-talk-cta-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #c0392b;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.twp-talk-cta-btn:hover { background: #a93226; color: #fff; }

/* ===== 404 ===== */
.twp-404 {
    text-align: center;
    padding: 80px 20px;
}

.twp-404 h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.twp-404 p { font-size: 1.1rem; color: #666; }

/* ===== PAGINATION ===== */
.twp-pagination {
    padding: 24px 0;
    display: flex;
    gap: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
}

.twp-pagination a, .twp-pagination span {
    padding: 6px 12px;
    border: 1px solid #ddd;
}

.twp-pagination .current {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.twp-pagination a:hover { background: #f5f5f0; }

/* ===== PAGE TEMPLATE ===== */
.twp-page-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 28px 0 40px;
}

.twp-page-body h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 20px;
}

.twp-page-body p { margin-bottom: 1.2em; font-size: 1.05rem; line-height: 1.75; }
.twp-page-body h2 { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.4rem; margin: 1.5em 0 0.5em; }
.twp-page-body ul, .twp-page-body ol { padding-left: 1.5em; margin-bottom: 1.2em; }
.twp-page-body li { list-style: disc; margin-bottom: 0.4em; font-size: 1.05rem; }

/* ===== BUSINESS DIRECTORY ===== */
.twp-dir-header {
    padding: 32px 0 16px;
    border-bottom: 3px solid #1a1a1a;
    margin-bottom: 24px;
}

.twp-dir-header h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 900;
}

.twp-dir-tagline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    color: #666;
    margin-top: 4px;
}

/* Directory: filters in a fixed left rail, results on the right. With 44
   categories a horizontal chip bar pushed every listing below the fold. */
.twp-dir-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    margin-bottom: 28px;
}

.twp-dir-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 4px;
}

/* Quieter scrollbar so the rail doesn't compete with the listings. */
.twp-dir-sidebar::-webkit-scrollbar { width: 6px; }
.twp-dir-sidebar::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.twp-dir-sidebar::-webkit-scrollbar-thumb:hover { background: #bbb; }

.twp-dir-results { min-width: 0; }

.twp-dir-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 28px;
}

.twp-dir-search {
    display: flex;
    gap: 0;
    flex: 1 1 300px;
    margin-bottom: 18px;
}

.twp-dir-search input[type="text"] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-right: none;
    font-size: 0.88rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.twp-dir-search button {
    padding: 10px 18px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}

.twp-dir-search button:hover { background: #333; }

/* In the 232px rail the input and button cannot sit side by side: the form's
   300px flex-basis and the input's default min-width:auto pushed the button
   past the rail's edge, where overflow clipped it. Stack them instead. */
.twp-dir-sidebar .twp-dir-search {
    flex-direction: column;
    flex: 0 0 auto;
    gap: 6px;
}

.twp-dir-sidebar .twp-dir-search input[type="text"] {
    min-width: 0;
    border-right: 1px solid #ccc;   /* no longer butted against the button */
}

.twp-dir-sidebar .twp-dir-search button { width: 100%; }

.twp-dir-cats {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
}

.twp-dir-cats a {
    padding: 7px 12px;
    border: 1px solid transparent;
    border-left: 3px solid transparent;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
    transition: all 0.15s;
}

.twp-dir-cats a:hover {
    background: #f2f2f2;
    color: #1a1a1a;
}

/* Active category is marked with a rule rather than a filled block: 44 solid
   chips in a column would read as noise. */
.twp-dir-cats a.twp-cat-active {
    background: #f2f2f2;
    color: #1a1a1a;
    border-left-color: #a01c1c;
    font-weight: 700;
}

.twp-dir-cats-wrap > summary {
    display: none;   /* desktop: the rail is the navigation, no toggle needed */
}

/* Must sit after the .twp-dir-* base rules above -- same specificity, so
   source order decides which wins. */
@media (max-width: 900px) {
    .twp-dir-cats-wrap > summary {
        display: block;
        cursor: pointer;
        padding: 10px 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #1a1a1a;
        border-bottom: 1px solid #ddd;
        margin-bottom: 12px;
    }
    .twp-dir-cats-wrap[open] > summary { margin-bottom: 12px; }

    /* Stack on narrow screens: a sticky rail would eat the viewport. */
    .twp-dir-layout { grid-template-columns: 1fr; gap: 20px; }
    .twp-dir-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }
    /* Full page width below the breakpoint, so the joined input+button fits. */
    .twp-dir-sidebar .twp-dir-search {
        flex-direction: row;
        flex: 1 1 300px;
        gap: 0;
    }
    .twp-dir-sidebar .twp-dir-search input[type="text"] { border-right: none; }
    .twp-dir-sidebar .twp-dir-search button { width: auto; }

    .twp-dir-cats { flex-direction: row; flex-wrap: wrap; gap: 6px; }
    .twp-dir-cats a {
        flex: 0 0 auto;
        border: 1px solid #ddd;
        border-left: 1px solid #ddd;
        padding: 6px 14px;
    }
    .twp-dir-cats a.twp-cat-active {
        background: #1a1a1a;
        color: #fff;
        border-color: #1a1a1a;
    }
}

.twp-dir-featured-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #b8860b;
    margin-bottom: 10px;
}

.twp-dir-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.twp-biz-card {
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: box-shadow 0.15s;
}

.twp-biz-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }

.twp-biz-card.twp-biz-featured {
    border-color: #b8860b;
    box-shadow: 0 0 0 1px #b8860b;
}

.twp-biz-img img { width: 100%; height: 180px; object-fit: cover; }

.twp-biz-info { padding: 14px 16px; }

.twp-biz-cat-badge {
    display: inline-block;
    padding: 2px 8px;
    background: #c41200;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.twp-biz-info h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.twp-biz-info h3 a:hover { color: #c41200; }

.twp-biz-addr, .twp-biz-phone, .twp-biz-website {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 2px;
}

.twp-biz-addr a, .twp-biz-phone a, .twp-biz-website a { color: #555; }
.twp-biz-addr a:hover, .twp-biz-phone a:hover, .twp-biz-website a:hover { color: #c41200; text-decoration: underline; }

.twp-biz-endorse-count {
    display: inline-block;
    margin-top: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #2a7a2a;
}

.twp-biz-sponsor-badge {
    display: inline-block;
    padding: 3px 10px;
    background: #b8860b;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.twp-dir-submit-cta {
    text-align: center;
    padding: 36px 20px;
    background: #f5f5f0;
    margin: 32px 0;
}

.twp-dir-submit-cta h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.twp-dir-submit-cta p {
    font-size: 0.92rem;
    color: #555;
    margin-bottom: 14px;
}

.twp-dir-empty {
    padding: 40px 0;
    text-align: center;
    color: #4d4d4d;
    font-size: 0.95rem;
}

.twp-dir-empty a { color: #c41200; text-decoration: underline; }

/* ===== BUSINESS PROFILE PAGE ===== */
.twp-biz-profile {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding: 28px 0 40px;
}

.twp-biz-profile h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.twp-biz-endorse-banner {
    padding: 10px 16px;
    background: #eef7ee;
    border-left: 3px solid #2a7a2a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    color: #2a7a2a;
    margin-bottom: 20px;
}

.twp-biz-endorse-banner strong { font-size: 1.1rem; }

.twp-biz-profile-img { margin-bottom: 24px; }
.twp-biz-profile-img img { width: 100%; max-height: 400px; object-fit: cover; }

.twp-biz-description {
    font-size: 1.05rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.twp-biz-description p { margin-bottom: 1em; }

.twp-biz-details-card {
    background: #f5f5f0;
    padding: 20px;
    margin-bottom: 24px;
}

.twp-biz-details-card h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.twp-biz-detail {
    margin-bottom: 14px;
}

.twp-biz-detail strong {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4d4d4d;
    margin-bottom: 2px;
}

.twp-biz-detail span,
.twp-biz-detail a {
    font-size: 0.92rem;
    line-height: 1.5;
}

.twp-biz-detail a { color: #c41200; }
.twp-biz-detail a:hover { text-decoration: underline; }

.twp-biz-map-link {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.78rem !important;
    font-weight: 600;
}

/* ===== ENDORSEMENTS ===== */
.twp-endorsements {
    margin-bottom: 32px;
}

.twp-endorsements h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 700;
    padding-bottom: 10px;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 16px;
}

.twp-endorsement-card {
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
}

.twp-endorsement-text {
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 6px;
}

.twp-endorsement-author {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.twp-endorsement-date {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.75rem;
    color: #4d4d4d;
}

.twp-endorsement-reply {
    margin-top: 10px;
    padding: 10px 14px;
    background: #f9f9f5;
    border-left: 3px solid #b8860b;
    font-size: 0.9rem;
}

.twp-no-endorsements {
    color: #4d4d4d;
    font-style: italic;
    padding: 16px 0;
}

/* ===== ENDORSEMENT FORM ===== */
.twp-endorse-form-wrap {
    padding: 24px;
    background: #f5f5f0;
    margin-bottom: 32px;
}

.twp-endorse-form-wrap h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.twp-endorse-note {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    color: #4d4d4d;
    margin-bottom: 16px;
}

.twp-endorse-form label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #444;
}

.twp-form-row {
    margin-bottom: 14px;
}

.twp-form-row input[type="text"],
.twp-form-row input[type="email"],
.twp-form-row textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.92rem;
}

.twp-form-row textarea { resize: vertical; }

.twp-form-row input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 8px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.86rem;
}

.twp-form-hint {
    font-size: 0.78rem;
    color: #777;
    margin: 4px 0 0;
}

.twp-cta-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #c41200;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    cursor: pointer;
    transition: background 0.15s;
}

.twp-cta-btn:hover { background: #a00; color: #fff; }

.twp-endorse-msg { margin-top: 12px; font-size: 0.88rem; }
.twp-msg-ok { color: #2a7a2a; font-weight: 600; }
.twp-msg-err { color: #c41200; font-weight: 600; }

/* ===== SUBMIT BUSINESS FORM ===== */

/* ===== PARTNER LANDING PAGE ===== */
.twp-partner-page {
    --partner-accent: #c41200;
    --partner-accent-rgb: 196, 18, 0;
    padding-top: 24px;
}

.twp-partner-hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 32px;
    margin-bottom: 32px;
    background: rgba(var(--partner-accent-rgb), 0.06);
    border-left: 5px solid var(--partner-accent);
    border-radius: 0 8px 8px 0;
}

.twp-partner-hero-img {
    flex: 0 0 200px;
    max-width: 200px;
}

.twp-partner-hero-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.twp-partner-hero-text { flex: 1; }

.twp-partner-label {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--partner-accent);
    margin-bottom: 8px;
}

.twp-partner-hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 8px;
}

.twp-partner-tagline {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
    margin-bottom: 20px;
}

.twp-partner-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--partner-accent);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 4px;
    transition: opacity 0.15s;
}
.twp-partner-cta:hover { opacity: 0.85; color: #fff; }

.twp-partner-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    padding-bottom: 48px;
}

/* --- Partner body content --- */
.twp-partner-body {
    font-size: 1.05rem;
    line-height: 1.75;
}
.twp-partner-body p { margin-bottom: 1em; }
.twp-partner-body h2 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--partner-accent);
    margin: 32px 0 16px;
}
.twp-partner-body h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 20px 0 8px;
}
.twp-partner-body ul,
.twp-partner-body ol {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 1em;
}
.twp-partner-body ol { list-style: decimal; }
.twp-partner-body li { margin-bottom: 0.4em; }
.twp-partner-body a {
    color: var(--partner-accent);
    font-weight: 600;
}
.twp-partner-body a:hover { text-decoration: underline; }

/* --- Badge / callout --- */
.twp-partner-body .partner-badge {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(var(--partner-accent-rgb), 0.08);
    border: 2px solid rgba(var(--partner-accent-rgb), 0.25);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0 28px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.twp-partner-body .partner-badge .badge-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

/* --- Feature grid (2x2 category cards) --- */
.twp-partner-body .partner-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0 28px;
    list-style: none;
    padding-left: 0;
}
.twp-partner-body .partner-feature {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 0;
}
.twp-partner-body .partner-feature h4 {
    background: var(--partner-accent);
    color: #fff;
    padding: 12px 16px;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.twp-partner-body .partner-feature ul {
    list-style: none;
    padding: 12px 16px 16px;
    margin: 0;
}
.twp-partner-body .partner-feature li {
    padding: 5px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0;
}
.twp-partner-body .partner-feature li:last-child { border-bottom: none; }

/* --- Product cards --- */
.twp-partner-body .partner-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 14px;
    margin: 16px 0 28px;
    list-style: none;
    padding-left: 0;
}
.twp-partner-body .partner-product {
    background: #fff;
    border-radius: 8px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    margin-bottom: 0;
}
.twp-partner-body .partner-product strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--partner-accent);
}
.twp-partner-body .partner-product .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #222;
    display: block;
    margin-bottom: 6px;
}
.twp-partner-body .partner-product .desc {
    font-size: 0.78rem;
    color: #666;
    line-height: 1.4;
    display: block;
}

/* --- Colored section band --- */
.twp-partner-body .partner-section {
    background: rgba(var(--partner-accent-rgb), 0.06);
    border-radius: 8px;
    padding: 24px;
    margin: 24px 0;
}
.twp-partner-body .partner-section h3 {
    color: var(--partner-accent);
    margin-top: 0;
}

/* --- CTA block --- */
.twp-partner-body .partner-cta-block {
    text-align: center;
    padding: 24px;
    margin: 24px 0;
    background: var(--partner-accent);
    border-radius: 8px;
    color: #fff;
}
.twp-partner-body .partner-cta-block p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    font-size: 1rem;
}
.twp-partner-body .partner-cta-block a {
    display: inline-block;
    padding: 12px 28px;
    background: #fff;
    color: var(--partner-accent);
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.twp-partner-body .partner-cta-block a:hover {
    text-decoration: none;
    opacity: 0.92;
}

/* --- Link list (with arrows) --- */
.twp-partner-body .partner-links {
    list-style: none;
    padding-left: 0;
    margin: 12px 0 24px;
}
.twp-partner-body .partner-links li {
    margin-bottom: 8px;
    padding-left: 0;
}
.twp-partner-body .partner-links a {
    display: inline-block;
    padding: 10px 18px;
    background: rgba(var(--partner-accent-rgb), 0.08);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--partner-accent);
    transition: background 0.15s;
}
.twp-partner-body .partner-links a:hover {
    background: rgba(var(--partner-accent-rgb), 0.15);
    text-decoration: none;
}

/* --- Sidebar --- */
.twp-partner-details {
    background: #f5f5f0;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 6px;
}

.twp-partner-details h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ddd;
}

.twp-partner-detail {
    margin-bottom: 14px;
}

.twp-partner-detail strong {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4d4d4d;
    margin-bottom: 2px;
}

.twp-partner-detail span,
.twp-partner-detail a {
    font-size: 0.92rem;
    line-height: 1.5;
}
.twp-partner-detail a { color: var(--partner-accent); }
.twp-partner-detail a:hover { text-decoration: underline; }

.twp-partner-sidebar-cta {
    text-align: center;
    margin-bottom: 24px;
}

.twp-partner-sidebar-cta .twp-partner-cta {
    width: 100%;
    text-align: center;
}

@media (max-width: 768px) {
    .twp-partner-hero {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .twp-partner-hero-img {
        flex: none;
        max-width: 160px;
    }
    .twp-partner-layout { grid-template-columns: 1fr; }
    .twp-partner-body .partner-features { grid-template-columns: 1fr; }
    .twp-partner-body .partner-products { grid-template-columns: 1fr 1fr; }
}

/* --- Partner Contact Form (CF7) --- */
.twp-partner-body .wpcf7 {
    margin-top: 8px;
}
.twp-partner-body .wpcf7 label {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}
.twp-partner-body .wpcf7 input[type="text"],
.twp-partner-body .wpcf7 input[type="email"],
.twp-partner-body .wpcf7 input[type="tel"],
.twp-partner-body .wpcf7 select,
.twp-partner-body .wpcf7 textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.95rem;
    margin-top: 4px;
    transition: border-color 0.2s;
}
.twp-partner-body .wpcf7 input:focus,
.twp-partner-body .wpcf7 select:focus,
.twp-partner-body .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--partner-accent);
    box-shadow: 0 0 0 2px rgba(var(--partner-accent-rgb), 0.15);
}
.twp-partner-body .wpcf7 textarea {
    min-height: 120px;
    resize: vertical;
}
.twp-partner-body .wpcf7 input[type="submit"] {
    background: var(--partner-accent);
    color: #fff;
    border: none;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s;
}
.twp-partner-body .wpcf7 input[type="submit"]:hover {
    opacity: 0.9;
}
.twp-partner-body .wpcf7 .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.twp-partner-body .wpcf7 p {
    margin-bottom: 14px;
}

/* ===== ADVERTISING PLATFORM ===== */
.twp-ad-hero {
    padding: 40px 0 32px;
    border-bottom: 3px solid #1a1a1a;
    margin-bottom: 32px;
}

.twp-ad-hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.twp-ad-hero-sub {
    font-size: 1.05rem;
    color: #555;
    max-width: 600px;
    margin-bottom: 24px;
}

.twp-ad-stats {
    display: flex;
    gap: 32px;
}

.twp-ad-alt-options {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 0.85rem;
    color: #777;
}

.twp-ad-alt-options a {
    color: #777;
    text-decoration: underline;
}

.twp-ad-alt-options a:hover {
    color: #b8171a;
}

.twp-ad-stat {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.twp-ad-stat strong {
    display: block;
    font-size: 1.3rem;
    color: #1a1a1a;
}

.twp-ad-stat span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4d4d4d;
}

.twp-ad-section-head {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.twp-ad-section-sub {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 24px;
}

.twp-ad-location-group { margin-bottom: 32px; }

/* ===== ONLINE / PRINT EDITIONS — equal, side-by-side products ===== */
.twp-ad-editions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 32px;
}

.twp-ad-edition:first-child {
    padding-right: 40px;
    border-right: 1px solid #e0e0e0;
    margin-right: -20px;
}

.twp-ad-edition-label {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 900;
    color: #c41200;
    padding-bottom: 8px;
    border-bottom: 3px solid #c41200;
    margin-bottom: 8px;
}

.twp-ad-edition-sub {
    font-size: 0.92rem;
    color: #4d4d4d;
    line-height: 1.55;
    margin-bottom: 18px;
}

.twp-ad-sponsor-band { margin-bottom: 32px; }

.twp-ad-location-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c41200;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e0e0e0;
}

.twp-ad-spaces-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.twp-ad-space-card {
    display: block;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    transition: all 0.15s;
    color: inherit;
}

.twp-ad-space-card:hover {
    box-shadow: 0 3px 16px rgba(0,0,0,0.1);
    border-color: #c41200;
}

.twp-ad-space-card.twp-ad-sold-out { opacity: 0.6; }

.twp-ad-space-preview img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #eee;
}

.twp-ad-space-info { padding: 16px; }

.twp-ad-space-info h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.twp-ad-space-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.twp-ad-spec {
    display: inline-block;
    padding: 2px 8px;
    background: #f0f0ec;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #555;
}

.twp-ad-channel-both { background: #e8f0e8; color: #2a7a2a; }
.twp-ad-channel-print { background: #f0e8e8; color: #8b4513; }
.twp-ad-channel-digital { background: #e8e8f0; color: #2a2a7a; }

.twp-ad-space-desc {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
}

.twp-ad-space-pricing {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.twp-ad-price {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.twp-ad-price small {
    font-size: 0.7rem;
    font-weight: 400;
    color: #4d4d4d;
}

.twp-ad-badge-open {
    display: inline-block;
    padding: 2px 8px;
    background: #eef7ee;
    color: #2a7a2a;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
}

.twp-ad-badge-sold {
    display: inline-block;
    padding: 2px 8px;
    background: #f5e8e8;
    color: #c41200;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Discount table */
.twp-ad-discount-table {
    width: 100%;
    max-width: 400px;
    border-collapse: collapse;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.twp-ad-discount-table th {
    text-align: left;
    padding: 8px 12px;
    background: #1a1a1a;
    color: #fff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.twp-ad-discount-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #e0e0e0;
}

.twp-ad-disc-note {
    font-size: 0.8rem;
    color: #4d4d4d;
    margin-top: 8px;
}
.twp-ad-discount-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 12px;
}
.twp-ad-discount-cols h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: #333;
}
.twp-ad-guidelines {
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid #e0e0e0;
}
.twp-ad-guidelines ul {
    margin: 12px 0 0 20px;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.8;
}
.twp-ad-deadlines { margin-bottom: 32px; }
.twp-ad-cta-small {
    font-size: 0.85rem;
    color: #4d4d4d;
    margin-top: 4px;
}

/* How it works steps */
.twp-ad-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.twp-ad-step { text-align: center; padding: 20px 12px; }

.twp-ad-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #c41200;
    color: #fff;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.twp-ad-step h4 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.twp-ad-step p {
    font-size: 0.82rem;
    color: #666;
    line-height: 1.5;
}

.twp-ad-contact-cta {
    text-align: center;
    padding: 32px 20px;
    background: #f5f5f0;
    margin: 24px 0 40px;
}

.twp-ad-contact-cta h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.twp-ad-contact-cta a { color: #c41200; }

/* Detail page */
.twp-ad-detail {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    padding: 28px 0 40px;
}

.twp-ad-back {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    color: #c41200;
    margin-bottom: 12px;
    display: inline-block;
}

.twp-ad-detail h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.twp-ad-detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.twp-ad-detail-preview { margin-bottom: 24px; }
.twp-ad-detail-preview img { width: 100%; }
.twp-ad-preview-caption { font-size: 0.78rem; color: #4d4d4d; font-style: italic; margin-top: 4px; }

.twp-ad-detail-desc { font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }
.twp-ad-detail-desc p { margin-bottom: 0.8em; }

.twp-ad-specs-table { margin-bottom: 28px; }
.twp-ad-specs-table h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.1rem; margin-bottom: 10px; }
.twp-ad-specs-table table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.twp-ad-specs-table td { padding: 8px 12px; border-bottom: 1px solid #e8e8e8; }
.twp-ad-specs-table td:first-child { font-weight: 600; width: 40%; color: #555; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-size: 0.8rem; }

.twp-ad-pricing-detail { margin-bottom: 28px; }
.twp-ad-pricing-detail h3 { font-family: 'Source Serif 4', Georgia, serif; font-size: 1.1rem; margin-bottom: 12px; }

.twp-ad-price-grid { display: flex; gap: 16px; }

.twp-ad-price-card {
    padding: 16px 24px;
    background: #f5f5f0;
    text-align: center;
}

.twp-ad-price-amount {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.twp-ad-price-unit {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4d4d4d;
}

/* Booking form */
.twp-ad-book-form-wrap {
    padding: 28px;
    background: #f9f9f5;
    border: 1px solid #e0e0e0;
    margin-bottom: 32px;
}

.twp-ad-book-form-wrap h3 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.twp-ad-book-form fieldset {
    border: none;
    padding: 0;
    margin: 0 0 20px;
}

.twp-ad-book-form legend {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c41200;
    padding-bottom: 6px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 12px;
    width: 100%;
}

.twp-form-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.twp-radio, .twp-checkbox {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.twp-issue-list {
    max-height: 280px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 8px;
    background: #fff;
}

.twp-issue-option {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.85rem;
    cursor: pointer;
}

.twp-issue-option:hover { background: #f9f9f5; }
.twp-issue-option.twp-issue-past { opacity: 0.5; }

.twp-issue-name { font-weight: 600; }
.twp-issue-date { color: #666; font-size: 0.78rem; }
.twp-issue-deadline { font-size: 0.72rem; color: #4d4d4d; }

.twp-ad-creative-note {
    font-size: 0.82rem;
    color: #4d4d4d;
    font-style: italic;
    margin-top: 4px;
}

/* Price calculator */
.twp-ad-price-calc {
    background: #fff;
    border: 2px solid #1a1a1a;
    padding: 16px 20px;
    margin: 20px 0;
}

.twp-price-line {
    display: flex;
    justify-content: space-between;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.88rem;
    padding: 4px 0;
}

.twp-price-discount span { color: #2a7a2a; }
.twp-price-exclusive span { color: #b8860b; }

.twp-price-total {
    border-top: 1px solid #ddd;
    margin-top: 6px;
    padding-top: 8px;
    font-size: 1rem;
}

.twp-price-total strong { font-size: 1.2rem; }

.twp-ad-book-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.92rem;
}

/* Sold out */
.twp-ad-sold-out-msg {
    padding: 32px;
    background: #f5e8e8;
    text-align: center;
    margin: 24px 0;
}

.twp-ad-sold-out-msg h3 { font-family: 'Source Serif 4', Georgia, serif; margin-bottom: 8px; }
.twp-ad-sold-out-msg a { color: #c41200; }

/* Sidebar cards */
.twp-ad-contact-card, .twp-ad-why-card {
    background: #f5f5f0;
    padding: 20px;
    margin-bottom: 20px;
}

.twp-ad-contact-card h4, .twp-ad-why-card h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.twp-ad-contact-card p { font-size: 0.88rem; margin-bottom: 6px; }
.twp-ad-contact-card a { color: #c41200; }

.twp-ad-why-card ul { padding-left: 0; }
.twp-ad-why-card li {
    list-style: none;
    font-size: 0.85rem;
    padding: 4px 0 4px 18px;
    position: relative;
}
.twp-ad-why-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #2a7a2a;
    font-weight: 700;
}

/* Ad units in templates */
.twp-ad-unit { text-align: center; margin: 16px 0; }
.twp-ad-slot { display: inline-block; position: relative; }
.twp-ad-slot img { display: block; max-width: 100%; height: auto; }
.twp-ad-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #767676;
    display: block;
    margin-top: 2px;
}

/* ===== HOUSE ADS (fallback when no paid ads) ===== */
.twp-house-ad {
    border: 1px solid #e0e0e0;
    padding: 20px 16px;
    text-align: center;
    margin: 12px 0;
    background: #fafafa;
}
.twp-house-ad strong {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.92rem;
    display: block;
    margin-bottom: 6px;
    color: #1a1a1a;
}
.twp-house-ad p {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.45;
    margin-bottom: 10px;
}
.twp-house-ad-btn {
    display: inline-block;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 7px 18px;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    transition: all 0.15s ease;
}
.twp-house-ad-btn:hover {
    background: #1a1a1a;
    color: #fff;
}
.twp-house-donate { border-color: #27ae60; background: #f0faf4; }
.twp-house-donate .twp-house-ad-btn { border-color: #27ae60; color: #27ae60; }
.twp-house-donate .twp-house-ad-btn:hover { background: #27ae60; color: #fff; }
.twp-house-subscribe { border-color: #c41200; background: #fdf5f4; }
.twp-house-subscribe .twp-house-ad-btn { border-color: #c41200; color: #c41200; }
.twp-house-subscribe .twp-house-ad-btn:hover { background: #c41200; color: #fff; }

/* ===== SUBMIT BUSINESS FORM ===== */
.twp-submit-biz-form select {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 0.92rem;
    background: #fff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .twp-hero-split { grid-template-columns: 1fr; }
    .twp-hero-left { padding-right: 0; border-right: none; }
    .twp-hero-lead { padding-bottom: 12px; }
    .twp-hero-top-reads { padding-left: 0; padding-top: 12px; border-top: 1px solid #e0e0e0; }
    .twp-hero-lead-img img { height: 240px; }
    .twp-hero-split .twp-hero-lead-text h2 { font-size: 1.6rem; }
    .twp-secondary-stories { grid-template-columns: repeat(2, 1fr); }
    .twp-section-preview { grid-template-columns: 1fr; }
    .twp-preview-col { border-right: none; padding: 14px 0; border-bottom: 1px solid #e0e0e0; }
    .twp-preview-col:last-child { border-bottom: none; }
    .twp-preview-col:first-child { padding-left: 0; }
    .twp-2col { grid-template-columns: 1fr; }
    .twp-2col-main { padding-right: 0; border-right: none; padding-bottom: 20px; }
    .twp-2col-side { padding-left: 0; padding-top: 16px; }
    .twp-article-layout { grid-template-columns: 1fr; }
    .twp-article-col { padding-right: 0; border-right: none; }
    .twp-article-sidebar {
        position: static;
        padding-left: 0;
        padding-top: 24px;
        border-top: 1px solid #e0e0e0;
        margin-top: 24px;
    }
    .twp-archive-story { grid-template-columns: 1fr 160px; }
    .twp-subnav-bar { max-width: 100vw; }
    .twp-dir-grid { grid-template-columns: repeat(2, 1fr); }
    .twp-biz-profile { grid-template-columns: 1fr; }
    .twp-biz-profile-side { order: -1; }
    .twp-ad-spaces-grid { grid-template-columns: repeat(2, 1fr); }
    .twp-ad-editions { grid-template-columns: 1fr; gap: 24px; }
    .twp-ad-edition:first-child { padding-right: 0; border-right: none; margin-right: 0; }
    .twp-ad-detail { grid-template-columns: 1fr; }
    .twp-ad-detail-side { order: -1; }
    .twp-ad-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .twp-grid-3, .twp-related-grid { grid-template-columns: 1fr; }
    .twp-grid-3 > .twp-story,
    .twp-related-grid > div {
        padding: 14px 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
    }
    .twp-grid-3 > .twp-story:nth-child(2),
    .twp-grid-3 > .twp-story:nth-child(3),
    .twp-related-grid > div:nth-child(2),
    .twp-related-grid > div:last-child { padding-left: 0; }
    .twp-hero-split .twp-hero-lead-text h2 { font-size: 1.4rem; }
    .twp-hero-lead { grid-template-columns: 1fr; gap: 0; }
    .twp-hero-lead-img { order: -1; padding-top: 0; }
    .twp-hero-lead-img img { height: 200px; }
    /* Head-shot ledes stay small beside the text even on phones */
    .twp-hero-lead-smallimg { grid-template-columns: 1fr 130px; gap: 14px; }
    .twp-hero-lead-smallimg .twp-hero-lead-img { order: 2; }
    .twp-hero-lead-smallimg .twp-hero-lead-img img { height: auto; max-height: 170px; }
    .twp-article-featured.twp-featured-portrait { max-width: 50%; }
    .twp-secondary-stories { grid-template-columns: 1fr; }
    .twp-globe-story { flex-direction: row; gap: 14px; padding: 10px 0; border-bottom: 1px solid #e8e8e8; }
    .twp-globe-story-img img { width: 120px; height: 80px; }
    .twp-globe-story-img { order: 2; }
    .twp-section-preview { grid-template-columns: 1fr; }
    .twp-trending-bar { display: none; }
    .twp-article-header h1 { font-size: 1.8rem; }
    .twp-logo { max-width: 300px; }
    .twp-hero-side { grid-template-columns: 1fr; }
    .twp-footer-grid { grid-template-columns: 1fr; }
    .twp-archive-story { grid-template-columns: 1fr; }
    .twp-archive-img { display: none; }
    .twp-byline-bar { flex-direction: column; align-items: flex-start; gap: 8px; }
    .twp-dir-grid { grid-template-columns: 1fr; }
    .twp-dir-controls { flex-direction: column; }
    .twp-ad-spaces-grid { grid-template-columns: 1fr; }
    .twp-ad-stats { flex-direction: column; gap: 12px; }
    .twp-ad-steps { grid-template-columns: 1fr; }
    .twp-ad-price-grid { flex-direction: column; }
    .twp-ad-discount-cols { grid-template-columns: 1fr; }
    .twp-form-2col { grid-template-columns: 1fr; }
    .twp-ad-book-form-wrap { padding: 16px; }
    .twp-search-overlay-form input[type="text"] { font-size: 1.2rem; padding: 12px 14px; }
    .twp-search-close { right: -5px; top: -40px; transform: none; font-size: 2.4rem; }
    .twp-search-result { flex-direction: column; gap: 8px; }
    .twp-search-result-img img { width: 100%; height: auto; max-height: 180px; }
    .twp-search-filters { gap: 4px; }
    .twp-search-filters a { padding: 4px 10px; font-size: 0.68rem; }
}

/* Phones: the hamburger panel is the navigation. Hide the desktop link row so
   it no longer stacks under the button, and put the button and the search icon
   on one line. */
@media (max-width: 768px) {
    .twp-nav > .twp-container {
        display: flex;
        align-items: center;
        min-height: 44px;
    }
    .twp-nav > .twp-container > ul,
    .twp-subnav-bar { display: none; }
    .twp-hamburger { padding: 12px 14px 12px 0; }
}

@media (max-width: 520px) {
    .twp-nav > .twp-container > ul > li > a { font-size: 0.68rem; padding: 8px 10px; }
    .twp-topbar .twp-container { flex-direction: column; gap: 3px; text-align: center; }
    /* The four buttons plus icons are ~424px wide; let them wrap instead of
       overflowing both edges of a 390px phone (seen on iPhone 13 / iOS 15). */
    .twp-topbar-right { flex-wrap: wrap; justify-content: center; gap: 6px 8px; max-width: 100%; }
    .twp-subnav-bar a { font-size: 0.66rem; padding: 6px 10px; }
}

/* ===== DONATE PAGE ===== */
.twp-donate-page {
    padding: 16px 0 24px;
}

.twp-donate-hero {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 28px;
}

.twp-donate-hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.twp-donate-lead {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.twp-donate-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
}

.twp-donate-main {
    padding-right: 24px;
    border-right: 1px solid #e0e0e0;
}

.twp-donate-side {
    padding-left: 18px;
}

.twp-donate-box {
    background: #f9f8f4;
    border: 1px solid #e8e5da;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.twp-donate-box h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.twp-donate-box ul {
    list-style: disc;
    padding-left: 18px;
}

.twp-donate-box li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 4px;
}

.twp-donate-box p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 6px;
}

.twp-donate-box p:last-child { margin-bottom: 0; }

.twp-donate-tax {
    background: transparent;
    border: none;
    padding: 10px 0;
}

.twp-donate-tax p {
    font-size: 0.78rem;
    color: #4d4d4d;
    font-style: italic;
}

/* Shown by page-donate.php only when the GiveWP embed has not produced a form
   (older browsers). Plain block styling: no grid, no gap, so it renders on the
   browsers it exists for. */
.twp-donate-fallback {
    border: 2px solid #a13d2a;
    background: #fff4d6;
    padding: 18px 20px;
    margin: 8px 0 24px;
}
.twp-donate-fallback h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.twp-donate-fallback p, .twp-donate-fallback li { font-size: 0.95rem; line-height: 1.5; }
.twp-donate-fallback ul { list-style: disc; margin: 8px 0 8px 20px; }
.twp-donate-fallback li { margin-bottom: 6px; }
.twp-donate-fallback-note { color: #555; font-size: 0.88rem; }

@media (max-width: 768px) {
    .twp-donate-grid { grid-template-columns: 1fr; }
    .twp-donate-main { padding-right: 0; border-right: none; padding-bottom: 28px; }
    .twp-donate-side { padding-left: 0; }
}

/* Weather bar */
.twp-weather-bar {
    margin: 16px 0 8px;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    padding: 0;
    min-height: 98px;
}

.twp-weather-bar .weatherwidget-io {
    display: block;
}

/* Ad under Top Reads */
.twp-top-reads-ad {
    margin-top: 16px;
    border-top: 1px solid #e0e0e0;
    padding-top: 12px;
}

/* ===== SUBSCRIBE PAGE ===== */
.twp-subscribe-page {
    padding: 16px 0 24px;
}

.twp-subscribe-hero {
    text-align: center;
    padding-bottom: 14px;
    border-bottom: 2px solid #1a1a1a;
    margin-bottom: 28px;
}

.twp-subscribe-hero h1 {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 10px;
}

.twp-subscribe-lead {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.twp-subscribe-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
}

.twp-subscribe-main {
    padding-right: 24px;
    border-right: 1px solid #e0e0e0;
}

.twp-subscribe-side {
    padding-left: 18px;
}

.twp-subscribe-box {
    background: #f9f8f4;
    border: 1px solid #e8e5da;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.twp-subscribe-box h3 {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.twp-subscribe-box ul {
    list-style: disc;
    padding-left: 18px;
}

.twp-subscribe-box li {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 4px;
}

.twp-subscribe-box p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 6px;
}

.twp-subscribe-box p:last-child { margin-bottom: 0; }

.twp-subscribe-privacy {
    background: transparent;
    border: none;
    padding: 10px 0;
}

.twp-subscribe-privacy p {
    font-size: 0.78rem;
    color: #4d4d4d;
    font-style: italic;
}

@media (max-width: 768px) {
    .twp-subscribe-grid { grid-template-columns: 1fr; }
    .twp-subscribe-main { padding-right: 0; border-right: none; padding-bottom: 28px; }
    .twp-subscribe-side { padding-left: 0; }
}

/* Footer social SVG icons */
.twp-footer-social svg { width: 18px; height: 18px; fill: currentColor; }
