/* =========================================================
   Total Security Blog — Unified Style Guide
   ========================================================= */

/* ----- Custom properties (overridden per-brand via inline style on body) --- */
:root {
  --ts-accent:      #E63748;
  --ts-accent-dark: #C42B34;
  --ts-navy:        #1D2023;
  --ts-navy-mid:    #2C3035;
  --ts-text:        #1e293b;
  --ts-text-muted:  #64748b;
  --ts-surface:     #F6F6F6;
  --ts-border:      #e2e8f0;
  --ts-white:       #ffffff;
  --ts-green:       #0BC86D;
  --ts-radius:      8px;
  --ts-max-width:   760px;
  --ts-max-wide:    1240px;
}

/* ----- Reset & base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--ts-font);
  color: var(--ts-text);
  background: var(--ts-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ts-accent); text-decoration: underline; }
a:hover { color: var(--ts-accent-dark); }

/* ----- Header -------------------------------------------------------------- */
.ts-header {
  background: var(--ts-accent);
  height: 72px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.ts-header--light {
  background: var(--ts-white);
  border-bottom: 1px solid #E5E5E5;
}

.ts-header__inner {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.ts-header__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.ts-header__logo { height: 36px; width: auto; }

.ts-header__brand-name {
  color: var(--ts-white);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ts-header--light .ts-header__brand-name { color: var(--ts-navy); }

/* ----- Primary nav menu ---------------------------------------------------- */
.ts-header__nav { flex: 1; display: flex; justify-content: center; }

.ts-nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.ts-nav-list a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.15s;
}

.ts-nav-list a:hover,
.ts-nav-list .current-menu-item > a,
.ts-nav-list .current-menu-ancestor > a {
  color: var(--ts-white);
}

.ts-header--light .ts-nav-list a { color: #444444; }

.ts-header--light .ts-nav-list a:hover,
.ts-header--light .ts-nav-list .current-menu-item > a,
.ts-header--light .ts-nav-list .current-menu-ancestor > a {
  color: var(--ts-accent);
}

/* ----- Buttons ------------------------------------------------------------- */
.ts-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--ts-radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}

.ts-btn--primary {
  background: var(--ts-accent);
  color: var(--ts-white);
  border: none;
  padding: 0.75rem 1.75rem;
}

.ts-btn--primary:hover {
  background: var(--ts-accent-dark);
  color: var(--ts-white);
  transform: translateY(-1px);
}

/* Nav CTA — pill shape, green on dark header, red on light header */
.ts-btn--cta {
  background: var(--ts-green);
  color: var(--ts-white);
  border: none;
  border-radius: 24px;
  padding: 0.625rem 1.375rem;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.ts-btn--cta:hover {
  opacity: 0.9;
  color: var(--ts-white);
  transform: translateY(-1px);
}

.ts-header--light .ts-btn--cta { background: var(--ts-accent); }
.ts-header--light .ts-btn--cta:hover { background: var(--ts-accent-dark); }

/* ----- Footer -------------------------------------------------------------- */
.ts-footer {
  background: var(--ts-navy);
  margin-top: auto;
  font-size: 0.875rem;
}

.ts-footer__main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 3.5rem 6.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.ts-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 180px;
}

.ts-footer__brand-link { text-decoration: none; }

.ts-footer__logo { height: 28px; width: auto; }

.ts-footer__brand-name {
  color: var(--ts-white);
  font-size: 1.25rem;
  font-weight: 700;
}

.ts-footer__tagline {
  color: #888888;
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 240px;
}

.ts-footer__nav { flex: 1; }

.ts-footer__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.ts-footer__nav-list a {
  color: #888888;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.ts-footer__nav-list a:hover { color: var(--ts-white); }

.ts-footer__divider {
  height: 1px;
  background: #2A2A3A;
  max-width: 1440px;
  margin: 0 auto;
}

.ts-footer__bottom {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 6.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.ts-footer__copy { color: #555555; }

.ts-footer__legal-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.ts-footer__legal-list a {
  color: #555555;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.ts-footer__legal-list a:hover { color: var(--ts-white); }

/* ----- Simple footer ------------------------------------------------------- */
.ts-footer-simple {
  background: #FFFFFF;
}

.ts-footer-simple__divider {
  height: 1px;
  background: #E0E0E0;
  margin: 0 6.25rem;
}

.ts-footer-simple__row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 6.25rem 1.5rem;
}

.ts-footer-simple__copy,
.ts-footer-simple__row a {
  color: #BBBBBB;
  font-size: 0.8125rem;
  text-decoration: none;
  transition: color 0.15s;
}

.ts-footer-simple__row a:hover { color: #888888; }

.ts-footer-simple__legal-list {
  list-style: none;
  display: contents;
}

.ts-footer-simple__legal-list li { display: contents; }

/* ----- Page template ------------------------------------------------------- */
.ts-page {
  max-width: var(--ts-max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.ts-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ts-navy);
  margin-bottom: 1.5rem;
}

/* ----- Standard article ---------------------------------------------------- */
.ts-article {
  max-width: var(--ts-max-width);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.ts-article__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ts-accent);
  margin-bottom: 0.75rem;
}

.ts-article__meta a { color: inherit; text-decoration: none; }

.ts-article__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--ts-navy);
  margin-bottom: 1rem;
}

.ts-article__byline {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--ts-text-muted);
  margin-bottom: 2rem;
}

.ts-article__hero {
  border-radius: var(--ts-radius);
  overflow: hidden;
  margin-bottom: 2rem;
}

.ts-article__hero-img { width: 100%; object-fit: cover; }

/* Article content typography */
.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ts-navy);
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ts-navy);
  margin: 2rem 0 0.5rem;
}

