/* ============================================================
   styles.css - Main Stylesheet
   Nguyen Thanh Trung lawyer newspaper site
   ============================================================ */

@import 'tokens.css';


/* Reset */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

img, picture, video {
  height: auto;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style-position: inside;
}


/* Base typography */

body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-surface-muted);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  color: var(--color-text);
}

a {
  color: var(--color-link);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
}


/* Header & Navigation */

.site-masthead {
  background: var(--color-brand-dark);
  color: var(--color-surface);
}

.masthead-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-3) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  border-bottom: 2px solid rgba(255,255,255,.08);
}

.masthead-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

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

.site-masthead .brand-logo img,
.site-footer .brand-logo img {
  filter: brightness(0) invert(1);
}

.brand-logo img {
  height: 32px;
  display: block;
}

.masthead-identity {
  display: grid;
  gap: 1px;
}

.masthead-lawyer-name {
  color: var(--color-surface);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: .01em;
  margin: 0;
  line-height: 1.2;
}

.masthead-subtitle {
  color: rgba(255, 255, 255, .5);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: .04em;
  margin: 0;
}

.masthead-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}

.masthead-hotline {
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color .15s;
  line-height: 1;
}

.masthead-hotline:hover {
  color: rgba(255,255,255,.75);
  text-decoration: none;
}

.masthead-tagline {
  color: rgba(255, 255, 255, .42);
  font-size: var(--text-xs);
  text-align: right;
}

/* Sticky nav */

.site-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.topbar-scroll-wrap {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}

.topbar-scroll-wrap::after {
  content: '';
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40px;
  background: linear-gradient(to right, transparent, var(--color-surface));
  pointer-events: none;
}

.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  min-height: 42px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.topbar-inner::-webkit-scrollbar { display: none; }

.site-topbar a {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0 var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.site-topbar a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.site-topbar a.active {
  color: var(--color-brand-dark);
  border-bottom-color: var(--color-accent);
}

.nav-search {
  margin-left: auto;
  color: var(--color-text-muted);
}

.nav-search svg {
  flex-shrink: 0;
}

/* ── Homepage ── */

.home-page {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4) var(--space-8);
  background: var(--color-surface);
}

.empty-state {
  padding: var(--space-7) var(--space-4);
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  text-align: center;
}

/* story-meta: shared category + date label */
.story-meta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── Hero Block ── */

.hero-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 0;
  align-items: start;
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: var(--space-6);
}

.hero-main {
  padding-right: var(--space-6);
  border-right: 1px solid var(--color-border-light);
}

.hero-img-wrap {
  display: block;
  overflow: hidden;
}

.hero-img-wrap img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--color-surface-muted);
  transition: transform .4s ease;
}

.hero-img-wrap:hover img {
  transform: scale(1.025);
}

.hero-body {
  padding: var(--space-4) 0 0;
}

.hero-title {
  margin-top: 0;
  font-size: clamp(20px, 2.8vw, 32px);
  line-height: 1.22;
  letter-spacing: -.01em;
}

.hero-title a {
  color: var(--color-text);
}

.hero-title a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.hero-excerpt {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
  max-width: 58ch;
}

.hero-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-4);
  padding: 7px 16px;
  background: var(--color-accent);
  color: var(--color-surface);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .15s;
}

.hero-read-more:hover {
  background: var(--color-brand-dark);
  text-decoration: none;
}

/* ── Hero Sidebar ── */

.hero-sidebar {
  display: grid;
  gap: var(--space-5);
  padding-left: var(--space-5);
}

.sidebar-section {
  padding-top: 0;
}

.sidebar-label {
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-brand-dark);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--color-brand-dark);
}

.sidebar-story {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.sidebar-story:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sidebar-story-featured {
  padding-bottom: var(--space-3);
}

.sidebar-story-featured img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: var(--space-2);
  background: var(--color-surface-muted);
  transition: opacity .2s;
}

.sidebar-story-featured:hover img {
  opacity: .9;
}

.sidebar-story-meta {
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: var(--space-1);
}

.sidebar-story h3 {
  font-size: var(--text-sm);
  line-height: 1.42;
}

.sidebar-story h3 a {
  color: var(--color-text);
}

.sidebar-story h3 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Popular list */

.popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: popular-counter;
}

.popular-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border-light);
  counter-increment: popular-counter;
}

.popular-list li:last-child {
  border-bottom: none;
}

.popular-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--color-brand-dark);
  color: var(--color-surface);
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-ui);
  flex-shrink: 0;
  margin-top: 2px;
}

.popular-num::before {
  content: counter(popular-counter, decimal-leading-zero);
}

.popular-list a {
  color: var(--color-text);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.38;
}

.popular-list a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Section Blocks ── */

.section-block {
  margin-top: var(--space-7);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-brand-dark);
}

.section-name {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--color-brand-dark);
}

.section-name span {
  display: inline;
  color: inherit;
  background: none;
  padding: 0;
}

.section-more {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  flex-shrink: 0;
}

.section-more:hover {
  text-decoration: underline;
}

/* Section grid: lead left, secondary stack right */

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.section-lead {
  padding-right: var(--space-5);
  border-right: 1px solid var(--color-border-light);
}

.section-lead a {
  display: block;
  overflow: hidden;
}

.section-lead img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--color-surface-muted);
  transition: transform .4s ease;
}

.section-lead a:hover img {
  transform: scale(1.025);
}

.section-lead-title {
  font-size: var(--text-xl);
  line-height: 1.25;
  margin-top: var(--space-2);
  letter-spacing: -.01em;
}

.section-lead-title a {
  color: var(--color-text);
}

.section-lead-title a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.section-lead p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.section-secondary {
  display: grid;
  gap: 0;
  padding-left: var(--space-5);
}

