/*
Theme Name: TellItHere Modern
Theme URI: https://tellithere.com
Description: Modern, clean, Poppins-powered confession magazine theme
Version: 4.0
*/

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&display=swap');

/* ── TOKENS ── */
:root {
  --brand:      #E8A020;
  --brand-dark: #C4820A;
  --brand-pale: #FFF8EC;
  --ink:        #111111;
  --ink-2:      #333333;
  --ink-3:      #666666;
  --ink-4:      #999999;
  --surface:    #FFFFFF;
  --bg:         #F6F4F0;
  --border:     #EAEAEA;
  --red:        #D63031;
  --green:      #00B894;
  --radius-sm:  6px;
  --radius:     12px;
  --radius-lg:  18px;
  --shadow-xs:  0 1px 3px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,.10);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.13);
  --t:          .2s ease;
  --fw-body:    'Poppins', sans-serif;
  --max:        1200px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fw-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── UTILS ── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ══════════════════════════════════════
   TOPBAR
══════════════════════════════════════ */
.tih-topbar {
  background: var(--ink);
  color: #aaa;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .4px;
  text-align: center;
  padding: 7px 20px;
}
.tih-topbar a { color: var(--brand); font-weight: 600; }
.tih-topbar a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.tih-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t);
}
.tih-header.scrolled { box-shadow: var(--shadow-md); }
.tih-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

/* Logo */
.tih-logo { flex-shrink: 0; display: flex; align-items: center; }
.tih-logo img { height: 42px; width: auto; object-fit: contain; }
.tih-logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1;
}
.tih-logo-text em { color: var(--brand); font-style: normal; }
.tih-logo-sub {
  display: block;
  font-size: .62rem;
  font-weight: 500;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 2px;
}

/* Search */
.tih-search { flex: 1; max-width: 380px; margin: 0 auto; }
.tih-search form {
  display: flex;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  overflow: hidden;
  transition: border-color var(--t), box-shadow var(--t);
}
.tih-search form:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(232,160,32,.12);
}
.tih-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 16px;
  font-family: var(--fw-body);
  font-size: .85rem;
  color: var(--ink);
  outline: none;
  min-width: 0;
}
.tih-search input::placeholder { color: var(--ink-4); }
.tih-search button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 9px 18px;
  font-family: var(--fw-body);
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t);
}
.tih-search button:hover { background: var(--brand-dark); }

/* Confess button */
.btn-confess {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff !important;
  font-family: var(--fw-body);
  font-size: .82rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 40px;
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(214,48,49,.3);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
}
.btn-confess:hover {
  background: #b52828;
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(214,48,49,.4);
}

/* Hamburger */
.tih-hamburger {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink);
  flex-shrink: 0;
  transition: border-color var(--t);
}
.tih-hamburger:hover { border-color: var(--brand); }

/* ══════════════════════════════════════
   NAVIGATION
══════════════════════════════════════ */
.tih-nav {
  background: var(--surface);
  border-bottom: 2px solid var(--bg);
}
.tih-nav ul {
  display: flex;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 2px;
}
.tih-nav ul::-webkit-scrollbar { display: none; }
.tih-nav ul li a {
  display: block;
  padding: 11px 14px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  border-bottom: 2.5px solid transparent;
  transition: color var(--t), border-color var(--t);
}
.tih-nav ul li a:hover,
.tih-nav ul li.current-menu-item > a {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ══════════════════════════════════════
   READING PROGRESS
══════════════════════════════════════ */
.tih-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--red));
  width: 0%;
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  transition: width .1s linear;
}

/* ══════════════════════════════════════
   LAYOUT — 12-col grid
══════════════════════════════════════ */
.tih-body {
  max-width: var(--max);
  margin: 32px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 308px;
  gap: 32px;
  align-items: start;
}
.tih-body.full { grid-template-columns: 1fr; max-width: 860px; }
@media (max-width: 980px) { .tih-body { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════
   SECTION LABEL
══════════════════════════════════════ */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.section-label span {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--ink-3);
  white-space: nowrap;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-label .tag {
  background: var(--brand-pale);
  color: var(--brand-dark);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(232,160,32,.25);
}

/* ══════════════════════════════════════
   HERO POST
══════════════════════════════════════ */
.tih-hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
  aspect-ratio: 16/8;
  background: var(--ink);
  box-shadow: var(--shadow-md);
}
.tih-hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .5;
  transition: transform .6s ease, opacity var(--t);
}
.tih-hero:hover img { transform: scale(1.02); opacity: .42; }
.tih-hero-overlay {
  position: relative;
  z-index: 2;
  padding: 28px 32px 34px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}
