/* ============================================================
   HuaQuan Master V1.2 — container-generator.html (review pass 2)
   Compact industrial B2B; body axis 840px, data 1040px
   Fixes vs V1.1: datasheet spec table, FAQ hierarchy arrows,
   restrained outline CTA, tighter rhythm, RU hyphenation,
   mobile table no horizontal scroll.
   Loaded AFTER style.css + home.css; scoped to pilot page only.
   ============================================================ */

/* ---- Network bar / Site header: fix hover inside dark bars ---- */
.network-bar a,
.site-header .main-nav a { transition: color 150ms ease; }
.network-bar a:hover,
.site-header .main-nav a:hover { color: #ffffff; }
.network-bar a { opacity: .88; }
.network-bar a:hover { opacity: 1; }

/* ---- Breadcrumb: quiet, small ---- */
.breadcrumb { padding: .9rem 0 .4rem; font-size: .88rem; color: var(--color-text-muted); }
.breadcrumb a { color: var(--color-text-secondary); transition: color 150ms ease; }
.breadcrumb a:hover { color: var(--color-accent); }

/* ---- Product hero: white strip + accent edge ---- */
.product-hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  padding: 1.7rem clamp(1.4rem, 2.6vw, 2.6rem);
  margin: .3rem 0 1.5rem;
}
.product-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.9vw, 2.3rem);
  letter-spacing: -.4px;
  line-height: 1.24;
  color: var(--color-primary);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.product-hero .hero-subtitle {
  margin: .65rem 0 0;
  max-width: 66ch;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--color-text-secondary);
}

/* ---- Content column: dual-axis widths ---- */
.content-section { padding: .6rem 0 2.8rem; }
.content-section > p,
.content-section > h2,
.content-section > h3,
.content-section > h4,
.content-section > ul,
.content-section > ol,
.content-section > .faq-section,
.content-section > ul.related-link {
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}
.content-section > .table-wrap { max-width: 1040px; }

/* ---- Typography rhythm: compact ---- */
.content-section h2 {
  position: relative;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.3rem 0 .95rem;
  padding-left: .85rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.content-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .08em;
  bottom: .08em;
  width: 4px;
  border-radius: 2px;
  background: var(--color-primary);
}
.content-section h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  margin: 1.5rem 0 .72rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.content-section p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* ---- Specification table: datasheet feel, not admin grid ---- */
.content-section .table-wrap {
  overflow-x: auto;
  margin: 1.4rem auto 2.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.content-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  table-layout: fixed;
}
.content-section thead th {
  background: var(--color-primary);
  color: #ffffff;
  text-align: left;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .68rem 1rem;
  border-bottom: 2px solid rgba(255,255,255,.12);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.content-section tbody td {
  padding: .68rem 1rem;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border-light);
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--color-text);
}
.content-section tbody tr:last-child td { border-bottom: 0; }
.content-section tbody td:first-child {
  width: 34%;
  background: #f4f7fb;
  color: #17233d;
  font-weight: 600;
  border-right: 1px solid var(--color-border);
}
.content-section tbody td:last-child { color: var(--color-text-secondary); }

/* ---- Plain lists: square engineering markers ---- */
.content-section > ul:not(.related-link) {
  list-style: none;
  padding-left: .4rem;
  margin-bottom: 1.5rem;
}
.content-section > ul:not(.related-link) > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .42rem;
  line-height: 1.62;
}
.content-section > ul:not(.related-link) > li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .6em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transform: rotate(45deg);
}
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.content-section ol li { margin-bottom: .42rem; line-height: 1.62; }

/* ---- Related links list ---- */
.content-section ul.related-link {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}
.content-section ul.related-link li { margin-bottom: .48rem; }
.content-section ul.related-link a {
  display: block;
  padding: .68rem 1.05rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-secondary);
  transition: border-color 150ms ease, border-left-color 150ms ease, padding-left 150ms ease;
}
.content-section ul.related-link a:hover {
  border-color: var(--color-accent);
  border-left-color: var(--color-accent);
  padding-left: 1.3rem;
  color: var(--color-primary);
}

