/* ==========================================================================
   韩范儿网 (hanfan.org) — Seoul Editorial Magazine Design System
   100% Local CSS · Zero External CDN · Responsive down to 375px
   ========================================================================== */

:root {
  --bg-page: #f9f8f5;
  --bg-surface: #ffffff;
  --bg-muted: #f2f0ea;
  --bg-tint-blue: #edf5fc;
  --bg-tint-orange: #fff4eb;
  --ink-primary: #171717;
  --ink-secondary: #4a4a4a;
  --ink-muted: #767676;
  --border-light: #e6e3dc;
  --border-strong: #d4d0c7;
  --brand-blue: #166bb3;
  --brand-blue-dark: #0f528c;
  --brand-sky: #2e9bd2;
  --brand-orange: #ea6a0a;
  --brand-orange-dark: #c95704;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 8px rgba(23, 23, 23, 0.04);
  --shadow-md: 0 10px 28px rgba(23, 23, 23, 0.07);
  --container-max: 1220px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Songti SC", "Noto Serif SC", "STSong", Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.main-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-secondary);
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--brand-blue);
  background: var(--bg-tint-blue);
}

.main-nav a.active {
  color: var(--brand-orange);
  font-weight: 600;
  background: var(--bg-tint-orange);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 3px 6px 3px 14px;
  width: 196px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(22, 107, 179, 0.12);
  background: #ffffff;
}

.header-search input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 13.5px;
  color: var(--ink-primary);
}

.header-search button {
  border: none;
  background: var(--brand-blue);
  color: #ffffff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-search button:hover {
  background: var(--brand-blue-dark);
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  color: var(--ink-primary);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
  padding: 16px 20px 20px;
}

.mobile-drawer.open {
  display: block;
}

.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.mobile-nav-grid a {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-primary);
  text-align: center;
}

.mobile-nav-grid a.active {
  background: var(--bg-tint-orange);
  color: var(--brand-orange);
  font-weight: 600;
}

/* Homepage Top Full-Width Announcement Bar (verbatim required) */
.announce-bar {
  background: linear-gradient(90deg, #eef6fc 0%, #fff6ee 50%, #eef6fc 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 11px 0;
}

.announce-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.55;
}

.announce-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.announce-text {
  margin: 0;
  flex: 1;
  min-width: 0;
}

/* Main Layout Spacing */
.site-main {
  padding: 28px 0 64px;
}

/* Category Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.badge-fashion { background: #fff1e6; color: #c95704; }
.badge-ent     { background: #e8f3fc; color: #125c9b; }
.badge-beauty  { background: #fceef3; color: #b53463; }
.badge-korean  { background: #eaf7f1; color: #167951; }
.badge-neutral { background: var(--bg-muted); color: var(--ink-secondary); }

/* Editorial Hero Grid */
.hero-section {
  margin-bottom: 42px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.hero-lead {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #14171c;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-md);
}

.hero-lead-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.hero-lead:hover .hero-lead-img {
  transform: scale(1.03);
}

.hero-lead-overlay {
  position: relative;
  z-index: 2;
  padding: 36px 32px 30px;
  background: linear-gradient(180deg, rgba(16, 18, 22, 0.02) 0%, rgba(16, 18, 22, 0.62) 45%, rgba(16, 18, 22, 0.92) 100%);
  color: #ffffff;
}

.hero-lead-title {
  margin: 12px 0 10px;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-lead-summary {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  align-items: center;
  flex: 1;
}

.hero-side-card:hover {
  border-color: var(--brand-blue);
  transform: translateY(-1px);
}

.hero-side-thumb {
  width: 124px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-muted);
}

.hero-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-body h3 {
  margin: 6px 0 5px;
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-side-card:hover h3 {
  color: var(--brand-blue);
}

.card-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Section Headers */
.section-block {
  margin-bottom: 48px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink-primary);
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-en {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-orange);
}

.section-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand-blue);
  white-space: nowrap;
}

.section-more:hover {
  color: var(--brand-orange);
}

/* Quick Tools Strip on Homepage */
.tools-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}

.tool-promo-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-promo-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
}

.tool-promo-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-blue);
  text-transform: uppercase;
}

.tool-promo-card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-primary);
}

.tool-promo-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Article Grid & Cards */
.articles-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.articles-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tool-inputs-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.articles-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.article-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-muted);
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.article-card:hover .article-thumb img {
  transform: scale(1.04);
}

.article-thumb .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.article-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.article-card-title {
  margin: 0 0 8px;
  font-size: 16.5px;
  line-height: 1.42;
  font-weight: 700;
  color: var(--ink-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover .article-card-title {
  color: var(--brand-blue);
}

.article-card-summary {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* Two-Column Editorial Split (Channels + Curated Sidebars) */
.split-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.channel-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.channel-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.channel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.channel-list-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.channel-list-item + .channel-list-item {
  padding-top: 14px;
  border-top: 1px dashed var(--border-light);
}

.channel-list-thumb {
  width: 96px;
  height: 68px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-muted);
}

.channel-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.channel-list-title {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink-primary);
}

.channel-list-item:hover .channel-list-title {
  color: var(--brand-blue);
}

/* Brand & Drama Showcase Grids */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.brand-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.brand-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.brand-name {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
}

.brand-cn {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.brand-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.6;
  flex: 1;
}

.brand-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
}

.brand-fact-label {
  display: block;
  color: var(--ink-muted);
  font-size: 11.5px;
}

.brand-fact-val {
  font-weight: 600;
  color: var(--ink-primary);
}

