/* The Handelot Times - public site (2026 design) */
:root {
    --bg: #0b1221;
    --bg-deep: #070c17;
    --panel: #111b31;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .14);
    --text: #e9e6df;
    --muted: #8f98ab;
    --cream: #f4efe4;
    --gold: #dcb866;
    --gold-soft: #c9a75c;
    --gold-ink: #1a1508;
    --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
    --sans: 'Jost', 'Segoe UI', Roboto, Arial, sans-serif;
    --wrap: 2400px;
    --gutter: clamp(16px, 4.5vw, 72px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.th-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- world clocks ---------- */
.th-clocks { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.th-clocks .th-wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.th-clock { padding: 12px 18px 12px; border-left: 1px solid var(--line); }
.th-clock:last-child { border-right: 1px solid var(--line); }
.th-clock-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.th-city { font-size: 13px; font-weight: 600; color: #fff; }
.th-status { font-size: 11px; color: var(--muted); white-space: nowrap; }
.th-status.is-open { color: #cfd5e0; }
.th-time-row { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.th-time { font-size: clamp(18px, 2.1vw, 30px); font-weight: 500; color: var(--gold); letter-spacing: .02em; font-variant-numeric: tabular-nums; line-height: 1.25; }
.th-date { font-size: 11px; color: var(--muted); white-space: nowrap; }
.th-daybar { height: 3px; background: rgba(255, 255, 255, .1); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.th-daybar span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 3px; transition: width .6s linear; }

/* ---------- header ---------- */
.th-header { border-bottom: 1px solid var(--line); }
.th-header .th-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.th-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 18px; color: #fff; white-space: nowrap; }
.th-brand img { width: 36px; height: 36px; }
.th-nav { display: flex; align-items: center; gap: 28px; }
.th-nav a { font-size: 14px; color: #e6e8ee; transition: color .15s; }
.th-nav a:hover, .th-nav a.is-active { color: var(--gold); }
.th-menu-btn { display: none; background: none; border: 1px solid var(--line-strong); color: #fff; border-radius: 8px; width: 42px; height: 38px; cursor: pointer; }
.th-menu-btn span, .th-menu-btn span::before, .th-menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; margin: 0 auto; position: relative; content: ''; }
.th-menu-btn span::before { position: absolute; top: -6px; }
.th-menu-btn span::after { position: absolute; top: 6px; }

/* ---------- buttons ---------- */
.th-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 44px; padding: 0 22px; border-radius: 999px;
    font-family: var(--sans); font-size: 15px; font-weight: 500; line-height: 1;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s, border-color .15s;
}
.th-btn-gold { background: var(--gold); color: var(--gold-ink); }
.th-btn-gold:hover { background: #e7c679; }
.th-btn-outline { border-color: var(--line-strong); color: #fff; background: transparent; }
.th-btn-outline:hover { border-color: rgba(255, 255, 255, .35); }
.th-btn-gold-outline { border-color: var(--gold-soft); color: var(--gold); background: transparent; }
.th-btn-gold-outline:hover { background: rgba(220, 184, 102, .1); }
.th-btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

/* ---------- hero: latest issue ---------- */
.th-hero { padding: clamp(32px, 6vw, 110px) 0 clamp(40px, 6vw, 110px); }
.th-hero .th-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.th-kicker { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.th-badge { background: var(--gold); color: var(--gold-ink); font-weight: 600; font-size: 12px; padding: 3px 11px; border-radius: 999px; }
.th-hero h1 {
    font-family: var(--serif); font-weight: 300; color: var(--cream);
    font-size: clamp(38px, 5.4vw, 86px); line-height: 1.05; letter-spacing: -.01em;
    margin: .35em 0 .5em; max-width: 9.8em;
}
.th-articles { list-style: none; margin: 0 0 clamp(24px, 2.6vw, 44px); padding: 0; border-top: 1px solid var(--line); }
.th-articles li { display: flex; justify-content: space-between; gap: 24px; padding: clamp(11px, 1vw, 18px) 0; border-bottom: 1px solid var(--line); font-size: clamp(14px, 1.05vw, 19px); color: #f1f2f5; }
.th-articles .th-pages { flex: none; font-size: clamp(12px, .85vw, 15px); color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.th-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.th-pdf { font-size: 13px; color: var(--muted); margin-left: 6px; }
.th-pdf:hover { color: var(--gold); }
.th-cover { display: flex; justify-content: flex-end; }
.th-cover a { display: block; width: min(100%, clamp(300px, 38vw, 540px)); border-radius: 4px; overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04); transition: transform .25s ease; }
.th-cover a:hover { transform: translateY(-3px); }
.th-cover img { width: 100%; height: auto; }

/* ---------- previous issue ---------- */
.th-divider { border: 0; border-top: 1px solid var(--line); margin: 0; }
.th-previous { padding: clamp(32px, 3.6vw, 64px) 0 clamp(40px, 5vw, 96px); }
.th-previous .th-wrap { display: grid; grid-template-columns: clamp(110px, 20vw, 340px) minmax(0, 1fr); gap: clamp(18px, 4vw, 72px); align-items: center; }
.th-previous .th-cover-sm { display: block; border-radius: 3px; overflow: hidden; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
.th-previous .th-cover-sm img { width: 100%; height: auto; }
.th-previous .th-meta { font-size: clamp(12px, .9vw, 16px); color: var(--muted); }
.th-previous h2 { font-family: var(--serif); font-weight: 300; color: var(--cream); font-size: clamp(26px, 3.3vw, 52px); line-height: 1.12; margin: .3em 0 .45em; max-width: 17em; }
.th-nowrap { white-space: nowrap; }
.th-previous p { color: #c9ccd4; font-size: clamp(14px, 1vw, 18px); margin: 0 0 clamp(18px, 1.6vw, 28px); max-width: 52em; }

/* ---------- newsletter ---------- */
.th-join { padding: 0 0 clamp(40px, 5vw, 96px); }
.th-join-box { background: var(--panel); border-radius: 16px; padding: clamp(28px, 3vw, 56px) clamp(24px, 3.6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.th-join h2 { font-family: var(--serif); font-weight: 300; color: var(--cream); font-size: clamp(24px, 2.3vw, 42px); margin: 0 0 4px; line-height: 1.2; }
.th-join p { margin: 0; color: #c9ccd4; font-size: 14px; }
.th-join label { display: block; font-size: 13px; color: #d9dce3; margin-bottom: 6px; }
.th-join-row { display: flex; gap: 10px; }
.th-join input[type=email] {
    flex: 1; min-width: 0; height: 44px; border-radius: 999px; padding: 0 18px;
    background: var(--bg-deep); border: 1px solid var(--line-strong); color: #fff;
    font-family: var(--sans); font-size: 15px; outline: none;
}
.th-join input[type=email]:focus { border-color: var(--gold-soft); }
.th-join input[type=email]::placeholder { color: #6f788b; }
.th-join-msg { font-size: 13px; margin-top: 8px; min-height: 1.2em; color: var(--gold); }
.th-join-msg.is-error { color: #f09a8e; }

/* ---------- banners ---------- */
.th-banner { display: flex; justify-content: center; padding: 28px 0; }
.th-banner-inner { position: relative; width: 728px; max-width: 100%; aspect-ratio: 728 / 90; }
.th-banner-inner iframe { width: 100%; height: 100%; border: 0; }
.th-banner-inner .th-banner-hit { position: absolute; inset: 0; }

/* ---------- archive ---------- */
.th-page-head { padding: 44px 0 8px; }
.th-page-head h1 { font-family: var(--serif); font-weight: 300; color: var(--cream); font-size: clamp(34px, 4.4vw, 48px); line-height: 1.1; margin: 0 0 6px; }
.th-page-head p { margin: 0; color: var(--muted); font-size: 15px; }
.th-archive { padding: 28px 0 64px; }
.th-archive-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 22px 16px; }
.th-archive-grid li { margin: 0; }
.th-archive-grid .th-thumb { aspect-ratio: 300 / 425; border-radius: 3px; overflow: hidden; background: var(--panel); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.th-archive-grid .th-thumb img { width: 100%; height: 100%; object-fit: cover; }
.th-archive-grid .th-cap { margin-top: 6px; font-size: 11px; line-height: 1.3; color: var(--muted); }
.th-archive-grid .th-cap strong { display: block; color: #e6e8ee; font-weight: 500; font-size: 12px; }

/* ---------- footer ---------- */
.th-footer { border-top: 1px solid var(--line); padding: 26px 0 34px; font-size: 13px; color: var(--muted); }
.th-footer .th-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.th-footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.th-footer a:hover { color: var(--gold); }
.th-social { display: flex; gap: 14px; }
.th-social img { width: 22px; height: 22px; opacity: .75; }
.th-social a:hover img { opacity: 1; }

/* ---------- cookie note ---------- */
.th-cookie {
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 720px; margin: 0 auto;
    display: none; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 12px;
    background: #16213b; border: 1px solid var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
    font-size: 13px; color: #d9dce3;
}
.th-cookie.is-shown { display: flex; }
.th-cookie a { color: var(--gold); }
.th-cookie p { margin: 0; flex: 1; }


/* ---------- subscribers ---------- */
.th-members { padding: clamp(20px, 2.4vw, 40px) 0 clamp(8px, 1vw, 16px); }
.th-members-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: clamp(18px, 1.8vw, 28px); border-bottom: 1px solid var(--line); }
.th-members-head h2 { font-family: var(--serif); font-weight: 300; color: var(--cream); font-size: clamp(26px, 2.4vw, 40px); line-height: 1.15; margin: 0; }
.th-count { font-size: 12px; font-weight: 600; color: var(--gold-ink); background: var(--gold); border-radius: 999px; padding: 2px 10px; }
.th-members-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(14px, 1.4vw, 24px); }
.th-member { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .2s; }
.th-member:hover { border-color: rgba(220, 184, 102, .35); transform: translateY(-2px); }
.th-member-logo { background: #fff; height: clamp(120px, 9vw, 170px); display: flex; align-items: center; justify-content: center; padding: 18px 24px; }
.th-member-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.th-member-initial { font-family: var(--serif); font-size: 48px; color: #1d2740; }
.th-member-body { padding: 14px 18px 18px; }
.th-member h3 { margin: 0 0 4px; font-size: 16px; font-weight: 500; color: #fff; line-height: 1.3; }
.th-member p { margin: 0; font-size: 13px; color: var(--muted); }
.th-empty { color: var(--muted); }
.th-cta { padding: clamp(28px, 3vw, 48px) 0 clamp(36px, 4vw, 64px); }
.th-cta .th-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.th-cta p { margin: 0; font-family: var(--serif); font-size: clamp(22px, 1.8vw, 30px); font-weight: 300; color: var(--cream); }

/* ---------- advertising options ---------- */
.th-plans { padding: clamp(20px, 2.4vw, 40px) 0 0; }
.th-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: clamp(16px, 2vw, 32px); }
/* each block from Admin > Plans becomes a card (it still carries old Bootstrap classes such as "col mt-5") */
.th-plans-grid > * { margin: 0 !important; padding: clamp(24px, 2.4vw, 40px); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; max-width: none; width: auto; }
.th-plans-grid h3 { margin: 0 0 18px; font-family: var(--serif); font-weight: 300; color: var(--cream); font-size: clamp(26px, 2.3vw, 38px); line-height: 1.15; }
.th-plans-grid ul { list-style: none; margin: 0; padding: 0; }
.th-plans-grid li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); font-size: clamp(14px, 1vw, 17px); color: #d6d9e0; }
.th-plans-grid li:first-child { border-top: 0; }
.th-plans-grid li::before {
    content: ''; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px;
    border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.th-plans-grid strong { color: #fff; font-weight: 500; }
.th-plans-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: clamp(24px, 2.6vw, 44px) 0 0; font-size: 14px; color: var(--muted); }
.th-plans-cta a:not(.th-btn) { color: var(--gold); }
.th-plans-visual { padding: clamp(24px, 3vw, 56px) 0 clamp(32px, 4vw, 64px); }
.th-plans-visual picture { display: block; max-width: 1200px; margin: 0 auto; }
.th-plans-visual img { width: 100%; height: auto; mix-blend-mode: lighten; } /* black photo background melts into the page */
.th-note { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .th-clock { padding: 10px 12px; }
    .th-time { font-size: 20px; }
    .th-date { display: none; }
}
@media (max-width: 900px) {
    .th-menu-btn { display: block; }
    .th-nav {
        display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
        flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 20px;
        background: var(--bg); border-bottom: 1px solid var(--line);
    }
    .th-nav.is-open { display: flex; }
    .th-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .th-nav a.th-btn { margin-top: 14px; border-bottom: 1px solid var(--gold-soft); }
    .th-header { position: relative; }
    .th-hero .th-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .th-cover { order: -1; justify-content: center; }
    .th-cover a { width: min(72%, 320px); }
    .th-join-box { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; gap: 20px; }
}
@media (max-width: 640px) {
    .th-wrap { padding: 0 16px; }
    .th-clocks .th-wrap { grid-template-columns: repeat(2, 1fr); padding: 0; }
    .th-clock { border-left: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 9px 16px; }
    .th-clock:nth-child(odd) { border-right: 1px solid var(--line); }
    .th-clock:nth-last-child(-n+2) { border-bottom: 0; }
    .th-clock:last-child { border-right: 0; }
    .th-status { font-size: 10px; }
    .th-time { font-size: 19px; }
    .th-header .th-wrap { min-height: 62px; }
    .th-brand { font-size: 16px; }
    .th-brand img { width: 30px; height: 30px; }
    .th-hero { padding: 32px 0 40px; }
    .th-hero h1 { margin: 16px 0 24px; }
    .th-articles li { font-size: 14px; }
    .th-actions .th-btn { flex: 1 1 auto; }
    .th-previous .th-wrap { grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: start; }
    .th-previous p { font-size: 14px; }
    .th-join-row { flex-direction: column; }
    .th-join input[type=email] { flex: none; width: 100%; }
    .th-join-row .th-btn { width: 100%; }
    .th-archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 10px; }
    .th-members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .th-member-logo { height: 96px; padding: 12px 14px; }
    .th-member-body { padding: 10px 12px 12px; }
    .th-member h3 { font-size: 14px; }
    .th-member p { font-size: 12px; }
    .th-archive-grid .th-cap { font-size: 10px; }
    .th-archive-grid .th-cap strong { font-size: 11px; }
    .th-cookie { flex-direction: column; align-items: stretch; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .th-cover a, .th-daybar span { transition: none; }
}