/* ---- FAQ: Q/A reference with clear hierarchy ---- */
.content-section .faq-section {
  margin: 1.2rem auto 2.2rem;
  background: transparent;
  border: 0;
  border-radius: 0;
}
.faq-section details { border-bottom: 1px solid var(--color-border); }
.faq-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem .15rem .85rem;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #17233d;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary:hover { color: var(--color-accent); }
.faq-section summary::after {
  content: "\25B8";
  flex: 0 0 auto;
  font-size: .85rem;
  line-height: 1.6;
  margin-top: .3rem;
  color: var(--color-accent);
  transition: transform 150ms ease;
}
.faq-section details[open] summary::after { transform: rotate(90deg); }
.faq-section details[open] > *:not(summary) {
  margin: 0;
  padding: .05rem .15rem 1.05rem .9rem;
  border-left: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: .98rem;
}
.faq-section details[open] p + p { margin-top: .7rem; }

/* ---- Content images ---- */
.content-section img {
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

/* ---- CTA: restrained contact strip, outline primary button ---- */
.cta-section {
  max-width: 840px;
  margin: 1.5rem auto 2.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
  padding: 1.5rem 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.8rem;
  text-align: left;
}
.cta-section h2 {
  color: var(--color-primary);
  font-size: 1.22rem;
  line-height: 1.35;
  margin: 0 0 .3rem;
}
.cta-section p {
  color: var(--color-text-secondary);
  font-size: .95rem;
  line-height: 1.55;
  margin: 0;
}
.cta-section .btn-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-primary);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  padding: .58rem 1.35rem;
  border: 1px solid var(--color-primary);
  border-radius: 5px;
  transition: background 150ms ease, color 150ms ease;
}
.cta-section .btn-cta:hover {
  background: var(--color-primary);
  color: #ffffff;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .content-section { padding: .4rem 0 2.2rem; }
  .content-section h2 { font-size: 1.3rem; margin: 2.15rem 0 .9rem; padding-left: .75rem; }
  .content-section h3 { font-size: 1.14rem; margin: 1.4rem 0 .65rem; }
  .content-section table { font-size: .84rem; }
  .content-section thead th { font-size: .78rem; padding: .6rem .6rem; }
  .content-section tbody td { padding: .58rem .6rem; line-height: 1.5; }
  .content-section tbody td:first-child { width: 34%; }
  .breadcrumb { font-size: .84rem; }
  .cta-section {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    padding: 1.3rem 1.2rem;
    gap: 1rem;
  }
  .cta-section .btn-cta { align-self: flex-start; text-align: center; }
}

@media (max-width: 480px) {
  .product-hero { padding: 1.35rem 1.1rem; }
  .product-hero .hero-subtitle { font-size: .98rem; }
  .content-section p { font-size: .98rem; }
  .faq-section summary { font-size: 1rem; padding: .85rem .1rem .8rem; }
  .content-section table { font-size: .8rem; }
}

/* ============================================================
   HuaQuan Master V1 — Site-wide adaptation layer (catalog site)
   Extends pilot master-v1.css to non-.content-section page types:
   category listing, news article, key-takeaways, page-hero,
   product cards, standalone section[id] tables.
   Loaded AFTER style.css + home.css + master-v1.css.
   NOTE: most catalog pages have NO <main> tag, so selectors are
   unprefixed; homepage uses hq-hero/hq-main classes and no
   section[id], so it is naturally not matched.
   ============================================================ */

/* ---- Shared text safety (RU hyphens / long words) ---- */
p,
li,
h1,
h2,
h3,
td,
th {
  overflow-wrap: anywhere;
  word-break: break-word;
}
p { hyphens: auto; -webkit-hyphens: auto; }
li { hyphens: auto; -webkit-hyphens: auto; }

/* ---- Section heading accent (non content-section headings) ---- */
.page-hero h2,
.key-takeaways h2,
.toc h2,
section[id] > h2,
.news-article h2,
.summary-section h2,
.faq-topic h2 {
  position: relative;
  padding-left: .85rem;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.3rem 0 .95rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.page-hero h2::before,
.key-takeaways h2::before,
.toc h2::before,
section[id] > h2::before,
.news-article h2::before,
.summary-section h2::before,
.faq-topic h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .08em;
  bottom: .08em;
  width: 4px;
  border-radius: 2px;
  background: var(--color-primary);
}