.secondary-story {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.secondary-story:first-child {
  padding-top: 0;
}

.secondary-story:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.secondary-img {
  display: block;
  overflow: hidden;
  flex-shrink: 0;
}

.secondary-img img {
  width: 80px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface-muted);
  transition: opacity .2s;
}

.secondary-img:hover img {
  opacity: .85;
}

.secondary-story h3 {
  font-size: var(--text-sm);
  line-height: 1.42;
  font-weight: 700;
}

.secondary-story h3 a {
  color: var(--color-text);
}

.secondary-story h3 a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* ── Forms Grid ── */

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-card {
  padding: var(--space-4) var(--space-4) var(--space-5);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface-muted);
  transition: border-color .2s, box-shadow .2s;
}

.form-card:hover {
  border-color: var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
}

.file-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  background: var(--color-accent);
  color: var(--color-surface);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form-card h3 {
  margin-top: var(--space-3);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.35;
}

.form-card p {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.download-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-top: var(--space-4);
  padding: 0 var(--space-4);
  background: var(--color-brand-dark);
  color: var(--color-surface);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .04em;
  transition: background .15s;
}

.download-link:hover {
  background: var(--color-accent);
  text-decoration: none;
}

/* ── Videos Grid ── */

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.video-card a {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--color-brand-dark);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: .82;
  transition: opacity .3s, transform .4s ease;
}

.video-card a:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.play-icon {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .5);
  color: var(--color-surface);
  pointer-events: none;
  transition: background .2s;
}

.video-card a:hover .play-icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.video-card h3 {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-card p {
  margin-top: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Public-site responsive rules are at end of file
   (must come AFTER base .footer-inner / .hero-block / .section-grid definitions). */

.public-page,
.article-page {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
}

.page-heading {
  border-bottom: 3px solid var(--color-brand-dark);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
}

.page-heading p {
  margin: 0 0 var(--space-2);
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 800;
  text-transform: uppercase;
}

.page-heading h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
}

.content-panel {
  width: min(var(--container-article), 100%);
  display: grid;
  gap: var(--space-4);
  font-size: var(--text-lg);
  line-height: var(--leading-article);
}

.archive-list {
  display: grid;
  gap: var(--space-4);
}

.archive-item {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  padding-bottom: var(--space-4);
}

.archive-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.archive-item h2 {
  margin: var(--space-1) 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
}

.archive-item p,
.video-card p {
  color: var(--color-text-muted);
}

.archive-grid {
  margin-top: var(--space-4);
}

.article-detail {
  width: min(var(--container-article), 100%);
  margin: 0 auto;
}

.article-detail h1 {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  line-height: 1.12;
}

.article-excerpt {
  color: var(--color-text-muted);
  font-size: var(--text-xl);
  line-height: 1.55;
}

.article-cover {
  width: 100%;
  max-height: 460px;
  margin: var(--space-5) 0;
  object-fit: cover;
}

.article-body {
  font-size: var(--text-lg);
  line-height: var(--leading-article);
  overflow-wrap: break-word;
  word-break: normal;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.article-body pre {
  overflow-x: auto;
}

.article-body table {
  display: block;
  overflow-x: auto;
  max-width: 100%;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-body h2 {
  margin-top: var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.article-tags span {
  border: 1px solid var(--color-border-light);
  padding: 4px 8px;
  background: var(--color-surface-muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.search-panel input {
  border: 1px solid var(--color-border);
  padding: 12px 14px;
  font-size: var(--text-base);
}

.search-panel button {
  border: 0;
  padding: 0 var(--space-5);
  background: var(--color-brand-dark);
  color: var(--color-surface);
  font-weight: 800;
}

.search-summary {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.site-footer {
  background: var(--color-brand-dark);
  color: var(--color-surface);
  margin-top: var(--space-8);
}

.footer-accent-bar {
  height: 3px;
  background: var(--color-accent);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-6) var(--space-5) var(--space-5);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 260px;
  gap: var(--space-6);
  align-items: start;
}

.brand-mark {
  display: grid;
  gap: var(--space-2);
}

.footer-sitename {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-surface);
}

.footer-company {
  display: block;
  color: rgba(255, 255, 255, .42);
  font-size: var(--text-xs);
  line-height: 1.55;
}

address {
  display: grid;
  gap: var(--space-2);
  font-style: normal;
}

.footer-contact-heading {
  color: rgba(255, 255, 255, .35);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: rgba(255, 255, 255, .72);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.footer-contact-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: .5;
}

.footer-contact-row a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

.footer-contact-row a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-note {
  padding: var(--space-4) var(--space-4) var(--space-4) var(--space-5);
  border-left: 2px solid rgba(178, 34, 34, .6);
  background: rgba(255, 255, 255, .03);
}

.footer-note strong {
  display: block;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
  color: rgba(255,255,255,.9);
}

.footer-note p {
  color: rgba(255, 255, 255, .52);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: var(--space-3) var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
  color: rgba(255, 255, 255, .28);
  font-size: var(--text-xs);
}

.error-masthead .masthead-inner {
  min-height: 120px;
}

.error-page {
  min-height: calc(100vh - 120px);
  padding: var(--space-7) var(--space-4);
  background: var(--color-surface-muted);
}

.error-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--space-6);
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.error-code {
  color: var(--color-accent);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.error-panel h2 {
  margin-top: var(--space-2);
  font-size: var(--text-2xl);
}

.error-message {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-md);
}

.error-intro {
  margin-top: var(--space-5);
  padding: var(--space-4);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface-muted);
}

.error-intro p {
  margin-top: var(--space-2);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.error-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 var(--space-4);
  background: var(--color-brand-dark);
  color: var(--color-surface);
  font-size: var(--text-sm);
  font-weight: 700;
}


/* ============================================================
   Admin CMS — WordPress-inspired design system
   ============================================================ */

/* ── Admin tokens ── */
:root {
  --wp-sidebar-bg: #1d2327;
  --wp-sidebar-bg2: #2c3338;
  --wp-sidebar-text: rgba(240,246,252,.7);
  --wp-sidebar-text-active: #fff;
  --wp-sidebar-width: 200px;
  --wp-accent: #2271b1;
  --wp-accent-hover: #135e96;
  --wp-accent-light: #e8f0fb;
  --wp-bg: #f0f0f1;
  --wp-surface: #fff;
  --wp-border: #c3c4c7;
  --wp-border-light: #dcdcde;
  --wp-text: #1d2327;
  --wp-text-muted: #50575e;
  --wp-success: #00a32a;
  --wp-success-bg: #edfaef;
  --wp-error: #d63638;
  --wp-error-bg: #fcf0f1;
  --wp-warning: #dba617;
  --wp-warning-bg: #fcf9e8;
  --wp-info: #72aee6;
  --wp-topbar-h: 36px;
}

/* ── Admin body ── */
.admin-body {
  background: var(--wp-bg);
  color: var(--wp-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

/* ── Shell layout ── */
.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--wp-sidebar-width) minmax(0, 1fr);
}

/* ── Sidebar ── */
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: var(--wp-sidebar-bg);
  color: var(--wp-sidebar-text);
  scrollbar-width: none;
}
.admin-sidebar::-webkit-scrollbar { display: none; }

.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.admin-brand-seal {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  border-radius: 3px;
  flex-shrink: 0;
  letter-spacing: .04em;
}

.admin-brand span {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
}

.admin-nav {
  flex: 1;
  padding: 8px 0 12px;
  overflow-y: auto;
}

.sidebar-group {
  margin-bottom: 4px;
}

.sidebar-group-label {
  display: block;
  padding: 12px 12px 4px;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(240,246,252,.35);
  cursor: default;
}

.admin-sidebar a,
.admin-sidebar-footer button {
  display: flex;
  align-items: center;
  width: 100%;
  border: 0;
  border-left: 4px solid transparent;
  padding: 7px 8px 7px 8px;
  background: transparent;
  color: var(--wp-sidebar-text);
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: color .12s, background .12s;
  text-decoration: none;
}

.admin-sidebar a.active {
  border-left-color: var(--color-accent);
  background: rgba(255,255,255,.07);
  color: var(--wp-sidebar-text-active);
  font-weight: 600;
}

.admin-sidebar a:hover,
.admin-sidebar-footer button:hover {
  background: rgba(255,255,255,.07);
  color: var(--wp-sidebar-text-active);
  text-decoration: none;
}

.admin-sidebar-footer {
  flex-shrink: 0;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: grid;
  gap: 4px;
}

.admin-user-email {
  display: block;
  font-size: 11px;
  color: rgba(240,246,252,.4);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 0;
}

.admin-view-site {
  font-size: 12px;
  color: rgba(240,246,252,.55) !important;
  padding: 4px 0 !important;
  border-left: none !important;
  background: none !important;
}

.admin-sidebar-footer form { margin: 0; }

/* ── Main content area ── */
.admin-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0;
}

/* ── Admin topbar ── */
.admin-topbar {
  height: var(--wp-topbar-h);
  background: var(--wp-sidebar-bg2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Admin content wrapper ── */
.admin-content {
  padding: 20px 20px 40px;
  flex: 1;
}

/* Backward compat: nếu template dùng admin-main trực tiếp */
.admin-main > .admin-page-head,
.admin-main > .admin-stats,
.admin-main > .admin-quick-actions,
.admin-main > .admin-card,
.admin-main > .admin-alert,
.admin-main > .admin-form,
.admin-main > .admin-filters,
.admin-main > .admin-table-wrap,
.admin-main > section,
.admin-main > div:not(.admin-mobile-bar) {
  margin-left: 20px;
  margin-right: 20px;
}
.admin-main > .admin-page-head { margin-top: 20px; }

/* ── Mobile top bar ── */
.admin-mobile-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--wp-sidebar-bg);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.admin-mobile-bar span {
  font-weight: 600;
  font-size: 14px;
}

.admin-nav-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 3px;
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 149;
  background: rgba(0,0,0,.5);
}

/* ── Page header ── */
.admin-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--wp-border-light);
}