.hero-cat {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
}
.tih-hero h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}
.tih-hero h2 a { color: inherit; }
.tih-hero h2 a:hover { color: var(--brand); }
.hero-excerpt {
  font-size: .88rem;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  max-width: 580px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .74rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.hero-meta .rt { color: var(--brand); font-weight: 600; }

/* ══════════════════════════════════════
   POST GRID — 3 cols responsive
══════════════════════════════════════ */
.tih-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
@media (max-width: 780px) { .tih-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 480px) { .tih-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ══════════════════════════════════════
   CARD
══════════════════════════════════════ */
.tih-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.tih-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232,160,32,.3);
}
.tih-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg);
}
.tih-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tih-card:hover .tih-card-img img { transform: scale(1.05); }
.tih-card-cat {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,.68);
  color: var(--brand);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}
.tih-card-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tih-card-title {
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tih-card-title a:hover { color: var(--brand); }
.tih-card-excerpt {
  font-size: .78rem;
  color: var(--ink-3);
  line-height: 1.6;
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.tih-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-4);
  padding-top: 10px;
  border-top: 1px solid var(--bg);
  margin-top: auto;
}
.tih-card-meta .rt { color: var(--brand); font-weight: 600; }

/* ══════════════════════════════════════
   LIST POSTS
══════════════════════════════════════ */
.tih-list { display: flex; flex-direction: column; gap: 12px; }
.tih-list-item {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--t), border-color var(--t);
}
.tih-list-item:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(232,160,32,.25);
}
.tih-list-thumb {
  width: 110px; min-width: 110px;
  height: 84px;
  overflow: hidden;
  background: var(--bg);
}
.tih-list-thumb img { width:100%;height:100%;object-fit:cover;transition:transform .4s ease; }
.tih-list-item:hover .tih-list-thumb img { transform:scale(1.06); }
.tih-list-body { padding: 12px 14px; display: flex; flex-direction: column; justify-content: center; gap: 5px; }
.tih-list-title {
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tih-list-title a:hover { color: var(--brand); }
.tih-list-meta { font-size: .7rem; font-weight: 500; color: var(--ink-4); }

/* ══════════════════════════════════════
   SIDEBAR
══════════════════════════════════════ */
.tih-sidebar { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 22px; }
.tih-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-xs);
}
.tih-widget-title {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ink-4);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1.5px solid var(--bg);
}

/* Confess CTA widget */
.tih-cta-widget {
  background: linear-gradient(135deg, #111 0%, #2a1a00 100%);
  border-color: transparent;
  text-align: center;
  padding: 26px 18px;
}
.tih-cta-widget .cta-emoji { font-size: 2.2rem; margin-bottom: 10px; }
.tih-cta-widget h3 { font-size: 1.05rem; color: #fff; margin-bottom: 7px; font-weight: 700; }
.tih-cta-widget p { font-size: .82rem; color: rgba(255,255,255,.58); line-height: 1.65; margin-bottom: 16px; font-weight: 400; }
.btn-cta-widget {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  font-size: .82rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 40px;
  transition: background var(--t), transform var(--t);
}
.btn-cta-widget:hover { background: var(--brand-dark); transform: translateY(-2px); }

/* Sidebar recent post */
.srp-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg);
}
.srp-item:last-child { border-bottom: none; padding-bottom: 0; }
.srp-img {
  width: 60px; min-width: 60px;
  height: 48px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
}
.srp-img img { width:100%;height:100%;object-fit:cover; }
.srp-title { font-size: .8rem; font-weight: 600; line-height: 1.4; display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.srp-title a:hover { color: var(--brand); }
.srp-date { font-size: .68rem; color: var(--ink-4); margin-top: 3px; font-weight: 500; }

/* Category list */
.tih-cat-list { display: flex; flex-direction: column; gap: 1px; }
.tih-cat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--bg);
  font-size: .84rem;
}
.tih-cat-item:last-child { border-bottom: none; }
.tih-cat-item a { color: var(--ink-2); font-weight: 500; transition: color var(--t); }
.tih-cat-item a:hover { color: var(--brand); }
.tih-cat-count {
  background: var(--bg);
  color: var(--ink-4);
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ══════════════════════════════════════
   SINGLE POST
══════════════════════════════════════ */
.tih-single {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Featured image */
.tih-single-img {
  position: relative;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--ink);
}
.tih-single-img img { width:100%;height:100%;object-fit:cover;opacity:.85; }
.tih-single-img .img-cats {
  position: absolute;
  top: 18px; left: 18px;
  display: flex; gap: 8px;
}
.tih-single-img .img-cat {
  background: var(--brand);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Header block */
.tih-single-header { padding: 30px 36px 22px; }
.tih-single-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 16px;
  letter-spacing: -.3px;
}
.tih-single-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--ink-4);
  padding-bottom: 20px;
  border-bottom: 1px solid var(--bg);
}
.tih-single-meta .meta-cat { color: var(--brand); font-weight: 600; }
.tih-single-meta .meta-rt  { color: var(--green); font-weight: 600; }
.meta-dot { opacity: .35; }

