/* Kusano Advocacia - folha de estilos compartilhada
   Conceito: papel marfim + tinta grafite + selo (inkan) vermelho como assinatura.
   Layout em coluna editorial com margem lateral larga; o vermelho aparece
   so onde ha "carimbo": selo, marcadores ativos e links em foco.
   (Arquivo em ASCII puro de proposito - hospedagem sem UTF-8.) */

:root {
  --paper: #F8F2EA;      /* marfim da identidade */
  --paper-2: #EFE6D9;
  --paper-3: #E6DACB;
  --ink: #1A1A1A;        /* grafite da identidade */
  --ink-2: #4B4640;
  --ink-3: #7A7268;
  --line: rgba(26, 26, 26, .14);
  --line-strong: rgba(26, 26, 26, .32);
  --shu: #C62917;        /* vermelho do selo */
  --shu-soft: rgba(198, 41, 23, .09);
  --on-ink: #F8F2EA;
  --band: #1A1A1A;       /* faixas escuras */
  --band-ink: #F3ECE2;
  --band-ink-2: #B9B0A4;
  --band-line: rgba(243, 236, 226, .16);
  --logo-filter: none;
  color-scheme: light;

  --f-display: "Sorts Mill Goudy", "Goudy Old Style", Garamond, "Times New Roman", serif;
  --f-body: "Hanken Grotesk", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-jp: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;

  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.6rem + 3.4vw, 4.1rem);

  --wrap: 1180px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 88px;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--shu); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }

/* ---------- marca ---------- */
.logo { display: block; width: 230px; height: auto; aspect-ratio: 1192 / 346; filter: var(--logo-filter); }
.logo-link { color: var(--ink); text-decoration: none; display: inline-flex; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: var(--step--1); letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--shu); }

/* ---------- cabecalho ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a {
  font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  color: var(--ink-2); padding-block: .4rem; position: relative; font-weight: 500;
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--shu); transition: right .25s ease; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--ink); }
.nav a:hover::after, .nav a[aria-current="true"]::after { right: 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-link {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 50%; color: var(--ink-2); text-decoration: none; transition: color .2s, background .2s;
}
.icon-link:hover { color: var(--ink); background: var(--paper-2); }
.icon-link svg { width: 18px; height: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: .95rem 1.4rem; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
  border-radius: 0;
}
.btn:hover { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--shu); border-color: var(--shu); }
.btn--sm { padding: .65rem 1rem; font-size: .72rem; }
.btn svg { width: 16px; height: 16px; flex: none; }

.menu-toggle { display: none; background: none; border: 0; color: var(--ink); width: 42px; height: 42px; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .logo { width: 180px; }
  .nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-actions .btn, .header-actions .icon-link { display: none; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter-r) 1.25rem var(--gutter-l);
  }
  .site-header.menu-open .nav a { width: 100%; padding-block: .9rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
}

/* ---------- secoes ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); }
.section--tint { background: var(--paper-2); }
.section--band { background: var(--band); color: var(--band-ink); }
.section--band .eyebrow { color: var(--band-ink-2); }
.section-head { display: grid; gap: 1.1rem; max-width: 46rem; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 { font-size: var(--step-3); }
.section-head p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.55; }
.section--band .section-head p { color: var(--band-ink-2); }

/* ---------- escritorio ---------- */
.firm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.prose { display: grid; gap: 1.15rem; color: var(--ink-2); max-width: 38rem; }
.prose p:first-child { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.35; color: var(--ink); }
.pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.pillar { padding: 1.5rem 1.25rem 1.6rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .45rem; align-content: start; }
.pillar:nth-child(odd) { border-right: 1px solid var(--line); }
.pillar:nth-child(even) { padding-left: 1.25rem; }
.pillar h3 { font-size: var(--step-1); }
.pillar p { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.pillar .tag { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--shu); font-weight: 600; }