.admin-page-head h1 {
  font-size: 23px;
  font-weight: 400;
  color: var(--wp-text);
  line-height: 1.3;
}

/* ── Buttons ── */
.admin-button,
.admin-form button[type="submit"],
.login-card button[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--wp-accent-hover);
  border-radius: 3px;
  background: var(--wp-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  text-decoration: none;
  white-space: nowrap;
}

.admin-button:hover,
.admin-form button[type="submit"]:hover,
.login-card button[type="submit"]:hover {
  background: var(--wp-accent-hover);
  border-color: #0a4b78;
  color: #fff;
  text-decoration: none;
}

.admin-button.secondary {
  background: var(--wp-surface);
  color: var(--wp-text);
  border-color: var(--wp-border);
}
.admin-button.secondary:hover {
  background: var(--wp-bg);
  border-color: #8c8f94;
  color: var(--wp-text);
}

.admin-button.danger {
  background: var(--wp-error);
  border-color: #b32d2e;
  color: #fff;
}
.admin-button.danger:hover {
  background: #b32d2e;
  border-color: #8a2122;
}

/* ── Admin actions (row buttons + ⋯ menu) ── */
.admin-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  min-width: 110px;
}

.admin-actions form { display: inline; margin: 0; }

.admin-action-primary,
.admin-actions > a.admin-action-primary {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 10px;
  border: 1px solid var(--wp-accent);
  border-radius: 3px;
  background: var(--wp-accent);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}
.admin-action-primary:hover {
  background: var(--wp-accent-hover);
  border-color: var(--wp-accent-hover);
  color: #fff !important;
}

