/*
Theme Name: TechMonka
Theme URI: https://techmonka.com
Author: Inovatiq
Description: Tech news, reviews and how-tos from Malta.
Version: 1.1.10
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: techmonka
*/

/* ==========================================================================
   Brand tokens
   Ink-on-paper newsroom look with one loud accent. --tm-accent is overridden
   inline from the Customizer (see tm_brand_accent()).
   ========================================================================== */
:root {
	--tm-accent: #FFD400;
	--tm-ink: #111111;
	--tm-paper: #ffffff;
	--tm-muted: #555555;
	--tm-body: #333333;
	--tm-rule: #dddddd;
	--tm-soft: #f3f3f0;
	--tm-sans: Archivo, 'Helvetica Neue', sans-serif;
	--tm-serif: Newsreader, Georgia, serif;
	--tm-mono: 'JetBrains Mono', monospace;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--tm-paper); color: var(--tm-ink); font-family: var(--tm-sans); }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--tm-ink); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; }
/* Keyboard focus: thick ink ring to match the 2px-border look, accent on the black bands
   where ink wouldn't show. Mouse clicks don't trigger it (:focus-visible). */
:focus-visible { outline: 3px solid var(--tm-ink); outline-offset: 2px; }
.utility :focus-visible, .reviews-band :focus-visible, .site-footer :focus-visible, .prose .is-style-key-facts :focus-visible { outline-color: var(--tm-accent); }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { clip: auto; clip-path: none; height: auto; width: auto; background: var(--tm-accent); color: var(--tm-ink); padding: 12px 16px; z-index: 100000; left: 8px; top: 8px; font-weight: 800; }

/* Headlines underline in the accent colour on hover instead of changing colour,
   so black-on-white and white-on-black bands behave the same. */
