:root {
    --navy-950: #08111f;
    --navy-900: #0d1a2e;
    --navy-800: #13233d;
    --navy-700: #1c3050;
    --slate: #42526b;
    --ivory: #f7f4ee;
    --paper: #fbfaf7;
    --line: #e6dfd2;
    --text: #1b2333;
    --muted: #556173;
    --gold: #c9a35a;
    --gold-deep: #9b7432;
    --gold-light: #ecd59c;
    --gold-metal: linear-gradient(120deg, #a87b33 0%, #e6c987 38%, #f6e3ad 50%, #c99a4c 66%, #a07330 100%);
    --focus: #3b82f6;
    --max: 1200px;
    --radius: 14px;
    --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
    --script: Allura, "Snell Roundhand", cursive;
  }
  * { box-sizing: border-box; }
[hidden] { display: none !important; }
  html { scroll-behavior: smooth; scroll-padding-top: 90px; }
  body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
  img { max-width: 100%; display: block; }
  h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0 0 .45em; color: var(--navy-900); letter-spacing: -.005em; }
  h1 { font-size: clamp(2.5rem, 4.4vw, 4.3rem); }
  h2 { font-size: clamp(2.1rem, 4vw, 3.3rem); }
  h3 { font-size: 1.6rem; }
  p { margin: 0 0 1em; }
  a { color: var(--gold-deep); }
  :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
  .skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 200; }
  .skip:focus { left: 8px; }
  .gold-text { background: var(--gold-metal); -webkit-background-clip: text; background-clip: text; color: transparent; }

  /* Eyebrow with monogram rule */
  .eyebrow { display: inline-flex; align-items: center; gap: 14px; font: 600 .78rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 22px; }
  .eyebrow::before { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .8; }
  .on-dark .eyebrow { color: var(--gold-light); }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 28px; border-radius: 999px; border: 1.5px solid transparent;
    font: 600 .95rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background-position .5s, color .2s, border-color .2s; }
  .btn-gold { background: var(--gold-metal); background-size: 200% 100%; color: var(--navy-950); box-shadow: 0 10px 30px -12px rgba(201, 163, 90, .7); }
  .btn-gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 36px -14px rgba(201, 163, 90, .85); }
  .btn-outline { border-color: rgba(236, 213, 156, .7); color: #fff; background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
  .btn-outline:hover { border-color: var(--gold-light); background: rgba(236, 213, 156, .12); }
  .btn-navy { background: var(--navy-900); color: #fff; }
  .btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
  .btn svg { width: 18px; height: 18px; }

  /* ---------- Header ---------- */
  .topbar { background: var(--navy-950); color: #b9c3d3; font-size: .8rem; letter-spacing: .04em; }
  .topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 40px; }
  .topbar a { color: #e9eef6; text-decoration: none; }
  .topbar span + span::before { content: "·"; margin: 0 12px; color: var(--gold); }
  header.site { position: absolute; top: 40px; left: 0; right: 0; z-index: 60; transition: background .3s, box-shadow .3s, top .3s; }
  header.site.solid { position: fixed; top: 0; background: rgba(9, 18, 33, .94); backdrop-filter: blur(10px); box-shadow: 0 10px 30px -18px rgba(0,0,0,.7); }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 92px; transition: height .3s; }
  header.site.solid .nav { height: 74px; }
  .brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
  .brand svg { width: 46px; height: 46px; flex: none; }
  .brand-name { font: 600 1.55rem/1 var(--serif); letter-spacing: .2em; text-transform: uppercase; }
  .brand-sub { display: flex; align-items: center; gap: 8px; font: 500 .66rem/1 var(--sans); letter-spacing: .38em; text-transform: uppercase; color: var(--gold-light); margin-top: 7px; }
  .brand-sub::before, .brand-sub::after { content: ""; height: 1px; width: 16px; background: var(--gold); opacity: .7; }
  .links { display: flex; align-items: center; gap: 30px; }
  .links a.nl { color: #e8edf5; text-decoration: none; font-size: .9rem; font-weight: 500; letter-spacing: .03em; position: relative; }
  .links a.nl::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1.5px; background: var(--gold); transition: right .25s; }
  .links a.nl:hover::after { right: 0; }
  .links .btn { padding: 13px 22px; font-size: .85rem; }

  /* ---------- Hero ---------- */
  .hero { position: relative; min-height: clamp(700px, calc(100vh - 40px), 880px); padding-top: 0; overflow: hidden; color: #fff;
    background: var(--navy-950); }
  .hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; transform: scale(1.04); animation: drift 24s ease-out forwards; }
  @keyframes drift { to { transform: scale(1); } }
  @media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; transform: none; } }
  .hero .shade { position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(8, 17, 31, .78) 0%, rgba(8, 17, 31, .15) 26%, rgba(8, 17, 31, 0) 60%, rgba(8, 17, 31, .55) 92%, var(--navy-950) 100%),
    linear-gradient(90deg, rgba(8, 17, 31, .9) 0%, rgba(8, 17, 31, .72) 34%, rgba(8, 17, 31, .2) 64%, rgba(8, 17, 31, .1) 100%); }
  .hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; align-items: end; min-height: clamp(700px, calc(100vh - 40px), 880px); padding-top: 120px; }
  .hero-copy { align-self: center; padding: 20px 0 80px; max-width: 560px; }
  .hero h1 { color: #fff; }
  .hero h1 em { font-style: italic; font-weight: 500; }
  .hero .lede { font-size: 1.22rem; color: #d6deea; max-width: 26em; margin: 4px 0 36px; }
  .text-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; letter-spacing: .03em; padding: 16px 6px; border-bottom: 1px solid rgba(236, 213, 156, .5); border-radius: 0; }
  .text-link:hover { color: var(--gold-light); border-color: var(--gold-light); }
  .text-link svg { width: 16px; height: 16px; transition: transform .2s; }
  .text-link:hover svg { transform: translateX(3px); }
  .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
  .hero-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 0; margin: 34px 0 0; color: #c8d2e1; font-size: .9rem; }
  .hero-trust li { display: flex; align-items: center; gap: 9px; }
  .hero-trust svg { width: 17px; height: 17px; color: var(--gold-light); flex: none; }
  .portrait { position: relative; align-self: end; justify-self: center; }
  .portrait img { width: auto; height: clamp(460px, calc(100vh - 190px), 700px); object-fit: contain; filter: sepia(.12) saturate(1.06) brightness(1.02) drop-shadow(0 30px 40px rgba(0,0,0,.5)); }
  .portrait::before { content: ""; position: absolute; left: -10%; right: -10%; top: 2%; bottom: 0; background: radial-gradient(circle closest-side at 50% 34%, rgba(255, 214, 150, .34), rgba(255, 214, 150, 0)); z-index: -1; }
  .signature { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); text-align: center; white-space: nowrap; }
  .signature .sig { font: 400 3.4rem/1 var(--script); display: block; text-shadow: 0 2px 18px rgba(0,0,0,.6); }
  .signature .role { display: inline-block; margin-top: 6px; padding: 7px 16px; font: 600 .7rem/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: #fff; background: rgba(8, 17, 31, .72); border: 1px solid rgba(236, 213, 156, .45); border-radius: 999px; backdrop-filter: blur(6px); }

  /* ---------- Credentials strip ---------- */
  .stats { position: relative; z-index: 3; background: var(--navy-950); color: #fff; border-top: 1px solid rgba(236, 213, 156, .25); }
  .stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.08); }
  .stat:first-child { border-left: 0; }
  .stat b { display: block; font: 600 clamp(2.2rem, 3.6vw, 3rem)/1 var(--serif); margin-bottom: 10px; }
  .stat span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: #aab6c8; }

  section { padding: 120px 0; }
  .center { text-align: center; }
  .center .eyebrow { justify-content: center; }
  .center .eyebrow::after { content: ""; width: 38px; height: 1px; background: currentColor; opacity: .8; }
  .section-head { max-width: 720px; margin-bottom: 60px; }
  .section-head.center { margin-left: auto; margin-right: auto; }
  .section-head p { color: var(--muted); font-size: 1.12rem; }

  /* ---------- Intro ---------- */
  .intro .grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 80px; align-items: center; }
  .intro p { color: var(--muted); font-size: 1.1rem; }
  .intro .sign-off { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
  .intro .sign-off .sig { font: 400 3rem/1 var(--script); color: var(--navy-900); }
  .intro .sign-off small { display: block; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-deep); }
  .pillars { display: grid; gap: 18px; }
  .pillar { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -32px rgba(13, 26, 46, .5); }
  .pillar .ico { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-light); }
  .pillar .ico svg { width: 26px; height: 26px; }
  .pillar h3 { font-size: 1.35rem; margin-bottom: .2em; }
  .pillar p { margin: 0; font-size: .98rem; }

  /* ---------- Practice areas ---------- */
  .practice { background: var(--ivory); position: relative; }
  .areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .area { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 34px 34px; overflow: hidden;
    transition: transform .3s, box-shadow .3s, border-color .3s; }
  .area::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gold-metal); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
  .area:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(13, 26, 46, .55); border-color: #d9cdb4; }
  .area:hover::after { transform: scaleX(1); }
  .area .ico { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-deep); background: radial-gradient(circle at 30% 30%, #fff8e6, #f1e3c0); border: 1px solid #e8d6ad; margin-bottom: 24px; }
  .area .ico svg { width: 30px; height: 30px; }
  .area .q { font: italic 500 1.12rem/1.4 var(--serif); color: var(--gold-deep); margin-bottom: 10px; }
  .area h3 { margin-bottom: .4em; }
  .area p { color: var(--muted); font-size: .98rem; margin-bottom: 14px; }
  .area ul { list-style: none; padding: 0; margin: 0; font-size: .93rem; color: var(--slate); }
  .area li { padding: 6px 0 6px 22px; position: relative; border-top: 1px dashed #eadfc9; }
  .area li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border: 1.5px solid var(--gold); transform: rotate(45deg); }

  /* ---------- Together band ---------- */
  .together { position: relative; background: var(--navy-900); color: #d9e0ea; overflow: hidden; padding-bottom: 0; }
  .together h2 { color: #fff; }
  .together .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; position: relative; z-index: 1; padding-bottom: 150px; }
  .together p { color: #c3cddb; font-size: 1.12rem; }
  .together .callout { border-left: 2px solid var(--gold); padding: 6px 0 6px 24px; font: italic 500 1.5rem/1.4 var(--serif); color: #fff; margin-top: 26px; }
  .line-skyline { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: auto; color: rgba(236, 213, 156, .28); pointer-events: none; }

  /* ---------- About ---------- */
  .about .grid { display: grid; grid-template-columns: 420px 1fr; gap: 80px; align-items: start; }
  .attorney-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-900); box-shadow: 0 40px 80px -40px rgba(13, 26, 46, .6); }
  .attorney-card img { width: 100%; height: auto; }
  .attorney-card .plate { padding: 22px 24px 24px; text-align: center; color: #fff; background: linear-gradient(180deg, var(--navy-800), var(--navy-900)); border-top: 3px solid var(--gold); }
  .attorney-card .plate b { display: block; font: 600 1.15rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
  .attorney-card .plate span { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-light); }
  .attorney-card::before { content: ""; position: absolute; inset: 14px 14px auto auto; width: 70px; height: 70px; border-top: 2px solid var(--gold); border-right: 2px solid var(--gold); border-radius: 0 6px 0 0; z-index: 2; opacity: .9; }
  .about p { color: var(--muted); font-size: 1.08rem; }
  .creds { list-style: none; padding: 0; margin: 30px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .creds li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: .95rem; line-height: 1.5; }
  .creds svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; margin-top: 1px; }
  .verify { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; text-decoration: none; }
  .verify:hover { text-decoration: underline; }
  .verify svg { width: 16px; height: 16px; }

  /* ---------- Process ---------- */
  .process { background: var(--ivory); }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; position: relative; counter-reset: s; }
  .steps::before { content: ""; position: absolute; top: 38px; left: 16%; right: 16%; height: 1px; background: repeating-linear-gradient(90deg, var(--gold) 0 8px, transparent 8px 16px); }
  .step { position: relative; text-align: center; padding: 0 12px; }
  .step .num { position: relative; width: 76px; height: 76px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-light); font: 600 1.9rem/1 var(--serif); box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px #e3d4b2; }
  .step p { color: var(--muted); }

  /* ---------- Areas served ---------- */
  .served { padding: 100px 0; }
  .chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; max-width: 980px; margin: 0 auto; }
  .chips span { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .93rem; color: var(--slate); }
  .chips svg { width: 14px; height: 14px; color: var(--gold-deep); }

  /* ---------- FAQ ---------- */
  .faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
  details { border-bottom: 1px solid var(--line); padding: 24px 0; }
  details:first-of-type { border-top: 1px solid var(--line); }
  summary { cursor: pointer; font: 600 1.3rem/1.35 var(--serif); color: var(--navy-900); list-style: none; display: flex; justify-content: space-between; gap: 18px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #d8c7a2;
    background: linear-gradient(var(--gold-deep), var(--gold-deep)) center/12px 1.5px no-repeat, linear-gradient(var(--gold-deep), var(--gold-deep)) center/1.5px 12px no-repeat; transition: transform .25s; }
  details[open] summary::after { transform: rotate(45deg); }
  details p { margin: 14px 0 0; color: var(--muted); }

  /* ---------- Contact ---------- */
  .contact-sec { background: var(--ivory); }
  .contact { display: grid; grid-template-columns: .9fr 1.1fr; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 100px -50px rgba(13, 26, 46, .55); background: #fff; }
  .contact-info { position: relative; background: var(--navy-900); color: #d3dbe7; padding: 56px 48px 220px; overflow: hidden; }
  .contact-info h2 { color: #fff; }
  .contact-info > p { color: #b9c4d4; }
  .contact-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
  .contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
  .contact-list .ci { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(236, 213, 156, .4); color: var(--gold-light); }
  .contact-list .ci svg { width: 20px; height: 20px; }
  .contact-list .label { display: block; font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-light); font-weight: 600; margin-bottom: 2px; }
  .contact-list a { color: #fff; text-decoration: none; font-weight: 500; }
  .contact-list small { color: #9fb0c6; font-size: .9rem; }
  .contact-info .line-skyline { color: rgba(236, 213, 156, .22); }
  .contact-form { padding: 56px 52px; }
  .contact-form h3 { font-size: 2rem; margin-bottom: .2em; }
  .contact-form > p { color: var(--muted); margin-bottom: 28px; }
  .contact .label { display: block; }

  /* form */
  form { position: relative; }
  .field { margin-bottom: 20px; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; color: var(--navy-900); }
  .field input, .field textarea, .field select {
    width: 100%; min-height: 56px; padding: 15px 16px; border: 1.5px solid #d8d0c1; border-radius: 10px;
    font: inherit; font-size: 1.05rem; background: #fdfcf9; color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
  .field input::placeholder, .field textarea::placeholder { color: #9a9488; }
  .field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(201, 163, 90, .22); }
  .field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
  .field [aria-invalid="true"] { border-color: #a12a1f; background: #fff8f7; }
  .field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(161, 42, 31, .18); }
  .field-err { margin: 6px 0 0; font-size: .9rem; color: #a12a1f; }
  .field-err:empty { display: none; }
  .field-err button { font: inherit; color: var(--gold-deep); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-weight: 600; }
  .field-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
  .field-foot .count { margin: 6px 0 0 auto; font-size: .82rem; color: var(--muted); white-space: nowrap; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .cf-turnstile { margin: 4px 0 18px; min-height: 65px; }
  form .btn-primary { width: 100%; padding: 19px 28px; font-size: 1rem; background: var(--gold-metal); background-size: 200% 100%; color: var(--navy-950); box-shadow: 0 14px 30px -14px rgba(155, 116, 50, .8); }
  form .btn-primary:hover { background-position: 100% 0; transform: translateY(-1px); }
  .form-status { margin: 16px 0 0; font-size: .97rem; }
  .form-status:empty { display: none; }
  .form-status.ok { color: #1f6b3a; font-weight: 500; }
  .form-status.err { color: #a12a1f; }
  .note { font-size: .85rem; color: var(--muted); margin-top: 16px; display: flex; gap: 10px; }
  .note svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--gold-deep); }
  button[disabled] { opacity: .7; cursor: wait; }
  .direct { display: grid; gap: 14px; align-content: start; }
  .direct .btn-primary { background: var(--gold-metal); color: var(--navy-950); padding: 18px 24px; }
  .direct h3 { margin: 0; }
  .direct p { margin: 0 0 6px; color: var(--muted); }

  /* ---------- Footer ---------- */
  footer { position: relative; background: var(--navy-950); color: #9eabbe; padding: 0 0 110px; font-size: .9rem; overflow: hidden; }
  footer .line-skyline { position: relative; display: block; color: rgba(236, 213, 156, .22); margin-bottom: 70px; }
  footer .cols { display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 56px; }
  footer h4 { font: 600 .74rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold-light); margin: 6px 0 18px; }
  footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
  footer a { color: #dfe5ee; text-decoration: none; }
  footer a:hover { color: var(--gold-light); }
  footer .legal { margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; line-height: 1.7; display: grid; gap: 10px; }

  /* ---------- Mobile bar ---------- */
  .callbar { display: none; }

  /* ---------- Reveal on scroll ---------- */
  .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
  @media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    html { scroll-behavior: auto; }
  }

  /* ---------- Responsive ---------- */
  @media (max-width: 1080px) {
    .links a.nl { display: none; }
    .areas { grid-template-columns: repeat(2, 1fr); }
    .about .grid { grid-template-columns: 340px 1fr; gap: 50px; }
    .intro .grid, .faq-wrap { gap: 50px; }
  }
  @media (max-width: 900px) {
    section { padding: 84px 0; }
    .hero-inner { grid-template-columns: 1fr; padding-top: 150px; }
    .hero-copy { padding-bottom: 20px; }
    .hero .shade { background: linear-gradient(180deg, rgba(8, 17, 31, .88) 0%, rgba(8, 17, 31, .7) 45%, rgba(8, 17, 31, .2) 75%, var(--navy-950) 100%); }
    .hero-photo { object-position: 62% 70%; }
    .portrait { width: min(380px, 86%); }
    .portrait img { width: 100%; height: auto; }
    .stats .wrap { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.08); }
    .intro .grid, .together .grid, .about .grid, .faq-wrap, .contact { grid-template-columns: 1fr; }
    .about .attorney-card { max-width: 420px; }
    .steps { grid-template-columns: 1fr; gap: 40px; }
    .steps::before { display: none; }
    footer .cols { grid-template-columns: 1fr 1fr; }
    footer .cols > div:first-child { grid-column: 1 / -1; }
    .contact-info { padding-bottom: 180px; }
  }
  @media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .topbar .hide-sm { display: none; }
    .topbar .wrap { justify-content: center; }
    .nav { height: 76px; }
    .brand svg { width: 40px; height: 40px; }
    .brand-name { font-size: 1.3rem; letter-spacing: .16em; }
    .links .btn { display: none; }
    .areas, .creds { grid-template-columns: 1fr; }
    .area { padding: 30px 24px; }
    .contact-info, .contact-form { padding: 40px 22px; }
    .contact-info { padding-bottom: 150px; }
    .signature .sig { font-size: 2.7rem; }
    .cta-row .btn { flex: 1 1 100%; }
    .cta-row .text-link { margin: 0 auto; }
    footer .cols { grid-template-columns: 1fr; }
    .callbar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
      padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(9, 18, 33, .96); backdrop-filter: blur(10px); border-top: 1px solid rgba(236, 213, 156, .25); }
    .callbar .btn { padding: 14px 10px; }
    .hero .hero-inner { padding-top: 136px; }
    .hero-copy { padding-bottom: 8px; }
  }

/* ---------- Shared additions (subpages, links) ---------- */
.area .more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: .92rem; color: var(--gold-deep); text-decoration: none; letter-spacing: .02em; }
.area .more svg { width: 15px; height: 15px; transition: transform .2s; }
.area .more:hover svg { transform: translateX(3px); }
.area .more::after { content: ""; position: absolute; inset: 0; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.lang-link { color: var(--gold-light) !important; font-weight: 600; letter-spacing: .06em; }
.booking-btn { margin-top: 30px; position: relative; z-index: 1; }

.hero-sub { position: relative; overflow: hidden; color: #fff; background: var(--navy-950); padding: 210px 0 90px; }
.hero-sub .hero-photo { animation: none; transform: none; object-position: 50% 62%; }
.hero-sub .shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 17, 31, .94) 0%, rgba(8, 17, 31, .8) 50%, rgba(8, 17, 31, .55) 100%), linear-gradient(180deg, rgba(8,17,31,.6), rgba(8,17,31,0) 40%); }
.hero-sub .wrap { position: relative; z-index: 2; }
.hero-sub h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 3.9rem); max-width: 16em; }
.hero-sub .lede { font-size: 1.18rem; color: #d6deea; max-width: 34em; margin: 4px 0 32px; }
.hero-sub--plain { padding-bottom: 70px; background: linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: #aab6c8; margin-bottom: 26px; }
.crumbs a { color: #dfe5ee; text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); }

.article-sec { padding: 90px 0 110px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 70px; align-items: start; }
.prose { font-size: 1.08rem; color: #333d4d; }
.prose--narrow { max-width: 780px; }
.prose h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-top: 1.2em; }
.prose-block { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line); }
.prose-block:last-child { border-bottom: 0; }
.prose-block h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 12px; }
.ticks li { position: relative; padding: 14px 16px 14px 48px; background: #fff; border: 1px solid var(--line); border-radius: 12px; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 18px; top: 19px; width: 14px; height: 8px; border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg); }
.alert { padding: 20px 22px; border-radius: 12px; background: #fff4f2; border: 1px solid #f1c9c2; color: #6d2118; }
.alert a { color: #8f2b1f; font-weight: 600; }
.side { position: sticky; top: 100px; display: grid; gap: 22px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 24px 50px -36px rgba(13, 26, 46, .5); }
.side-card h3 { font-size: 1.4rem; }
.attorney-mini { text-align: center; }
.attorney-mini img { width: 120px; height: 150px; object-fit: cover; border-radius: 10px; margin: 0 auto 16px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--gold); }
.attorney-mini b { display: block; font: 600 1.35rem/1.2 var(--serif); color: var(--navy-900); }
.attorney-mini span { display: block; font-size: .78rem; letter-spacing: .08em; color: var(--gold-deep); margin: 4px 0 12px; }
.attorney-mini p { font-size: .93rem; color: var(--muted); }
.attorney-mini .btn { width: 100%; }
.related { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.related a { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 8px; color: var(--navy-900); text-decoration: none; font-weight: 500; }
.related a:hover { background: var(--ivory); color: var(--gold-deep); }
.related svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; }

@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; gap: 40px; }
  .side { position: static; }
}
@media (max-width: 640px) {
  .hero-sub { padding: 170px 0 60px; }
  .topbar-right { gap: 0; }
  .article-sec { padding: 60px 0 80px; }
}
@media (max-width: 640px) {
  .topbar { font-size: .74rem; }
  .topbar .hide-sm + span::before { content: none; }
  .prose-block { padding-bottom: 30px; margin-bottom: 30px; }
}
@media (max-width: 480px) { .two { grid-template-columns: 1fr; } }
.area--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 62px 1fr 1fr; gap: 0 28px; align-items: start; }
.area--wide .ico { margin-bottom: 0; }
.area--wide .q, .area--wide h3, .area--wide p { grid-column: 2; }
.area--wide ul { grid-column: 3; grid-row: 1 / span 3; }
@media (max-width: 900px) { .area--wide { display: block; } .area--wide .ico { margin-bottom: 24px; } }

/* ---------- Header: never wrap; menu button when space runs short ---------- */
.brand-name, .brand-sub, .links a.nl, .links .btn { white-space: nowrap; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(236, 213, 156, .45); background: rgba(8, 17, 31, .35);
  cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto; }
.menu-toggle span { display: block; width: 20px; height: 1.6px; background: #fff; transition: transform .25s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
@media (max-width: 1180px) {
  .nav { gap: 16px; }
  .menu-toggle { display: inline-flex; }
  .links a.nl { display: none; }
  header.site.menu-open { background: rgba(9, 18, 33, .98); }
  header.site.menu-open .links { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 28px 26px; background: rgba(9, 18, 33, .98); border-top: 1px solid rgba(236, 213, 156, .2); box-shadow: 0 30px 40px -20px rgba(0,0,0,.6); }
  header.site.menu-open .links a.nl { display: block; padding: 16px 0; font-size: 1.05rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  header.site.menu-open .links a.nl::after { display: none; }
  header.site.menu-open .links .btn { display: inline-flex; margin-top: 20px; }
}
@media (max-width: 640px) {
  .callbar { grid-template-columns: 1fr; }
  header.site.menu-open .links { padding: 8px 16px 22px; }
}

/* ---------- Contact form on navy (white fields) ---------- */
.contact { background: var(--navy-900); }
.contact-form { background: linear-gradient(160deg, var(--navy-800), var(--navy-900)); border-left: 1px solid rgba(236, 213, 156, .22); color: #d6deea; }
.contact-form .field label, .contact-form h3 { color: #fff; }
.contact-form .field label .opt { font-weight: 400; color: #9fb0c6; font-size: .88em; }
.contact-form .field input, .contact-form .field textarea, .contact-form .field select { background: #fff; border-color: #fff; color: var(--text); }
.contact-form .field input:focus, .contact-form .field textarea:focus, .contact-form .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201, 163, 90, .35); }
.contact-form .field [aria-invalid="true"] { border-color: #ff8a7a; background: #fff6f4; }
.contact-form .field-err { color: #ffb4a8; }
.contact-form .field-err button { color: var(--gold-light); }
.contact-form .field-foot .count { color: #9fb0c6; }
.contact-form .form-status.ok { color: #9be3b4; }
.contact-form .form-status.err { color: #ffb4a8; }
.contact-form .note { color: #a9b6c9; }
.contact-form .direct p { color: #b9c4d4; }
@media (max-width: 900px) { .contact-form { border-left: 0; border-top: 1px solid rgba(236, 213, 156, .22); } }

/* form rows: labels stay on one line so fields line up; case type gets the wider column */
.two .field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.two--topic { grid-template-columns: 1fr 1.45fr; }
.field select { padding-right: 36px; text-overflow: ellipsis; }
.contact-info .line-skyline { opacity: .5 !important; }
@media (max-width: 480px) { .two--topic { grid-template-columns: 1fr; } }

/* =================== App pages: client portal + admin dashboard =================== */
.app-body { background: var(--ivory); min-height: 100vh; }
.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; background: var(--navy-950); border-bottom: 1px solid rgba(236, 213, 156, .2); }
.app-top .brand svg { width: 40px; height: 40px; }
.app-top .brand-name { font-size: 1.3rem; }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.app-top-right { display: flex; align-items: center; gap: 14px; color: #b9c4d4; font-size: .88rem; }
.app-main { max-width: 1120px; margin: 0 auto; padding: 48px 24px 80px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.fine { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wide { width: 100%; }
.link-btn { background: none; border: 0; color: var(--gold-deep); font: inherit; font-weight: 600; cursor: pointer; padding: 12px 0 0; text-decoration: underline; }
.form-msg { margin: 14px 0 0; font-size: .95rem; }
.form-msg:empty { display: none; }
.form-msg.ok { color: #1f6b3a; }
.form-msg.err { color: #a12a1f; }

.auth-card { max-width: 440px; margin: 40px auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 40px 36px; box-shadow: 0 40px 80px -50px rgba(13, 26, 46, .6); }
.auth-card h1 { font-size: 2.4rem; }
.code-input { letter-spacing: .5em; font-size: 1.5rem !important; text-align: center; font-variant-numeric: tabular-nums; }

.app-hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.app-hello h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: .1em; }
.next-date { background: var(--navy-900); color: #fff; border-radius: 14px; padding: 16px 22px; text-align: right; }
.next-date span { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); }
.next-date b { font: 600 1.4rem/1.3 var(--serif); }
.app-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: start; }
.side-stack { display: grid; gap: 24px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; box-shadow: 0 24px 50px -40px rgba(13, 26, 46, .5); }
.panel h2 { font-size: 1.6rem; margin-bottom: .5em; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.file-list { list-style: none; padding: 0; margin: 0; }
.file-list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 4px; border-top: 1px solid var(--line); }
.file-list li:first-child { border-top: 0; }
.file-list a { font-weight: 600; color: var(--navy-900); text-decoration: none; word-break: break-word; }
.file-list a:hover { color: var(--gold-deep); text-decoration: underline; }
.empty { padding: 10px 0; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 18px; border: 2px dashed #d8c7a2; border-radius: 14px; background: #fdfbf6; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--gold-deep); background: #fbf4e4; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone b { color: var(--gold-deep); }

/* ---------- admin dashboard ---------- */
.admin-shell { display: grid; grid-template-columns: 300px 1fr; min-height: calc(100vh - 69px); }
.admin-side { background: #fff; border-right: 1px solid var(--line); padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 69px; height: calc(100vh - 69px); overflow: auto; }
.admin-side input[type=search] { width: 100%; padding: 11px 14px; border: 1.5px solid #d8d0c1; border-radius: 10px; font: inherit; font-size: .95rem; }
.nav-item { display: flex; justify-content: space-between; align-items: center; width: 100%; text-align: left; padding: 11px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: .95rem; color: var(--navy-900); cursor: pointer; }
.nav-item:hover { background: var(--ivory); }
.nav-item.active { background: var(--navy-900); color: #fff; }
.nav-item.active .muted { color: #b9c4d4; }
.nav-item b { font-weight: 600; display: block; }
.badge { min-width: 22px; padding: 2px 8px; border-radius: 999px; background: var(--gold); color: var(--navy-950); font-size: .75rem; font-weight: 700; text-align: center; }
.side-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 10px 6px 0; font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: #3aa267; }
.dot.closed { background: #9aa3b0; } .dot.pending { background: var(--gold); }
.admin-main { padding: 32px 36px 80px; min-width: 0; }
.admin-main h1 { font-size: 2.4rem; margin-bottom: .15em; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 26px 0 20px; }
.tab { padding: 12px 16px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--navy-900); border-color: var(--gold-deep); }
.meta-grid { display: grid; grid-template-columns: 180px 180px 1fr auto; gap: 14px; align-items: end; margin-top: 18px; }
.meta-grid .field { margin: 0; }
.meta-grid select, .meta-grid input, .meta-grid textarea { min-height: 46px !important; padding: 10px 12px !important; font-size: .95rem !important; }
.meta-grid textarea { min-height: 46px !important; height: 46px; resize: vertical; }
.thread-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.thread-item { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; text-align: left; font: inherit; width: 100%; }
.thread-item:hover { border-color: #d9cdb4; box-shadow: 0 14px 30px -24px rgba(13,26,46,.6); }
.thread-item b { color: var(--navy-900); }
.thread-item .snip { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item.unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); margin-right: 8px; vertical-align: middle; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.msg.mine { background: #f6f8fc; border-color: #dfe5ef; }
.msg-head { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; color: var(--muted); margin-bottom: 10px; flex-wrap: wrap; }
.msg-head b { color: var(--navy-900); }
.msg-body { white-space: pre-wrap; word-break: break-word; font-size: .98rem; line-height: 1.6; }
.attach { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.attach a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .85rem; text-decoration: none; color: var(--navy-900); background: var(--ivory); }
.composer { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 16px; }
.composer textarea { min-height: 140px !important; }
.inq { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.inq h3 { font-size: 1.35rem; margin: 0 0 4px; }
.inq p { margin: 10px 0 14px; white-space: pre-wrap; color: #333d4d; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); font-size: .8rem; color: var(--slate); }
.btn-ghost-dark { border: 1.5px solid var(--navy-900); color: var(--navy-900); background: #fff; }
.btn-ghost-dark:hover { background: var(--navy-900); color: #fff; }
dialog.modal { border: 0; border-radius: 18px; padding: 30px; width: min(480px, 92vw); box-shadow: 0 40px 100px -30px rgba(0,0,0,.5); }
dialog.modal::backdrop { background: rgba(8, 17, 31, .55); }
.check { display: flex; gap: 10px; align-items: center; font-size: .95rem; margin: 6px 0 18px; }
.check input { width: 18px; height: 18px; }
.admin-empty { padding: 60px 20px; text-align: center; color: var(--muted); }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); max-height: 320px; }
  .admin-main { padding: 24px 16px 60px; }
  .meta-grid { grid-template-columns: 1fr 1fr; }
  .meta-grid .notes, .meta-grid .save { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .app-top { padding: 12px 16px; }
  .app-main { padding: 28px 16px 60px; }
  .auth-card { padding: 30px 22px; }
}
.portal-link { color: #e9eef6 !important; font-weight: 500; }
.portal-link::before { content: "🔒"; font-size: .85em; margin-right: 6px; filter: grayscale(1) brightness(2); }
/* consistent selects (custom arrow) + aligned dashboard fields */
.field select { -webkit-appearance: none; appearance: none; padding-right: 40px !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%239b7432' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center; }
.meta-grid { align-items: start; }
.meta-grid .field label { min-height: 22px; }
.meta-grid .save { padding-top: 30px; }
.meta-grid select, .meta-grid input, .meta-grid textarea { height: 46px; box-sizing: border-box; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 24px; align-items: start; }
.account-grid .row { margin-top: 6px; }
@media (max-width: 1100px) { .account-grid { grid-template-columns: 1fr; } }
.phone-top { color: #fff !important; font-weight: 600; margin-right: 18px; }
@media (max-width: 640px) { .callbar.two-btn { grid-template-columns: 1fr 1.6fr; } }
.account-col { display: grid; gap: 22px; align-content: start; }

/* ---------- Blog ---------- */
.blog-filters { justify-content: flex-start; margin: 0 0 36px; }
.chips .chip.on, a.chip.on { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
a.chip { text-decoration: none; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: transform .25s, box-shadow .25s; }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -34px rgba(13, 26, 46, .55); }
.post-card > a, .post-card-link { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 28px; color: inherit; text-decoration: none; }
.post-card h2, .post-card h3 { font-size: 1.45rem; margin: 6px 0 0; color: var(--navy-900); }
.post-card p { color: var(--muted); font-size: .97rem; margin: 0; flex: 1; }
.post-card .chip { align-self: flex-start; }
.post-meta { font-size: .82rem; color: var(--gold-deep); letter-spacing: .03em; }
.blog-strip { background: var(--paper); }
.byline { color: #c3cddb; font-size: .95rem; margin-top: 10px; }
.byline a { color: var(--gold-light); }
.post-body h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 1.4em 0 .5em; }
.post-body h3 { font-size: 1.35rem; margin: 1.2em 0 .4em; }
.post-body ul, .post-body ol { padding-left: 1.3em; color: var(--muted); }
.post-body li { margin: .35em 0; }
.post-body blockquote { margin: 1.4em 0; padding: 14px 22px; border-left: 3px solid var(--gold); background: var(--ivory); font: italic 500 1.2rem/1.5 var(--serif); color: var(--navy-900); }
.post-body p a, .post-body li a { color: var(--gold-deep); font-weight: 500; }
.toc { background: var(--ivory); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; margin-bottom: 28px; font-size: .95rem; }
.toc b { display: block; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--navy-900); text-decoration: none; }
.post-disclaimer { margin-top: 40px; font-size: .82rem; line-height: 1.6; color: #8a8f99; }
.post-cta { margin: 26px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.preview-bar { position: sticky; top: 0; z-index: 90; background: var(--gold); color: var(--navy-950); text-align: center; font-weight: 600; padding: 10px 16px; font-size: .9rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }

/* ---------- Blog editor (dashboard) ---------- */
.chip-live { background: #e5f4ea; border-color: #b9e0c6; color: #1f6b3a; }
.editor-meta { display: grid; grid-template-columns: 2fr 1fr; gap: 0 18px; margin-top: 18px; }
.editor-meta .wide { grid-column: 1 / -1; }
.editor-meta textarea { min-height: 70px !important; }
.slug-row { display: flex; align-items: center; gap: 6px; }
.slug-row input { flex: 1; min-height: 46px !important; padding: 10px 12px !important; }
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 6px; align-items: start; }
.post-editor { width: 100%; min-height: 560px; padding: 16px; border: 1.5px solid #d8d0c1; border-radius: 10px; font: 15px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; resize: vertical; }
.post-editor:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 4px rgba(201, 163, 90, .22); }
.preview-pane { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 26px 20px; min-height: 560px; max-height: 80vh; overflow: auto; font-size: 1rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.tb-btn { padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 600 .82rem/1 var(--sans); color: var(--navy-900); cursor: pointer; }
.tb-btn:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.link-btn.danger { color: #a12a1f; }
@media (max-width: 1200px) { .editor-grid { grid-template-columns: 1fr; } .preview-pane { min-height: 0; } }
.side-link { font-size: .9rem; font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.side-link:hover { text-decoration: underline; }