/* Gold rule */
.tih-rule {
  width: 44px; height: 3px;
  background: var(--brand);
  border-radius: 3px;
  margin: 0 36px 26px;
}

/* Article body */
.tih-single-content {
  padding: 0 36px 32px;
  font-size: 1.04rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink-2);
}
.tih-single-content p { margin-bottom: 1.35em; }
.tih-single-content p:first-of-type::first-letter {
  float: left;
  font-size: 3.6rem;
  font-weight: 800;
  line-height: .78;
  color: var(--brand);
  margin: 6px 10px -2px 0;
  letter-spacing: -1px;
}
.tih-single-content h2 { font-size: 1.2rem; font-weight: 700; margin: 1.8em 0 .6em; }
.tih-single-content blockquote {
  border-left: 3px solid var(--brand);
  background: var(--brand-pale);
  padding: 14px 20px;
  margin: 1.6em 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-2);
}

/* Anon badge */
.tih-anon {
  margin: 0 36px 24px;
  padding: 16px 20px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  display: flex;
  align-items: center;
  gap: 14px;
}
.tih-anon-icon {
  width: 40px; height: 40px;
  background: var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.tih-anon-text strong { font-size: .88rem; font-weight: 700; color: var(--ink); display: block; margin-bottom: 2px; }
.tih-anon-text span   { font-size: .78rem; color: var(--ink-3); font-weight: 400; }

/* Share section */
.tih-share-section {
  padding: 20px 36px 30px;
  border-top: 1px solid var(--bg);
}
.tih-share-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 12px;
}
.tih-share-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.tih-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 40px;
  font-size: .78rem;
  font-weight: 700;
  color: #fff !important;
  transition: opacity var(--t), transform var(--t);
}
.tih-share-btn:hover { opacity: .88; transform: translateY(-1px); }
.s-wa  { background: #25D366; }
.s-tw  { background: #1DA1F2; }
.s-pin { background: #E60023; }
.s-rd  { background: #FF4500; }

/* ══════════════════════════════════════
   CONFESSION FORM PAGE
══════════════════════════════════════ */
.tih-form-page {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}
.tih-form-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 8px;
}
.tih-form-page h1 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -.3px;
}
.tih-form-sub {
  font-size: .88rem;
  color: var(--ink-3);
  margin-bottom: 30px;
  font-weight: 400;
  line-height: 1.65;
}
.tih-form { display: flex; flex-direction: column; gap: 20px; }
.tih-form label {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink-2);
  margin-bottom: 7px;
  letter-spacing: .2px;
}
.tih-form label .req { color: var(--red); margin-left: 2px; }
.tih-form label small { font-weight: 400; color: var(--ink-4); font-size: .75rem; }
.tih-form input,
.tih-form textarea,
.tih-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--fw-body);
  font-size: .9rem;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.tih-form input:focus,