.admin-action-menu {
  position: relative;
}
.admin-action-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  padding: 0 6px;
  border: 1px solid var(--wp-border);
  border-radius: 3px;
  background: var(--wp-surface);
  color: var(--wp-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}
.admin-action-menu > summary::-webkit-details-marker { display: none; }
.admin-action-menu > summary:hover {
  border-color: var(--wp-accent);
  background: var(--wp-accent-light);
  color: var(--wp-accent-hover);
}
.admin-action-menu[open] > summary {
  border-color: var(--wp-accent);
  background: var(--wp-accent-light);
}
.admin-action-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 40;
  min-width: 160px;
  padding: 4px 0;
  border: 1px solid var(--wp-border);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.admin-action-menu-panel a,
.admin-action-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--wp-text);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.admin-action-menu-panel a:hover,
.admin-action-menu-panel button:hover {
  background: #f0f0f1;
  color: var(--wp-text);
  text-decoration: none;
}
.admin-action-menu-panel button.danger {
  color: var(--wp-error);
}
.admin-action-menu-panel button.danger:hover {
  background: var(--wp-error-bg);
  color: #a50000;
}

/* legacy flat buttons (other list pages) */
.admin-actions > a:not(.admin-action-primary),
.admin-actions > form > button {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 8px;
  border: 1px solid var(--wp-border);
  border-radius: 3px;
  background: var(--wp-surface);
  color: var(--wp-accent);
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.admin-actions > a:not(.admin-action-primary):hover,
.admin-actions > form > button:hover {
  background: var(--wp-accent-light);
  border-color: var(--wp-accent);
  color: var(--wp-accent-hover);
  text-decoration: none;
}
.admin-actions > form > button.danger {
  color: var(--wp-error);
  border-color: #f5c0c0;
}
.admin-actions > form > button.danger:hover {
  background: var(--wp-error-bg);
  border-color: var(--wp-error);
  color: #a50000;
}

/* ── Alerts / Notices ── */
.admin-alert {
  margin-bottom: 16px;
  padding: 10px 14px;
  border-left: 4px solid var(--wp-border);
  background: var(--wp-surface);
  border-radius: 0 3px 3px 0;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  font-size: 13px;
}

.admin-alert.ok {
  border-left-color: var(--wp-success);
  background: var(--wp-success-bg);
  color: #1a4731;
}

.admin-alert.error {
  border-left-color: var(--wp-error);
  background: var(--wp-error-bg);
  color: #8a1a1b;
}

.admin-alert.key {
  border-left-color: var(--wp-accent);
  background: var(--wp-accent-light);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: break-word;
}

/* ── Stat cards — dashboard ── */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 16px;
  background: var(--wp-surface);
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  border-top: 4px solid var(--wp-border);
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.stat-card.stat-total     { border-top-color: var(--color-accent); }
.stat-card.stat-published { border-top-color: var(--wp-success); }
.stat-card.stat-draft     { border-top-color: var(--wp-text-muted); }
.stat-card.stat-forms     { border-top-color: var(--wp-accent); }
.stat-card.stat-videos    { border-top-color: var(--wp-warning); }

.stat-card strong {
  display: block;
  font-size: 28px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--wp-text);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  color: var(--wp-text-muted);
  font-size: 13px;
}

/* ── Quick actions ── */
.admin-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--wp-border);
  border-radius: 3px;
  background: var(--wp-surface);
  color: var(--wp-accent);
  font-size: 13px;
  font-weight: 400;
  text-decoration: none;
  transition: background .1s, border-color .1s;
}

.quick-action:hover {
  background: var(--wp-accent-light);
  border-color: var(--wp-accent);
  color: var(--wp-accent-hover);
  text-decoration: none;
}

/* ── Admin card ── */
.admin-card {
  background: var(--wp-surface);
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  padding: 16px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  margin-bottom: 16px;
}

.admin-card h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--wp-text);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--wp-border-light);
}

/* ── Data table ── */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--wp-surface);
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  margin-bottom: 16px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

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

.admin-table thead th {
  background: var(--wp-surface);
  color: var(--wp-text-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 2px solid var(--wp-border);
}

.admin-table tbody tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover td {
  background: #f6f7f7;
}

.admin-table a {
  color: var(--wp-accent);
  font-weight: 500;
  text-decoration: none;
}
.admin-table a:hover { text-decoration: underline; }

.admin-table small {
  color: var(--wp-text-muted);
  font-size: 12px;
}

.admin-table .col-desc {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-thumb {
  display: block;
  width: 72px;
  height: 48px;
  object-fit: cover;
  border: 1px solid var(--wp-border-light);
  background: var(--wp-bg);
  border-radius: 2px;
}

/* ── Status pills ── */
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}

.status-pill.published {
  background: var(--wp-success-bg);
  color: var(--wp-success);
}

.status-pill.draft {
  background: #f0f0f1;
  color: var(--wp-text-muted);
}

.status-pill.scheduled {
  background: var(--wp-warning-bg);
  color: #9a6700;
}

.status-pill.active {
  background: var(--wp-accent-light);
  color: var(--wp-accent);
}

.status-pill.inactive {
  background: var(--wp-error-bg);
  color: var(--wp-error);
}

/* ── Forms ── */
.admin-form {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.admin-form label,
.admin-filters label,
.login-card label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wp-text);
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-filters input,
.admin-filters select,
.login-card input {
  width: 100%;
  border: 1px solid var(--wp-border);
  border-radius: 3px;
  padding: 7px 10px;
  background: var(--wp-surface);
  color: var(--wp-text);
  font-size: 14px;
  transition: border-color .1s, box-shadow .1s;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-filters input:focus,
.admin-filters select:focus,
.login-card input:focus {
  outline: none;
  border-color: var(--wp-accent);
  box-shadow: 0 0 0 1px var(--wp-accent);
}

.admin-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
  align-items: end;
  background: var(--wp-surface);
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  padding: 14px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.admin-filters button {
  min-height: 32px;
  border: 1px solid var(--wp-accent-hover);
  border-radius: 3px;
  padding: 0 14px;
  background: var(--wp-accent);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
  transition: background .12s;
}
.admin-filters button:hover { background: var(--wp-accent-hover); }

.admin-fieldset {
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  padding: 14px;
}

.admin-fieldset legend {
  padding: 0 6px;
  font-weight: 600;
  font-size: 13px;
  color: var(--wp-text);
}

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

.admin-check-grid label,
.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 400;
  font-size: 13px;
}

.admin-check-grid input,
.check-label input { width: auto; }

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

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

/* ── Login page ── */
.admin-login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--wp-bg);
  padding: 16px;
}

