/* firma-singapur.com — sober final
 * CSS written to match the ACTUAL class names used in the HTML.
 */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..900;1,8..60,300..900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ink: #0f1419;
  --ink-soft: #2a3238;
  --ink-mute: #5a6470;
  --line: #dde2e6;
  --line-soft: #eef1f3;
  --paper: #ffffff;
  --paper-2: #f7f8fa;
  --paper-3: #eef1f3;
  --accent: #8a7444;
  --accent-2: #6b5a33;
  --link: #1c3d5a;
  --link-hover: #0f1419;
  --wa: #25d366;
  --radius: 2px;
  --maxw: 1080px;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --ink: #e8ebef;
  --ink-soft: #c9ced4;
  --ink-mute: #8a9199;
  --line: #2a3238;
  --line-soft: #1a2026;
  --paper: #0f1419;
  --paper-2: #141a20;
  --paper-3: #1a2026;
  --accent: #a88c56;
  --link: #9cb8d4;
  --link-hover: #e8ebef;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  font-feature-settings: 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--accent); color: var(--paper); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem 1rem;
  text-decoration: none;
  z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.logo-img {
  width: 52px;
  height: 52px;
  display: block;
  border-radius: var(--radius);
  object-fit: cover;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}
.logo-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 2px;
}

.nav nav { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.nav nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
}
.nav nav ul a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav nav ul a:hover, .nav nav ul a:focus-visible {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.dark-toggle, .menu-btn {
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 36px;
  height: 36px;
  cursor: pointer;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 16px;
  line-height: 1;
}
.dark-toggle:hover, .menu-btn:hover { background: var(--paper-2); }
.menu-btn { display: none; }

.dt-sun, .dt-moon { display: inline-block; }
.dt-moon { display: none; }
[data-theme="dark"] .dt-sun { display: none; }
[data-theme="dark"] .dt-moon { display: inline-block; }

@media (max-width: 900px) {
  .nav { padding: 12px 20px; gap: 0.75rem; }
  .nav nav { position: static; margin-left: auto; }
  .nav nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav nav ul.open { display: flex; }
  .nav nav ul li { border-top: 1px solid var(--line-soft); width: 100%; }
  .nav nav ul a { display: block; padding: 14px 24px; border: none; }
  .menu-btn { display: inline-flex; }
  .logo-tag { display: none; }
  .logo-wordmark { font-size: 17px; }
  .logo-img { width: 44px; height: 44px; }
}

/* =========================================================
   MAIN / LAYOUT
   ========================================================= */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 48px;
}
@media (max-width: 640px) {
  main { padding: 0 20px 32px; }
  body { font-size: 16px; }
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--ink-mute); }
.alt { background: var(--paper-2); padding: 3rem 0; margin: 3rem 0; }
.alt .wrap { padding: 0 24px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  margin: 0 0 1.25rem;
  line-height: 1.2;
}
h2 {
  font-size: clamp(1.375rem, 2.2vw, 1.75rem);
  margin: 2.5rem 0 1rem;
}
h3 { font-size: 1.125rem; margin: 1.5rem 0 .5rem; color: var(--ink); }
h4 { font-size: 1rem; margin: 1.25rem 0 .5rem; color: var(--ink); }
p { margin: 0 0 1.125rem; }

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: text-decoration-color .15s, color .15s;
}
a:hover { color: var(--link-hover); text-decoration-color: var(--accent); }
strong { color: var(--ink); font-weight: 600; }
em { font-style: italic; color: var(--ink); }
code {
  font-family: 'SF Mono', Monaco, Consolas, monospace;
  font-size: .9em;
  background: var(--paper-3);
  padding: 1px 6px;
  border-radius: var(--radius);
  color: var(--ink);
}

/* =========================================================
   HERO (homepage)
   ========================================================= */
.hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 3rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 720px;
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.hero p {
  font-size: 1.1875rem;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}
@media (max-width: 640px) {
  .hero { padding: 2.5rem 0 2rem; margin-bottom: 2rem; }
  .hero p { font-size: 1.0625rem; }
}

/* =========================================================
   CARDS / GRID
   ========================================================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
}
.alt .card { background: var(--paper); }
.card h3 {
  margin: 0 0 .625rem;
  font-size: 1.0625rem;
  color: var(--ink);
}
.card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 .75rem;
  line-height: 1.55;
}
.card a {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.card a:hover { color: var(--ink); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 28px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: background .15s;
  letter-spacing: .02em;
  cursor: pointer;
}
.btn:hover { background: var(--ink-soft); color: var(--paper); text-decoration: none; }

/* =========================================================
   ARTICLE
   ========================================================= */
