/* bearmuch.com marketing site.
   Palette: hymnal cloth navy, gold-stamp accent, bulletin paper, vine green. Type: Libre Caslon (hymnal) + Public Sans. */
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Caslon'; src: url(/static/fonts/libre-caslon-text-latin-400-italic.woff2) format('woff2'); font-style: italic; font-display: swap; }
@font-face { font-family: 'Caslon Display'; src: url(/static/fonts/libre-caslon-display-latin-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Public Sans'; src: url(/static/fonts/public-sans-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }

.mk { --cloth: #1E2A47; --cloth-2: #2A3A60; --gold: #B48A3C; --gold-lt: #E9D9B4; --paper: #FFFFFF; --page: #F6F5F1; --ink: #1A1C22; --muted: #5C606B; --line: #E4E1D8; --vine: #5E7A3E;
  --display: 'Caslon Display', Georgia, serif; --serif: 'Caslon', Georgia, serif; --sans: 'Public Sans', system-ui, sans-serif;
  font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 18px; line-height: 1.6; }
.mk h1, .mk h2, .mk h3 { font-family: var(--serif); font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.mk a { color: var(--cloth); }
.mk .w { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.mk .btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 8px; font-weight: 650; font-size: 1rem; text-decoration: none; border: 2px solid var(--cloth); background: var(--cloth); color: #fff; line-height: 1.1; cursor: pointer; }
.mk .btn:hover { background: var(--cloth-2); border-color: var(--cloth-2); }
.mk .btn.quiet { background: transparent; color: var(--cloth); }
.mk .btn.quiet:hover { background: var(--page); }
.mk .btn.gold { background: var(--gold); border-color: var(--gold); color: #1a1407; }
.mk .btn.on-dark { background: #fff; border-color: #fff; color: var(--cloth); }
.mk :focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* header */
.mk-top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.mk-top .w { display: flex; align-items: center; gap: 28px; height: 72px; }
.mk-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: 1.35rem; margin-right: auto; }
.mk-logo img { width: 34px; height: 34px; }
.mk-nav { display: flex; align-items: center; gap: 26px; font-size: .95rem; font-weight: 550; }
.mk-nav a { color: var(--ink); text-decoration: none; }
.mk-nav a:hover { color: var(--cloth); text-decoration: underline; text-underline-offset: 6px; }
.mk-nav .btn { padding: 10px 18px; color: #fff; }
.mk-nav .btn:hover { text-decoration: none; color: #fff; }
.mk-burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; }
@media (max-width: 1180px) {
  .mk-burger { display: block; }
  .mk-logo { margin-right: 0; }
  .mk-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 20px; }
  .mk-nav.open { display: flex; }
  .mk-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .mk-nav .btn { justify-content: center; margin-top: 12px; }
}

/* hero */
.mk-hero { background: var(--page); border-bottom: 1px solid var(--line); overflow: hidden; }
.mk-hero .w { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.mk-hero .verse { font-family: var(--serif); font-style: italic; color: var(--vine); font-size: 1.05rem; margin: 0 0 22px; max-width: 46ch; }
.mk-hero .verse cite { font-style: normal; color: var(--muted); font-size: .9rem; margin-left: 6px; }
.mk-hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 6.2vw, 5.4rem); line-height: .98; letter-spacing: -.02em; margin: 0 0 26px; }
.mk-hero .lead { font-size: 1.22rem; color: #3a3d46; max-width: 34em; margin: 0 0 32px; }
.mk-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.mk-hero .fine { font-size: .92rem; color: var(--muted); }

/* hero composition: a real folded bulletin + a phone */
.stage { position: relative; height: 580px; }
.bulletin { position: absolute; right: -10px; top: 0; width: 420px; height: 520px; display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: 0 1px 0 #ddd, 0 30px 60px -20px rgba(30,42,71,.35), 0 10px 20px -10px rgba(30,42,71,.2); transform: rotate(2.5deg); font-family: var(--serif); color: #222; }
.bulletin::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 30px; margin-left: -15px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.06) 50%, rgba(0,0,0,0)); pointer-events: none; }
.bulletin .pan { padding: 26px 20px; font-size: 10.5px; line-height: 1.45; overflow: hidden; }
.bulletin .front { text-align: center; display: flex; flex-direction: column; align-items: center; }
.bulletin .front .seal { width: 46px; height: 46px; margin: 4px 0 12px; }
.bulletin .front .cn { font-family: var(--display); font-size: 21px; line-height: 1.05; margin: 0 0 6px; }
.bulletin .front .dt { color: #666; margin-bottom: 18px; }
.bulletin .front .st { font-size: 15px; font-weight: 700; margin: 0; }
.bulletin .front .sc { font-style: italic; margin: 2px 0 16px; }
.bulletin .front .wl { text-align: left; color: #444; }
.bulletin h6 { font-family: var(--serif); font-size: 11.5px; margin: 0 0 6px; padding-bottom: 3px; border-bottom: 1px solid #bbb; font-weight: 700; }
.bulletin ol { margin: 0 0 14px; padding-left: 14px; }
.bulletin .hy { white-space: pre-line; font-size: 9.5px; color: #333; }
.phone { position: absolute; left: -10px; bottom: -10px; width: 214px; height: 420px; border-radius: 36px; background: #10131b; padding: 12px; box-shadow: 0 30px 60px -15px rgba(0,0,0,.45); transform: rotate(-4deg); }
.phone .scr { background: #f2f2f7; border-radius: 26px; height: 100%; overflow: hidden; display: flex; flex-direction: column; font-family: -apple-system, 'Public Sans', sans-serif; }
.phone .bar { text-align: center; font-size: 11px; color: #555; padding: 16px 0 8px; border-bottom: 1px solid #ddd; background: #fafafa; }
.phone .bar b { display: block; font-size: 13px; color: #111; }
.phone .msgs { padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; line-height: 1.35; }
.phone .msg { background: #e5e5ea; color: #111; border-radius: 16px 16px 16px 4px; padding: 9px 12px; max-width: 88%; }
.phone .msg .code { font-weight: 800; letter-spacing: .12em; }
.phone .msg a { color: #0a66d9; word-break: break-all; }
.phone .when { text-align: center; font-size: 10px; color: #8a8a8e; }

/* proof strip */
.mk-proof { border-bottom: 1px solid var(--line); }
.mk-proof .w { display: grid; grid-template-columns: repeat(4, 1fr); }
.mk-proof .w > div { padding: 30px 24px; border-left: 1px solid var(--line); }
.mk-proof .w > div:first-child { border-left: 0; padding-left: 0; }
.mk-proof b { display: block; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 4px; }
.mk-proof span { color: var(--muted); font-size: .95rem; }

/* generic section */
.mk-sec { padding: 112px 0; }
.mk-sec.page { background: var(--page); }
.mk-sec h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); line-height: 1.08; margin: 0 0 18px; max-width: 18ch; }
.mk-sec .sub { font-size: 1.18rem; color: var(--muted); max-width: 58ch; margin: 0 0 48px; }
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
.split.flip { grid-template-columns: 1.25fr 1fr; }
.split.flip > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; margin: 24px 0 32px; }
.ticks li { padding: 12px 0 12px 34px; border-top: 1px solid var(--line); position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 18px; width: 18px; height: 10px; border-left: 3px solid var(--vine); border-bottom: 3px solid var(--vine); transform: rotate(-45deg); }
.ticks li b { font-weight: 650; }

/* one entry, four places */
.flow { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: stretch; }
.entry { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; box-shadow: 0 20px 40px -24px rgba(30,42,71,.3); font-size: .95rem; }
.entry .row { margin-bottom: 14px; }
.entry label { display: block; font-size: .8rem; color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.entry .f { border: 1px solid var(--line); border-radius: 6px; padding: 9px 11px; background: #fbfbfa; }
.entry .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.entry .chips span { background: var(--gold-lt); color: #5a4416; border-radius: 999px; padding: 3px 10px; font-size: .82rem; }
.entry .go { margin-top: 18px; width: 100%; justify-content: center; }
.outs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; position: relative; }
.outs.three .out:last-child { grid-column: 1 / -1; }
.out { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.out h3 { font-size: 1.15rem; margin: 0 0 6px; }
.out p { margin: 0; color: var(--muted); font-size: .95rem; }
.out .mini { margin-top: 14px; height: 150px; border-radius: 6px; background: var(--page) center top/cover no-repeat; border: 1px solid var(--line); }

/* screenshots in frames */
.frame { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid #d9d6cc; box-shadow: 0 40px 80px -40px rgba(30,42,71,.45); }
.frame .chrome { height: 34px; background: #eeece6; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid #dcd9d0; }
.frame .chrome i { width: 11px; height: 11px; border-radius: 50%; background: #cfccc3; }
.frame .chrome span { margin-left: 12px; font-size: .78rem; color: #6b6e77; background: #fff; border-radius: 6px; padding: 3px 12px; }
.frame img { display: block; width: 100%; height: auto; }
.frame.tall img { aspect-ratio: 16/11; object-fit: cover; object-position: top; }

/* nursery band */
.mk-nurse { background: var(--cloth); color: #e8ebf3; }
.mk-nurse h2, .mk-nurse h3 { color: #fff; }
.mk-nurse .sub { color: #c5cbe0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; margin-top: 8px; }
.steps > div { counter-increment: s; }
.steps > div::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold-lt); font-family: var(--serif); font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 1.2rem; margin: 0 0 8px; }
.steps p { margin: 0; color: #c5cbe0; font-size: .97rem; }
.nurse-shots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-top: 64px; align-items: end; }
.mini-phone { background: #0d1120; border-radius: 30px; padding: 10px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.6); max-width: 260px; margin: 0 auto; width: 100%; }
.mini-phone .scr { background: #fff; color: #111; border-radius: 22px; min-height: 420px; padding: 26px 18px; text-align: center; font-family: var(--sans); }
.mini-phone .scr .ch { color: #666; font-size: .8rem; }
.mini-phone .scr h4 { font-family: var(--serif); font-size: 1.5rem; margin: 6px 0 4px; }
.mini-phone .scr .qr { width: 150px; height: 150px; margin: 14px auto; background:
  conic-gradient(from 90deg at 18% 18%, #111 0 25%, transparent 0) 0 0/50% 50%,
  repeating-linear-gradient(90deg, #111 0 6px, #fff 6px 12px), #fff; border: 8px solid #fff; outline: 1px solid #ddd; image-rendering: pixelated; }
.mini-phone .scr .big { font-family: ui-monospace, monospace; font-size: 2rem; font-weight: 800; letter-spacing: .25em; }
.mini-phone .scr .ok { background: #1E2A47; color: #fff; border-radius: 10px; padding: 14px; font-weight: 700; margin-top: 18px; }
.mini-phone .scr .done { background: #eef6ea; color: #2f5222; border-radius: 10px; padding: 14px; margin-top: 18px; font-weight: 650; }
.nurse-shots .cap { color: #c5cbe0; text-align: center; font-size: .9rem; margin-top: 14px; }
.nurse-safe { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 72px; border-top: 1px solid rgba(255,255,255,.15); }
.nurse-safe > div { padding: 26px 26px 0 0; }
.nurse-safe > div + div { padding-left: 26px; border-left: 1px solid rgba(255,255,255,.15); }
.nurse-safe h3 { font-size: 1.1rem; margin: 0 0 6px; }
.nurse-safe p { margin: 0; color: #c5cbe0; font-size: .95rem; }

/* hymn + study specimen */
.specimen { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.sheet { background: #fff; border: 1px solid var(--line); padding: 36px 34px; font-family: var(--serif); box-shadow: 0 24px 48px -32px rgba(30,42,71,.35); }
.sheet h3 { font-size: 1.5rem; margin: 0 0 2px; }
.sheet .by { color: var(--muted); font-size: .9rem; margin: 0 0 18px; font-family: var(--sans); }
.sheet p { margin: 0 0 14px; line-height: 1.55; }
.sheet sup { font-family: var(--sans); color: var(--muted); font-size: .65em; margin-right: 3px; }
.sheet .q { font-family: var(--sans); font-size: .95rem; color: #333; }

/* trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.trust h3 { font-size: 1.3rem; margin: 0 0 10px; }
.trust p { color: var(--muted); margin: 0; }
.faith { margin-top: 72px; padding: 44px 48px; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--gold); display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.faith blockquote { margin: 0; font-family: var(--serif); font-size: 1.35rem; line-height: 1.5; }

/* pricing */
.price-wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 64px; align-items: start; }
.plan { background: #fff; border: 2px solid var(--cloth); border-radius: 16px; padding: 36px; box-shadow: 0 40px 70px -40px rgba(30,42,71,.45); }
.toggle { display: inline-flex; background: var(--page); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 26px; }
.toggle button { border: 0; background: transparent; padding: 8px 18px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--cloth); color: #fff; }
.amount { font-family: var(--display); font-size: 4.4rem; line-height: 1; }
.amount small { font-family: var(--sans); font-size: 1rem; color: var(--muted); margin-left: 6px; }
.plan .note { color: var(--vine); font-weight: 600; margin: 8px 0 24px; min-height: 1.6em; }
.plan .btn { width: 100%; justify-content: center; }
.plan .fine { color: var(--muted); font-size: .9rem; margin-top: 14px; text-align: center; }
.incl { columns: 2; gap: 32px; list-style: none; padding: 0; margin: 0; }
.incl li { break-inside: avoid; padding: 9px 0 9px 28px; position: relative; border-top: 1px solid var(--line); font-size: .97rem; }
.incl li::before { content: ''; position: absolute; left: 2px; top: 15px; width: 13px; height: 7px; border-left: 2.5px solid var(--vine); border-bottom: 2.5px solid var(--vine); transform: rotate(-45deg); }

/* faq */
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--sans); font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: #3a3d46; margin: 14px 0 0; max-width: 70ch; }

/* closing */
.mk-close { background: var(--cloth); color: #fff; text-align: center; padding: 110px 0; }
.mk-close h2 { color: #fff; font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); margin: 0 auto 18px; max-width: 16ch; }
.mk-close p { color: #c5cbe0; font-size: 1.15rem; margin: 0 auto 32px; max-width: 46ch; }
.mk-close .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.mk-close .btn.quiet { color: #fff; border-color: rgba(255,255,255,.6); }
.mk-close .btn.quiet:hover { background: rgba(255,255,255,.08); }

/* footer */
.mk-foot { background: #141b2e; color: #aab1c5; padding: 64px 0 32px; font-size: .95rem; }
.mk-foot .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.mk-foot h4 { color: #fff; font-family: var(--serif); font-size: 1.05rem; margin: 0 0 12px; }
.mk-foot a { color: #dfe3ee; text-decoration: none; display: block; padding: 4px 0; }
.mk-foot a:hover { text-decoration: underline; }
.mk-foot .verse { font-family: var(--serif); font-style: italic; color: #cfd5e6; max-width: 32ch; }
.mk-foot .legal { border-top: 1px solid #263150; margin-top: 44px; padding-top: 22px; font-size: .85rem; }

/* inner pages (pricing, faith, help, signup, login, legal) */
.mk-page { padding: 72px 0 96px; }
.mk-page .w { max-width: 860px; }
.mk-page h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; }
.mk-page .card { border-radius: 12px; }
.mk label { font-size: .95rem; }
.mk input, .mk select, .mk textarea { border-radius: 8px; border-color: #cfccc3; }
.mk fieldset { border-color: var(--line); border-radius: 12px; background: #fff; }
.mk legend { font-family: var(--serif); }

@media (max-width: 1080px) {
  .mk-hero .w, .split, .split.flip, .flow, .price-wrap, .faith { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .stage { height: 520px; max-width: 520px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .mk { font-size: 17px; }
  .mk-sec { padding: 76px 0; }
  .mk-proof .w, .steps, .nurse-shots, .nurse-safe, .trust, .specimen, .outs { grid-template-columns: 1fr; }
  .mk-proof .w > div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .nurse-safe > div + div { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .incl { columns: 1; }
  .stage { height: 470px; }
  .bulletin { width: 330px; height: 430px; right: 0; }
  .bulletin .pan { padding: 18px 14px; font-size: 9px; }
  .phone { width: 190px; height: 370px; }
  .mk-foot .cols { grid-template-columns: 1fr 1fr; }
  .faith { padding: 30px 26px; }
}
@media (prefers-reduced-motion: no-preference) {
  .bulletin { animation: settle .9s cubic-bezier(.2,.8,.2,1) both .1s; }
  .phone { animation: rise .9s cubic-bezier(.2,.8,.2,1) both .35s; }
  @keyframes settle { from { transform: rotate(7deg) translateY(30px); opacity: 0; } to { transform: rotate(2.5deg); opacity: 1; } }
  @keyframes rise { from { transform: rotate(-4deg) translateY(60px); opacity: 0; } to { transform: rotate(-4deg); opacity: 1; } }
}
.mini-phone .scr .qr { background: #fff; display: block; }
.mini-phone .scr .qr svg { width: 100%; height: 100%; display: block; }

.mk-hero h1, .mk-hero .lead, .mk-hero .verse, .mk-hero .fine { text-align: left; }
.mk-hero .verse cite { white-space: nowrap; }
/* inner marketing pages reuse the base markup */
.mk .wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.mk .wrap.narrow { max-width: 860px; }
.mk .section { padding-top: 72px; padding-bottom: 96px; }
.mk .wrap h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.05; margin: 0 0 18px; }
.mk .wrap h2 { font-size: 1.6rem; }
.mk .card { border-radius: 12px; border-color: var(--line); }
.mk .price { font-family: var(--display); font-weight: 400; font-size: 3.4rem; }
.mk .prose { font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; }
.split h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); max-width: 20ch; }
.mk-nav a { white-space: nowrap; } .mk-logo { white-space: nowrap; }

.tools{display:grid;grid-template-columns:repeat(3,1fr);gap:28px 36px;margin-top:28px}
.tools h3{font-family:var(--display,Georgia,serif);font-size:1.25rem;margin:0 0 6px;padding-top:14px;border-top:2px solid currentColor}
.tools p{margin:0;color:var(--muted,#555);line-height:1.55}
@media (max-width:860px){.tools{grid-template-columns:1fr 1fr}}@media (max-width:560px){.tools{grid-template-columns:1fr}}

/* language switcher */
.mk-lang { position: relative; display: flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; background: #fff; }
.mk-lang .seg { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 10px; border-radius: 7px; color: var(--muted); text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none; }
.mk-lang .seg:hover { color: var(--ink); background: var(--page); }
.mk-lang .seg.on { background: var(--cloth); color: #fff; font-weight: 600; }
.mk-lang summary::-webkit-details-marker { display: none; }
.mk-lang details { position: relative; }
.mk-lang ul { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 30px rgba(20,24,40,.12); min-width: 180px; z-index: 40; }
.mk-lang ul a { display: block; padding: 8px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mk-lang ul a:hover { background: var(--page); }
.mk-lang ul a.on { font-weight: 700; color: var(--cloth); }
.mk-lang ul a.on::after { content: ' \2713'; color: var(--gold); }
.mk-lang .m-only, .mk-lang .m-cur { display: none; }
@media (max-width: 640px) {
  .mk-lang { padding: 0; border: 0; background: none; }
  .mk-lang > .seg { display: none; }
  .mk-lang .m-only { display: list-item; } .mk-lang .m-cur { display: inline; } .mk-lang .cur-l { display: none; }
  .mk-lang summary.seg { display: inline-flex; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 500; }
}
.mk-lang a:focus-visible, .mk-lang summary:focus-visible { outline: 2px solid var(--cloth); outline-offset: 2px; }
@media (max-width: 960px) { .mk-top .w { gap: 12px; } }

.mk-langs{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}.mk-langs a{border:1.5px solid currentColor;border-radius:999px;padding:8px 16px;text-decoration:none;font-size:1.05rem}.mk-langs a:hover{background:rgba(0,0,0,.05)}
@media(max-width:800px){.tools{grid-template-columns:1fr 1fr}}@media(max-width:520px){.tools{grid-template-columns:1fr}}
@media (max-width: 640px) {
  .mk-top .w { gap: 8px; padding-left: 16px; padding-right: 16px; }
  .mk-logo { font-size: 1.15rem; gap: 7px; flex-shrink: 0; }
  .mk-logo img { width: 28px; height: 28px; }
  .mk-burger { padding: 7px 10px; }
  .mk-lang summary.seg { padding: 0 9px; }
}

.mk-logo { flex-shrink: 0; }
@media (max-width: 1180px) { .mk-nav { max-height: calc(100dvh - 72px); overflow-y: auto; } }
/* Laptop widths: the full nav plus the language switcher did not fit and pushed the page sideways.
   Between the burger breakpoint and very wide screens, tighten spacing and show the globe without its label. */
@media (min-width: 1181px) and (max-width: 1700px) {
  .mk-top .w { gap: 18px; }
  .mk-nav { gap: 18px; }
  .mk-lang .cur-l { display: none; }
}
@media (min-width: 1181px) and (max-width: 1280px) { .mk-top .w { gap: 12px; } .mk-nav { gap: 13px; font-size: .92rem; } }

/* blog */
.blog-wrap { max-width: 1100px; padding-top: 48px; padding-bottom: 96px; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 18px; } .crumbs a { color: var(--muted); }
.blog-h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 16px; max-width: 22ch; text-wrap: balance; }
.blog-lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; margin: 0 0 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chips a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .92rem; color: var(--ink); background: #fff; }
.chips a[aria-current] { background: var(--cloth); border-color: var(--cloth); color: #fff; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; min-width: 0; }
.post-card.lead { grid-column: 1 / -1; border-left: 6px solid var(--gold); }
.post-card.lead h2 { font-size: 1.9rem; }
.post-card h2, .post-card h3 { font-size: 1.3rem; line-height: 1.25; margin: 0 0 8px; text-wrap: balance; }
.post-card h2 a, .post-card h3 a { color: var(--ink); text-decoration: none; } .post-card h2 a:hover, .post-card h3 a:hover { text-decoration: underline; }
.post-card p { margin: 0 0 8px; color: var(--muted); font-size: 1rem; }
.post-card .kicker, .post-meta { font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--gold); font-weight: 650; }
.post-card .meta { font-size: .88rem; margin: 0; }
.blog-feed { margin-top: 28px; font-size: .9rem; }
.post { max-width: 760px; }
.post-meta { text-transform: none; letter-spacing: 0; color: var(--muted); font-weight: 400; font-size: .95rem; margin: 0 0 28px; }
.answer { background: var(--page); border-left: 6px solid var(--gold); border-radius: 10px; padding: 18px 24px; margin: 0 0 24px; }
.answer h2, .takeaways h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.answer p { font-family: var(--serif); font-size: 1.2rem; line-height: 1.6; margin: 0; }
.takeaways { margin: 0 0 24px; } .takeaways ul { margin: 0; padding-left: 1.2em; } .takeaways li { margin: 4px 0; }
.toc { border: 1px solid var(--line); border-radius: 10px; padding: 14px 22px; margin: 0 0 32px; font-size: .98rem; }
.toc p { margin: 0 0 6px; font-weight: 650; } .toc ol { margin: 0; padding-left: 1.3em; } .toc li { margin: 3px 0; }
.post-body h2 { font-size: 1.6rem; margin: 40px 0 10px; scroll-margin-top: 20px; }
.post-body blockquote { margin: 18px 0; padding: 12px 20px; border-left: 4px solid var(--line); background: var(--page); }
.post-body .tbl { overflow-x: auto; margin: 18px 0; }
.post-body table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: .98rem; }
.post-body th, .post-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-body th { border-bottom: 2px solid var(--ink); }
.faq-list { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 8px; }
.faq-list h2 { font-size: 1.6rem; } .faq-list h3 { font-size: 1.15rem; margin: 22px 0 6px; } .faq-list p { margin: 0; }
.post-cta { margin-top: 48px; background: var(--cloth); color: #e8ecf5; border-radius: 14px; padding: 28px 30px; }
.post-cta h2 { color: #fff; margin: 0 0 8px; font-size: 1.5rem; } .post-cta p { margin: 0 0 18px; }
.post-cta .btn { background: #fff; border-color: #fff; color: var(--cloth); } .post-cta .btn.quiet { background: transparent; color: #fff; }
.related { margin-top: 64px; } .related h2 { font-size: 1.6rem; }
.mk-blog-home .post-grid { margin-top: 8px; }
@media (max-width: 760px) { .blog-wrap { padding-top: 28px; } .post-card.lead h2 { font-size: 1.5rem; } .post-cta { padding: 22px; } }
