/*
Theme Name: Trabajo Seguro
Theme URI: https://trabajoseguro.info/
Author: Trabajo Seguro
Author URI: https://trabajoseguro.info/
Description: Tema editorial a medida para Trabajo Seguro, medio informativo de oportunidades laborales. Estilo periódico moderno (Spectral + Archivo), optimizado para SEO, accesibilidad, Core Web Vitals y Google AdSense. Escalable para el ecosistema de subdominios.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trabajo-seguro
Tags: blog, news, editorial, custom-colors, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --ink: #1a1a1a;
  --paper: #faf8f4;
  --accent: #E03131;
  --accent-2: var(--accent); /* secondary brand color; defaults to primary (mono) */
  --accent-dark: #b02525;
  --accent-soft: #ffd4d4;
  --body: #26221e;
  --muted: #3d3934;
  --muted-2: #5d5852;
  --meta: #6b6660;
  --line: #ddd6cb;
  --line-2: #c9c4bb;
  --ad-bg: #f1ede5;
  --ad-text: #9a948b;
  --img-ph: #e4ddd0;

  --font-display: 'Spectral', Georgia, 'Times New Roman', serif;
  --font-ui: 'Archivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1200px;
  --maxw-text: 840px;
  --pad-x: 24px;
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.site-main { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* Accessibility helpers */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   3. Header
   ========================================================================== */
.site-header {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.topbar { background: var(--accent); color: #fff; }
.topbar__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 7px var(--pad-x);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  gap: 12px;
}
.topbar__tagline { color: var(--accent-soft); }
.topbar__date { white-space: nowrap; flex: none; }
.topbar__ticker { position: relative; flex: 1 1 auto; min-width: 0; height: 1.4em; }
.topbar__msg {
  position: absolute; right: 0; top: 0; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--accent-soft); text-decoration: none;
  opacity: 0; visibility: hidden; transition: opacity .5s ease;
}
.topbar__msg.is-active { opacity: 1; visibility: visible; }
.topbar__msg:hover { color: #fff; }

.masthead {
  max-width: var(--maxw); margin: 0 auto; padding: 24px var(--pad-x) 18px;
  display: flex; flex-direction: column; align-items: center; gap: 11px;
}
.masthead .custom-logo-link { display: inline-block; line-height: 0; }
.masthead .custom-logo { max-height: 64px; width: auto; height: auto; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.brand__emblem { flex: none; }
.brand__word { font-family: var(--font-display); font-weight: 800; font-size: 29px; letter-spacing: -.015em; line-height: 1; }
.brand__word .t1 { color: var(--ink); }
.brand__word .t2 { color: var(--accent); }
.brand__tagline {
  font-size: 9.5px; letter-spacing: .28em; text-transform: uppercase; color: var(--meta);
  text-align: center;
}

.primary-nav { border-top: 1px solid var(--line); }
.primary-nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 12px var(--pad-x);
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.primary-nav__menu {
  flex: 1 1 auto; display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.primary-nav__inner ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.primary-nav__inner a {
  text-decoration: none; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink);
}
.primary-nav__inner .current-menu-item > a,
.primary-nav__inner a[aria-current="page"] { color: var(--accent); }
.nav-search { margin-left: auto; color: var(--meta); display: inline-flex; align-items: center; gap: 5px; }
.nav-search:hover { color: var(--accent); }

/* Nav micro-interactions: animated underline + smooth color (GPU-friendly). */
.primary-nav__menu a { position: relative; transition: color .18s ease; }
.primary-nav__menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
}
.primary-nav__menu a:hover { color: var(--accent); }
.primary-nav__menu a:hover::after,
.primary-nav__menu a:focus-visible::after,
.primary-nav__menu .current-menu-item > a::after,
.primary-nav__menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-search .ti, .nav-search [aria-hidden] { transition: transform .2s ease; display: inline-block; }
.nav-search:hover .ti, .nav-search:hover [aria-hidden] { transform: scale(1.15); }
.brand { transition: opacity .18s ease; }
.brand:hover, .masthead .custom-logo-link:hover { opacity: .82; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--ink);
  padding: 8px 12px; cursor: pointer; font-weight: 700; font-size: 13px;
  align-items: center; gap: 8px;
}

/* ==========================================================================
   4. Shared components
   ========================================================================== */
.eyebrow {
  font-size: 12px; font-weight: 700; color: var(--accent);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.eyebrow--sm { font-size: 11.5px; letter-spacing: .04em; }

.section-title {
  font-family: var(--font-display); font-weight: 800; font-size: 23px;
  padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 24px;
}
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--meta); padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 16px;
}