.login-card {
  width: min(340px, 100%);
  background: var(--wp-surface);
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.login-card h1 {
  font-size: 20px;
  font-weight: 600;
  color: var(--wp-text);
  margin-bottom: 4px;
}

.login-card p {
  margin: 4px 0 16px;
  color: var(--wp-text-muted);
  font-size: 13px;
}

.login-card .admin-form {
  max-width: none;
}

/* ── Sticky save bar ── */
.sticky-save {
  position: sticky;
  bottom: 0;
  background: var(--wp-surface);
  border-top: 1px solid var(--wp-border-light);
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 10;
  box-shadow: 0 -2px 8px rgba(0,0,0,.06);
}

/* ── Media grid ── */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.media-item {
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  overflow: hidden;
  background: var(--wp-surface);
  transition: border-color .1s, box-shadow .1s;
}

.media-item:hover {
  border-color: var(--wp-accent);
  box-shadow: 0 0 0 1px var(--wp-accent);
}

.media-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  background: var(--wp-bg);
}

.media-info {
  padding: 6px 8px;
  font-size: 11px;
  color: var(--wp-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-info small {
  display: block;
  color: var(--wp-text-muted);
}

.media-item-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  background: var(--wp-bg);
  border: 1px solid var(--wp-border-light);
  color: var(--wp-text-muted);
  font-size: 20px;
}

/* ── Demo login hint ── */
.admin-demo-login {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  background: var(--wp-bg);
  font-size: 12px;
  color: var(--wp-text-muted);
}

/* ── Mobile responsive ── */
@media (max-width: 900px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 150;
    width: 240px;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform .2s ease;
    overflow-y: auto;
  }

  .admin-shell.nav-open .admin-sidebar { transform: translateX(0); }
  .admin-shell.nav-open .admin-overlay { display: block; }

  .admin-mobile-bar { display: flex; }

  .admin-main > .admin-page-head,
  .admin-main > .admin-stats,
  .admin-main > .admin-quick-actions,
  .admin-main > .admin-card,
  .admin-main > .admin-alert,
  .admin-main > .admin-form,
  .admin-main > .admin-filters,
  .admin-main > .admin-table-wrap,
  .admin-main > section,
  .admin-main > div:not(.admin-mobile-bar) {
    margin-left: 12px;
    margin-right: 12px;
  }

  .admin-filters {
    grid-template-columns: 1fr 1fr;
  }

  .admin-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   Article page v2 — TOC sidebar, hero, progress bar
   ===================================================== */

.article-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent, #c79857);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.1s linear;
  z-index: 100;
  pointer-events: none;
}

.article-page-v2 {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: var(--space-6) var(--space-4) var(--space-8);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
}

.article-layout.has-toc {
  grid-template-columns: 260px minmax(0, 1fr);
}

.article-page-v2 .article-detail {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.article-layout.has-toc .article-detail {
  margin: 0;
}

.article-layout:not(.has-toc) .article-toc {
  display: none;
}

.article-toc {
  position: sticky;
  top: calc(var(--space-5));
  max-height: calc(100vh - var(--space-6));
  overflow: hidden;
}

.article-toc-inner {
  border-left: 3px solid var(--color-brand-dark, #1a3a52);
  padding: var(--space-2) 0 var(--space-2) var(--space-3);
  max-height: calc(100vh - var(--space-7));
  overflow-y: auto;
}

.article-toc-title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
}

.article-toc-nav .toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.article-toc-nav .toc-item a {
  display: block;
  padding: 4px 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.45;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -2px;
  padding-left: var(--space-2);
  transition: color 0.15s, border-color 0.15s, transform 0.15s;
}

.article-toc-nav .toc-item.toc-h3 a {
  padding-left: calc(var(--space-2) + 12px);
  font-size: 13px;
}

.article-toc-nav .toc-item a:hover {
  color: var(--color-brand-dark);
}

.article-toc-nav .toc-item a.active {
  color: var(--color-brand-dark);
  font-weight: 700;
  border-left-color: var(--color-accent);
}

.article-toc-mobile {
  display: none;
  margin: var(--space-4) 0;
  border: 1px solid var(--color-border-light);
  border-radius: 4px;
  background: var(--color-surface-muted);
}

.article-toc-mobile > summary {
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand-dark);
}

.article-toc-mobile[open] > summary {
  border-bottom: 1px solid var(--color-border-light);
}

.article-toc-mobile .article-toc-nav {
  padding: var(--space-2) var(--space-3);
}

.article-hero {
  margin-bottom: var(--space-5);
}