/* ---- Page hero (category & content pages use .page-hero) ---- */
.page-hero {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 6px;
  padding: 1.7rem clamp(1.4rem, 2.6vw, 2.6rem);
  margin: .3rem 0 1.5rem;
}
.page-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.9vw, 2.3rem);
  letter-spacing: -.4px;
  line-height: 1.24;
  color: var(--color-primary);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.page-hero p {
  margin: .65rem 0 0;
  max-width: 66ch;
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--color-text-secondary);
}

/* ---- Key takeaways: quiet summary panel ---- */
.key-takeaways {
  margin: 0 auto 2rem;
  padding: 1.2rem 1.5rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: 6px;
}
.key-takeaways h2 { margin: 0 0 .7rem; padding-left: .85rem; }
.key-takeaways ul,
.key-takeaways ol {
  list-style: none;
  padding-left: .4rem;
  margin: 0;
}
.key-takeaways ul > li,
.key-takeaways ol > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: .42rem;
  line-height: 1.62;
  color: var(--color-text-secondary);
}
.key-takeaways ul > li::before,
.key-takeaways ol > li::before {
  content: "";
  position: absolute;
  left: .15rem;
  top: .6em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

/* ---- TOC: link index as quiet cards ---- */
.toc {
  margin: 0 auto 1.8rem;
  padding: .2rem 0 .4rem;
}
.toc ul {
  list-style: none;
  padding-left: 0;
  margin: .4rem 0 1rem;
  columns: 2;
  column-gap: 1.8rem;
}
.toc ul li { break-inside: avoid; margin-bottom: .45rem; }
.toc a {
  display: block;
  padding: .55rem .85rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-secondary);
  font-size: .95rem;
  transition: border-color 150ms ease, border-left-color 150ms ease, padding-left 150ms ease;
}
.toc a:hover {
  border-color: var(--color-accent);
  border-left-color: var(--color-accent);
  padding-left: 1.05rem;
  color: var(--color-primary);
}

/* ---- Spec tables site-wide (any .table-wrap) ---- */
.table-wrap,
.news-article .table-wrap {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  margin-top: .4rem;
  margin-bottom: 2.2rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.table-wrap table,
.news-article .table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  table-layout: fixed;
}
.table-wrap thead th,
.news-article .table-wrap thead th {
  background: var(--color-primary);
  color: #ffffff;
  text-align: left;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .68rem 1rem;
  border-bottom: 2px solid rgba(255,255,255,.12);
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* ---- Legacy header row (no thead: first tr contains th) ---- */
.table-wrap table tr:first-child th,
.news-article table tr:first-child th,
.content-section table tr:first-child th,
.content-section table thead th {
  background: var(--color-primary);
  color: #ffffff;
  text-align: left;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .68rem 1rem;
  border-bottom: 2px solid rgba(255,255,255,.12);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.table-wrap tbody td,
.news-article .table-wrap tbody td {
  padding: .68rem 1rem;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border-light);
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--color-text);
}
.table-wrap tbody tr:last-child td,
.news-article .table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody td:first-child,
.news-article .table-wrap tbody td:first-child {
  width: 34%;
  background: #f4f7fb;
  color: #17233d;
  font-weight: 600;
  border-right: 1px solid var(--color-border);
}
.table-wrap tbody td:last-child,
.news-article .table-wrap tbody td:last-child { color: var(--color-text-secondary); }

/* ---- Product card grid (category listing) ---- */
.product-grid {
  margin: 1.8rem auto 2.4rem;
}
.product-grid .product-card,
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.4rem 1.5rem 1.5rem;
  margin-bottom: 1.4rem;
}
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 1.4rem; }
.product-grid .product-card { margin-bottom: 0; }
.product-card h3 {
  font-size: 1.08rem;
  line-height: 1.4;
  margin: 0 0 .8rem;
  color: var(--color-primary);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.product-card img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto .9rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}