.headline-link:hover, .headline-link:focus-visible { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--tm-accent); text-underline-offset: 4px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Small mono labels: section kickers, dates, read times. */
.kicker { font-family: var(--tm-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-tag { background: var(--tm-accent); color: var(--tm-ink); font-family: var(--tm-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 5px 8px; text-transform: uppercase; }
.format-tag { border: 2px solid var(--tm-ink); font-family: var(--tm-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; text-transform: uppercase; }
.story-meta { font-family: var(--tm-mono); font-size: 12px; color: var(--tm-muted); }
.card-standfirst { margin: 0; font-family: var(--tm-serif); font-size: 17px; line-height: 1.45; color: #444444; }

/* Photo slot. Without a featured image it shows a hatched tile with a label
   ("Lead image", "Product image"), so layouts hold their shape before photos arrive. */
.story-media { background-color: #d9d9d4; background-image: repeating-linear-gradient(135deg, rgba(0,0,0,.07) 0 2px, transparent 2px 12px); display: flex; align-items: flex-end; padding: 10px; font-family: var(--tm-mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-body); overflow: hidden; position: relative; }
.story-media.has-photo { padding: 0; background-image: none; }
.story-media.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.story-media.avatar { border-radius: 50%; padding: 0; flex-shrink: 0; }
.story-media.avatar img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
.ad-slot { justify-content: center; align-items: center; background-color: #eeeeea; border: 1px dashed #999999; }

/* Buttons: square corners and 2px ink borders everywhere — no rounded UI on TechMonka. */
.icon-button { width: 44px; height: 44px; border: 2px solid var(--tm-ink); background: var(--tm-paper); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.button-solid { height: 44px; padding: 0 20px; background: var(--tm-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; border: none; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.button-solid:hover { color: #fff; }
.button-outline { height: 52px; border: 2px solid var(--tm-ink); background: var(--tm-paper); display: flex; align-items: center; justify-content: center; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 15px; cursor: pointer; width: 100%; }

/* Block headings ("LATEST ————") with the thick rule running to the edge. */
.section-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; font-size: 36px; font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.section-heading .heading-rule { flex-grow: 1; height: 4px; background: var(--tm-ink); }
.section-heading.spaced { justify-content: space-between; }
.see-all { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 2px solid var(--tm-ink); }

/* ==========================================================================
   Utility bar (date + Newsletter / Advertise)
   ========================================================================== */
.utility { background: var(--tm-ink); color: #fff; font-family: var(--tm-mono); font-size: 12px; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; height: 36px; gap: 16px; }
.utility nav { display: flex; gap: 24px; }
.utility a, .utility a:hover { color: #fff; }

/* ==========================================================================
   Masthead
   ========================================================================== */
.masthead { border-bottom: 4px solid var(--tm-ink); background: var(--tm-paper); }
.masthead-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 20px; }
/* Logo is a 375x68 PNG. Sized by width with height:auto so it shrinks in proportion
   when a narrow phone runs out of room (needs min-width:0 on the flex item). */
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 243px; max-width: 100%; height: auto; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.nav { display: flex; gap: 28px; flex-wrap: nowrap; }
/* wp_nav_menu() output is flattened so menu items line up exactly like the fallback links. */
.nav ul { list-style: none; margin: 0; padding: 0; display: contents; }
.nav li { display: contents; }
.nav-sections { padding-top: 4px; padding-bottom: 14px; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.nav a { padding-bottom: 2px; border-bottom: 3px solid transparent; }
.nav .current-menu-item > a, .nav .current-cat > a, .nav .current-post-ancestor > a, .nav .current-menu-parent > a, .nav a.is-current { border-bottom-color: var(--tm-ink); }

/* Compact masthead on articles and pages: one 76px row, smaller wordmark, nav inline. */
.masthead.compact .masthead-top { height: 76px; padding-top: 0; padding-bottom: 0; } /* not `padding: 0`, that would drop .wrap's side gutters */
.masthead.compact .brand { gap: 10px; }
.masthead.compact .brand-logo { width: 176px; }
.masthead.compact .nav { gap: 24px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.masthead.compact .button-solid { padding: 0 18px; }

.search-drawer { border-bottom: 2px solid var(--tm-ink); background: var(--tm-soft); }
.search-drawer[hidden] { display: none; }
.search-form { display: flex; gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.search-form input[type=search] { flex: 1; height: 48px; border: 2px solid var(--tm-ink); padding: 0 14px; font-size: 16px; background: #fff; min-width: 0; }
.search-form button { height: 48px; }

/* ==========================================================================
   Trending ticker (homepage, under the masthead)
   ========================================================================== */
.ticker { background: var(--tm-accent); border-bottom: 2px solid var(--tm-ink); }
.ticker .wrap { display: flex; align-items: center; gap: 20px; height: 48px; white-space: nowrap; font-size: 15px; font-weight: 600; }
.ticker-label { flex-shrink: 0; background: var(--tm-ink); color: var(--tm-accent); font-family: var(--tm-mono); font-size: 12px; font-weight: 700; padding: 6px 10px; letter-spacing: .08em; }
.ticker-window { flex: 1; min-width: 0; overflow: hidden; }
.ticker-track { display: flex; align-items: center; gap: 20px; width: max-content; }
.ticker-dot { font-size: 10px; }
.ticker:not(.is-moving) .ticker-dot:last-child { display: none; }
/* main.js clones the headlines and sets --ticker-shift (one copy's width) and
   --ticker-duration, so the loop is seamless and the speed is the same however long the titles are. */
.ticker.is-moving .ticker-track { animation: tm-ticker var(--ticker-duration, 40s) linear infinite; }
.ticker.is-moving:hover .ticker-track, .ticker.is-moving:focus-within .ticker-track, .ticker.is-paused .ticker-track { animation-play-state: paused; }
@keyframes tm-ticker { to { transform: translateX(var(--ticker-shift, -50%)); } }
.ticker-pause { flex-shrink: 0; width: 32px; height: 32px; border: 2px solid var(--tm-ink); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; color: var(--tm-ink); }
.ticker-pause[hidden] { display: none; }
.ticker-pause svg:last-child, .ticker-pause[aria-pressed=true] svg:first-child { display: none; }
.ticker-pause[aria-pressed=true] svg:last-child { display: block; }
@media (prefers-reduced-motion: reduce) {
	.ticker.is-moving .ticker-track { animation: none; }
}

/* ==========================================================================
   Homepage grids
   minmax(0, …) everywhere so long unbroken headlines can't push columns wider.
   ========================================================================== */
.hero-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 32px; }
.main-grid { display: grid; grid-template-columns: minmax(0,8fr) minmax(0,4fr); gap: 48px; }
.four-up { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.three-up { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.footer-grid { display: grid; grid-template-columns: minmax(0,2fr) repeat(3, minmax(0,1fr)); gap: 40px; }
.story-row { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 24px; }
.side-story { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 16px; }

/* Lead story + side stories */
.hero { padding-top: 32px; padding-bottom: 40px; }
.lead-story { display: flex; flex-direction: column; gap: 16px; }
.lead-story .story-media { height: 440px; }
.lead-story-meta { display: flex; gap: 10px; align-items: center; }
.lead-headline { margin: 0; font-size: 60px; line-height: .98; font-weight: 900; font-stretch: 75%; letter-spacing: -.01em; }
.lead-story .standfirst { margin: 0; font-family: var(--tm-serif); font-size: 21px; line-height: 1.45; color: var(--tm-body); }
.lead-byline { font-size: 14px; font-weight: 600; }

.side-stories { display: flex; flex-direction: column; }
.side-story { padding: 20px 0; border-bottom: 1px solid var(--tm-rule); }
.side-story:first-child { padding-top: 0; }
.side-story:last-child { padding-bottom: 0; border-bottom: none; }
.side-story .story-media { height: 120px; }
.side-story .card-text, .story-row .card-text { display: flex; flex-direction: column; gap: 8px; }
.side-story h2 { margin: 0; font-size: 24px; line-height: 1.05; font-weight: 800; font-stretch: 80%; }

/* "Latest" list */
.latest { padding-bottom: 56px; }
.story-list { display: flex; flex-direction: column; gap: 28px; }
.story-row .story-media { height: 150px; }
.story-row h3 { margin: 0; font-size: 28px; line-height: 1.05; font-weight: 800; font-stretch: 80%; }
.load-more { margin-top: 32px; }

/* Sidebar: Most read / Trending now */
.sidebar { display: flex; flex-direction: column; gap: 32px; }
.ruled-box { border: 2px solid var(--tm-ink); padding: 24px; }
.ruled-box > h2 { margin: 0 0 16px 0; font-size: 28px; font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.ranked-stories { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.ranked-stories li { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--tm-rule); }
.ranked-stories li:last-child { padding-bottom: 0; border-bottom: none; }
.ranked-stories .rank { font-size: 40px; font-weight: 900; font-stretch: 75%; line-height: .9; color: var(--tm-ink); min-width: 28px; }
.ranked-stories a { font-size: 18px; font-weight: 700; line-height: 1.2; }
/* "Trending now" sits beside a 700px article column, so it is set a size smaller. */
.ruled-box.trending > h2 { font-size: 26px; margin-bottom: 8px; }
.ruled-box.trending .ranked-stories li { gap: 14px; }
.ruled-box.trending .ranked-stories .rank { font-size: 36px; min-width: 24px; }
.ruled-box.trending .ranked-stories a { font-size: 17px; }

/* Monka Morning sidebar box */
.newsletter-box { background: var(--tm-accent); padding: 28px; display: flex; flex-direction: column; gap: 12px; border: 2px solid var(--tm-ink); }
.newsletter-eyebrow { font-family: var(--tm-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.newsletter-box h2 { margin: 0; font-size: 34px; line-height: .95; font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.newsletter-box p { margin: 0; font-family: var(--tm-serif); font-size: 17px; line-height: 1.4; }
.newsletter-box label, .newsletter-strip label { font-size: 13px; font-weight: 700; }
.newsletter-box label { margin-top: 4px; }
.newsletter-box form { display: flex; flex-direction: column; gap: 12px; }
.newsletter-box input { height: 48px; border: 2px solid var(--tm-ink); padding: 0 14px; font-size: 16px; background: #fff; width: 100%; }
.newsletter-box button { height: 48px; background: var(--tm-ink); color: #fff; border: none; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.newsletter-status { font-family: var(--tm-mono); font-size: 12px; font-weight: 700; }

/* Gadgets row on the soft grey band */
.gadgets-band { background: var(--tm-soft); border-top: 4px solid var(--tm-ink); padding-top: 40px; padding-bottom: 48px; }
.story-card { display: flex; flex-direction: column; gap: 12px; }
.story-card .story-media { height: 200px; }
.story-card h3 { margin: 0; font-size: 22px; line-height: 1.08; font-weight: 800; font-stretch: 80%; }

/* Monka Reviews on the black band */
.reviews-band { background: var(--tm-ink); color: #fff; padding-top: 48px; padding-bottom: 56px; }
.reviews-band .section-heading { margin-bottom: 28px; }
.reviews-band .section-heading h2 span { color: var(--tm-accent); }
.reviews-band a, .reviews-band a:hover { color: #fff; }
.reviews-band .see-all { border-bottom-color: var(--tm-accent); }
.review-card { display: flex; flex-direction: column; gap: 14px; }
.review-photo { position: relative; }
.review-card .story-media { height: 240px; background-color: #3a3d42; color: #cccccc; }
.review-card h3 { margin: 0; font-size: 26px; line-height: 1.05; font-weight: 800; font-stretch: 80%; }
/* Verdict badges get louder the more we recommend the product. */
.verdict { position: absolute; top: 12px; left: 12px; font-family: var(--tm-mono); font-size: 12px; font-weight: 700; padding: 6px 10px; letter-spacing: .06em; text-transform: uppercase; z-index: 1; }
.verdict-buy { background: var(--tm-accent); color: var(--tm-ink); }
.verdict-wait { background: #fff; color: var(--tm-ink); }
.verdict-skip { background: var(--tm-ink); color: #fff; border: 2px solid #fff; padding: 4px 8px; }

/* Made in Malta — text-only cards */
.made-in-malta { padding-top: 48px; padding-bottom: 64px; }
.text-card { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--tm-ink); padding-top: 16px; }
.text-card h3 { margin: 0; font-size: 26px; line-height: 1.05; font-weight: 800; font-stretch: 80%; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--tm-ink); color: #fff; padding-top: 56px; padding-bottom: 32px; border-top: 8px solid var(--tm-accent); }
.site-footer a, .site-footer a:hover { color: #fff; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
/* The logo has a white background, so on the black footer it sits on a white badge. */
.footer-logo { align-self: flex-start; background: #fff; padding: 8px 10px; }
.footer-logo img { width: 199px; height: auto; }
.footer-brand p { margin: 0; font-family: var(--tm-serif); font-size: 17px; line-height: 1.5; color: #cccccc; max-width: 360px; }
/* YouTube and X logos are PNGs with their own shapes, so no box around them; 44px links keep the tap target. */
.socials { display: flex; gap: 12px; align-items: center; }
.socials a { height: 44px; display: flex; align-items: center; }
.socials img { height: 34px; width: auto; }
.footer-column { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer-column ul { list-style: none; margin: 0; padding: 0; display: contents; }
.footer-column li { display: contents; }
.footer-label { font-family: var(--tm-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--tm-accent); text-transform: uppercase; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid #444444; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--tm-mono); font-size: 12px; color: #bbbbbb; }

/* ==========================================================================
   Article
   ========================================================================== */
/* Logged-in editors get WP's fixed admin bar on top: 32px, 46px up to 782px wide, and
   below 600px it scrolls away with the page. Every sticky / scroll-to offset adds this. */
:root { --tm-admin-bar: 0px; }
.admin-bar { --tm-admin-bar: 32px; }
.reading-progress { position: sticky; top: var(--tm-admin-bar); z-index: 20; height: 6px; background: #eeeeea; }
.reading-progress > div { height: 6px; width: 0; background: var(--tm-ink); }

.article-header { padding-top: 40px; }
.article-header-inner { max-width: 920px; display: flex; flex-direction: column; gap: 18px; }
.breadcrumbs { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-family: var(--tm-mono); font-size: 12px; color: var(--tm-muted); }
.breadcrumbs .section-tag { font-size: 12px; }
.article-title { margin: 0; font-size: 68px; line-height: .96; font-weight: 900; font-stretch: 75%; letter-spacing: -.01em; text-wrap: balance; }
.article-standfirst { margin: 0; font-family: var(--tm-serif); font-size: 24px; line-height: 1.4; color: var(--tm-body); text-wrap: pretty; }
.byline-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; margin-top: 6px; border-top: 2px solid var(--tm-ink); border-bottom: 2px solid var(--tm-ink); flex-wrap: wrap; }
.byline { display: flex; align-items: center; gap: 14px; }
.byline-text { display: flex; flex-direction: column; gap: 2px; }
.byline-name { font-weight: 800; font-size: 16px; }
.byline-actions { display: flex; gap: 10px; align-items: center; }
.byline-pill { height: 44px; padding: 0 16px; border: 2px solid var(--tm-ink); background: #fff; font-family: var(--tm-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.byline-pill[aria-pressed=true] { background: var(--tm-accent); }

.lead-figure { margin: 32px 0 0 0; }
.lead-figure .story-media { height: 600px; background-color: #c9cfd6; }
.lead-figure figcaption, .prose figcaption, .prose .wp-element-caption { margin-top: 10px; font-family: var(--tm-mono); font-size: 12px; color: var(--tm-muted); line-height: 1.5; }

/* Share rail | 700px story column | 320px sidebar. Pages drop the share rail (.no-share). */
.article-body { padding-top: 48px; padding-bottom: 64px; }
.article-grid { display: grid; grid-template-columns: 72px minmax(0,1fr) 320px; gap: 48px; }
.article-grid > aside { align-self: stretch; }
.article-grid.no-share { grid-template-columns: minmax(0,1fr) 320px; }
.share-rail { display: flex; flex-direction: column; gap: 10px; position: sticky; top: calc(30px + var(--tm-admin-bar)); align-self: start; }
/* Facebook / WhatsApp / LinkedIn are round brand-colour images (assets/images/*-svg.svg);
   the copy-link button is drawn as a matching yellow circle. */
.share-rail a, .share-rail button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.share-rail a img { width: 44px; height: 44px; }
.share-rail button { background: var(--tm-accent); border: 2px solid var(--tm-ink); border-radius: 50%; }
.share-rail :focus-visible { border-radius: 50%; }
.copied-notice { font-family: var(--tm-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.article-column { display: flex; flex-direction: column; max-width: 700px; min-width: 0; }

/* --------------------------------------------------------------------------
   Story text (.prose)
   Styles plain WordPress block output so editors never need custom HTML.
   -------------------------------------------------------------------------- */
.prose { font-family: var(--tm-serif); font-size: 21px; line-height: 1.6; color: #1a1a1a; }
.prose p { margin: 0 0 22px 0; }
/* Every story opens with a yellow drop cap; editors can also add one manually. */
.prose > p:first-of-type::first-letter, .prose p.has-drop-cap:not(:focus)::first-letter { float: left; font-family: var(--tm-sans); font-weight: 900; font-stretch: 75%; font-size: 92px; line-height: .8; margin: 8px 12px 0 0; background: var(--tm-accent); padding: 6px 10px 2px 10px; color: var(--tm-ink); }
.prose a {font-weight: 800; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--tm-accent); text-underline-offset: 3px; }
/* scroll-margin keeps subheads clear of the sticky progress bar when jumped to from "In this story". */
.prose h2 { font-family: var(--tm-sans); font-size: 34px; line-height: 1.05; font-weight: 900; font-stretch: 75%; text-transform: uppercase; margin: 48px 0 16px 0; scroll-margin-top: calc(24px + var(--tm-admin-bar)); }
.prose h3 { font-family: var(--tm-sans); font-size: 24px; line-height: 1.1; font-weight: 800; font-stretch: 80%; margin: 36px 0 12px 0; scroll-margin-top: calc(24px + var(--tm-admin-bar)); }
.prose ul, .prose ol { margin: 0 0 22px 0; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; }
.prose .wp-block-image .story-media, .prose figure > .story-media { height: 380px; background-color: #d6dde3; }

/* Quote and Pullquote blocks both render as the big condensed pull quote between thick rules. */
.prose blockquote, .prose .wp-block-pullquote { margin: 36px 0; padding: 28px 0; border: none; border-top: 4px solid var(--tm-ink); border-bottom: 4px solid var(--tm-ink); font-family: var(--tm-sans); text-align: left; }
.prose blockquote p, .prose .wp-block-pullquote p, .prose .wp-block-pullquote blockquote { margin: 0; font-size: 38px; line-height: 1.05; font-weight: 900; font-stretch: 75%; border: none; padding: 0; }
.prose blockquote cite, .prose .wp-block-pullquote cite { display: block; margin-top: 14px; font-family: var(--tm-mono); font-size: 13px; color: var(--tm-muted); font-style: normal; text-transform: none; }
.prose blockquote cite::before, .prose .wp-block-pullquote cite::before { content: "— "; }

/* Tables (e.g. "Who's building what"): black header row; first and last columns bold
   because they usually hold the row name and the verdict. */
.prose table, .prose .wp-block-table table { width: 100%; border-collapse: collapse; border: 2px solid var(--tm-ink); font-family: var(--tm-sans); font-size: 16px; line-height: 1.35; }
.prose .wp-block-table { margin: 8px 0 32px 0; overflow-x: auto; }
.prose th, .prose thead td { background: var(--tm-ink); color: #fff; font-family: var(--tm-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; text-align: left; padding: 12px 16px; border: none; }
.prose td { padding: 14px 16px; border: none; border-bottom: 1px solid var(--tm-rule); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.prose td:first-child, .prose td:last-child { font-weight: 800; }
.prose .wp-block-table thead { border-bottom: none; }

/* Block style "Monka Quick Take": grey box with the yellow label, for a 3-bullet summary. */
.prose .is-style-quick-take { background: var(--tm-soft); border: 2px solid var(--tm-ink); padding: 24px 28px; margin: 36px 0; font-family: var(--tm-sans); }
.prose .is-style-quick-take::before, .prose .is-style-key-facts::before { display: inline-block; font-family: var(--tm-mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; background: var(--tm-accent); color: var(--tm-ink); padding: 4px 8px; }
.prose .is-style-quick-take::before { content: "MONKA QUICK TAKE"; }
.prose .is-style-quick-take ul, .prose ul.is-style-quick-take { margin: 16px 0 0 0; padding-left: 20px; font-size: 18px; line-height: 1.5; }
.prose ul.is-style-quick-take { padding: 24px 28px 24px 48px; }
.prose ul.is-style-quick-take::before { margin-left: -20px; margin-bottom: 16px; }
.prose .is-style-quick-take li { margin-bottom: 8px; }
.prose .is-style-quick-take p { font-size: 18px; line-height: 1.5; margin: 16px 0 0 0; }

/* Block style "Key facts": black panel of three big numbers. In a list, each item is
   "<em>Label</em>Value"; the label is moved above the number with order:-1. */
.prose .is-style-key-facts { background: var(--tm-ink); color: #fff; padding: 24px 28px; margin: 32px 0; font-family: var(--tm-sans); }
.prose .is-style-key-facts::before { content: "KEY FACTS"; }
.prose .is-style-key-facts dl, .prose .is-style-key-facts ul, .prose ul.is-style-key-facts { margin: 18px 0 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.prose .is-style-key-facts li, .prose .is-style-key-facts dl > div { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 40px; font-weight: 900; font-stretch: 75%; line-height: 1; }
.prose .is-style-key-facts li em, .prose .is-style-key-facts dt { order: -1; font-style: normal; font-family: var(--tm-mono); font-size: 11px; font-weight: 400; letter-spacing: .06em; color: #bbbbbb; text-transform: uppercase; line-height: 1.3; }
.prose .is-style-key-facts dd { margin: 0; }
.prose ul.is-style-key-facts { margin: 32px 0; padding: 24px 28px; row-gap: 18px; }
.prose ul.is-style-key-facts::before { grid-column: 1 / -1; justify-self: start; }

/* Block style "Numbered steps" (ordered list): yellow number squares; a <strong> at the
   start of each item becomes the step title. */
.prose ol.is-style-steps { list-style: none; margin: 8px 0 32px 0; padding: 0; counter-reset: monka-step; font-family: var(--tm-sans); }
.prose ol.is-style-steps > li { counter-increment: monka-step; display: grid; grid-template-columns: 56px minmax(0,1fr); gap: 4px 16px; padding: 18px 0; border-top: 2px solid var(--tm-ink); margin: 0; font-family: var(--tm-serif); font-size: 18px; line-height: 1.5; color: var(--tm-body); }
.prose ol.is-style-steps > li:last-child { border-bottom: 2px solid var(--tm-ink); }
.prose ol.is-style-steps > li::before { content: counter(monka-step); grid-row: span 2; width: 44px; height: 44px; background: var(--tm-accent); color: var(--tm-ink); display: flex; align-items: center; justify-content: center; font-family: var(--tm-sans); font-size: 24px; font-weight: 900; font-stretch: 75%; }
.prose ol.is-style-steps > li strong { display: block; font-family: var(--tm-sans); font-size: 19px; font-weight: 800; color: var(--tm-ink); }

/* After the story: tags, author box, corrections line */
.story-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 32px; font-family: var(--tm-mono); font-size: 12px; }
.story-tags a { border: 2px solid var(--tm-ink); padding: 8px 12px; text-decoration: none; }

.author-box { margin-top: 40px; border: 2px solid var(--tm-ink); padding: 24px; display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 20px; align-items: start; scroll-margin-top: calc(24px + var(--tm-admin-bar)); }
.author-text { display: flex; flex-direction: column; gap: 8px; }
.author-name { font-size: 24px; font-weight: 900; font-stretch: 75%; text-transform: uppercase; line-height: 1; }
.author-text .kicker { color: var(--tm-muted); }
.person-title { font-family: var(--tm-mono); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tm-muted); }
.author-text p + p { margin-top: 10px; }
.person-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.person-socials a { width: 36px; height: 36px; display: flex; border-radius: 50%; }
.person-socials img { width: 36px; height: 36px; }
.person-socials .social-x { filter: invert(1); }
.person-socials .social-drawn { width: 36px; height: 36px; border-radius: 50%; background: var(--tm-ink); display: flex; align-items: center; justify-content: center; }
.author-box + .author-box { margin-top: 20px; }
/* [tm_authors] / [tm_contributors] inside page text: stacked boxes, and none of the .prose
   link underlines or 21px paragraph sizes leaking into them. */
.people-list { display: flex; flex-direction: column; gap: 20px; margin: 8px 0 36px 0; }
.people-list .author-box { margin-top: 0; }
.prose .author-box a { text-decoration: none; }
.prose .author-text { font-family: var(--tm-sans); }
.prose .author-box p { font-size: 17px; line-height: 1.5; }
.people-empty { font-family: var(--tm-mono); font-size: 13px; color: var(--tm-muted); }
.archive-head .author-box { margin-top: 16px; }
.author-box p { margin: 0; font-family: var(--tm-serif); font-size: 17px; line-height: 1.5; color: var(--tm-body); }
.author-links { display: flex; gap: 16px; font-family: var(--tm-mono); font-size: 12px; font-weight: 700; }
.corrections { margin: 24px 0 0 0; font-family: var(--tm-mono); font-size: 12px; line-height: 1.6; color: var(--tm-muted); }
.corrections a { text-decoration: underline; }

/* Reader comments. The form markup comes from WordPress core, hence the core class names. */
.comments { margin-top: 48px; scroll-margin-top: calc(24px + var(--tm-admin-bar)); }
.comments .section-heading { margin-bottom: 20px; }
.comments .section-heading h2 { font-size: 30px; }
.comment-respond { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.comment-respond .comment-reply-title { margin: 0; font-size: 13px; font-weight: 700; }
.comment-respond form { display: flex; flex-direction: column; gap: 10px; }
.comment-respond p { margin: 0; }
.comment-respond label { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
.comment-respond textarea, .comment-respond input[type=text], .comment-respond input[type=email], .comment-respond input[type=url] { border: 2px solid var(--tm-ink); padding: 12px 14px; font-size: 16px; width: 100%; }
.comment-respond textarea { resize: vertical; }
.comment-respond .submit { align-self: flex-start; height: 44px; padding: 0 20px; background: var(--tm-ink); color: #fff; border: none; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }
.comment-respond .comment-notes, .comment-respond .logged-in-as { font-family: var(--tm-mono); font-size: 12px; color: var(--tm-muted); }
.comment-respond .comment-form-cookies-consent { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.comment-respond .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children { list-style: none; margin: 0; padding-left: 54px; }
.comment-card { display: grid; grid-template-columns: 40px minmax(0,1fr); gap: 14px; padding: 18px 0; border-top: 1px solid var(--tm-rule); }
.comment-card .avatar { width: 40px; height: 40px; }
.comment-body { display: flex; flex-direction: column; gap: 6px; }
.commenter { font-weight: 800; font-size: 15px; }
.posted-ago { font-family: var(--tm-mono); font-size: 11px; font-weight: 400; color: var(--tm-muted); }
.comment-text p { margin: 0; font-family: var(--tm-serif); font-size: 17px; line-height: 1.5; }
.comment-actions { font-family: var(--tm-mono); font-size: 11px; font-weight: 700; color: var(--tm-muted); }
.comments .button-outline { margin-top: 8px; height: 48px; font-size: 14px; }
/* Long threads show the first two comments until "Show all" is pressed. */
.comment-list.is-collapsed > li:nth-child(n+3) { display: none; }

/* "In this story" outline in the article sidebar; the current section gets the black bar. */
.story-outline { border: 2px solid var(--tm-ink); padding: 24px; position: sticky; top: calc(30px + var(--tm-admin-bar)); }
.story-outline ol { margin: 14px 0 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.story-outline a { display: block; padding: 8px 0 8px 12px; border-left: 4px solid var(--tm-rule); font-size: 16px; font-weight: 500; line-height: 1.25; }
.story-outline a.is-active { border-left-color: var(--tm-ink); font-weight: 800; }

/* Monka Morning strip after the article */
.newsletter-strip { background: var(--tm-accent); border-top: 4px solid var(--tm-ink); border-bottom: 4px solid var(--tm-ink); }
.newsletter-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.newsletter-copy { display: flex; flex-direction: column; gap: 8px; max-width: 520px; }
.newsletter-strip h2 { margin: 0; font-size: 44px; line-height: .95; font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.newsletter-strip p { margin: 0; font-family: var(--tm-serif); font-size: 19px; line-height: 1.4; }
.newsletter-strip form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.newsletter-field { display: flex; flex-direction: column; gap: 6px; }
.newsletter-strip input { height: 52px; width: 300px; max-width: 100%; border: 2px solid var(--tm-ink); padding: 0 14px; font-size: 16px; background: #fff; }
.newsletter-strip button { height: 52px; padding: 0 24px; background: var(--tm-ink); color: #fff; border: none; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; }

.read-next { padding-top: 48px; padding-bottom: 64px; }
.read-next .story-card .story-media { height: 220px; }
.read-next .story-card h3 { font-size: 26px; line-height: 1.05; }

/* ==========================================================================
   Section pages, search, 404
   ========================================================================== */
.archive-head { padding-top: 40px; padding-bottom: 32px; }
.archive-head h1 { margin: 0; font-size: 68px; line-height: .96; font-weight: 900; font-stretch: 75%; text-transform: uppercase; }
.archive-intro { margin: 12px 0 0 0; font-family: var(--tm-serif); font-size: 21px; line-height: 1.45; color: var(--tm-body); max-width: 760px; }
.archive-body { padding-bottom: 64px; }
.error404 .archive-head h1 { margin-top: 16px; } /* room under the "404" tag */
.error404 .back-home { margin-top: 24px; }
.pagination { margin-top: 32px; display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--tm-mono); font-size: 13px; font-weight: 700; }
.pagination .page-numbers { min-width: 44px; height: 44px; border: 2px solid var(--tm-ink); display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; }
.pagination .current { background: var(--tm-ink); color: #fff; }
.empty-state { font-family: var(--tm-serif); font-size: 21px; }

/* ==========================================================================
   Responsive
   1080px: article sidebar can't fit beside the story, so everything stacks.
   960px:  tablets — homepage goes to one column, nav scrolls sideways.
   560px:  phones — tighter gutters and smaller headlines.
   ========================================================================== */
@media (max-width: 1080px) {
	.article-grid, .article-grid.no-share { grid-template-columns: minmax(0,1fr); }
	.share-rail { flex-direction: row; position: static; align-items: center; }
}
@media (max-width: 960px) {
	.hero-grid, .main-grid, .footer-grid { grid-template-columns: minmax(0,1fr); }
	.four-up { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.three-up { grid-template-columns: minmax(0,1fr); }
	.nav { overflow-x: auto; gap: 20px; }
	.hide-on-mobile { display: none !important; }
	.lead-headline { font-size: 40px; }
	.article-title, .archive-head h1 { font-size: 40px; }
	.story-row { grid-template-columns: 120px minmax(0,1fr); gap: 16px; }
	.story-row h3 { font-size: 20px; }
	.side-story { grid-template-columns: 120px minmax(0,1fr); }
	.lead-figure .story-media { height: 380px; }
	.lead-story .story-media { height: 300px; }
	.prose .is-style-key-facts dl, .prose .is-style-key-facts ul, .prose ul.is-style-key-facts { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 782px) {
	.admin-bar { --tm-admin-bar: 46px; }
}
@media (max-width: 600px) {
	.admin-bar { --tm-admin-bar: 0px; }
}
@media (max-width: 560px) {
	.wrap { padding: 0 16px; }
	.four-up { grid-template-columns: minmax(0,1fr); }
	.lead-headline { font-size: 32px; }
	.article-title, .archive-head h1 { font-size: 34px; }
	.prose { font-size: 19px; }
	/* Logo + search + Subscribe have to fit in 343px (375px phone minus gutters). */
	.masthead-top { gap: 12px; }
	.header-actions { gap: 8px; }
	.brand-logo { width: 154px; }
	.masthead.compact .brand-logo { width: 143px; }
	.header-actions .button-solid { padding: 0 14px; }
	/* No room for Subscribe beside the wordmark; the newsletter strip is further down the page. */
	.masthead.compact .button-solid { display: none; }
	.lead-figure .story-media { height: 240px; }
	.prose blockquote p, .prose .wp-block-pullquote p { font-size: 30px; }
	.newsletter-strip h2 { font-size: 34px; }
}