.values { margin-top: clamp(3.5rem, 6vw, 5rem); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 1.5rem 1.25rem 0 0; display: grid; gap: .5rem; align-content: start; }
.value + .value { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.value h3 { font-size: 1.15rem; }
.value p { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 980px) {
  .firm-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value, .value + .value { padding: 1.25rem 1rem 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .value:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pillars, .values { grid-template-columns: 1fr; }
  .pillar, .pillar:nth-child(even) { padding-left: 0; border-right: 0; }
  .pillar:nth-child(odd) { border-right: 0; }
  .value:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* ---------- socio ---------- */
.partner { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; background: var(--paper-3); overflow: hidden;
  display: grid; place-items: center;
}
.portrait img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.partner-name { font-size: var(--step-3); margin-top: 1rem; }
.partner-role { color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; font-size: var(--step--1); margin-top: .6rem; }
.partner .prose { margin-top: 2rem; }
.partner .prose p:first-child { font-size: var(--step-1); }
.press { margin-top: 2.25rem; display: grid; gap: .9rem; }
.press-label { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.press-list { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.press-list a {
  display: inline-flex; align-items: baseline; gap: .5rem; text-decoration: none;
  padding: .55rem .9rem; border: 1px solid var(--line-strong); font-size: .88rem; color: var(--ink-2); transition: border-color .2s, color .2s;
}
.press-list a b { font-family: var(--f-display); font-weight: 400; font-size: 1.05rem; color: var(--ink); }
.press-list a:hover { border-color: var(--shu); color: var(--ink); }
@media (max-width: 860px) { .partner { grid-template-columns: 1fr; } .portrait { max-width: 360px; } }

/* ---------- areas ---------- */
.areas { border-top: 1px solid var(--line-strong); }
.area { border-bottom: 1px solid var(--line); }
.area summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: center;
  padding-block: 1.6rem;
}
.area summary::-webkit-details-marker { display: none; }
.area h3 { font-size: var(--step-2); transition: color .2s; }
.area summary:hover h3 { color: var(--shu); }
.area .plus { width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; transition: transform .3s, border-color .2s; }
.area .plus svg { width: 14px; height: 14px; }
.area[open] .plus { transform: rotate(45deg); border-color: var(--shu); color: var(--shu); }
.area-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2.5rem; padding-bottom: 2rem; }
.area-body p { color: var(--ink-2); max-width: 40rem; }
.area-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; font-size: .95rem; color: var(--ink-2); }
.area-body li { padding-left: 1.1rem; position: relative; }
.area-body li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--shu); }
@media (max-width: 760px) { .area-body { grid-template-columns: 1fr; gap: 1.25rem; } }