.product-card .table-wrap {
  width: 100%;
  max-width: none;
  margin: 0 0 1rem;
  border: 0;
  border-radius: 0;
  overflow-x: auto;
}
.product-card .table-wrap table {
  font-size: .86rem;
  table-layout: fixed;
}
.product-card .table-wrap tbody td {
  padding: .45rem .5rem;
  border-bottom: 1px solid var(--color-border-light);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.product-card .table-wrap tbody td:first-child {
  width: 44%;
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 500;
  border-right: 1px solid var(--color-border);
}
.product-card .table-wrap tbody td:last-child {
  color: var(--color-text);
  font-weight: 600;
}
.product-card .btn-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: .92rem;
  padding: .58rem 1.3rem;
  border-radius: 5px;
  text-decoration: none;
  transition: background 150ms ease;
}
.product-card .btn-cta:hover { background: var(--color-accent-hover); }

/* ---- News article ---- */
.news-article h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  color: var(--color-primary);
  margin: 1.2rem 0 1.4rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.news-article p {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--color-text);
  margin-bottom: 1rem;
  max-width: 840px;
}
.news-article h2 + p { margin-top: .2rem; }
.related-news {
  margin-top: 2.4rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.4rem;
}
.related-news h2 { margin-top: 0; }
.related-news ul { list-style: none; padding-left: 0; }
.related-news ul li { margin-bottom: .45rem; }
.related-news a {
  color: var(--color-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: color 150ms ease, border-color 150ms ease;
}
.related-news a:hover { color: var(--color-accent); border-color: var(--color-accent); }

/* ---- FAQ sections outside content-section (category pages) ---- */
.faq-section details { border-bottom: 1px solid var(--color-border); }
.faq-section summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: .9rem .15rem .85rem;
  font-weight: 650;
  font-size: 1.02rem;
  line-height: 1.5;
  color: #17233d;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary:hover { color: var(--color-accent); }
.faq-section summary::after {
  content: "\25B8";
  flex: 0 0 auto;
  font-size: .85rem;
  line-height: 1.6;
  margin-top: .3rem;
  color: var(--color-accent);
  transition: transform 150ms ease;
}
.faq-section details[open] summary::after { transform: rotate(90deg); }
.faq-section details[open] > *:not(summary) {
  margin: 0;
  padding: .05rem .15rem 1.05rem .9rem;
  border-left: 1px solid var(--color-border-light);
  color: var(--color-text-secondary);
  line-height: 1.7;
  font-size: .98rem;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .toc ul { columns: 1; }
  .page-hero { padding: 1.35rem 1.15rem; }
  .key-takeaways { padding: 1rem 1.1rem .95rem; }
  .table-wrap thead th,
  .news-article .table-wrap thead th { font-size: .78rem; padding: .6rem .6rem; }
  .table-wrap tbody td,
  .news-article .table-wrap tbody td { padding: .58rem .6rem; line-height: 1.5; }
  .product-grid { grid-template-columns: 1fr; }
  .page-hero h1,
  .news-article h1 { font-size: 1.45rem; }
}

@media (max-width: 480px) {
  .page-hero h1,
  .news-article h1 { font-size: 1.3rem; }
  .page-hero p { font-size: .98rem; }
  .product-card .table-wrap table { font-size: .8rem; }
  section[id] > h2,
  .news-article h2 { font-size: 1.3rem; margin: 2.15rem 0 .9rem; }
}

/* ============================================================
   HuaQuan Master V1 — Site rollout patch (9-site local rollout)
   Loaded last after the merged master layer.
   1) Broad heading accent so every H2 (article/main/section/
      .container direct) gets the catalog primary-blue bar.
   2) Legacy tables (first-row th without thead) get the dark
      header treatment even outside .table-wrap.
   3) Horizontal overflow guards for tables/pre/images.
   ============================================================ */

/* ---- Broad section heading accent ---- */
article h2,
main h2,
section h2,
.container > h2,
.container h2,
.page-hero h2,
.key-takeaways h2,
.summary-box h2,
.summary-section h2,
.toc h2,
.faq-topic h2,
.news-article h2,
.related-section h2,
section[id] h2 {
  position: relative;
  padding-left: .85rem;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.3rem 0 .95rem;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
article h2::before,
main h2::before,
section h2::before,
.container > h2::before,
.container h2::before,
.page-hero h2::before,
.key-takeaways h2::before,
.summary-box h2::before,
.summary-section h2::before,
.toc h2::before,
.faq-topic h2::before,
.news-article h2::before,
.related-section h2::before,
section[id] h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: .08em;
  bottom: .08em;
  width: 4px;
  border-radius: 2px;
  background: var(--color-primary);
}

/* ---- Restore non-section heading zones (header/cta/cards/footer) ---- */
.network-bar h2,
.site-header h2,
.site-footer h2,
.logo h2,
.main-nav h2,
.cta-section h2,
.hero h2,
.hq-hero h2,
.hero-section h2,
.card h2,
.hq-card h2,
.product-card h2,
.gallery-item h2,
.industry-card h2,
.takeaway-card h2,
.footer-col h2 {
  padding-left: 0;
  margin-left: 0;
}
.network-bar h2::before,
.site-header h2::before,
.site-footer h2::before,
.logo h2::before,
.main-nav h2::before,
.cta-section h2::before,
.hero h2::before,
.hq-hero h2::before,
.hero-section h2::before,
.card h2::before,
.hq-card h2::before,
.product-card h2::before,
.gallery-item h2::before,
.industry-card h2::before,
.takeaway-card h2::before,
.footer-col h2::before {
  display: none;
}

/* ---- Legacy dark table header (first-row th, with/without thead) ---- */
table tr:first-child th,
table thead th {
  background: var(--color-primary);
  color: #ffffff;
  text-align: left;
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .68rem 1rem;
  border-bottom: 2px solid rgba(255,255,255,.12);
  overflow-wrap: anywhere;
  word-break: break-word;
}
table {
  border-collapse: collapse;
}
tbody td {
  padding: .68rem 1rem;
  vertical-align: top;
  line-height: 1.55;
  border-bottom: 1px solid var(--color-border-light);
  overflow-wrap: anywhere;
  word-break: break-word;
  color: var(--color-text);
}
tbody tr:last-child td { border-bottom: 0; }

/* ---- Horizontal overflow guards ---- */
table,
pre {
  max-width: 100%;
}
img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* ---- Mobile refinement ---- */
@media (max-width: 768px) {
  article h2,
  main h2,
  section h2,
  .container > h2,
  .container h2,
  section[id] h2 {
    font-size: 1.3rem;
    margin: 2.15rem 0 .9rem;
    padding-left: .75rem;
  }
  table,
  tbody td {
    font-size: .84rem;
  }
  thead th {
    font-size: .78rem;
    padding: .6rem .6rem;
  }
  tbody td {
    padding: .58rem .6rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  article h2,
  main h2,
  section h2,
  .container > h2,
  .container h2,
  section[id] h2 {
    font-size: 1.25rem;
  }
  table {
    font-size: .8rem;
  }
}


/* ===== Patch D (2026-09-09): mobile nav wrap & misc overflow fixes, 9-site rollout ===== */
@media (max-width: 980px) {
  .main-nav {
    flex-wrap: wrap;
    row-gap: .25rem;
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .hq-doc-row {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .hq-doc-row .hq-doc-name {
    min-width: 0;
    overflow-wrap: break-word;
  }
}


/* ===== Patch D2 (2026-09-09): nav.main-nav outer flex -> block, wrap inner ul ===== */
@media (max-width: 980px) {
  header.site-header nav.main-nav,
  nav.main-nav {
    display: block;
  }
  nav.main-nav ul {
    display: flex;
    flex-wrap: wrap;
    row-gap: .25rem;
    column-gap: 1rem;
    justify-content: flex-start;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  nav.main-nav li {
    flex: 0 0 auto;
  }
  nav.main-nav a {
    white-space: nowrap;
    padding: .35rem .1rem;
  }
}


/* ===== Patch D3 (2026-09-09): mobile table cell word wrap ===== */
@media (max-width: 640px) {
  .content-section table td,
  .table-wrap table td,
  .news-article table td,
  table td {
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    -webkit-hyphens: auto;
  }
}
