/* Kannanware calendar pages. Brand tokens taken from kannanware.com */
:root {
  --gold: #faab18;
  --gold-soft: #fef1d6;
  --ink: #1d1d1f;
  --navy: #0a1b3d;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --bg2: #f4f4f7;
  --radius: 12px;
  --wrap: 1040px;
  --font: "72", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 3.4vw, 1.9rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.08rem; font-weight: 600; }
p { margin: 0 0 1em; }

#app[aria-busy="true"]::before {
  content: ""; display: block; width: 32px; height: 32px; margin: 40vh auto 0;
  border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* top bar */
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px max(20px, calc((100vw - var(--wrap)) / 2));
  background: rgba(255,255,255,.88); backdrop-filter: saturate(1.5) blur(12px); -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 40px; width: auto; }
.campaign { font-size: .82rem; color: var(--muted); text-decoration: none; text-align: right; }
.campaign b { color: var(--ink); }

/* month rail */
.rail {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  padding: 12px max(20px, calc((100vw - var(--wrap)) / 2)); border-bottom: 1px solid var(--line);
}
.rail::-webkit-scrollbar { display: none; }
.rail-item {
  flex: 0 0 auto; font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-decoration: none;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink);
}
a.rail-item:hover { border-color: var(--gold); }
.rail-item.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail-item.is-locked { color: #b0b0b5; border-style: dashed; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* hero */
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(28px, 5vw, 48px); position: relative; }
.hero-month {
  font-size: clamp(3.5rem, 16vw, 8.5rem); font-weight: 900; line-height: .9; letter-spacing: -.04em;
  color: var(--gold); margin-bottom: 20px;
}
.hero-month span { font-size: .22em; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-left: .5em; vertical-align: top; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--gold-soft); padding: 4px 10px; border-radius: 6px; margin-bottom: 14px; }
.lede { font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: #3a3a3c; max-width: 44ch; }
.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img { margin-top: 32px; border-radius: var(--radius); width: 100%; max-height: 460px; object-fit: cover; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  background: var(--gold); color: var(--ink); font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  border: 0; border-radius: 10px; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { box-shadow: 0 6px 20px rgba(250,171,24,.35); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: progress; transform: none; }
.btn-ghost { background: transparent; padding: 0; min-height: 0; margin-top: 16px; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.btn-ghost:hover { box-shadow: none; }
.btn-dark { background: var(--ink); color: #fff; }

/* blocks */
.block { padding: clamp(28px, 5vw, 48px) 0; border-top: 1px solid var(--line); }
.prose { max-width: 68ch; }
.prose ul, .block ul { padding-left: 1.1em; margin: 0 0 1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--gold); }
.intro { font-size: 1.08rem; }
.block-img { margin-top: 20px; border-radius: var(--radius); }
figure { margin: 0; } figure img { border-radius: var(--radius); }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
blockquote { margin: 0; padding-left: 22px; border-left: 4px solid var(--gold); font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 600; }
cite { display: block; font-size: .9rem; font-style: normal; color: var(--muted); margin-top: 8px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 16px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li { display: grid; grid-template-columns: 44px 56px 1fr; gap: 12px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); }
.step-n { font-weight: 900; color: var(--gold); font-size: 1.1rem; }
.step-when { font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.step-what { font-weight: 600; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.metric { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 22px; }
.metric-v { font-size: clamp(1.8rem, 5vw, 2.4rem); font-weight: 900; color: var(--gold); letter-spacing: -.02em; line-height: 1.1; }
.metric-l { margin-top: 6px; color: #d6dae3; font-size: .95rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { background: var(--bg2); border-radius: var(--radius); padding: 22px; }
.card h3 { position: relative; padding-top: 14px; }
.card h3::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 3px; background: var(--gold); border-radius: 2px; }
.card p { margin: 0; color: #3a3a3c; font-size: .96rem; }

.cta-block { background: var(--navy); color: #fff; border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); border: 0; margin: 24px 0; }
.cta-block p { color: #d6dae3; max-width: 52ch; }

/* lead form */
.lead { background: var(--bg2); border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); max-width: 560px; }
.lead-form { display: grid; gap: 14px; }
.lead-form label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.lead-form input {
  font: inherit; font-size: 16px; min-height: 48px; padding: 0 14px; border: 1px solid #d1d1d6; border-radius: 10px; background: #fff; color: var(--ink);
}
.lead-form input:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.form-note { margin: 0; font-size: .9rem; color: #b42318; min-height: 1.2em; }

/* updates */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.update-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.update { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; background: #fff; transition: border-color .15s, transform .15s; }
a.update:hover { border-color: var(--gold); transform: translateY(-2px); }
.update[hidden] { display: none; }
.update img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.update-body { padding: 18px; }
.update-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .8rem; color: var(--muted); }
.pill { background: var(--gold-soft); color: var(--ink); font-weight: 700; padding: 3px 9px; border-radius: 6px; letter-spacing: .03em; }
.update p { margin: 0; font-size: .94rem; color: #3a3a3c; }

/* single update (WordPress post) */
.post-back { display: inline-block; margin: 0 0 20px; }
.post-meta { justify-content: flex-start; gap: 14px; font-size: .85rem; }
.post h1 { max-width: 30ch; }
.wp-content { max-width: 72ch; border-top: 0; padding-top: 0; }
.wp-content h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.wp-content h3 { font-size: 1.2rem; margin: 1.4em 0 .4em; }
.wp-content a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.wp-content img { height: auto; border-radius: var(--radius); }
.wp-content figure { margin: 1.5em 0; }
.wp-content ol { padding-left: 1.3em; }
.wp-content table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1em 0; display: block; overflow-x: auto; }
.wp-content th, .wp-content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.wp-content blockquote { margin: 1.5em 0; }
.wp-content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); }
.wp-content .wp-block-embed__wrapper { position: relative; }
.wp-content .wp-block-gallery, .wp-content .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; padding: 0; list-style: none; }
.wp-content .wp-block-gallery figure, .wp-content .gallery figure, .wp-content .gallery-item { margin: 0; }
.wp-content .wp-block-gallery img, .wp-content .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.wp-content .wp-block-image.aligncenter, .wp-content .aligncenter { text-align: center; margin-left: auto; margin-right: auto; }
.wp-content .wp-block-button__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 700; text-decoration: none; }

/* landing grid */
.month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mg { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 150px; }
a.mg:hover { border-color: var(--gold); }
.mg-m { font-weight: 900; font-size: 1.3rem; color: var(--gold); }
.mg-k { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mg-t { font-weight: 600; }
.mg.is-locked { background: var(--bg2); border-style: dashed; }
.mg.is-locked .mg-m { color: #b0b0b5; }
.mg-lock { margin-top: auto; font-size: .8rem; color: var(--muted); }

/* footer */
.footer { margin-top: 48px; padding: 40px max(20px, calc((100vw - var(--wrap)) / 2)); background: var(--bg2); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer p { margin: 0; font-size: .85rem; color: var(--muted); }

.error { padding: 20vh 20px; text-align: center; }

@media (max-width: 520px) {
  .steps li { grid-template-columns: 34px 1fr; }
  .step-when { grid-column: 2; }
  .step-what { grid-column: 2; }
  .campaign { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* page nav labels */
.rail-item small { font-weight: 500; letter-spacing: .02em; opacity: .65; margin-left: 4px; text-transform: none; }
.btn-outline { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn-outline:hover { box-shadow: inset 0 0 0 2px var(--ink); }

/* road map timeline */
.rm-progress { margin: 4px 0 28px; }
.rm-progress p { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }
.rm-progress a { color: var(--ink); font-weight: 600; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.rm-bar { height: 8px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.rm-bar span { display: block; height: 100%; background: var(--gold); border-radius: 999px; }
.rm { list-style: none; margin: 0; padding: 0; position: relative; }
.rm::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: var(--line); }
.rm-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 0 0 14px; scroll-margin-top: 90px; }
.rm-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--ink); color: #fff; }
.rm-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.rm-card h3 { margin: 6px 0 4px; font-size: 1.12rem; }
.rm-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rm-badge { background: var(--gold); color: var(--ink); padding: 3px 9px; border-radius: 6px; }
.rm-step.is-now .rm-dot { background: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px var(--gold-soft); }
.rm-step.is-now .rm-card { border: 2px solid var(--gold); box-shadow: 0 10px 30px rgba(250,171,24,.15); }
.rm-step.is-now .prose { margin-top: 10px; }
.rm-step.is-locked .rm-dot { background: #fff; color: #b0b0b5; border: 2px dashed #d1d1d6; }
.rm-step.is-locked .rm-card { background: var(--bg2); border-style: dashed; }
.rm-step.is-locked h3 { color: #8e8e93; }
.rm-lock { margin: 0; font-size: .9rem; color: var(--muted); }
.rm details { margin-top: 6px; }
.rm summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--ink); list-style: none; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.rm summary::-webkit-details-marker { display: none; }
.rm details[open] summary { margin-bottom: 10px; }
.timeline { font-size: .95rem; color: var(--muted); margin: -4px 0 0; }
.timeline b { color: var(--ink); }
.rm-card h3 a { text-decoration: none; }
.rm-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* journey strip (month pages) */
.journey { }
.j-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.j-head h2 { margin: 0; }
.j-head a { font-size: .92rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.j-note { color: var(--muted); font-size: .92rem; margin: 6px 0 18px; }
.j-track { list-style: none; margin: 0 0 22px; padding: 0; display: flex; justify-content: space-between; position: relative; }
.j-track::before, .j-track::after { content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 3px; transform: translateY(-50%); border-radius: 3px; background: var(--line); }
.j-track::after { right: auto; width: calc((100% - 24px) * var(--p) / 100%); width: calc((100% - 24px) * (var(--p) / 100%)); background: var(--gold); }
.j-dot { position: relative; z-index: 1; }
.j-dot a, .j-dot > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; text-decoration: none; font-size: 0; background: #fff; border: 2px solid var(--line); }
.j-dot.is-done a, .j-dot.is-done > span { background: var(--gold); border-color: var(--gold); }
.j-dot.is-now > span { width: 34px; height: 34px; margin: -5px; background: var(--ink); border-color: var(--ink); color: #fff; font-size: .82rem; font-weight: 800; box-shadow: 0 0 0 5px var(--gold-soft); }
.j-dot.is-next a, .j-dot.is-next > span { border-style: dashed; border-color: #c7c7cc; }
.j-dot a:hover { border-color: var(--ink); }
.j-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.j-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 96px; }
a.j-card:hover { border-color: var(--gold); }
.j-card.is-empty { border: 0; }
.j-next { text-align: right; }
.j-dir { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.j-title { font-weight: 700; line-height: 1.3; }
.j-when { font-size: .82rem; color: var(--muted); margin-top: auto; }
.j-card.is-locked { background: var(--bg2); border-style: dashed; }
.j-card.is-locked .j-title { color: #8e8e93; }
.rm-sub { margin: 2px 0 0; font-size: .92rem; color: #3a3a3c; }
@media (max-width: 420px) { .j-dot a, .j-dot > span { width: 18px; height: 18px; } .j-track::before, .j-track::after { left: 9px; right: 9px; } }

/* summary page */
.rail-summary { background: var(--gold-soft); border-color: var(--gold); }
.rail-summary.is-current { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.gantt { --label: 230px; }
.g-axis { display: grid; grid-template-columns: var(--label) 1fr; gap: 12px; margin-bottom: 6px; }
.g-ticks { position: relative; height: 18px; border-bottom: 1px solid var(--line); }
.g-ticks span { position: absolute; transform: translateX(-50%); font-size: .72rem; font-weight: 700; color: var(--muted); }
.g-ticks span:first-child { transform: none; }
.g-ticks span:last-child { transform: translateX(-100%); }
.g-rows { list-style: none; margin: 0; padding: 0; }
.g-row { display: grid; grid-template-columns: var(--label) 1fr; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--bg2); }
.g-label { font-size: .9rem; font-weight: 600; text-decoration: none; line-height: 1.25; }
.g-label b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; margin-right: 6px; }
.g-label:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.g-lane { position: relative; height: 22px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--bg2) calc(100% / 7 - 1px) calc(100% / 7)); }
.g-bar { position: absolute; top: 3px; bottom: 3px; background: var(--gold); border-radius: 6px; min-width: 6px; }
.g-bar.is-ongoing { background: linear-gradient(90deg, var(--navy), rgba(10,27,61,.15)); }
.g-time { display: none; }
@media (max-width: 640px) {
  .gantt { --label: 1fr; }
  .g-axis { grid-template-columns: 1fr; }
  .g-axis-pad { display: none; }
  .g-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .g-time { display: block; position: absolute; right: 0; top: -20px; font-style: normal; font-size: .75rem; color: var(--muted); }
}