/* Drama Cards */
.drama-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.drama-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.drama-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.drama-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.drama-kr {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.drama-score {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-tint-orange);
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.drama-cast {
  font-size: 13px;
  color: var(--brand-blue);
  font-weight: 500;
}

.drama-synopsis {
  margin: 0;
  font-size: 13.8px;
  color: var(--ink-secondary);
  line-height: 1.65;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
}

.tag-chip:hover, .tag-chip.active {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

/* Phrasebook / Hangul Cards */
.phrase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.phrase-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.phrase-hangul {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.35;
}

.phrase-roman {
  font-size: 12.5px;
  color: var(--brand-blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.phrase-cn {
  font-size: 14px;
  color: var(--ink-secondary);
  font-weight: 500;
}

.phrase-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-light);
  font-size: 12px;
  color: var(--ink-muted);
}

.mini-btn {
  border: 1px solid var(--border-light);
  background: var(--bg-page);
  color: var(--ink-secondary);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 12px;
  cursor: pointer;
}

.mini-btn:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--bg-tint-blue);
}

/* Page Header / Banner for Subpages */
.page-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.page-banner-en {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
  margin-bottom: 6px;
}

.page-banner h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}

.page-banner p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
  max-width: 780px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

/* Two-Column Content + Sidebar Layout */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  align-items: start;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-card h3 {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.sidebar-links li {
  font-size: 14px;
  line-height: 1.45;
}

.sidebar-links a:hover {
  color: var(--brand-blue);
}

/* Article Detail Reader */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.breadcrumb a:hover {
  color: var(--brand-blue);
}

.article-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px 36px;
  box-shadow: var(--shadow-sm);
}

.article-header h1 {
  margin: 12px 0 14px;
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.article-lead-summary {
  font-size: 15.5px;
  color: var(--ink-secondary);
  background: var(--bg-page);
  border-left: 4px solid var(--brand-orange);
  padding: 14px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 18px 0 22px;
}

.article-hero-figure {
  margin: 0 0 26px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.article-hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.takeaways-box {
  background: var(--bg-tint-blue);
  border: 1px solid #d4e6f5;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 26px;
}

.takeaways-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--brand-blue-dark);
}

.takeaways-box ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--ink-primary);
}

.article-prose {
  font-size: 16px;
  line-height: 1.85;
  color: #262626;
}

.article-prose h2 {
  margin: 30px 0 12px;
  font-size: 21px;
  line-height: 1.38;
  font-weight: 700;
  color: var(--ink-primary);
  padding-left: 12px;
  border-left: 4px solid var(--brand-blue);
}

.article-prose h3 {
  margin: 22px 0 10px;
  font-size: 17.5px;
  font-weight: 700;
}

.article-prose p {
  margin: 0 0 16px;
}

.article-prose ul, .article-prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.article-prose li {
  margin-bottom: 8px;
}

.article-prose blockquote {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--bg-tint-orange);
  border-left: 3px solid var(--brand-orange);
  border-radius: 0 8px 8px 0;
  color: var(--ink-secondary);
  font-size: 14.8px;
}

.article-footer-tags {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* Interactive Tools Hub */
.tool-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-sm);
}

.tool-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.tool-panel-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.tool-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 14.5px;
  outline: none;
}

.form-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(22, 107, 179, 0.12);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--brand-blue-dark);
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--brand-orange);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-accent:hover {
  background: var(--brand-orange-dark);
}

.tool-result-box {
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.swatch-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.swatch-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 500;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: #ffffff;
}

.data-table th, .data-table td {
  padding: 10px 12px;
  border: 1px solid var(--border-light);
  text-align: left;
}

.data-table th {
  background: var(--bg-muted);
  font-weight: 600;
  color: var(--ink-primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  background: #ffffff;
  font-size: 13.5px;
}

.pagination .current {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: #171a21;
  color: #d1d5db;
  padding: 48px 0 28px;
  border-top: 4px solid var(--brand-orange);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: #9ca3af;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13.5px;
}

.footer-col a {
  color: #9ca3af;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 13px;
  color: #9ca3af;
}

.footer-bottom a {
  color: #e5e7eb;
}

.footer-bottom a:hover {
  color: var(--brand-sky);
  text-decoration: underline;
}

/* Responsive Breakpoints (Tablet & 375px Mobile Zero-Overflow) */
@media (max-width: 1080px) {
  .main-nav {
    display: none;
  }
  .header-search {
    display: none;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-lead {
    min-height: 340px;
  }
  .tools-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .articles-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 14px;
  }
  .header-inner {
    min-height: 60px;
  }
  .brand-logo img {
    height: 36px;
  }
  .announce-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 12.8px;
  }
  .site-main {
    padding: 20px 0 46px;
  }
  .hero-lead {
    min-height: 290px;
  }
  .hero-lead-overlay {
    padding: 22px 18px 18px;
  }
  .hero-lead-title {
    font-size: 21px;
  }
  .hero-side-card {
    grid-template-columns: 96px minmax(0, 1fr);
    padding: 12px;
    gap: 12px;
  }
  .hero-side-thumb {
    width: 96px;
    height: 76px;
  }
  .tools-strip,
  .articles-grid-2,
  .articles-grid-3,
  .articles-grid-4,
  .split-2,
  .brand-grid,
  .drama-grid,
  .phrase-grid,
  .tool-grid-2,
  .tool-inputs-2,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .channel-box {
    padding: 18px 16px;
  }
  .article-shell {
    padding: 22px 16px;
  }
  .article-header h1 {
    font-size: 23px;
  }
  .page-banner {
    padding: 20px 16px;
  }
  .page-banner h1 {
    font-size: 22px;
  }
  .tool-panel {
    padding: 18px 16px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}