/* ---------- destaque PEC ---------- */
.focus-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.focus-grid h2 { font-size: var(--step-3); }
.focus-grid .lede { color: var(--band-ink-2); margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.55; }
.timeline { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; gap: 0; border-left: 1px solid var(--band-line); }
.timeline li { position: relative; padding: 0 0 1.5rem 1.6rem; display: grid; gap: .2rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--band); border: 1px solid var(--band-ink-2); }
.timeline li.on::before { background: var(--shu); border-color: var(--shu); }
.timeline .when { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--band-ink-2); }
.timeline .what { font-family: var(--f-display); font-size: 1.3rem; }
.checklist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--band-line); }
.checklist li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: .5rem; padding-block: 1.05rem; border-bottom: 1px solid var(--band-line); color: var(--band-ink); }
.checklist li span { font-family: var(--f-display); color: var(--shu); font-size: 1.1rem; }
.focus-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.section--band .btn { background: var(--band-ink); color: var(--band); border-color: var(--band-ink); }
.section--band .btn:hover { background: var(--shu); border-color: var(--shu); color: #fff; }
.section--band .btn--ghost { background: transparent; color: var(--band-ink); border-color: var(--band-line); }
.section--band .btn--ghost:hover { color: var(--band-ink); border-color: var(--shu); background: transparent; }
@media (max-width: 860px) { .focus-grid { grid-template-columns: 1fr; } }

/* ---------- artigos ---------- */
.posts-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.posts-head .section-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter {
  font: 500 .75rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
  padding: .7rem 1rem; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer; border-radius: 0;
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.filter .n { opacity: .6; margin-left: .35rem; font-variant-numeric: tabular-nums; }

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-strong); border-left: 1px solid var(--line); }
.post {
  position: relative; display: flex; flex-direction: column; gap: .9rem; min-width: 0;
  padding: 1.75rem 1.6rem 1.6rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit; min-height: 280px; background: var(--paper); transition: background .25s;
}
a.post:hover { background: var(--paper-3); }
.post-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.post-meta .kind { color: var(--shu); font-weight: 600; }
.post h3 { font-size: 1.5rem; line-height: 1.18; }
.post p { color: var(--ink-2); font-size: .95rem; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.post .more { margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }
.post .more svg { width: 16px; height: 16px; transition: transform .2s; }
a.post:hover .more svg { transform: translateX(4px); }
a.post:hover h3 { color: var(--shu); }
.post--featured { grid-column: 1 / -1; background: var(--paper); min-height: 0; padding: 2.25rem 2rem 2rem; }
.post--featured h3 { font-size: var(--step-3); max-width: 22ch; }
.post--featured p { -webkit-line-clamp: 3; font-size: 1.05rem; max-width: 46ch; }

.posts-empty { grid-column: 1 / -1; padding: 3rem 1.5rem; text-align: center; color: var(--ink-3); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.posts-foot { margin-top: 2.5rem; display: flex; justify-content: center; }
@media (max-width: 980px) { .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .posts { grid-template-columns: 1fr; }
  .post--featured { grid-column: auto; }
  .post, .post--featured { min-height: 0; padding: 1.5rem 1.25rem; }
}

/* ---------- contato ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.channels { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line-strong); }
.channels li { border-bottom: 1px solid var(--line); }
.channels a { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding-block: 1.1rem; text-decoration: none; }
.channels a:hover .ch-value { color: var(--shu); }
.channels svg { width: 20px; height: 20px; color: var(--ink-2); }
.ch-label { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); }
.ch-value { display: block; font-family: var(--f-display); font-size: 1.3rem; transition: color .2s; overflow-wrap: anywhere; }
.channels .arrow { width: 16px; height: 16px; color: var(--ink-3); }

.form { display: grid; gap: 1.25rem; background: var(--paper); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: .45rem; min-width: 0; }
.field label, .field legend { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 0; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line-strong); padding: .55rem 0; border-radius: 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 7rem; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--shu); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .2rem; }
.chips label { cursor: pointer; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: .55rem .85rem; border: 1px solid var(--line-strong); font-size: .85rem; letter-spacing: .02em; text-transform: none; color: var(--ink-2); font-weight: 400; }
.chips input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--shu); outline-offset: 2px; }
.form .note { font-size: .8rem; color: var(--ink-3); line-height: 1.5; }
.form-ok { font-size: .9rem; color: var(--ink-2); border-left: 2px solid var(--shu); padding-left: .9rem; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- rodape ---------- */
.site-footer { background: var(--band); color: var(--band-ink); padding-block: 4rem 2rem; }
.site-footer .logo { width: 190px; filter: invert(1) brightness(.96); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--band-line); }
.foot-grid h4 { font-family: var(--f-body); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--band-ink-2); font-weight: 600; margin-bottom: 1rem; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-grid a { color: var(--band-ink); text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.foot-grid a:hover { color: var(--shu); }
.foot-brand p { color: var(--band-ink-2); font-size: .92rem; margin-top: 1.25rem; max-width: 22rem; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: .8rem; color: var(--band-ink-2); }
.foot-bottom .seal { width: 34px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; z-index: 40;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--on-ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); text-decoration: none; transition: background .2s, transform .2s;
}
.wa-float:hover { background: #1F8F4E; color: #fff; transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- pagina de artigo ---------- */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; height: 2px; width: 0; background: var(--shu); z-index: 70; }
.article-hero { border-bottom: 1px solid var(--line); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--shu); }
.article-hero h1 { font-size: var(--step-4); max-width: 20ch; line-height: 1.05; }
.article-hero .standfirst { font-size: var(--step-1); color: var(--ink-2); max-width: 42rem; margin-top: 1.5rem; line-height: 1.55; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-3); }
.byline .who { display: flex; align-items: center; gap: .85rem; color: var(--ink); }
.byline .who b { font-weight: 600; display: block; }
.byline .who small { color: var(--ink-3); font-size: .8rem; }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.toc { position: sticky; top: calc(var(--header-h) + 2rem); align-self: start; font-size: .86rem; }
.toc h2 { font-family: var(--f-body); font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 1rem; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; border-left: 1px solid var(--line); }
.toc a { display: block; padding: .35rem 0 .35rem .9rem; margin-left: -1px; border-left: 1px solid transparent; text-decoration: none; color: var(--ink-3); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--shu); }
.share { margin-top: 2rem; display: grid; gap: .6rem; }
.share-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.share button, .share a { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); cursor: pointer; text-decoration: none; border-radius: 0; }
.share button:hover, .share a:hover { border-color: var(--shu); color: var(--shu); }
.share svg { width: 16px; height: 16px; }
.share .copied { font-size: .78rem; color: var(--shu); }