.btn {
  display: inline-block; border: 2px solid var(--ink); padding: 13px 30px;
  font-weight: 700; font-size: 14px; text-decoration: none; color: var(--ink);
  letter-spacing: .02em; background: transparent; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn--accent { border-color: var(--accent); background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn--solid { background: var(--ink); color: var(--paper); }

.chip {
  text-decoration: none; border: 1px solid var(--line-2); padding: 7px 13px;
  font-size: 13px; font-weight: 600; color: var(--muted); background: transparent;
  display: inline-block; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: var(--ink); }
.chip--active, .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.breadcrumb { font-size: 12.5px; color: var(--meta); letter-spacing: .02em; }
.breadcrumb a { text-decoration: none; color: var(--meta); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 6px; }
.breadcrumb .current { color: var(--ink); }

.meta { font-size: 13px; color: var(--meta); letter-spacing: .02em; }
.meta .dot { color: var(--line-2); margin: 0 4px; }

/* Ad blocks */
.ad { }
.ad__label {
  text-align: center; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ad-text); margin-bottom: 7px;
}
.ad__box {
  border: 1px solid var(--line); background: var(--ad-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--ad-text); font-size: 12.5px; text-align: center;
}
.ad--leaderboard { padding: 22px 0; border-bottom: 1px solid var(--line); }
.ad--leaderboard .ad__box { height: 90px; }
.ad--infeed { margin: 30px 0; padding: 18px; border: 1px solid var(--line); background: var(--ad-bg); }
.ad--infeed .ad__label { margin-bottom: 8px; }
.ad--infeed .ad__box { border: 0; background: transparent; height: 80px; }
.ad--rect .ad__box { height: 250px; }
.ad--sky .ad__box {
  height: 600px; align-items: flex-start; padding-top: 20px;
  position: sticky; top: 20px;
}
.ad__box ins { display: block; width: 100%; }
.ad__box--ph { border: 1px dashed var(--line-2); background: var(--ad-bg); }

/* ==========================================================================
   5. Layout primitives
   ========================================================================== */
.split { display: flex; flex-wrap: wrap; gap: 40px; padding: 30px 0 12px; align-items: flex-start; }
.split__main { flex: 1 1 560px; min-width: 0; }
.sidebar { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.split .sidebar { position: sticky; top: 20px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }

/* Stretched-link helper: makes a child link cover its positioned ancestor
   without nesting anchors (valid HTML). Sibling links (eyebrow) stay clickable
   via a higher z-index. */
.u-stretch { position: relative; z-index: 1; text-decoration: none; color: inherit; }
.u-stretch::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.eyebrow { position: relative; z-index: 1; }

/* Card */
.card { position: relative; display: block; color: inherit; }
.card__thumb { height: 160px; background: var(--img-ph); margin-bottom: 12px; background-size: cover; background-position: center; }
.card__title { font-family: var(--font-display); font-weight: 700; font-size: 21px; line-height: 1.2; margin: 7px 0; }
.card__title a { text-decoration: none; color: inherit; }
.card:hover .card__title { color: var(--accent); }
.card__excerpt { font-size: 14px; color: var(--muted-2); line-height: 1.5; margin: 0; }

/* Most read ranking */
.ranklist { display: flex; flex-direction: column; gap: 16px; }
.ranklist a { text-decoration: none; display: flex; gap: 13px; align-items: baseline; color: inherit; }
.ranklist .num { font-family: var(--font-display); font-weight: 800; font-size: 26px; color: var(--accent); flex: none; }
.ranklist .txt { font-size: 15px; font-weight: 600; line-height: 1.25; }
.ranklist a:hover .txt { color: var(--accent); }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ==========================================================================
   6. Home (front page)
   ========================================================================== */
.hero { display: flex; flex-wrap: wrap; gap: 34px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.hero__feature { flex: 1 1 480px; min-width: 0; }
.hero__title {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 44px);
  line-height: 1.07; letter-spacing: -.01em; margin: 12px 0 14px;
}
.hero__feature a { text-decoration: none; }
.hero__title:hover { color: var(--accent); }
.hero__lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 16px; max-width: 580px; }
.hero__img { height: clamp(220px, 30vw, 300px); background: linear-gradient(135deg, #2a2a2a, #4a4a4a); background-size: cover; background-position: center; }
.hero__meta { font-size: 13px; color: var(--meta); margin-top: 10px; letter-spacing: .02em; }

.hero__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.alsotoday-item { position: relative; border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.alsotoday-item:last-child { border-bottom: 0; padding-bottom: 0; }
.alsotoday-item h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; margin: 6px 0 5px; }
.alsotoday-item h3 a { text-decoration: none; color: inherit; }
.alsotoday-item:hover h3 { color: var(--accent); }
.alsotoday-item .meta { font-size: 12.5px; }

/* ==========================================================================
   7. Category / archive
   ========================================================================== */
.archive-head {
  padding: 18px 0 24px; border-bottom: 3px solid var(--ink); margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between;
}
.archive-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); margin: 0; letter-spacing: -.01em; }
.archive-head__desc { font-size: 15.5px; color: var(--muted-2); margin: 10px 0 0; max-width: 560px; line-height: 1.55; }
.archive-head__count { font-size: 13px; color: var(--meta); font-weight: 600; white-space: nowrap; }
.cat-chips { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips .chip { padding: 8px 15px; font-size: 13.5px; }

.post-row { position: relative; display: flex; flex-wrap: wrap; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--line); color: inherit; }
.post-row__thumb { flex: none; width: 200px; height: 130px; background: var(--img-ph); background-size: cover; background-position: center; }
.post-row__body { flex: 1 1 280px; min-width: 0; }
.post-row__title { font-family: var(--font-display); font-weight: 700; font-size: 23px; line-height: 1.18; margin: 8px 0; }
.post-row__title a { text-decoration: none; color: inherit; }
.post-row:hover .post-row__title { color: var(--accent); }
.post-row__excerpt { font-size: 14.5px; color: var(--muted-2); line-height: 1.5; margin: 0 0 9px; }

/* Pagination */
.pagination { padding: 30px 0; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pagination .page-numbers {
  text-decoration: none; border: 1px solid var(--line-2); min-width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; padding: 0 8px;
  color: var(--ink); transition: background .15s, color .15s, border-color .15s;
}
.pagination a.page-numbers:hover { border-color: var(--ink); }
.pagination .page-numbers.current { border-color: var(--ink); background: var(--ink); color: var(--paper); font-weight: 700; }
.pagination .page-numbers.next, .pagination .page-numbers.prev { padding: 0 16px; }
.pagination .page-numbers.dots { border-color: transparent; }

/* ==========================================================================
   8. Single article
   ========================================================================== */
.article-wrap { display: flex; flex-wrap: wrap; gap: 44px; padding: 0 0 12px; }
.article { flex: 1 1 600px; min-width: 0; }
.article-wrap .sidebar { padding-top: 24px; position: sticky; top: 20px; align-self: flex-start; }
@media (max-width: 860px) {
  .article-wrap .sidebar { position: static; }
}
.article__head { padding: 16px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.article__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.06; letter-spacing: -.015em; margin: 14px 0 16px; max-width: 760px; }
.article__lead { font-size: 18.5px; line-height: 1.55; color: var(--muted); margin: 0 0 18px; max-width: 680px; font-weight: 500; }
.article__meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 13px; color: var(--meta); }
.article__meta .share { color: var(--accent); font-weight: 600; background: none; border: 0; cursor: pointer; padding: 0; font-size: 13px; }
.article__featured { height: clamp(240px, 34vw, 380px); background: linear-gradient(135deg, #2a2a2a, #4a4a4a); margin-bottom: 8px; background-size: cover; background-position: center; }
img.article__featured { object-fit: cover; width: 100%; display: block; }
.article__caption { font-size: 12.5px; color: var(--ad-text); margin-bottom: 28px; }

.article__body { max-width: 680px; font-size: 18px; line-height: 1.72; color: var(--body); }
.article__body p { margin: 0 0 22px; }
.article__body h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 34px 0 14px; line-height: 1.2; }
.article__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 28px 0 12px; line-height: 1.25; }
.article__body ul, .article__body ol { margin: 0 0 22px; padding-left: 22px; line-height: 1.7; }
.article__body li { margin-bottom: 8px; }
.article__body img { margin: 22px 0; }
.article__body a { color: var(--accent); }
.article__body blockquote {
  margin: 30px 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--accent);
  font-family: var(--font-display); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--ink);
}
.article__body figure { margin: 22px 0; }
.article__body figcaption { font-size: 12.5px; color: var(--ad-text); margin-top: 6px; }