.entry-content p { margin-bottom: 1.25rem; }

.entry-content ul, .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.entry-content li { margin-bottom: 0.4rem; }

.entry-content strong { font-weight: 700; color: var(--ts-navy); }

/* Author bio */
.ts-article__author-bio {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ts-border);
}

.ts-article__avatar-img { border-radius: 50%; width: 64px; height: 64px; flex-shrink: 0; }
.ts-article__author-name { display: block; font-size: 1rem; margin-bottom: 0.25rem; }
.ts-article__author-desc { font-size: 0.875rem; color: var(--ts-text-muted); }

/* ----- FAQ ----------------------------------------------------------------- */
.ts-faq {
  margin: 3rem 0;
  padding: 2rem;
  background: var(--ts-surface);
  border-radius: var(--ts-radius);
  border: 1px solid var(--ts-border);
}

.ts-faq__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--ts-navy);
  margin-bottom: 1.5rem;
}

.ts-faq__list { list-style: none; padding: 0; }

.ts-faq__item {
  border-bottom: 1px solid var(--ts-border);
  padding: 1rem 0;
}

.ts-faq__item:last-child { border-bottom: none; }

.ts-faq__question {
  font-weight: 600;
  color: var(--ts-navy);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ts-faq__question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--ts-accent);
  font-weight: 400;
  flex-shrink: 0;
  margin-left: 1rem;
}

.ts-faq__answer {
  margin-top: 0.75rem;
  color: var(--ts-text-muted);
  font-size: 0.9375rem;
}

/* ----- Advertorial --------------------------------------------------------- */
.ts-advertorial { overflow: hidden; }

.ts-advertorial__hero {
  background: var(--ts-navy);
  color: var(--ts-white);
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .ts-advertorial__hero {
    flex-direction: row;
    text-align: left;
    padding: 5rem 3rem;
    gap: 3rem;
  }
}

.ts-advertorial__hero-img-wrap { flex-shrink: 0; max-width: 420px; }
.ts-advertorial__hero-img { border-radius: var(--ts-radius); box-shadow: 0 20px 60px rgba(0,0,0,.4); }

.ts-advertorial__hero-copy { max-width: 540px; }