.article-category-pill {
  display: inline-block;
  padding: 4px 12px;
  background: var(--color-accent, #c79857);
  color: #fff;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  margin-bottom: var(--space-3);
}

.article-category-pill:hover {
  filter: brightness(1.08);
}

.article-page-v2 .article-detail h1 {
  margin: var(--space-2) 0 var(--space-3);
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: var(--space-3) 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.article-meta-author {
  font-weight: 700;
  color: var(--color-text);
}

.article-meta-sep {
  opacity: 0.5;
}

.article-page-v2 .article-cover {
  width: 100%;
  max-height: 480px;
  margin: var(--space-5) 0 0;
  object-fit: cover;
  border-radius: 4px;
}

.article-page-v2 .article-body {
  font-size: var(--text-lg);
  line-height: var(--leading-article, 1.7);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.article-page-v2 .article-body > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.2em;
  float: left;
  line-height: 0.9;
  padding: 6px 10px 0 0;
  color: var(--color-brand-dark);
}

.article-page-v2 .article-body h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  scroll-margin-top: 80px;
}

.article-page-v2 .article-body h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  scroll-margin-top: 80px;
}

.article-page-v2 .article-body blockquote {
  margin: var(--space-4) 0;
  padding: var(--space-3) var(--space-4);
  border-left: 4px solid var(--color-accent);
  background: var(--color-surface-muted);
  font-style: italic;
  color: var(--color-text);
}

.article-page-v2 .article-body img {
  max-width: 100%;
  height: auto;
  margin: var(--space-3) auto;
  display: block;
  border-radius: 4px;
}

.article-page-v2 .article-body a {
  color: var(--color-brand-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.article-page-v2 .article-body a:hover {
  color: var(--color-accent);
}

.back-to-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-brand-dark);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-accent);
}

/* ── .btn aliases (alias for .admin-button) ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--wp-accent-hover);
  border-radius: 3px;
  background: var(--wp-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background .12s, border-color .12s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--wp-accent-hover); border-color: #0a4b78; color: #fff; text-decoration: none; }
.btn-secondary { background: var(--wp-surface); color: var(--wp-text); border-color: var(--wp-border); }
.btn-secondary:hover { background: var(--wp-bg); border-color: #8c8f94; color: var(--wp-text); }
.btn-danger { background: var(--wp-error); border-color: #b32d2e; color: #fff; }
.btn-danger:hover { background: #b32d2e; border-color: #8a2122; }

/* ── Article form 2-cột layout ── */
.article-edit-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}
.article-edit-main { display: grid; gap: 16px; }
.article-edit-aside { display: grid; gap: 12px; }

/* Sidebar panels */
.aside-panel {
  background: var(--wp-surface);
  border: 1px solid var(--wp-border-light);
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  overflow: hidden;
}
.aside-panel-head {
  background: var(--wp-bg);
  border-bottom: 1px solid var(--wp-border-light);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--wp-text-muted);
}
.aside-panel-body { padding: 12px; display: grid; gap: 10px; }

/* Cover image preview */
.cover-preview {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid var(--wp-border-light);
  background: var(--wp-bg);
  display: block;
}
.cover-preview-empty {
  width: 100%;
  aspect-ratio: 16/9;
  border: 2px dashed var(--wp-border);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp-text-muted);
  font-size: 12px;
  background: var(--wp-bg);
}

/* Media picker grid */
.media-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-height: 220px;
  overflow-y: auto;
}
.media-picker-item {
  position: relative;
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .1s;
}
.media-picker-item:hover { border-color: var(--wp-accent); }
.media-picker-item.selected { border-color: var(--wp-accent); }
.media-picker-item img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.media-picker-none {
  grid-column: 1/-1;
  text-align: center;
  padding: 12px;
  color: var(--wp-text-muted);
  font-size: 12px;
}

/* Sticky publish bar */
.admin-sticky-bar {
  position: sticky;
  bottom: 0;
  background: var(--wp-surface);
  border-top: 1px solid var(--wp-border-light);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 20;
  box-shadow: 0 -2px 6px rgba(0,0,0,.06);
}
.save-hint { font-size: 12px; color: var(--wp-text-muted); }

@media (max-width: 1100px) {
  .article-edit-layout { grid-template-columns: 1fr; }
  .article-edit-aside { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  /* Specificity must beat .article-layout.has-toc (2 classes) */
  .article-layout,
  .article-layout.has-toc {
    grid-template-columns: minmax(0, 1fr);
  }
  .article-toc {
    display: none !important;
  }
  .article-toc-mobile {
    display: block;
  }
  .article-page-v2 .article-detail {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
  /* Drop-cap float breaks short paragraphs on narrow screens */
  .article-page-v2 .article-body > p:first-of-type::first-letter {
    float: none;
    font-size: inherit;
    line-height: inherit;
    padding: 0;
    color: inherit;
  }
}

/* ── Table styles (admin editor + public) ── */
.ql-editor table,
.article-body table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.2em 0;
  font-size: 14px;
}
.ql-editor table td,
.ql-editor table th,
.article-body table td,
.article-body table th {
  border: 1px solid var(--wp-border, #c3c4c7);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.ql-editor table th,
.article-body table th {
  background: var(--wp-bg, #f0f0f1);
  font-weight: 600;
}
.ql-editor table tr:nth-child(even) td,
.article-body table tr:nth-child(even) td {
  background: rgba(0, 0, 0, .02);
}

/* ── Callout blocks (admin editor + public) ── */
.ql-editor .callout,
.article-body .callout {
  border-left: 4px solid;
  padding: 12px 16px;
  margin: 1.2em 0;
  border-radius: 0 4px 4px 0;
  line-height: 1.6;
}
.ql-editor .callout p,
.article-body .callout p { margin: 0 0 4px; }
.ql-editor .callout p:last-child,
.article-body .callout p:last-child { margin: 0; }

.callout-info {
  border-color: #2271b1;
  background: #f0f6fc;
  color: #1a4971;
}
.callout-warning {
  border-color: #d63638;
  background: #fef7f7;
  color: #8a1c1d;
}
.callout-legal {
  border-color: #00a32a;
  background: #f0faf3;
  color: #1a5c2b;
}

/* ============================================================
   Public site responsive (must stay at end — overrides base grids)
   Breakpoints:
   - laptop/tablet: ≤1024px
   - tablet/mobile landscape: ≤900px
   - phone: ≤767px
   - small phone: ≤420px
   ============================================================ */

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
}

.home-page,
.public-page,
.article-page,
.article-page-v2,
.hero-block,
.section-grid,
.section-lead,
.section-secondary,
.hero-main,
.hero-sidebar,
.footer-inner,
.archive-item,
.form-grid,
.video-grid {
  min-width: 0;
}

/* Laptop / large tablet */
@media (max-width: 1024px) {
  .hero-block {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 30%);
  }

  .form-grid,
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--space-5);
  }

  .footer-note {
    grid-column: 1 / -1;
  }

  .archive-item {
    grid-template-columns: minmax(160px, 200px) minmax(0, 1fr);
  }
}

