/* ==========================================================================
   KCD Pune 2027 - Badge page styles, 1990 heritage edition (1990/badge.html only).
   PART 1: site chrome COPIED UNCHANGED from 1990/faq.html (its two inline <style>
           blocks: heritage tokens + page/bar/footer), so this page matches the
           1990 pages exactly. Loaded only by 1990/badge.html.
           If the 1990 styles change, re-copy this part from 1990/faq.html.
   PART 2: the badge maker. Every class is prefixed .kcd-badge- and the markup
           is the same as 2027/badge.html, so one kcd-badge.js drives both.
   ========================================================================== */
/* KCD Pune heritage system: tokens and a few text/link helpers. Pair with heritage.js. */

/* To switch on Mango Grotesque, put your licensed web fonts in heritage/fonts/ and uncomment:
@font-face { font-family: "Mango Grotesque"; src: url("fonts/MangoGrotesque-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Mango Grotesque"; src: url("fonts/MangoGrotesque-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
*/
:root {
  /* The palette, in page order: a Pune day going down into violet. */
  --h-paper: #faf1e1;
  --h-cream: #f3e2c9;
  --h-sand: #e7c499;
  --h-tan: #c9956a;
  --h-copper: #bc7148;
  --h-orange: #d98e60;
  --h-apricot: #e9a780;
  --h-mauve: #c2a5bc;
  --h-sky: #87acea;
  --h-cornflower: #6d87e5;
  --h-periwinkle: #5d6ad7;
  --h-iris: #5052c3;
  --h-indigo: #4239a7;
  --h-royal: #3f2990;
  --h-violet: #4a2a95;
  --h-purple: #5d2f95;
  --h-plum: #813f8c;
  --h-magenta: #aa5283;

  /* Added around the palette */
  --h-saffron: #c9622a;
  --h-ink: #2a1a5e;
  --h-night: #1f1248;

  /* Clarity City for English; Poppins supplies Devanagari glyphs. */
  --h-serif: "Clarity City", "Poppins", sans-serif;
  --h-sans: "Clarity City", "Poppins", sans-serif;

  --h-gutter: clamp(16px, 4vw, 56px);

  /* Small four-petal flowers on a half-drop repeat: terracotta for light sections, cream for dark */
  --h-flowers-warm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92' fill='%23bc7148'%3E%3Cpath d='M23 21.8C27.6 20.6 26.6 15 23 15C19.4 15 18.4 20.6 23 21.8ZM23 24.2C18.4 25.4 19.4 31 23 31C26.6 31 27.6 25.4 23 24.2ZM21.8 23C20.6 18.4 15 19.4 15 23C15 26.6 20.6 27.6 21.8 23ZM24.2 23C25.4 27.6 31 26.6 31 23C31 19.4 25.4 18.4 24.2 23ZM69 67.8C73.6 66.6 72.6 61 69 61C65.4 61 64.4 66.6 69 67.8ZM69 70.2C64.4 71.4 65.4 77 69 77C72.6 77 73.6 71.4 69 70.2ZM67.8 69C66.6 64.4 61 65.4 61 69C61 72.6 66.6 73.6 67.8 69ZM70.2 69C71.4 73.6 77 72.6 77 69C77 65.4 71.4 64.4 70.2 69Z'/%3E%3C/svg%3E");
  --h-flowers-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='92' height='92' fill='%23f3e2c9'%3E%3Cpath d='M23 21.8C27.6 20.6 26.6 15 23 15C19.4 15 18.4 20.6 23 21.8ZM23 24.2C18.4 25.4 19.4 31 23 31C26.6 31 27.6 25.4 23 24.2ZM21.8 23C20.6 18.4 15 19.4 15 23C15 26.6 20.6 27.6 21.8 23ZM24.2 23C25.4 27.6 31 26.6 31 23C31 19.4 25.4 18.4 24.2 23ZM69 67.8C73.6 66.6 72.6 61 69 61C65.4 61 64.4 66.6 69 67.8ZM69 70.2C64.4 71.4 65.4 77 69 77C72.6 77 73.6 71.4 69 70.2ZM67.8 69C66.6 64.4 61 65.4 61 69C61 72.6 66.6 73.6 67.8 69ZM70.2 69C71.4 73.6 77 72.6 77 69C77 65.4 71.4 64.4 70.2 69Z'/%3E%3C/svg%3E");

  --h-petals: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-9 -9 18 18'%3E%3Cpath d='M0 -1.2C4.6 -2.4 3.6 -8 0 -8C-3.6 -8 -4.6 -2.4 0 -1.2ZM0 1.2C-4.6 2.4 -3.6 8 0 8C3.6 8 4.6 2.4 0 1.2ZM-1.2 0C-2.4 -4.6 -8 -3.6 -8 0C-8 3.6 -2.4 4.6 -1.2 0ZM1.2 0C2.4 4.6 8 3.6 8 0C8 -3.6 2.4 -4.6 1.2 0Z'/%3E%3C/svg%3E");

  /* Chalk: masks that leave dry, broken strokes. -fine for small text, -drag for big strokes pulled across a board */
  --h-chalk-fine: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.5' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.3 1.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --h-chalk-drag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.45 2.4' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 -2.6 2.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Fine paper tooth, used on stamps and page grounds */
  --h-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .16 0 0 0 0 .1 0 0 0 0 .37 0 0 0 .55 -.16'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  /* The same tooth in a warm brown, for old paper and leather */
  --h-grain-warm: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .2 0 0 0 0 .09 0 0 0 .6 -.16'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

.h-display { font: 400 clamp(44px, 7vw, 100px)/1.02 var(--h-serif); margin: 0; text-wrap: balance; }
.h-word { font: 400 clamp(22px, 2.2vw, 30px)/1.2 var(--h-serif); margin: 0; }
.h-label { font: 500 15px/1.4 var(--h-sans); letter-spacing: .16em; text-transform: uppercase; margin: 0; }

/* A quiet link: text on a hairline that thickens. */
.h-link { display: inline-flex; align-items: center; min-height: 44px; font: 500 17px/1 var(--h-sans); letter-spacing: .03em; color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; transition: text-underline-offset .2s, text-decoration-thickness .2s; }
.h-link:hover { text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Buttons. --btn-bg and --btn-ink flip them for dark sections. */
.h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; font: 500 18px/1 var(--h-sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; background: var(--btn-bg, var(--h-royal)); color: var(--btn-ink, var(--h-paper)); border: 2px solid var(--btn-bg, var(--h-royal)); transition: transform .25s, background .25s, color .25s; }
.h-btn:hover { transform: translateY(-2px); }
/* The second button of a pair: filled royal like the first, deepening to plum on hover */
.h-btn.quiet { background: var(--h-royal); border-color: var(--h-royal); color: var(--h-paper); }
.h-btn.quiet:hover { background: var(--h-plum); border-color: var(--h-plum); }

/* The ticket button is a ticket: notched sides, a torn-off stub. */
.h-btn.ticket { position: relative; padding-right: 58px; border: 0; -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; mask: radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.h-btn.ticket::before { content: ""; position: absolute; top: 6px; bottom: 6px; right: 42px; border-left: 2px dashed currentColor; opacity: .55; }
.h-btn.ticket::after { content: ""; position: absolute; top: 50%; right: 15px; width: 16px; height: 16px; margin-top: -8px; background: currentColor; -webkit-mask: var(--h-petals) center / contain no-repeat; mask: var(--h-petals) center / contain no-repeat; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.h-btn.ticket:hover { transform: rotate(-2deg) translateY(-2px); }
.h-btn.ticket:hover::after { transform: rotate(135deg) scale(1.2); }

.h-reveal { opacity: 0; transition: opacity 1.1s ease; }
.h-reveal.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .h-reveal { opacity: 1; transition: none; } }

/* The wall has to be up before the scripts run, or the page flashes first. */
kcd-entrance:not(:defined) { display: block; position: fixed; inset: 0; z-index: 49; background: #2c1c6b; animation: h-unblock 0s 9s forwards; }
html[data-entered] kcd-entrance { display: none; }
@keyframes h-unblock { to { visibility: hidden; } }
/* No scrolling while the door is up. */
html { scrollbar-gutter: stable; }
html:not([data-entered]) { overflow: hidden; background: #2c1c6b; }

/* <kcd-album>. The pages are ordinary page content, so these styles live outside the component. */
.kb-book { position: relative; width: min(100%, 1040px); aspect-ratio: 8 / 5; margin-inline: auto; perspective: 1500px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.kb-book:active { cursor: grabbing; }
.kb-cover { position: absolute; inset: -12px -14px; border-radius: 8px;
  background: var(--h-grain-warm) 0 0 / 150px, radial-gradient(120% 100% at 30% 20%, var(--h-tan), var(--h-copper) 55%, color-mix(in srgb, var(--h-copper) 70%, var(--h-ink)));
  box-shadow: 0 28px 46px rgb(80 45 25 / .38), inset 0 0 0 1px rgb(255 255 255 / .12), inset 0 0 30px rgb(60 30 15 / .35); }
/* Saddle stitching around the edge of the leather */
.kb-cover::after { content: ""; position: absolute; inset: 6px; border-radius: 5px; border: 1.5px dashed rgb(231 196 153 / .7); pointer-events: none; }
.kb-side { position: absolute; top: 0; bottom: 0; width: 50%; }
.kb-side.l { left: 0; box-shadow: -3px 0 0 #eddcbc, -6px 0 0 #dcc49c; }
.kb-side.r { left: 50%; box-shadow: 3px 0 0 #eddcbc, 6px 0 0 #dcc49c; }
.kb-sheet { position: absolute; top: 0; left: 0; width: var(--kb-pw); height: 100%; overflow: hidden; background: var(--h-paper); }
.kb-sheet > * { position: absolute !important; inset: 0; }
.kb-sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.kb-l::after { background: linear-gradient(90deg, rgb(90 50 25 / 0) 86%, rgb(90 50 25 / .26)); }
.kb-r::after { background: linear-gradient(270deg, rgb(90 50 25 / 0) 86%, rgb(90 50 25 / .26)); }
.kb-flip { position: absolute; z-index: 3; top: 0; left: 50%; width: 50%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; pointer-events: none; will-change: transform; }
.kb-strip { position: absolute; top: 0; left: 100%; width: 100%; height: 100%; transform-origin: 0 50%; transform-style: preserve-3d; will-change: transform; }
.kb-strip.first { left: 0; width: calc(100% / 8); }
.kb-face { position: absolute; top: 0; left: 0; width: calc(100% + 1px); height: 100%; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.kb-face.b { left: -1px; transform: rotateY(180deg); }
.kb-shade { position: absolute; inset: 0; background: #4a2c18; opacity: 0; will-change: opacity; }
.kb-cast { position: absolute; z-index: 2; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, rgb(90 50 25 / 0) 30%, rgb(90 50 25 / .3) 50%, rgb(90 50 25 / 0) 70%); }
.kb-rings { position: absolute; z-index: 4; left: 50%; top: 5%; bottom: 5%; width: 40px; margin-left: -20px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='64' fill='none'%3E%3Ccircle cx='7' cy='32' r='3.4' fill='%235a3520' fill-opacity='.5'/%3E%3Ccircle cx='33' cy='32' r='3.4' fill='%235a3520' fill-opacity='.5'/%3E%3Cpath d='M7 32C7 22 33 22 33 32' stroke='%238f5432' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M9 30C12 26 28 26 31 30' stroke='%23e7c499' stroke-width='1'/%3E%3C/svg%3E") center / 40px 64px repeat-y; }
@media (max-width: 640px) {
  .kb-book { aspect-ratio: 5 / 4; }
  .kb-rings { width: 26px; margin-left: -13px; background-size: 26px 42px; }
}


  /* The FAQ: parchment ground, royal headings, copper accents, the same bar and footer as the main page */
  * { box-sizing: border-box; }
  html { background: #e9dcc5; scroll-padding-top: 90px; }
  body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--h-ink); font: 400 17px/1.6 var(--h-sans);
    background: var(--h-grain-warm) 0 0 / 200px, radial-gradient(120% 80% at 50% 0%, #efe4d0, #e9dcc5 60%, #e1d0b2); }
  a:focus-visible, summary:focus-visible { outline: 2px solid var(--h-copper); outline-offset: 4px; }
  .wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--h-gutter); }

  /* The same bar as the main page, in its light-section colours */
  .topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 45; background: #e9dcc5; color: #2a1a5e; box-shadow: 0 2px 0 rgb(63 41 144 / .45), 0 8px 18px rgb(31 18 72 / .1); }
  .nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 6px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; margin-left: clamp(6px, 1.8vw, 30px); }
  .brand img { display: block; height: clamp(36px, 2.9vw, 42px); width: auto; }
  .nav-links { display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); }
  .nav-a { position: relative; display: inline-block; padding: 8px 2px 12px; color: inherit; text-decoration: none; font: 500 19px/1.3 var(--h-serif); letter-spacing: .01em; }
  .nav-a .roll { display: inline-grid; height: 1.3em; overflow: clip; text-align: center; }
  .nav-a .roll span { display: block; height: 1.3em; transition: transform .45s cubic-bezier(.3,.9,.3,1); }
  .nav-a .roll [lang="mr"] { font: 600 16px/1.55 "Poppins", sans-serif; color: var(--h-saffron); }
  .nav-a:hover .roll span, .nav-a:focus-visible .roll span { transform: translateY(-100%); }
  .nav-a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 14px; height: 14px; margin-left: -7px; background: var(--h-saffron); -webkit-mask: var(--h-petals) center / contain no-repeat; mask: var(--h-petals) center / contain no-repeat; transform: scale(0) rotate(-90deg); transition: transform .45s cubic-bezier(.3,1.3,.5,1); }
  .nav-a:hover::after, .nav-a:focus-visible::after, .nav-a[aria-current]::after { transform: none; }

  /* Full width always: otherwise opening a long answer widens the column and the whole page shifts sideways */
  main { flex: 1; width: 100%; padding-block: calc(64px + clamp(40px, 6vw, 84px)) clamp(48px, 7vw, 100px); }
  .kicker { margin: 0 0 8px; font: 500 16px/1 var(--h-sans); letter-spacing: .24em; text-transform: uppercase; color: var(--h-copper); }
  .kicker [lang="mr"] { font: 600 17px/1 "Poppins", sans-serif; letter-spacing: 0; }
  h1 { margin: 0; font: 500 clamp(30.8px, 4.851vw, 69.3px)/1 var(--h-serif); letter-spacing: -.025em; color: var(--h-royal); }
  /* Set like the main page's section text (.sec-sub) */
  .lead { max-width: 40em; margin: 18px 0 0; font-size: clamp(19px, 1.7vw, 23px); line-height: 1.35; text-wrap: pretty; }

  .faq { max-width: 880px; margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 14px; }
  .faq details { background: rgb(250 241 225 / .7); border: 1.5px solid rgb(188 113 72 / .35); border-radius: 12px; box-shadow: 0 6px 16px rgb(80 45 25 / .07); }
  .faq details[open] { background: #faf1e1; border-color: rgb(188 113 72 / .6); }
  .faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font: 400 clamp(21px, 2vw, 26px)/1.2 var(--h-serif); color: var(--h-royal); }
  .faq summary::-webkit-details-marker { display: none; }
  /* A plus that turns into a minus */
  .faq summary::after { content: ""; flex: none; width: 18px; height: 18px; background: linear-gradient(var(--h-copper), var(--h-copper)) center / 100% 2.5px no-repeat, linear-gradient(var(--h-copper), var(--h-copper)) center / 2.5px 100% no-repeat; transition: transform .3s; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq .a { padding: 0 22px 20px; }
  .faq .a p { margin: 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.35; text-wrap: pretty; }
  .faq .a p + p { margin-top: 10px; }
  .faq .a a { color: var(--h-copper); text-underline-offset: 4px; }

  .more { max-width: 600px; margin-top: 32px; padding: 12px 14px 12px 20px; border-radius: 10px; background: var(--h-royal); color: var(--h-cream); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
  .more p { margin: 0; font-size: 18px; }
  .more .h-btn { --btn-bg: var(--h-cream); --btn-ink: var(--h-royal); min-height: 40px; padding: 0 18px; font-size: 15px; }

  footer { background: var(--h-night); color: var(--h-sand); font-size: 15px; padding-block: 26px 34px; }
  footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; }
  footer .brand img { height: 40px; }
  .foot-meta { margin-left: auto; display: grid; justify-items: end; gap: 12px; text-align: right; }
  .foot-links { display: flex; align-items: center; gap: 8px; }
  @media (max-width: 640px) { .foot-meta { margin-left: 0; justify-items: start; text-align: left; } }
  .foot-links a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--h-cream); background: rgb(243 226 201 / .1); transition: background .2s, color .2s; }
  .foot-links a:hover { background: var(--h-apricot); color: var(--h-night); }
  .foot-links svg { width: 15px; height: 15px; fill: currentColor; }
  .foot-links .faq-link { width: auto; padding: 0 12px; border-radius: 999px; font: 500 13px/1 var(--h-sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
  footer p { margin: 0; opacity: .8; }
  /* Phones: a menu button in place of the links; they open in a panel under the bar */
  .menu-btn { display: none; }
  @media (max-width: 860px) {
    .menu-btn { display: grid; place-content: center; gap: 5px; width: 44px; height: 44px; margin-right: 2px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; }
    .menu-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
    .menu-btn span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .3s cubic-bezier(.3,.9,.3,1), opacity .2s; }
    .menu-open .menu-btn span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
    .menu-open .menu-btn span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
    .nav-links { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px var(--h-gutter) 16px;
      background: #faf1e1; color: #2a1a5e; border-top: 2px solid rgb(63 41 144 / .3); box-shadow: 0 16px 28px rgb(31 18 72 / .2); }
    .menu-open .nav-links { display: flex; }
    .nav-links .nav-a { display: block; padding: 13px 4px; font-size: 24px; border-bottom: 1px solid rgb(63 41 144 / .12); }
    .nav-links .nav-a:last-of-type { border-bottom: 0; }
    .nav-links .nav-a::after { display: none; }
    .nav-links .nav-a[aria-current] { color: var(--h-copper); }
  }
  /* Footer: about KCD Pune with its social pages, then two columns of links, then the legal line */
  .foot-wrap { display: block !important; }
  .foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(24px, 5vw, 72px); padding-block: 12px 8px; }
  .foot-about .foot-logo, .foot-about img { display: block; height: 46px; width: auto; }
  .foot-grid .foot-blurb { max-width: 30em; margin: 14px 0 18px; font-size: 18px; line-height: 1.4; color: var(--h-cream); opacity: .85; }
  .foot-about .foot-links { margin-left: 0; gap: 10px; }
  .foot-about .foot-links a { width: 40px; height: 40px; background: none; border: 1.5px solid rgb(243 226 201 / .35); }
  .foot-about .foot-links a:hover { background: var(--h-apricot); border-color: var(--h-apricot); color: var(--h-night); }
  .foot-about .foot-links svg { width: 18px; height: 18px; }
  .foot-col h4 { margin: 4px 0 12px; font: 500 16px/1 var(--h-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--h-cream); }
  .foot-col a { display: block; width: fit-content; padding: 5px 0; font-size: 18px; line-height: 1.3; color: var(--h-sand); text-decoration: none; opacity: .85; transition: color .2s, opacity .2s; }
  .foot-col a:hover { color: var(--h-apricot); opacity: 1; }
  /* Phones: the about block across the top, the two link columns side by side under it */
  @media (max-width: 760px) { .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; } .foot-about { grid-column: 1 / -1; } }

/* ==========================================================================
   PART 2: the badge maker (.kcd-badge-*), in the 1990 heritage look:
   parchment cards with copper borders, royal ink, saffron accents and petals.
   ========================================================================== */
.kcd-badge { --kb-card: rgb(250 241 225 / .78); }
/* A studio-counter strip, the heritage cousin of 2027's metro ticket head */
.kcd-badge-tk { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; margin: clamp(26px, 4vw, 42px) 0 0; padding-bottom: 14px; border-bottom: 1.5px dashed rgb(188 113 72 / .55); font: 500 14px/1.2 var(--h-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--h-copper); }
.kcd-badge-tk span { display: inline-flex; align-items: center; gap: 10px; }
.kcd-badge-tk span [lang="mr"] { font: 600 15px/1 "Poppins", sans-serif; letter-spacing: 0; text-transform: none; color: var(--h-saffron); }
.kcd-badge-tk i { width: 14px; height: 14px; background: var(--h-saffron); -webkit-mask: var(--h-petals) center / contain no-repeat; mask: var(--h-petals) center / contain no-repeat; }
.kcd-badge-tk .kcd-badge-tk-type { padding: 6px 14px; border: 1.5px solid var(--h-royal); border-radius: 999px; color: var(--h-royal); background: rgb(63 41 144 / .07); }
@media (max-width: 640px) { .kcd-badge-tk { font-size: 12px; letter-spacing: .12em; } .kcd-badge-tk .kcd-badge-tk-meta { display: none; } }

.kcd-badge-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: clamp(24px, 3vw, 36px); }
@media (max-width: 860px) { .kcd-badge-grid { grid-template-columns: minmax(0, 1fr); } }

/* Parchment card, same recipe as .faq details on 1990/faq.html, with a copper rule that deepens on focus */
.kcd-badge-card { --n: var(--h-copper); position: relative; background: var(--kb-card); border: 1.5px solid rgb(188 113 72 / .4); border-radius: 12px; box-shadow: 0 6px 16px rgb(80 45 25 / .08); transition: border-color .3s, box-shadow .3s; }
.kcd-badge-card:hover, .kcd-badge-card:focus-within { border-color: rgb(188 113 72 / .75); box-shadow: 0 10px 24px rgb(80 45 25 / .12); }

.kcd-badge-stage { width: 100%; max-width: 620px; margin-inline: auto; padding: clamp(10px, 1.6vw, 16px); }
.kcd-badge-canvas-wrap { position: relative; aspect-ratio: 1 / 1; border-radius: 8px; overflow: hidden; background: #e7d6bb; touch-action: none; cursor: grab; outline: none; }
.kcd-badge-canvas-wrap:active { cursor: grabbing; }
.kcd-badge-canvas-wrap:focus-visible { outline: 3px solid var(--h-copper); outline-offset: 3px; }
.kcd-badge-canvas-wrap.is-empty { cursor: pointer; }
.kcd-badge-canvas-wrap.is-drop { box-shadow: inset 0 0 0 4px var(--h-saffron); }
.kcd-badge-canvas { display: block; width: 100%; height: 100%; }
.kcd-badge-hint { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%); margin: 0; padding: 10px 18px; border-radius: 999px; background: rgb(42 26 94 / .85); color: var(--h-cream); font: 500 16px/1.2 var(--h-sans); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.kcd-badge-canvas-wrap:not(.is-empty) .kcd-badge-hint { opacity: 0; }

.kcd-badge-panel { display: grid; gap: 18px; }
.kcd-badge-step { padding: 18px 20px 20px; }
.kcd-badge-step h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font: 500 clamp(22px, 2vw, 27px)/1.15 var(--h-serif); letter-spacing: -.025em; color: var(--h-royal); }
.kcd-badge-no { display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--h-royal); color: var(--h-cream); font: 500 15px/1 var(--h-sans); letter-spacing: .02em; }
.kcd-badge-step p { margin: 0 0 12px; font-size: 18px; line-height: 1.35; color: var(--h-ink); }
.kcd-badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kcd-badge-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.kcd-badge-btn { cursor: pointer; font-family: var(--h-sans); }
.kcd-badge-btn.is-primary { --btn-bg: var(--h-royal); --btn-ink: var(--h-paper); }
.kcd-badge-btn.is-ghost { --btn-bg: transparent; --btn-ink: var(--h-royal); border-color: rgb(63 41 144 / .55); }
.kcd-badge-btn.is-ghost:hover { --btn-bg: var(--h-royal); --btn-ink: var(--h-paper); }
.kcd-badge-btn.is-small { min-height: 42px; padding: 0 16px; font-size: 15px; }
.kcd-badge-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none !important; }
#kcd-badge-download:not(.is-ready) { opacity: .8; }

.kcd-badge-seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgb(63 41 144 / .1); }
.kcd-badge-seg button { min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: none; color: var(--h-royal); font: 500 16px/1 var(--h-sans); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.kcd-badge-seg button[aria-pressed="true"] { background: var(--h-royal); color: var(--h-paper); }
.kcd-badge-seg button:focus-visible { outline: 2px solid var(--h-copper); outline-offset: 2px; }

.kcd-badge-zoom { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-top: 14px; }
.kcd-badge-zoom label { font: 500 15px/1 var(--h-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--h-copper); }
.kcd-badge-zoom input[type="range"] { width: 100%; accent-color: var(--h-royal); min-height: 32px; }
.kcd-badge-zoom output { min-width: 3.2em; text-align: right; font: 500 16px/1 var(--h-sans); color: var(--h-ink); }
.kcd-badge-tip { margin-top: 10px !important; font-size: 16px !important; opacity: .78; }

/* Caption options: radio cards on parchment */
.kcd-badge-label { display: block; margin-bottom: 8px; font: 500 15px/1.2 var(--h-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--h-copper); }
.kcd-badge-captions { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.kcd-badge-captions legend { padding: 0; margin-bottom: 10px; }
.kcd-badge-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 420px) { .kcd-badge-chips { grid-template-columns: minmax(0, 1fr); } }
.kcd-badge-chip { --c: var(--h-royal); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: center; min-height: 56px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid rgb(188 113 72 / .35); background: #fffaf1; color: var(--h-ink); cursor: pointer; transition: border-color .25s, box-shadow .25s, background .25s; }
.kcd-badge-chip:hover { border-color: rgb(188 113 72 / .7); }
.kcd-badge-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.kcd-badge-chip-dot { grid-row: 1 / span 2; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--h-royal); box-shadow: inset 0 0 0 3px #fffaf1; transition: background .2s; }
.kcd-badge-chip-title { font: 500 17px/1.15 var(--h-sans); letter-spacing: .02em; color: var(--h-royal); }
.kcd-badge-chip-sub { font: 400 13px/1.3 var(--h-sans); color: rgb(42 26 94 / .75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcd-badge-chip:has(input:checked), .kcd-badge-chip.is-checked { border-color: var(--h-copper); background: var(--h-cream); box-shadow: 0 4px 12px rgb(80 45 25 / .12); }
.kcd-badge-chip:has(input:checked) .kcd-badge-chip-dot, .kcd-badge-chip.is-checked .kcd-badge-chip-dot { background: var(--h-saffron); border-color: var(--h-saffron); }
.kcd-badge-chip:has(input:focus-visible) { outline: 2px solid var(--h-copper); outline-offset: 3px; }
.kcd-badge-caption-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.kcd-badge-edit-note { letter-spacing: .04em; text-transform: none; color: rgb(42 26 94 / .7); }
.kcd-badge-count { font: 500 12px/1 ui-monospace, SFMono-Regular, Consolas, monospace; color: rgb(42 26 94 / .7); }
.kcd-badge-count.is-long { color: var(--h-saffron); }
.kcd-badge-caption { display: block; width: 100%; min-height: 190px; padding: 12px 14px; border: 1.5px solid rgb(63 41 144 / .3); border-radius: 10px; background: #fffaf1; color: var(--h-ink); font: 400 16px/1.5 var(--h-sans); resize: vertical; }
.kcd-badge-caption:focus-visible { outline: 2px solid var(--h-copper); outline-offset: 2px; }
.kcd-badge-restore { margin-top: 8px; padding: 4px 0; border: 0; background: none; color: var(--h-royal); font: 500 15px/1.2 var(--h-sans); letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.kcd-badge-restore:focus-visible { outline: 2px solid var(--h-copper); outline-offset: 2px; }
.kcd-badge-status { min-height: 1.4em; margin: 10px 0 0 !important; font-size: 16px !important; color: var(--h-saffron) !important; }

.kcd-badge-privacy { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 16px; border-radius: 10px; background: var(--h-royal); color: var(--h-cream); font-size: 17px; line-height: 1.35; }
.kcd-badge-privacy::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 2px; background: var(--h-apricot); -webkit-mask: var(--h-petals) center / contain no-repeat; mask: var(--h-petals) center / contain no-repeat; }
@media (prefers-reduced-motion: reduce) { .kcd-badge-hint, .kcd-badge-card, .kcd-badge-chip { transition: none; } }