.ts-advertorial__headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.ts-advertorial__subheadline {
  font-size: 1.125rem;
  color: #cbd5e1;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.ts-advertorial__content {
  max-width: var(--ts-max-width);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.ts-advertorial__cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.ts-advertorial__cta-block--footer {
  background: var(--ts-surface);
  border-top: 1px solid var(--ts-border);
  padding: 3rem 1.5rem;
}

.ts-advertorial__cta-label {
  font-size: 0.875rem;
  color: var(--ts-text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ts-advertorial__faq {
  max-width: var(--ts-max-width);
  margin: 0 auto;
}

/* ----- Archive / index ----------------------------------------------------- */
.ts-archive {
  max-width: var(--ts-max-wide);
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.ts-archive__list { display: flex; flex-direction: column; gap: 2.5rem; }

.ts-archive__item {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--ts-border);
}

.ts-archive__thumb-link { flex-shrink: 0; }
.ts-archive__thumb { width: 200px; height: 130px; object-fit: cover; border-radius: var(--ts-radius); }

.ts-archive__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ts-accent);
  margin-bottom: 0.5rem;
}

.ts-archive__meta a { color: inherit; text-decoration: none; }

.ts-archive__title { font-size: 1.375rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.ts-archive__title a { color: var(--ts-navy); text-decoration: none; }
.ts-archive__title a:hover { color: var(--ts-accent); }

.ts-archive__excerpt { color: var(--ts-text-muted); font-size: 0.9375rem; margin-bottom: 0.75rem; }

.ts-archive__byline { display: flex; gap: 1rem; font-size: 0.8125rem; color: var(--ts-text-muted); }

.ts-archive__pagination { margin-top: 3rem; display: flex; justify-content: center; }

.ts-archive__empty { color: var(--ts-text-muted); text-align: center; padding: 4rem 0; }

/* ----- Hero ---------------------------------------------------------------- */
.ts-hero {
  background: var(--ts-accent);
  position: relative;
  overflow: hidden;
  min-height: 580px;
}

.ts-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: var(--ts-white);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.ts-hero__inner {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 48px 160px 30px;
  display: flex;
  flex-direction: column;
}

.ts-hero__eyebrow {
  color: rgba(255, 179, 179, 0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.ts-hero__headline {
  font-size: 58px;
  font-weight: 800;
  line-height: 1.08;
  color: var(--ts-white);
  max-width: 600px;
  letter-spacing: -0.02em;
}

.ts-hero__sub {
  font-size: 17px;
  line-height: 1.6;
  color: #FFCCCC;
  max-width: 520px;
}

.ts-hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ts-hero__btn-primary {
  background: var(--ts-white);
  color: var(--ts-accent);
  padding: 14px 28px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.ts-hero__btn-primary:hover { background: var(--ts-surface); color: var(--ts-accent); }

.ts-hero__btn-ghost {
  background: transparent;
  color: var(--ts-white);
  padding: 13px 27px;
  border-radius: 32px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.ts-hero__btn-ghost:hover { border-color: var(--ts-white); color: var(--ts-white); }

.ts-hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ts-hero__stars { color: #FFD700; font-size: 13px; }

.ts-hero__trust-text { color: #FFD0D0; font-size: 13px; }

/* Hero logo */
.ts-hero__logo-wrap { margin-bottom: 8px; }
.ts-hero__logo { height: 48px; width: auto; object-fit: contain; }

/* Copy column — flex column with 24px gap; centred by default (no-image case) */
.ts-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

/* Two-column layout when image is present */
.ts-hero--has-image .ts-hero__inner {
  flex-direction: row;
  align-items: center;
  gap: 60px;
  padding-bottom: 30px;
}

.ts-hero--has-image .ts-hero__copy {
  flex: 1 1 0;
  min-width: 0;
  align-items: flex-start;
  text-align: left;
}

.ts-hero__image-wrap {
  flex: 0 0 auto;
  max-width: 44%;
  align-self: stretch;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.ts-hero__image {
  width: 100%;
  max-height: var(--ts-hero-img-h, 480px);
  object-fit: contain;
  object-position: center;
  display: block;
}

.ts-hero--rounded-image .ts-hero__image {
  border-radius: 16px;
}

/* ----- Home article sections ----------------------------------------------- */
.ts-home-section { background: var(--ts-white); }
.ts-home-section--alt { background: #FAFAFA; }

.ts-home-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.ts-home-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ts-home-section__title { font-size: 30px; font-weight: 700; color: #1A1A1A; }

.ts-home-section__view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--ts-accent);
  text-decoration: none;
}

.ts-home-section__view-all:hover { color: var(--ts-accent-dark); }

.ts-home-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ----- Article card -------------------------------------------------------- */
.ts-card {
  background: var(--ts-white);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ts-card__image-link { display: block; line-height: 0; }

.ts-card__image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
}

.ts-card__image--placeholder {
  background: #E8EDF2;
  height: 210px;
  border-radius: 10px 10px 0 0;
}

.ts-card__body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.ts-card__badge {
  display: inline-block;
  align-self: flex-start;
  background: var(--ts-accent);
  color: var(--ts-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  text-decoration: none;
  text-transform: uppercase;
}

.ts-card__badge:hover { background: var(--ts-accent-dark); color: var(--ts-white); }

.ts-card__title { font-size: 17px; font-weight: 700; line-height: 1.3; color: #1A1A1A; }

.ts-card__title a { color: inherit; text-decoration: none; }
.ts-card__title a:hover { color: var(--ts-accent); }

.ts-card__excerpt { font-size: 13px; line-height: 1.5; color: #666666; }

.ts-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999999;
  margin-top: auto;
}

/* ----- Browse by Topic ----------------------------------------------------- */
.ts-home-topics { background: #F0F0F2; }

.ts-home-topics__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 44px 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ts-home-topics__title { font-size: 18px; font-weight: 700; color: #1A1A1A; }

.ts-home-topics__chips { display: flex; flex-wrap: wrap; gap: 12px; }

.ts-topic-chip {
  display: inline-flex;
  align-items: center;
  background: #E8E8EA;
  color: #444444;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ts-topic-chip:hover { background: var(--ts-accent); color: var(--ts-white); }

.ts-topic-chip--active { background: var(--ts-accent); color: var(--ts-white); font-weight: 600; }

/* ----- Newsletter CTA ------------------------------------------------------ */
.ts-newsletter { background: var(--ts-navy); }

.ts-newsletter__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 72px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.ts-newsletter__headline {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ts-white);
  max-width: 560px;
}

.ts-newsletter__sub { font-size: 15px; line-height: 1.6; color: #9CA3AF; max-width: 420px; }

.ts-newsletter__cta {
  background: var(--ts-accent);
  color: var(--ts-white);
  padding: 15px 32px;
  border-radius: 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.ts-newsletter__cta:hover { background: var(--ts-accent-dark); color: var(--ts-white); }

/* ----- Responsive ---------------------------------------------------------- */

/* Hamburger toggle button — hidden on desktop/tablet, shown on mobile */
.ts-header__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ts-white);
  line-height: 0;
  flex-shrink: 0;
}
.ts-header--light .ts-header__hamburger { color: var(--ts-navy); }

/* ---------- Wide-tablet / narrow-desktop ≤ 1150px — uniform 64px gutters -- */
@media (max-width: 1150px) {
  .ts-header__inner          { padding: 0 4rem; }
  .ts-hero__inner            { padding: 48px 64px 30px; }
  .ts-home-section__inner    { padding: 64px 64px; }
  .ts-home-topics__inner     { padding: 44px 64px; }
  .ts-newsletter__inner      { padding: 72px 64px; }
  .ts-footer__main           { padding: 3.5rem 4rem; }
  .ts-footer__bottom         { padding: 1.5rem 4rem; }
  .ts-footer-simple__divider { margin: 0 4rem; }
  .ts-footer-simple__row     { padding: 1.25rem 4rem 1.5rem; }
}

/* ---------- Tablet ≤ 1023px (iPad Air ~820px baseline) --------------------- */
@media (max-width: 1023px) {
  /* Header */
  .ts-header { height: 64px; }
  .ts-header__inner { padding: 0 2rem; }
  .ts-nav-list { gap: 1.25rem; }

  /* Hero — diagonal cut removed, padding and type scaled for tablet */
  .ts-hero { min-height: auto; }
  .ts-hero::after { display: none; }
  .ts-hero__inner { padding: 40px 48px; }
  .ts-hero__headline { font-size: 42px; }
  .ts-hero__sub { font-size: 15px; }
  .ts-hero--has-image .ts-hero__inner { flex-direction: column; gap: 32px; }
  .ts-hero__image-wrap { max-width: 100%; align-self: center; }
  .ts-hero__image { max-height: 300px; }
  .ts-hero--has-image .ts-hero__copy { align-items: center; text-align: center; }

  /* No-nav header: centre logo at tablet/mobile */
  .ts-header--no-nav .ts-header__inner { justify-content: center; }

  /* Home sections */
  .ts-home-section__inner { padding: 48px 40px; gap: 40px; }
  .ts-home-articles { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .ts-home-topics__inner { padding: 36px 40px; }
  .ts-newsletter__inner { padding: 48px 40px; }
  .ts-newsletter__headline { font-size: 28px; }

  /* Footer — stacks vertically, centred at tablet */
  .ts-footer__main {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem;
    gap: 1.5rem;
  }
  .ts-footer__divider { margin: 0 2.5rem; max-width: none; }
  .ts-footer__bottom {
    flex-direction: column;
    align-items: center;
    padding: 1rem 2.5rem;
    gap: 0.75rem;
  }
  .ts-footer__nav-list { justify-content: center; gap: 1.25rem; }
  .ts-footer__legal-list { justify-content: center; }
  .ts-footer__tagline { text-align: center; }
  .ts-footer-simple__divider { margin: 0 2.5rem; }
  .ts-footer-simple__row { padding: 1.25rem 2.5rem 1.5rem; justify-content: center; }

  /* Article page */
  .ts-article__title { font-size: 1.875rem; } /* 30px */
  .ts-article__hero-img { height: 400px; object-fit: cover; }
}

/* ---------- Mobile ≤ 767px (iPhone ~390px baseline) ------------------------ */
@media (max-width: 767px) {
  /* Header */
  .ts-header { height: 56px; }
  .ts-header__inner { padding: 0 1.25rem; }
  .ts-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--ts-accent);
    padding: 0.5rem 1.25rem 1rem;
  }
  .ts-header--light .ts-header__nav {
    background: var(--ts-white);
    border-bottom: 1px solid var(--ts-border);
  }
  .ts-header__nav.is-open { display: block; }
  .ts-header__nav .ts-nav-list { flex-direction: column; align-items: flex-start; gap: 0; }
  .ts-header__nav .ts-nav-list li { width: 100%; }
  .ts-header__nav .ts-nav-list a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 1rem;
  }
  .ts-header--light .ts-header__nav .ts-nav-list a { border-bottom-color: var(--ts-border); }
  .ts-header__cta { display: none; }
  .ts-header__hamburger { display: flex; align-items: center; }
  .ts-header__logo { height: 28px; }
  .ts-header__brand-name { font-size: 0.9375rem; }

  /* Hero */
  .ts-hero__inner { padding: 32px 20px; }
  .ts-hero__copy { gap: 16px; }
  .ts-hero__headline { font-size: 32px; }
  .ts-hero__sub { font-size: 14px; }
  .ts-hero__actions { flex-direction: column; gap: 10px; }
  .ts-hero__btn-primary,
  .ts-hero__btn-ghost { display: block; width: 100%; text-align: center; }
  .ts-hero--has-image .ts-hero__inner { flex-direction: column; }
  .ts-hero__image-wrap { max-width: 100%; max-height: 240px; }
  .ts-hero__image { max-height: 220px; }

  /* Home sections */
  .ts-home-section__inner { padding: 40px 20px; gap: 24px; }
  .ts-home-section__head { flex-wrap: wrap; gap: 8px; }
  .ts-home-articles { grid-template-columns: 1fr; gap: 16px; }
  .ts-home-topics__inner { padding: 28px 20px; }
  .ts-home-topics__chips { gap: 8px; }
  .ts-newsletter__inner { padding: 40px 20px; }
  .ts-newsletter__headline { font-size: 24px; }
  .ts-newsletter__cta { display: block; width: 100%; text-align: center; }

  /* Footer */
  .ts-footer__main { padding: 2rem 1.25rem; gap: 1rem; }
  .ts-footer__brand { align-items: center; }
  .ts-footer__divider { margin: 0 1.25rem; }
  .ts-footer__bottom { padding: 1rem 1.25rem; gap: 0.5rem; }
  .ts-footer__nav-list { flex-direction: column; align-items: center; gap: 0.75rem; }
  .ts-footer__legal-list { flex-direction: column; align-items: center; gap: 0.5rem; }
  .ts-footer-simple__divider { margin: 0 1.25rem; }
  .ts-footer-simple__row { padding: 1rem 1.25rem; gap: 1rem; justify-content: center; }

  /* Article */
  .ts-article { padding: 0 1.25rem; margin: 2rem auto; }
  .ts-article__title { font-size: 1.5rem; } /* 24px */
  .ts-article__byline { font-size: 0.75rem; gap: 0.5rem; }
  .ts-article__hero-img { height: 260px; object-fit: cover; }
  .entry-content p { font-size: 0.875rem; } /* 14px body text */
  .ts-faq__heading { font-size: 1.125rem; } /* 18px */
  .ts-article__avatar-img { width: 48px; height: 48px; }

  /* Page */
  .ts-page { padding: 0 1.25rem; margin: 2rem auto; }

  /* Archive */
  .ts-archive { padding: 0 1.25rem; margin: 2rem auto; }
  .ts-archive__item { flex-direction: column; }
  .ts-archive__thumb { width: 100%; height: 200px; }

  /* Advertorial */
  .ts-advertorial__hero { padding: 3rem 1.25rem; }
  .ts-advertorial__content { padding: 2rem 1.25rem; }
}