/* Normalize legacy/imported content (Gutenberg color classes, gradient CTA
   boxes, buttons) so posts match the theme regardless of how they were built. */
.article__body h1, .article__body h2, .article__body h3,
.article__body h4, .article__body h5, .article__body h6,
.article__body h2 a, .article__body h3 a, .article__body h4 a,
.article__body h2 span, .article__body h3 span,
.article__body h2 strong, .article__body h3 strong {
  color: var(--ink) !important; /* beats Gutenberg has-*-color classes (which use !important) */
}
.article__body h2 a, .article__body h3 a, .article__body h4 a { text-decoration: none; }
.article__body p.has-background {
  background: none !important;
  color: var(--body) !important;
  text-align: center; padding: 0; margin: 30px 0;
}
.article__body p.has-background a {
  display: inline-block; background: none; color: var(--accent) !important;
  border: 2px solid var(--accent); padding: 11px 26px; font-weight: 700;
  text-decoration: none; font-size: 15px; transition: background .15s, color .15s;
}
.article__body p.has-background a::after { content: " \2197"; font-weight: 700; }
.article__body p.has-background a:hover { background: var(--accent); color: #fff !important; }
.article__body .wp-block-button__link {
  background: var(--accent); color: #fff; border-radius: 0;
  padding: 13px 28px; font-weight: 700; text-decoration: none;
}
.article__body .wp-block-button__link:hover { background: var(--accent-dark); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; padding-top: 24px; border-top: 1px solid var(--line); }
.tags__label { font-size: 12.5px; color: var(--meta); font-weight: 600; padding: 7px 0; margin-right: 6px; }

.related { }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.related .card__thumb { height: 140px; }
.related .card__title { font-size: 19px; margin: 7px 0 0; }

/* ==========================================================================
   9. Search
   ========================================================================== */
.search-hero { padding: 40px 0 28px; border-bottom: 3px solid var(--ink); }
.search-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.4vw, 46px); margin: 0 0 18px; letter-spacing: -.01em; }
.search-box { display: flex; gap: 0; max-width: 680px; border: 2px solid var(--ink); background: #fff; }
.search-box input[type="search"], .search-box input[type="text"] {
  flex: 1; border: none; outline: none; padding: 16px 18px; font-size: 17px;
  font-family: inherit; color: var(--ink); background: transparent; min-width: 0;
}
.search-box button { border: none; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 15px; padding: 0 28px; cursor: pointer; }
.suggestions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.suggestions__label { font-size: 13px; color: var(--meta); font-weight: 600; margin-right: 4px; }
.search-results-label { font-size: 14px; color: var(--meta); margin-bottom: 22px; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }
.search-grid .card { border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.search-grid .card__thumb { height: 150px; }
.search-grid .card__title { font-size: 20px; }
.no-results { padding: 50px 20px; text-align: center; border: 1px dashed var(--line-2); background: var(--ad-bg); }
.no-results__title { font-family: var(--font-display); font-weight: 800; font-size: 26px; margin-bottom: 8px; }
.no-results p { font-size: 15px; color: var(--muted-2); margin: 0 auto; max-width: 420px; line-height: 1.55; }

/* ==========================================================================
   10. Subscribe box
   ========================================================================== */
.subscribe-card { border: 2px solid var(--ink); padding: 24px; background: var(--paper); }
.subscribe-card h4, .subscribe-card .sc-title { font-family: var(--font-display); font-weight: 800; font-size: 21px; margin: 0 0 8px; color: var(--ink); }
.subscribe-card p.sc-sub { font-size: 13.5px; color: var(--muted-2); margin: 0 0 15px; line-height: 1.5; }
.subscribe-card input[type="email"] { width: 100%; border: 1px solid var(--line-2); padding: 12px 13px; font-size: 14px; font-family: inherit; background: #fff; }
.subscribe-card input.has-error { border-color: var(--accent); }
.subscribe-card .sc-btn { width: 100%; border: none; background: var(--accent); color: #fff; font-weight: 700; padding: 13px; font-size: 14px; font-family: inherit; cursor: pointer; margin-top: 0; }
.subscribe-card .sc-btn:hover { background: var(--accent-dark); }

.subscribe-banner { background: var(--ink); color: var(--paper); padding: 30px; }
.subscribe-banner__inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.subscribe-banner h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0 0 6px; color: #fff; }
.subscribe-banner p.sc-sub { margin: 0; font-size: 14px; color: var(--line-2); line-height: 1.5; }
.subscribe-banner__form { flex: 1 1 280px; display: flex; gap: 8px; }
.subscribe-banner input[type="email"] { flex: 1; border: none; padding: 13px; font-size: 14px; font-family: inherit; min-width: 0; }
.subscribe-banner .sc-btn { border: none; background: var(--accent); color: #fff; font-weight: 700; padding: 0 22px; font-size: 14px; font-family: inherit; cursor: pointer; }
.subscribe-banner .sc-btn:hover { background: var(--accent-dark); }
.subscribe-banner .text-col { flex: 1 1 280px; }

.sc-error { color: var(--accent); font-size: 12px; font-weight: 600; min-height: 17px; margin: 5px 0 4px; }
.subscribe-banner .sc-error { color: #ff8a8a; font-size: 12.5px; margin: 8px 0 0; }
.sc-success { text-align: center; padding: 6px 0; }
.sc-success__icon { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.subscribe-banner .sc-success { display: flex; gap: 14px; align-items: center; text-align: left; padding: 0; }
.subscribe-banner .sc-success__icon { background: var(--accent); margin: 0; flex: none; }
.sc-success h4, .sc-success h3 { font-family: var(--font-display); font-weight: 800; color: var(--ink); margin: 0 0 6px; }
.subscribe-banner .sc-success h3 { color: #fff; font-size: 21px; margin: 0 0 3px; }
.sc-success p { font-size: 13px; color: var(--muted-2); margin: 0; line-height: 1.5; }
.subscribe-banner .sc-success p { color: var(--line-2); font-size: 13.5px; }
[hidden] { display: none !important; }

/* ==========================================================================
   11. Contact & About
   ========================================================================== */
.contact-wrap { display: flex; flex-wrap: wrap; gap: 48px; padding: 44px 0; }
.contact-form-col { flex: 1 1 420px; min-width: 0; }
.contact-form-col h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -.01em; margin: 12px 0 14px; }
.contact-form-col .lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; max-width: 520px; }
.contact-box { border: 2px solid var(--ink); padding: 28px; background: #fff; }
.contact-box label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; letter-spacing: .02em; }
.contact-box input[type="text"], .contact-box input[type="email"] { width: 100%; border: 1px solid var(--line-2); padding: 13px; font-size: 15px; font-family: inherit; background: var(--paper); margin-bottom: 18px; }
.contact-box input.has-error { border-color: var(--accent); }
.contact-box .interests { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.contact-box .sc-btn { width: 100%; border: none; background: var(--accent); color: #fff; font-weight: 700; padding: 15px; font-size: 15px; font-family: inherit; cursor: pointer; }
.contact-box .sc-btn:hover { background: var(--accent-dark); }
.contact-box .legal { font-size: 12px; color: var(--meta); margin: 14px 0 0; line-height: 1.5; }

.info-box-dark { background: var(--ink); color: var(--paper); padding: 26px; }
.info-box-dark h3 { font-family: var(--font-display); font-weight: 800; font-size: 22px; margin: 0 0 14px; color: #fff; }
.info-box-dark p { font-size: 14px; color: var(--line-2); line-height: 1.6; margin: 0 0 18px; }
.info-box-dark .rows { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.info-box-dark .rows .ic { color: var(--accent); font-weight: 700; }
.info-box-line { border: 1px solid var(--line); padding: 24px; }
.info-box-line h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 10px; }
.info-box-line p { font-size: 14px; color: var(--muted-2); line-height: 1.6; margin: 0; }

.page-narrow { max-width: var(--maxw-text); margin: 0 auto; padding: 0 var(--pad-x); }
.about-head { padding: 44px 0 26px; border-bottom: 3px solid var(--ink); text-align: center; }
.about-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.015em; margin: 14px 0 16px; }
.about-head .lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 auto; max-width: 600px; }
.prose { font-size: 18px; line-height: 1.75; color: var(--body); padding: 34px 0 0; }
.prose h2 { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 32px 0 14px; line-height: 1.2; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 22px; }
.prose ul, .prose ol { margin: 0 0 22px; padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose a { color: var(--accent); }
/* Buttons inside prose/article content must keep their own text color
   (the generic ".prose a"/".article__body a" red would make them invisible). */
.prose a.btn, .article__body a.btn { color: var(--ink); text-decoration: none; }
.prose a.btn--accent, .prose a.btn--solid,
.article__body a.btn--accent, .article__body a.btn--solid { color: #fff; }
.prose a.btn:hover, .article__body a.btn:hover { color: var(--paper); }
.prose a.btn--accent:hover, .article__body a.btn--accent:hover { color: #fff; }
.prose blockquote.pull { margin: 32px 0; padding: 24px 28px; background: var(--ink); color: var(--paper); font-family: var(--font-display); font-style: italic; font-size: 24px; line-height: 1.4; }
.cta-box { background: #fff; border: 2px solid var(--ink); padding: 30px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; margin: 10px 0 50px; }
.cta-box h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; margin: 0 0 6px; }
.cta-box p { margin: 0; font-size: 14px; color: var(--muted-2); line-height: 1.5; }
.cta-box .col { flex: 1 1 300px; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer { font-family: var(--font-ui); background: var(--ink); color: var(--line-2); font-size: 13.5px; margin-top: 30px; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 42px var(--pad-x) 26px; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { flex: 1 1 280px; max-width: 340px; }
.footer-brand__row { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.footer-logo { max-height: 44px; width: auto; height: auto; }
.footer-brand__word { font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.footer-brand__word .t1 { color: #fff; }
.footer-brand__word .t2 { color: var(--accent); }
.footer-brand p { line-height: 1.6; margin: 0 0 14px; color: var(--ad-text); }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col__title { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: 13px; letter-spacing: .04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--line-2); text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-col .note { color: var(--meta); max-width: 170px; line-height: 1.5; }
.site-footer__bottom { padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--meta); }

/* Footer newsletter form */
.footer-col--subscribe { flex: 1 1 260px; max-width: 300px; }
.footer-col__note { color: var(--ad-text); font-size: 12.5px; line-height: 1.55; margin: 0 0 12px; max-width: 280px; }
.footer-subscribe__row { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-subscribe input[type="email"] {
  flex: 1 1 150px; min-width: 0; border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06); color: #fff; padding: 11px 12px; font-size: 13.5px; font-family: inherit;
}
.footer-subscribe input[type="email"]:focus { outline: none; border-color: var(--accent); }
.footer-subscribe input::placeholder { color: var(--meta); }
.footer-subscribe .sc-btn { border: none; background: var(--accent); color: #fff; font-weight: 700; padding: 11px 16px; font-size: 13.5px; font-family: inherit; cursor: pointer; white-space: nowrap; transition: background .15s; }
.footer-subscribe .sc-btn:hover { background: var(--accent-dark); }
.footer-subscribe .sc-error { color: #ff8a8a; font-size: 12px; font-weight: 600; min-height: 16px; margin-top: 6px; }
.footer-subscribe__ok { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 13.5px; }
.footer-subscribe__ok svg { flex: none; }
.footer-subscribe__more { display: inline-block; margin-top: 12px; color: var(--line-2); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-subscribe__more:hover { color: #fff; }

/* ==========================================================================
   13. Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .ad--sky .ad__box { position: static; height: 250px; }
  .article-wrap { gap: 28px; }
  .split .sidebar, .article-wrap .sidebar { position: static; }
}
@media (max-width: 720px) {
  :root { --pad-x: 18px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav__inner { padding: 10px var(--pad-x); }
  .primary-nav__menu {
    flex-direction: column; align-items: flex-start; gap: 0; width: 100%;
    display: none;
  }
  .primary-nav__menu.is-open { display: flex; }
  .primary-nav__menu a::after { display: none; }
  .primary-nav__inner ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .primary-nav__inner ul li { width: 100%; border-bottom: 1px solid var(--line); }
  .primary-nav__inner ul a { display: block; padding: 12px 0; }
  .nav-search { margin-left: 0; padding: 12px 0; }
  .topbar__inner { font-size: 10px; }
  .post-row__thumb { width: 100%; height: 180px; flex: 1 1 100%; }
  .subscribe-banner__form { flex: 1 1 100%; }
}
@media (max-width: 480px) {
  .topbar__tagline { display: none; }
  .brand__word { font-size: 24px; }
  .masthead .custom-logo { max-height: 48px; }
  .footer-cols { gap: 32px; }
}

/* Honeypot anti-spam */
.ts-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Floating WhatsApp channel button */
.ts-whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  background: #25D366; color: #fff; font-family: var(--font-ui); font-weight: 700; font-size: 14px;
  padding: 11px 17px; border-radius: 50px; text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: background .15s, transform .15s;
}
.ts-whatsapp:hover { background: #1ebe5b; color: #fff; transform: translateY(-1px); }
.ts-whatsapp svg { width: 22px; height: 22px; flex: none; }
@media (max-width: 600px) {
  .ts-whatsapp span { display: none; }
  .ts-whatsapp { padding: 14px; border-radius: 50%; }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