/* Tablet + mobile landscape: stack newspaper grids */
@media (max-width: 900px) {
  .hero-block {
    grid-template-columns: 1fr;
  }

  .hero-main {
    padding-right: 0;
    border-right: none;
    padding-bottom: var(--space-5);
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border-light);
  }

  .hero-sidebar {
    padding-left: 0;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .section-lead {
    padding-right: 0;
    border-right: none;
    padding-bottom: var(--space-4);
    margin-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
  }

  .section-secondary {
    padding-left: 0;
  }

  .archive-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .archive-item img {
    width: 100%;
    max-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .page-heading h1 {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
  }

  .article-detail h1,
  .article-page-v2 .article-detail h1 {
    font-size: clamp(1.75rem, 7vw, 2.75rem);
    line-height: 1.2;
  }

  .article-excerpt {
    font-size: var(--text-md);
  }

  .public-page,
  .article-page,
  .article-page-v2 {
    padding: var(--space-5) var(--space-4);
  }
}

/* Phone */
@media (max-width: 767px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  .masthead-brand {
    width: 100%;
    gap: var(--space-3);
  }

  .masthead-contact {
    align-items: flex-start;
    width: 100%;
  }

  .masthead-tagline {
    text-align: left;
  }

  .masthead-lawyer-name {
    font-size: clamp(1.15rem, 5.5vw, 1.5rem);
  }

  .brand-logo img {
    height: 28px;
  }

  .topbar-scroll-wrap::after {
    display: block;
  }

  .topbar-inner {
    padding: 0 var(--space-3);
    min-height: 44px;
    -webkit-overflow-scrolling: touch;
  }

  .site-topbar a {
    padding: 0 var(--space-2);
    font-size: 11px;
  }

  .nav-search {
    margin-left: var(--space-2);
  }

  .home-page {
    padding: var(--space-4) var(--space-3) var(--space-7);
  }

  .hero-title {
    font-size: clamp(1.25rem, 6vw, 1.75rem);
  }

  .hero-excerpt {
    max-width: none;
  }

  .section-block {
    margin-top: var(--space-6);
  }

  .section-lead-title {
    font-size: var(--text-lg);
  }

  .secondary-story {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: var(--space-3);
  }

  .secondary-img img {
    width: 72px;
  }

  .form-grid,
  .video-grid {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .form-card,
  .video-card {
    min-width: 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
    padding: var(--space-6) var(--space-4) var(--space-5);
  }

  .footer-note {
    grid-column: auto;
    padding: var(--space-4);
  }

  .footer-bottom {
    padding: var(--space-3) var(--space-4);
  }

  .content-panel {
    font-size: var(--text-base);
  }

  .article-body {
    font-size: var(--text-base);
  }

  .article-cover {
    max-height: 260px;
    margin: var(--space-4) 0;
  }

  .archive-item h2 {
    font-size: var(--text-xl);
  }
}

/* Small phone */
@media (max-width: 420px) {
  .masthead-brand {
    align-items: flex-start;
  }

  .hero-read-more,
  .download-link {
    width: 100%;
    justify-content: center;
  }

  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .secondary-story {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .secondary-img img {
    width: 64px;
  }
}



/* ── Admin dropzone (forms upload) ── */
.admin-dropzone {
  position: relative;
  border: 2px dashed var(--wp-border);
  border-radius: 6px;
  background: #fafafa;
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 16px;
}
.admin-dropzone.is-drag {
  border-color: var(--wp-accent);
  background: var(--wp-accent-light);
}
.admin-dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.admin-dropzone-ui {
  pointer-events: none;
  text-align: center;
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--wp-text-muted);
}
.admin-dropzone-ui strong { color: var(--wp-text); font-weight: 600; }
.admin-advanced { margin: 8px 0; }
.admin-advanced summary { cursor: pointer; font-size: 13px; font-weight: 600; margin-bottom: 8px; }


/* ── SEO/GEO: TL;DR + FAQ + reviews ── */
.article-tldr {
  margin: 12px 0 18px;
  padding: 14px 16px;
  border-left: 4px solid var(--wp-accent, #2271b1);
  background: #f3f8fc;
  border-radius: 0 6px 6px 0;
}
.article-tldr strong { display:block; margin-bottom:6px; font-size:13px; color:#1d2327; }
.article-tldr p { margin:0; font-size:15px; line-height:1.55; color:#2c3338; }
.article-tldr-soft { background:#f6f7f7; border-left-color:#8c8f94; }
.article-faq { margin: 28px 0 12px; }
.article-faq h2 { font-size:1.25rem; margin-bottom:12px; }
.faq-item { border:1px solid #dcdcde; border-radius:6px; margin-bottom:8px; padding:10px 12px; background:#fff; }
.faq-item summary { cursor:pointer; font-weight:600; }
.faq-item p { margin:8px 0 0; color:#3c434a; }
.geo-fact-block .fact-list { display:grid; grid-template-columns:140px 1fr; gap:8px 12px; margin:0; }
.geo-fact-block dt { font-weight:600; color:#50575e; }
.geo-fact-block dd { margin:0; }
.reviews-block .review-summary { font-size:1.05rem; margin-bottom:12px; }
.review-list { list-style:none; padding:0; margin:0 0 20px; display:grid; gap:12px; }
.review-item { display:flex; gap:12px; padding:12px; border:1px solid #dcdcde; border-radius:8px; background:#fff; }
.review-stars { font-weight:700; color:#dba617; min-width:2.5rem; }
.review-date { color:#646970; font-size:12px; margin-left:8px; }
.review-form { display:grid; gap:10px; max-width:520px; }
.review-form label { display:grid; gap:4px; font-weight:600; font-size:13px; }
.review-form input, .review-form select, .review-form textarea {
  font: inherit; font-weight:400; padding:8px 10px; border:1px solid #c3c4c7; border-radius:4px;
}
.review-form .hp { position:absolute; left:-9999px; height:0; overflow:hidden; }
.flash-ok { color:#008a20; font-weight:600; }
.flash-err { color:#b32d2e; font-weight:600; }


/* ── Public UI fix 2026-07-13: nav clean, mobile full, about compact ── */
.about-page .page-heading {
  margin-bottom: 1rem;
}
.about-lead {
  padding: 1rem 1.1rem !important;
}
.about-lead-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: #2c3338;
}
.about-contact h2,
.reviews-block h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
}
.about-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.about-contact-list li {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.5rem 0.75rem;
  align-items: start;
  font-size: 0.95rem;
}
.about-contact-list span {
  color: #646970;
  font-weight: 500;
}
.about-contact-list strong {
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: break-word;
}
.about-practice {
  margin: 0.9rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #3c434a;
}
.review-form-details {
  margin-top: 0.75rem;
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  background: #fafafa;
}
.review-form-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0;
}
.review-form-details[open] summary {
  margin-bottom: 0.65rem;
}
.review-summary.muted {
  color: #646970;
}
.geo-fact-block .fact-list {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 767px) {
  .home-page,
  .public-page {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .article-page,
  .article-page-v2 {
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .masthead-inner,
  .topbar-scroll-wrap,
  .topbar-inner,
  .footer-inner {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

  .article-layout,
  .article-detail,
  .article-page-v2 .article-detail {
    width: 100% !important;
    max-width: 100% !important;
  }

  .article-cover,
  .article-page-v2 .article-cover {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .content-panel {
    padding: 0.9rem 0.85rem;
  }

  .about-contact-list li {
    grid-template-columns: 4.75rem minmax(0, 1fr);
    font-size: 0.9rem;
  }

  .article-tldr {
    margin-left: 0;
    margin-right: 0;
  }

  .site-topbar a {
    white-space: nowrap;
  }
}


/* Article mobile full-width fix 20260713r5 */
@media (max-width: 980px) {
  .article-page.article-page-v2,
  .article-page-v2 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .article-layout,
  .article-layout.has-toc {
    display: block; /* collapse grid tracks completely */
    width: 100%;
  }
  .article-layout.has-toc .article-detail,
  .article-page-v2 .article-detail,
  .article-detail {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
  }
  .article-toc {
    display: none !important;
  }
  .article-page-v2 .article-cover,
  .article-cover,
  .article-tldr,
  .article-body,
  .article-hero {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .article-page-v2 .article-body,
  .article-body {
    text-align: justify;
  }
}


/* Article padding fix 20260713r6/r7 — gutter so text not clipped */
.article-page-v2 .article-body,
.article-body {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
  /* prevent last glyph hugging viewport edge on justify */
  padding-inline: 0;
}

@media (max-width: 980px) {
  .article-page.article-page-v2,
  .article-page-v2 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    /* REQUIRED gutter — user: text was clipped without L/R padding */
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
    padding-top: var(--space-5);
    padding-bottom: var(--space-7);
  }

  .article-layout,
  .article-layout.has-toc {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .article-toc {
    display: none !important;
  }

  .article-layout.has-toc .article-detail,
  .article-page-v2 .article-detail,
  .article-detail {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
    /* secondary inset for body column if needed */
    padding-inline: 0;
  }

  .article-page-v2 .article-cover,
  .article-cover {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
  }

  .article-tldr {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .article-page-v2 .article-detail h1,
  .article-page-v2 .article-body,
  .article-body,
  .article-hero {
    max-width: 100%;
    box-sizing: border-box;
  }

  .article-page-v2 .article-body,
  .article-body {
    text-align: justify;
  }

  /* drop-cap off (narrow screens) */
  .article-page-v2 .article-body > p:first-of-type::first-letter {
    float: none !important;
    font-size: inherit !important;
    line-height: inherit !important;
    padding: 0 !important;
    color: inherit !important;
  }
}

@media (max-width: 420px) {
  .article-page.article-page-v2,
  .article-page-v2 {
    padding-left: max(20px, env(safe-area-inset-left)) !important;
    padding-right: max(20px, env(safe-area-inset-right)) !important;
  }
}


/* About GEO intro 20260714 */
.about-page .about-geo-answer {
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 0.75rem;
}
.about-lead-sub {
  margin: 0 0 0.75rem;
  line-height: 1.65;
  color: #3c434a;
}
.about-h2-answer {
  margin: 0 0 1rem;
  line-height: 1.55;
}
.about-cite {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.about-faq .faq-item {
  border: 1px solid #dcdcde;
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  margin: 0.5rem 0;
  background: #fafafa;
}
.about-faq .faq-item summary {
  cursor: pointer;
  font-weight: 600;
}
.about-faq .faq-item p {
  margin: 0.5rem 0 0.25rem;
  line-height: 1.55;
}