.article-body { max-width: 42rem; min-width: 0; font-size: 1.125rem; line-height: 1.75; color: var(--ink); }
.article-body > * + * { margin-top: 1.15em; }
.article-body h2 { font-size: var(--step-2); margin-top: 2.4em; display: flex; gap: .8rem; align-items: baseline; }
.article-body h2 .num { font-family: var(--f-body); font-size: .8rem; letter-spacing: .1em; color: var(--shu); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; transform: translateY(-.2em); }
.article-body p { hyphens: auto; }
.article-body strong { font-weight: 600; }
.article-body blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 2px solid var(--shu); font-family: var(--f-display); font-size: 1.35rem; line-height: 1.45; color: var(--ink); }
.article-body .lead::first-letter { float: left; font-family: var(--f-display); font-size: 4.3rem; line-height: .82; padding: .35rem .6rem 0 0; color: var(--shu); }
.figure-box { background: var(--paper-2); padding: 1.5rem 1.6rem; border-top: 2px solid var(--ink); margin-block: 2em !important; }
.figure-box .cap { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; font-family: var(--f-body); }
.figure-steps { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.figure-steps li { padding: .25rem 1rem 0 0; display: grid; gap: .25rem; align-content: start; border-top: 1px solid var(--line-strong); position: relative; padding-top: 1rem; font-size: .95rem; line-height: 1.45; }
.figure-steps li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--paper-2); border: 1px solid var(--ink-2); }
.figure-steps li.on::before { background: var(--shu); border-color: var(--shu); }
.figure-steps b { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; }
.figure-steps small { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.table-wrap { overflow-x: auto; }
.figure-box table { width: 100%; border-collapse: collapse; margin-top: .9rem; font-size: .95rem; font-variant-numeric: tabular-nums; }
.figure-box th, .figure-box td { text-align: left; padding: .6rem .75rem .6rem 0; border-bottom: 1px solid var(--line); }
.figure-box th { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.figure-box .src { font-size: .8rem; color: var(--ink-3); margin-top: .9rem; line-height: 1.45; }
@media (max-width: 560px) { .figure-steps { grid-template-columns: 1fr; gap: 1.1rem; } }

.author-card { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--line-strong); display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.author-card h3 { font-size: 1.35rem; }
.author-card p { font-size: .95rem; color: var(--ink-2); margin-top: .4rem; line-height: 1.55; }
.author-card .btn { margin-top: 1rem; }
.disclaimer { margin-top: 2rem; font-size: .82rem; color: var(--ink-3); line-height: 1.55; }

@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; border: 1px solid var(--line); padding: 1.25rem; }
  .toc details summary { cursor: pointer; }
}

/* listagem de artigos */
.list-hero { padding-block: clamp(3rem, 2rem + 4vw, 5rem) 2rem; }
.list-hero h1 { font-size: var(--step-4); }
.list-hero p { color: var(--ink-2); font-size: var(--step-1); margin-top: 1rem; max-width: 40rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- etapa 1: ajustes ---------- */
.section--first { padding-top: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section-title { font-size: var(--step-4); }
.prose--wide { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.prose--wide p:first-child { grid-row: span 3; font-size: var(--step-2); }
@media (max-width: 860px) { .prose--wide { grid-template-columns: 1fr; } .prose--wide p:first-child { grid-row: auto; } }

.partner--no-photo { grid-template-columns: minmax(0, 1fr); }
.partner--no-photo .prose { max-width: 46rem; }

.practice { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.practice + .practice { margin-top: clamp(4rem, 7vw, 6rem); }
.practice-intro { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 2rem); }
.practice-label { font-family: var(--f-display); font-size: var(--step-3); line-height: 1; display: flex; align-items: center; gap: .9rem; }
.practice-label::before { content: ""; width: 28px; height: 1px; background: var(--shu); }
.practice-lede { font-family: var(--f-display); font-size: var(--step-2); line-height: 1.25; color: var(--ink); text-wrap: balance; }
.practice-lede em { color: var(--shu); }
.practice-intro p:last-child { color: var(--ink-2); }
.practice .area h3 { font-size: 1.45rem; }
.practice .area-body { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
@media (max-width: 860px) { .practice { grid-template-columns: 1fr; } .practice-intro { position: static; } }

.form-title { display: grid; gap: .35rem; }
.form-title h3 { font-size: var(--step-2); }
.form-title p { color: var(--ink-2); font-size: .95rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-top: .35rem; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem .75rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink); transition: background .2s, color .2s; }
.seg label + label span { border-left: 1px solid var(--ink); }
.seg svg { width: 16px; height: 16px; }
.seg input:checked + span { background: var(--ink); color: var(--on-ink); }
.seg input:focus-visible + span { outline: 2px solid var(--shu); outline-offset: -4px; }
.channel-hint { font-size: .88rem; color: var(--ink-2); line-height: 1.5; margin-top: .6rem; }
.channel-hint b { color: var(--ink); font-weight: 600; }
.req { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--shu); margin-left: .35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn span { display: inline-flex; }

.signature-band { background: var(--paper); }
.signature { display: flex; justify-content: flex-end; padding-block: 1rem clamp(2rem, 4vw, 3rem); }
.signature-seal { width: 96px; height: auto; display: block; }

/* ---------- etapa 2 ---------- */

.value h3 { font-family: var(--f-body); font-weight: 700; font-size: 1rem; letter-spacing: .01em; }
.posts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) { .posts--2 { grid-template-columns: 1fr; } }
.post-meta .src { color: var(--ink-2); }
.section--related { padding-block: 4rem; border-top: 1px solid var(--line); }
main > section:last-child { padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.section-head h1 { font-size: var(--step-3); }