.tih-form textarea:focus,
.tih-form select:focus {
  border-color: var(--brand);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(232,160,32,.12);
}
.tih-form textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.tih-form .hint {
  font-size: .7rem;
  font-weight: 500;
  color: var(--ink-4);
  margin-top: 4px;
  float: right;
}
.tih-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .84rem;
  color: var(--ink-2);
  line-height: 1.5;
  font-weight: 400;
}
.tih-check input[type="checkbox"] {
  width: 16px; height: 16px;
  margin-top: 3px;
  accent-color: var(--brand);
  flex-shrink: 0;
  padding: 0; background: none; border: none;
}
.tih-check a { color: var(--brand); font-weight: 600; }
.tih-check a:hover { text-decoration: underline; }
.btn-form-submit {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 36px;
  border-radius: 40px;
  font-family: var(--fw-body);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(214,48,49,.3);
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  width: fit-content;
}
.btn-form-submit:hover { background: #b52828; transform: translateY(-2px); box-shadow: 0 5px 18px rgba(214,48,49,.4); }
.btn-form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.tih-form-msg {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  display: none;
}
.tih-form-msg.ok  { background: #d4edda; color: #155724; border: 1px solid #b7dfbc; }
.tih-form-msg.err { background: #fde8e6; color: #7d1f18; border: 1px solid #f5c0bc; }

/* ══════════════════════════════════════
   PAGINATION
══════════════════════════════════════ */
.tih-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 32px 0 10px;
}
.tih-pagination a,
.tih-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: all var(--t);
}
.tih-pagination a:hover { background: var(--brand-pale); border-color: var(--brand); color: var(--brand); }
.tih-pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.tih-footer {
  background: #0f0f0f;
  color: #777;
  margin-top: 60px;
  padding: 52px 20px 24px;
}
.tih-footer-inner { max-width: var(--max); margin: 0 auto; }
.tih-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
@media (max-width: 720px) { .tih-footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand-logo img { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .75; margin-bottom: 14px; }
.footer-brand-logo .flt {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
  display: block;
}
.footer-brand-logo .flt em { color: var(--brand); font-style: normal; }
.footer-brand p { font-size: .82rem; line-height: 1.7; color: #555; font-weight: 400; }
.tih-footer h4 {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}
.tih-footer ul li { padding: 5px 0; }
.tih-footer ul li a { font-size: .84rem; color: #555; font-weight: 400; transition: color var(--t); }
.tih-footer ul li a:hover { color: var(--brand); }
.tih-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .76rem;
  color: #3a3a3a;
  font-weight: 500;
}

/* ══════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tih-hero { animation: fadeUp .4s ease both; }
.tih-grid .tih-card:nth-child(1) { animation: fadeUp .35s .05s ease both; }
.tih-grid .tih-card:nth-child(2) { animation: fadeUp .35s .10s ease both; }
.tih-grid .tih-card:nth-child(3) { animation: fadeUp .35s .15s ease both; }
.tih-grid .tih-card:nth-child(4) { animation: fadeUp .35s .20s ease both; }
.tih-grid .tih-card:nth-child(5) { animation: fadeUp .35s .25s ease both; }
.tih-grid .tih-card:nth-child(6) { animation: fadeUp .35s .30s ease both; }

/* Back to top */
.tih-btt {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: .95rem;
  cursor: pointer;
  z-index: 888;
  opacity: 0;
  pointer-events: none;
  box-shadow: var(--shadow-md);
  transition: opacity var(--t), transform var(--t);
  display: flex; align-items: center; justify-content: center;
}
.tih-btt.show { opacity: 1; pointer-events: auto; }
.tih-btt:hover { transform: translateY(-3px); }

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 768px) {
  .tih-header-inner { padding: 11px 16px; }
  .tih-search { display: none; }
  .tih-hamburger { display: flex; align-items: center; justify-content: center; }
  .btn-confess { padding: 9px 15px; font-size: .78rem; }
  .tih-logo img { height: 36px; }

  .tih-nav { display: none; }
  .tih-nav.open { display: block; }
  .tih-nav ul { flex-direction: column; gap: 0; padding: 0; border-top: 1px solid var(--bg); }
  .tih-nav ul li a { padding: 13px 20px; border-bottom: 1px solid var(--bg); border-left: none; font-size: .9rem; }

  .tih-body { padding: 18px 16px 40px; margin: 0 auto; }
  .tih-hero { aspect-ratio: 4/3; }
  .tih-hero-overlay { padding: 18px 18px 22px; }
  .tih-hero h2 { font-size: 1.15rem; }
  .hero-excerpt { display: none; }

  .tih-single-header { padding: 20px 20px 16px; }
  .tih-single-content { padding: 0 20px 24px; font-size: .98rem; }
  .tih-single-content p:first-of-type::first-letter { font-size: 2.8rem; }
  .tih-rule { margin: 0 20px 20px; }
  .tih-anon { margin: 0 20px 20px; }
  .tih-share-section { padding: 18px 20px 24px; }

  .tih-form-page { padding: 24px 20px 28px; }
  .tih-sidebar { position: static; }
}

@media (max-width: 480px) {
  .tih-hero { aspect-ratio: 1/1; min-height: 260px; }
  .btn-confess span { display: none; }
}