article.post {
  max-width: 720px;
  margin: 2.5rem auto 0;
}
.post h1 { margin-top: 0; }
.post .lead {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 2rem;
  font-weight: 400;
}
.post h2 {
  margin-top: 2.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
}
.post h2:first-of-type { border-top: none; padding-top: 0; margin-top: 2rem; }
.post ul, .post ol { margin: 0 0 1.125rem; padding-left: 1.5rem; }
.post li { margin: .5rem 0; line-height: 1.6; }
.post ul li::marker { color: var(--ink-mute); }
.post ol li::marker { color: var(--ink-mute); font-variant-numeric: tabular-nums; }

.meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-soft);
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-mute);
  padding: 1.5rem 0 .5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span[aria-current] { color: var(--ink-soft); }

/* TOC */
.toc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  margin: 2rem 0 2.5rem;
  font-family: var(--sans);
  font-size: 14px;
  border-radius: var(--radius);
}
.toc-title {
  font-family: var(--sans) !important;
  font-size: 11px !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
  margin: 0 0 .75rem !important;
  padding: 0 !important;
  border: none !important;
}
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc li { margin: .375rem 0; color: var(--ink-soft); }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* Tables */
.post table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-family: var(--sans);
  font-size: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.post th, .post td {
  padding: 11px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.post th {
  background: var(--paper-2);
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--line);
}
.post tr:last-child td { border-bottom: none; }

/* Tip box */
.tip {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-size: 15px;
  color: var(--ink-soft);
  border-radius: var(--radius);
}
.tip strong { color: var(--ink); }
.tip p:last-child { margin-bottom: 0; }

/* Portrait (Über CMC) */
.portrait-figure {
  float: right;
  width: 240px;
  margin: 0 0 1.5rem 2rem;
  text-align: center;
}
.portrait-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.portrait-figure figcaption {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: .625rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
@media (max-width: 640px) {
  .portrait-figure { float: none; width: 220px; margin: 0 auto 1.5rem; }
}

/* Jurisdictions pills */
.jurisdictions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 1.25rem 0 1.75rem;
}
.jurisdictions span {
  font-family: var(--sans);
  font-size: 13px;
  padding: 6px 12px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-radius: var(--radius);
  font-weight: 500;
}

/* CTA inline (mid-article) */
.cta-inline {
  background: var(--ink);
  color: var(--paper);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-inline-text {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  flex: 1 1 300px;
}
.cta-inline-text strong { color: var(--paper); display: block; margin-bottom: .25rem; font-size: 16px; }
.cta-inline .btn {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
  flex-shrink: 0;
}
.cta-inline .btn:hover { background: var(--paper-3); color: var(--ink); }

/* Prev/Next nav */
.prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.prev-next a {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: var(--radius);
  transition: border-color .15s, background .15s;
}
.prev-next a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-2); }
.prev-next .pn-next { text-align: right; align-items: flex-end; }
.pn-label {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.pn-title {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
}
@media (max-width: 640px) {
  .prev-next { grid-template-columns: 1fr; }
  .prev-next .pn-next { text-align: left; align-items: flex-start; }
}

/* Related articles */
.related {
  margin: 3rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.related h2 {
  font-size: 1.0625rem !important;
  font-family: var(--sans) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-mute);
  margin: 0 0 1.25rem !important;
  padding: 0 !important;
  border: none !important;
  font-weight: 600;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.related-card {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-soft);
  transition: border-color .15s, background .15s;
}
.related-card:hover { border-color: var(--ink); background: var(--paper-2); }
.related-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: .375rem;
  font-weight: 500;
}
.related-card span {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* FAQ on articles */
.faq { margin: 2rem 0; }
.faq h3 {
  font-family: var(--serif);
  font-size: 1.0625rem;
  margin: 1.5rem 0 .5rem;
  color: var(--ink);
}
.faq p { margin: 0 0 1rem; color: var(--ink-soft); }

/* Search box (FAQ, Glossar) */
.search-box {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  margin: 1rem 0 1.5rem;
  background: var(--paper);
  color: var(--ink);
}
.search-box:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.search-count {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-mute);
  margin: 0 0 1.5rem;
}

/* =========================================================
   CALCULATOR
   ========================================================= */
.calc {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  font-family: var(--sans);
}
.calc h2 {
  font-family: var(--serif) !important;
  margin: 0 0 .75rem !important;
  padding: 0 !important;
  border: none !important;
  font-size: 1.375rem !important;
}
.calc-intro {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 1.5rem;
  line-height: 1.55;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-input label {
  display: block;
  margin: .75rem 0 .25rem;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.calc-input label:first-child { margin-top: 0; }
.calc-input input, .calc-input select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
}
.calc-input input:focus, .calc-input select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.calc-input button {
  margin-top: 1rem;
  padding: 11px 22px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: var(--radius);
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.calc-input button:hover { background: var(--ink-soft); }

.calc-output {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: var(--sans);
}
.calc-result {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.calc-result:last-child { border-bottom: none; }
.calc-label {
  font-size: 13px;
  color: var(--ink-mute);
}
.calc-value {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.calc-note {
  font-size: 12px;
  color: var(--ink-mute);
  margin: 1rem 0 0;
  line-height: 1.5;
  font-style: italic;
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  margin-top: 5rem;
  padding: 3rem 0 2rem;
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 14px;
}
.fgrid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.75fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.fgrid > div > h3 {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 .75rem;
  font-weight: 500;
}
.fgrid > div > h4 {
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-mute);
  margin: 0 0 .875rem;
  font-weight: 600;
}
.fgrid > div > p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-mute);
  margin: 0;
}
.fgrid > div > a {
  display: block;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  font-size: 13px;
}
.fgrid > div > a:hover { color: var(--ink); text-decoration: underline; }
.copy {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 1.5rem 24px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: 12px;
  text-align: center;
}
@media (max-width: 768px) {
  .fgrid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .fgrid { grid-template-columns: 1fr; }
}

/* =========================================================
   FLOATING ELEMENTS: back-to-top, WhatsApp
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: var(--radius);
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s, transform .2s, background .15s;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { background: var(--ink-soft); }

.wa {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 52px;
  height: 52px;
  background: var(--wa);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 26px;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
  z-index: 50;
  transition: transform .15s;
}
.wa:hover { transform: scale(1.05); color: #fff; text-decoration: none; }

/* Reading progress bar */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.read-progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .05s linear;
}

/* Focus visible */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* Dark mode tweaks */
[data-theme="dark"] .portrait-figure img { opacity: .92; }
[data-theme="dark"] .cta-inline .btn { background: var(--paper); color: var(--ink); }
[data-theme="dark"] .calc-output { background: var(--paper-3); }


/* =========================================================
   HERO WITH AUTHOR (homepage)
   ========================================================= */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}
.hero-content { min-width: 0; }
.hero-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-2);
  max-width: 260px;
}
.hero-author img {
  width: 200px;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}
.hero-author-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  line-height: 1.35;
  gap: 2px;
}
.hero-author-text strong {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}
.hero-author-text span {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .04em;
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-author { flex-direction: row; max-width: none; text-align: left; }
  .hero-author img { width: 120px; height: 170px; flex-shrink: 0; }
  .hero-author-text { text-align: left; align-items: flex-start; }
}


/* =========================================================
   NAV DROPDOWN (DBAs submenu)
   ========================================================= */
.nav .has-sub { position: relative; }
.nav .has-sub > a::after {
  margin-left: 4px;
  font-size: 9px;
  color: var(--ink-mute);
}
.nav .sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 0;
  margin: 0;
  min-width: 240px;
  list-style: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  z-index: 200;
  gap: 0 !important;
  font-size: 14px;
}
.nav .has-sub:hover .sub,
.nav .has-sub:focus-within .sub {
  display: block;
}
.nav .sub li {
  width: 100%;
  border: none !important;
}
.nav .sub a {
  display: block;
  padding: 10px 16px;
  border: none !important;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
}
.nav .sub a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
@media (max-width: 900px) {
  /* On mobile, nested submenu shows inline as indented items */
  .nav nav ul.open .has-sub { display: block; }
  .nav nav ul.open .sub {
    display: block;
    position: static;
    background: var(--paper-2);
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
  }
  .nav nav ul.open .sub a {
    padding-left: 44px;
    font-size: 13px;
  }
  .nav .has-sub > a::after { display: none; }
}

/* DBA list styling (overview page) */
.dba-list {
  columns: 2;
  column-gap: 2rem;
  list-style: none !important;
  padding: 0 !important;
  margin: 1rem 0 1.5rem !important;
}
.dba-list li {
  break-inside: avoid;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line-soft);
  font-size: 15px;
}
.dba-list li::before {
  content: "› ";
  color: var(--ink-mute);
  margin-right: 4px;
}
.dba-list.dba-dach {
  columns: 1;
}
.dba-list.dba-dach li {
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.dba-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-weight: 600;
}
@media (max-width: 640px) {
  .dba-list { columns: 1; }
}
