:root {
  color-scheme: light;
  --ink: #3a1d12;
  --muted: #6b4f3a;
  --kumkum: #a3201b;
  --kumkum-dark: #7d1410;
  --gold: #c8962e;
  --gold-dark: #8a6212;
  --turmeric: #f2c230;
  --leaf: #2f6b2a;
  --line: #ead7a8;
  --paper: #fffdf6;
  --wash: #fff4d6;
  font-family: "Noto Sans Tamil", sans-serif;
  color: var(--ink);
  background: #fff8e7;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; font-size: 14px; line-height: 1.8; background-image: radial-gradient(#d9b45a66 .8px, transparent .8px); background-size: 20px 20px; }
body.services-hub,
body.exam-services {
  --ink: #183b3a;
  --muted: #526f6c;
  --kumkum: #17666a;
  --kumkum-dark: #103f43;
  --gold: #e8795a;
  --gold-dark: #b94d37;
  --turmeric: #ffd6c7;
  --leaf: #38766d;
  --line: #d2e6e2;
  --paper: #fcfefd;
  --wash: #eaf6f4;
  background-color: #f3f8f7;
  background-image: radial-gradient(#8ebbb266 .8px, transparent .8px);
}
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select, input[type="checkbox"] { cursor: pointer; }
button { line-height: 1.6; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: var(--kumkum-dark); }
:focus-visible { outline: 3px solid var(--leaf); outline-offset: 3px; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; padding: 10px; background: white; }
.skip-link:focus { top: 8px; }
.site-header { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 16px max(24px, calc((100% - 1140px) / 2)); background: var(--paper); border-top: 4px solid var(--kumkum); border-bottom: 2px solid var(--gold); }
/* Thoranam: mango leaves alternating with marigold flowers hanging from a gold string. */
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 26px; pointer-events: none; z-index: 1;
  background:
    radial-gradient(circle 3px at 50% 8px, #f9d14a 92%, transparent 100%) 17px 0 / 34px 26px repeat-x,
    radial-gradient(circle 6px at 50% 8px, #f29d12 92%, transparent 100%) 17px 0 / 34px 26px repeat-x,
    radial-gradient(ellipse 8px 18px at 50% 0, var(--leaf) 94%, transparent 100%) 0 0 / 34px 26px repeat-x; }
body.services-hub .site-header::after,
body.exam-services .site-header::after { display: none; }
.brand { display: inline-flex; gap: 9px; align-items: center; text-decoration: none; color: var(--kumkum-dark); font-size: 20px; font-weight: 700; }
.brand img { object-fit: contain; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.header-actions select { width: auto; min-height: 42px; }
.language-label { color: var(--muted); font-size: 12px; }
.workspace { max-width: 1140px; margin: 0 auto; padding: 40px 24px 60px; min-height: 80vh; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { color: var(--gold-dark); font-size: 12px; margin: 0 0 6px; font-weight: 600; }
.eyebrow::before { content: "ௐ" / ""; display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: var(--kumkum); color: var(--turmeric); font-size: 15px; font-weight: 700; line-height: 1; vertical-align: middle; box-shadow: 0 0 0 2px var(--gold); }
h1 { font-size: 25px; line-height: 1.65; font-weight: 700; margin: 0; max-width: 800px; overflow-wrap: anywhere; color: var(--kumkum-dark); }
h2 { font-size: 19px; line-height: 1.7; margin: 22px 0 18px; }
h3 { font-size: 16px; line-height: 1.75; margin: 0 0 10px; }
p { margin: 0 0 12px; }
.guest-label { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.tradition-note { max-width: 900px; color: var(--muted); font-size: 12px; margin: 14px 0 24px; }
.view-nav { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.view-nav button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 0; color: var(--muted); white-space: nowrap; }
.view-nav button[aria-current] { border-color: var(--kumkum); color: var(--kumkum-dark); font-weight: 600; }
body.services-hub .eyebrow::before,
body.exam-services .eyebrow::before { display: none; }
.hub-intro { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.service-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 34px; }
.service-hub-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 300px; padding: 26px; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 7px; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.service-hub-card:hover { transform: translateY(-3px); background: var(--wash); box-shadow: 0 12px 28px #103f4318; }
.hub-card-index { color: var(--gold-dark); font-size: 11px; font-weight: 700; }
.hub-card-title { margin-top: 22px; color: var(--kumkum-dark); font-size: 22px; font-weight: 700; line-height: 1.5; }
.hub-card-english { margin: 3px 0 14px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hub-card-description { margin-bottom: 8px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.hub-card-action { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: auto; padding-top: 18px; color: var(--kumkum); font-size: 13px; font-weight: 700; }
.back-link { margin: 0 0 18px; font-size: 13px; }
.back-link a { color: var(--kumkum-dark); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.exam-page-intro, .exam-guidance { max-width: 900px; color: var(--muted); font-size: 13px; }
.exam-page-intro { margin: 14px 0 24px; }
.exam-tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.exam-tool-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 260px; padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 6px; background: var(--paper); }
.exam-tool-number { color: var(--gold-dark); font-size: 11px; font-weight: 700; }
.exam-tool-card h2 { margin: 12px 0; color: var(--kumkum-dark); font-size: 17px; }
.exam-tool-card p { margin-bottom: 8px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.tool-status { margin-top: auto; padding-top: 10px; color: var(--gold-dark); font-size: 11px; font-weight: 700; }
.exam-guidance { margin-top: 24px; padding: 14px 16px; border-left: 3px solid var(--gold); background: var(--wash); }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; text-decoration: none; width: 100%; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; padding: 20px; background: var(--paper); color: var(--ink); min-height: 194px; transition: border-color .15s, background .15s; }
.service-card:hover:not(:disabled) { border-color: var(--gold); border-top-color: var(--kumkum); background: var(--wash); }
.service-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--kumkum); background: #fde9a8; border: 1px solid var(--gold); border-radius: 50%; margin-bottom: 14px; }
.service-icon svg { width: 23px; height: 23px; grid-area: 1 / 1; }
.service-icon .icon-fallback { grid-area: 1 / 1; font-weight: 700; }
.service-icon:has(svg) .icon-fallback { display: none; }
.service-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--kumkum-dark); }
.service-description { font-size: 12px; color: var(--muted); }
.unavailable { font-size: 12px; color: var(--kumkum); margin-top: 10px; }
.service-card:disabled { opacity: .85; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 5px; border: 1px solid var(--kumkum-dark); padding: 10px 15px; background: var(--kumkum); color: white; text-decoration: none; font-weight: 500; max-width: 100%; overflow-wrap: anywhere; box-shadow: inset 0 -2px 0 var(--gold); }
.button:hover:not(:disabled) { background: var(--kumkum-dark); }
.button.secondary { color: var(--kumkum-dark); border-color: var(--gold); background: var(--paper); box-shadow: none; }
.button.secondary:hover:not(:disabled) { background: var(--wash); }
.button.quiet { background: transparent; color: var(--muted); padding-inline: 8px; border-color: transparent; box-shadow: none; }
.button.danger { background: #fff5f3; color: #aa3429; border-color: #e8b5ad; box-shadow: none; }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }
.button .icon-fallback { display: none; }
.input-panel, .report-panel { padding-top: 24px; max-width: 920px; }
.panel-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.panel-top h2 { margin: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 6px; }
.field label { font-weight: 500; }
.field small, .muted, .form-help { color: var(--muted); font-size: 12px; }
.field input, .field select, .header-actions select { border: 1px solid #c9a96a; border-radius: 4px; padding: 10px; color: var(--ink); background: white; min-width: 0; width: 100%; min-height: 46px; }
.header-actions select { width: auto; }
input[type="date"], input[type="time"], input[type="number"] { font-family: "Noto Sans Tamil", sans-serif; }
fieldset { margin: 0 0 22px; padding: 18px 0 22px; border: 0; border-bottom: 1px solid var(--line); min-width: 0; }
legend { font-size: 16px; font-weight: 600; padding: 0 12px 0 0; color: var(--kumkum-dark); }
.saved-picker { margin-bottom: 18px; max-width: 440px; }
.check-label { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; font-size: 13px; }
.check-label input { flex: 0 0 auto; width: 19px; height: 19px; margin: 3px 0 0; accent-color: var(--kumkum); }
.form-actions, .report-actions, .row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.form-help { margin-bottom: 18px; }
.notice { padding: 12px 15px; border-left: 3px solid var(--gold-dark); background: #fff1c9; margin: 18px 0; font-size: 13px; overflow-wrap: anywhere; }
.inline-status { margin: 16px 0; color: var(--leaf); font-size: 13px; }
.inline-status[data-error="true"] { color: var(--kumkum); }
.inline-status[data-loading="true"]::before { content: ""; display: inline-block; width: 15px; height: 15px; border: 2px solid #f0d9a0; border-top-color: var(--kumkum); border-radius: 50%; margin-right: 9px; vertical-align: middle; animation: spin .9s linear infinite; }
.report-meta { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.report-body { border-top: 2px solid var(--gold); margin-top: 18px; padding-top: 24px; }
.report-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.report-section p, .report-disclaimer { white-space: pre-wrap; overflow-wrap: anywhere; }
.report-disclaimer { font-size: 12px; color: var(--muted); }
.report-actions { margin-top: 22px; }
.quick-match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.quick-match-grid select:disabled { background: var(--wash); color: var(--muted); }
.match-verdict { --tone: #2f6b2a; --tint: #edf5e3; border-left: 5px solid var(--tone); background: var(--tint); padding: 14px 18px; border-radius: 6px; margin-bottom: 22px; box-shadow: inset 0 0 0 1px #e6cf95; }
.match-verdict.level-medium { --tone: #9a6a00; --tint: #fff3c4; }
.match-verdict.level-low { --tone: #a3201b; --tint: #fde8e3; }
.match-verdict strong { display: block; font-size: 19px; color: var(--tone); }
.match-verdict span { color: var(--ink); font-size: 13px; }
.match-verdict p { margin: 8px 0 0; font-size: 13px; color: var(--tone); font-weight: 600; }
.match-profile { width: 100%; border-collapse: collapse; margin-bottom: 22px; font-size: 13px; }
.match-profile caption { text-align: left; font-weight: 600; font-size: 15px; padding-bottom: 8px; }
.match-profile th, .match-profile td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.match-profile thead th { background: var(--wash); color: var(--kumkum-dark); }
.match-profile tbody th { color: var(--muted); font-weight: 500; width: 28%; }
.match-summary { font-size: 18px; font-weight: 600; }
.match-results { list-style: none; padding: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.match-result { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 13px 12px; border-bottom: 1px solid var(--line); border-left: 4px solid #3f8a35; }
.match-result.no-match { border-left-color: #c0362c; }
.match-result p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 13px; }
.match-result strong { font-size: 14px; }
.match-status { border-radius: 4px; padding: 3px 9px; font-size: 12px; font-weight: 600; background: #e5f0d8; color: #25561f; }
.match-result.no-match .match-status { background: #fff0ec; color: #9f3b2e; }
.match-result small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.match-actions { margin-top: 20px; }
.kattam-report { margin-top: 8px; }
.kattam-heading { margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--gold); font-size: 17px; color: var(--kumkum-dark); }
.kattam-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.kattam-figure { margin: 0; }
.kattam-figure figcaption { text-align: center; font-size: 13px; font-weight: 600; margin-top: 6px; }
.kattam-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(64px, auto)); border: 2px solid #7a5a1e; background: #fffaf0; }
.kattam-cell { border: 1px solid #c8a96a; padding: 4px 5px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kattam-cell.is-lagna { background: #fdeccb; box-shadow: inset 0 0 0 2px #b8382b; }
.kattam-sign { color: #8a6d3b; font-size: 10px; line-height: 1.3; }
.kattam-planets { font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.kattam-center { grid-row: 2 / 4; grid-column: 2 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px solid #c8a96a; padding: 6px; }
.kattam-center strong { font-size: 14px; overflow-wrap: anywhere; }
.kattam-center span { color: var(--muted); font-size: 12px; }
.kattam-table caption { text-align: left; font-weight: 600; padding: 10px 0 6px; }
.kattam-table-scroll { overflow-x: auto; max-width: 100%; }
.kattam-note { font-size: 13px; margin: 6px 0; }
.kattam-summary { --tone: #2f6b2a; --tint: #edf5e3; border-left: 5px solid var(--tone); background: var(--tint); padding: 12px 16px; border-radius: 6px; }
.kattam-summary.level-medium { --tone: #9a6a00; --tint: #fff3c4; }
.kattam-summary.level-low { --tone: #a3201b; --tint: #fde8e3; }
.kattam-summary p { margin: 4px 0; font-size: 14px; }
.kattam-summary p:last-child { font-weight: 600; color: var(--tone); }
.match-result.tone-mixed { border-left-color: #e0a800; }
.match-result.tone-mixed .match-status { background: #fff3c4; color: #7a5600; }
.match-result.tone-care { border-left-color: #c0362c; }
.match-result.tone-care .match-status { background: #fde8e3; color: #8f241c; }
.kattam-person { margin: 18px 0 0; font-size: 15px; color: var(--kumkum-dark); }
.kattam-timeline td.tone-good { background: #e5f0d8; color: #25561f; font-weight: 600; }
.kattam-timeline td.tone-mixed { background: #fff3c4; color: #7a5600; font-weight: 600; }
.kattam-timeline td.tone-care { background: #fde8e3; color: #8f241c; font-weight: 600; }
.kattam-timeline tbody th { width: auto; white-space: nowrap; }
.kattam-timeline td:last-child { min-width: 200px; }
.kattam-expert { margin-top: 30px; border: 1px solid var(--gold); border-radius: 6px; padding: 0 14px 6px; background: var(--paper); }
.kattam-expert > summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-weight: 600; color: var(--kumkum-dark); }
.kattam-expert .kattam-heading:first-child { margin-top: 8px; }
.kattam-disclaimer { margin-top: 18px; }
.kattam-preview-label { display: inline-block; margin: 0 0 10px; padding: 2px 12px; border-radius: 999px; background: #fde9a8; border: 1px solid var(--gold); color: var(--kumkum-dark); font-size: 12px; font-weight: 700; }
.kattam-paywall { position: relative; z-index: 1; margin: 28px 0 0; padding: 24px; border: 2px solid var(--gold); border-top: 5px solid var(--kumkum); border-radius: 10px; background: var(--paper); box-shadow: 0 14px 34px #7d141022; text-align: center; }
.kattam-paywall-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--kumkum); color: var(--turmeric); box-shadow: 0 0 0 3px var(--gold); }
.kattam-paywall h3 { margin: 12px 0 2px; color: var(--kumkum-dark); font-size: 19px; }
.kattam-paywall-price { display: block; color: var(--kumkum); font-size: 34px; line-height: 1.3; }
.kattam-paywall p { margin: 6px 0; color: var(--muted); }
.kattam-paywall-list { display: inline-block; margin: 6px 0 16px; padding: 0; list-style: none; text-align: left; }
.kattam-paywall-list li { position: relative; padding: 3px 0 3px 26px; font-size: 13px; }
.kattam-paywall-list li::before { content: "✓" / ""; position: absolute; left: 0; top: 3px; color: var(--leaf); font-weight: 700; }
.kattam-paywall .button { width: min(100%, 420px); min-height: 50px; font-size: 15px; font-weight: 700; }
.kattam-paywall-note { display: block; max-width: 520px; margin: 12px auto 0; color: var(--muted); font-size: 11px; }
.kattam-pay-status:not([hidden]) { display: block; margin: 12px auto 0; max-width: 560px; }
.kattam-part { margin: 34px 0 8px; padding: 10px 14px; border-radius: 8px; background: var(--kumkum-dark); color: var(--turmeric); font-size: 17px; line-height: 1.6; }
.kattam-lead { margin: 6px 0 10px; font-weight: 700; color: var(--kumkum-dark); }
.kattam-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 8px 12px; border: 1px dashed var(--gold); border-radius: 8px; background: var(--wash); color: var(--kumkum-dark); font-size: 13px; font-weight: 600; }
.kattam-teaser svg { width: 16px; height: 16px; flex-shrink: 0; }
.kattam-teaser span { flex: 1 1 220px; }
.kattam-teaser-unlock { border: 0; border-radius: 999px; padding: 4px 14px; background: var(--kumkum); color: #fff; font: inherit; font-size: 12px; cursor: pointer; }
.kattam-teaser-unlock:disabled { opacity: .6; cursor: default; }
.is-blurred { filter: blur(4.5px); color: var(--muted); user-select: none; pointer-events: none; }
.match-result.tone-locked { border-left-color: #c9b98d; }
.match-result.tone-locked .match-status { background: #efe6cf; color: transparent; }
.kattam-unlock-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 12px; margin: 18px 0 0; padding: 10px 14px; border-top: 2px solid var(--gold); border-radius: 10px 10px 0 0; background: #fffdf6f2; box-shadow: 0 -8px 24px #7d141022; }
.kattam-unlock-bar svg { width: 20px; height: 20px; color: var(--kumkum); flex-shrink: 0; }
.kattam-unlock-bar span { flex: 1; font-size: 13px; font-weight: 600; color: var(--kumkum-dark); }
.kattam-unlock-bar .button { min-height: 42px; white-space: nowrap; }
.porutham-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.porutham-side { position: sticky; top: 16px; display: grid; gap: 16px; padding-top: 24px; }
.porutham-side:empty { display: none; }
.side-card { padding: 14px; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 8px; background: var(--paper); }
.side-card h2 { margin: 0 0 8px; font-size: 15px; color: var(--kumkum-dark); }
.side-card .button { width: 100%; }
.side-admin { margin: 0; padding: 8px 10px; border-radius: 6px; background: #e5f0d8; color: #25561f; font-size: 13px; font-weight: 600; }
.side-credits { margin: 0 0 10px; font-weight: 600; }
.side-pack { display: grid; gap: 6px; margin-top: 12px; padding: 10px; border: 1px dashed var(--gold); border-radius: 8px; background: var(--wash); text-align: left; }
.side-pack strong { color: var(--kumkum-dark); font-size: 14px; }
.side-pack small { color: var(--muted); font-size: 12px; }
.side-warning { margin: 0 0 8px; padding: 6px 8px; border-left: 3px solid #e0a800; background: #fff8dc; color: #7a5600; font-size: 11px; line-height: 1.6; }
.history-list { list-style: none; max-height: 60vh; margin: 0; padding: 0; overflow-y: auto; }
.history-item { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); }
.history-item.is-current { background: var(--wash); }
.history-open { flex: 1; display: grid; gap: 2px; min-width: 0; padding: 8px 4px; border: 0; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.history-names { overflow: hidden; font-size: 13px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.history-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.history-meta svg { width: 13px; height: 13px; }
.history-delete { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.history-delete:hover { background: #fde8e3; color: #8f241c; }
.history-delete svg { width: 16px; height: 16px; }
.level-chip { padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.level-chip.level-high { background: #d9ecc9; color: #25561f; }
.level-chip.level-medium { background: #fff0b3; color: #7a5600; }
.level-chip.level-low { background: #fbd9d2; color: #8f241c; }
.kattam-paywall-or { margin-top: 18px !important; font-weight: 600; color: var(--kumkum-dark) !important; }
.kattam-paywall .side-pack { max-width: 420px; margin: 8px auto 0; }
.kattam-pdf { position: absolute; left: -12000px; top: 0; width: 760px; padding: 0 4px 12px; background: #fff; color: var(--ink); font-size: 14px; line-height: 1.8; }
.kattam-pdf-head { margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); }
.kattam-pdf-brand { color: var(--kumkum); font-size: 13px; letter-spacing: .04em; }
.kattam-pdf-head h2 { margin: 2px 0; color: var(--kumkum-dark); font-size: 21px; }
.kattam-pdf-head p { margin: 0; font-weight: 600; }
.kattam-pdf-head small { color: var(--muted); }
.match-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.match-choice .service-card { font: inherit; cursor: pointer; min-height: 160px; }
.record-list { list-style: none; margin: 0; padding: 0; }
.record-row { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.record-row strong { display: block; overflow-wrap: anywhere; }
.record-row small { color: var(--muted); }
.family-editor { max-width: 860px; padding-top: 24px; }
.recovery-panel { border-top: 1px solid var(--line); margin-top: 28px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px max(24px, calc((100% - 1092px) / 2)); border-top: 3px solid var(--gold); color: #f6dfa0; background: var(--kumkum-dark); font-size: 11px; }
.site-footer a { color: #ffe9a8; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 850px) {
  .porutham-layout { grid-template-columns: minmax(0, 1fr); }
  .porutham-side { position: static; order: -1; padding-top: 16px; }
  .history-list { max-height: 240px; }
  .exam-tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guest-label { display: none; }
  .site-header { padding: 14px 20px; }
}
@media (max-width: 560px) {
  .workspace { padding: 34px 16px 40px; }
  .site-header { padding: 12px 16px; gap: 12px; }
  .header-actions { gap: 8px; width: 100%; }
  .header-actions .button { font-size: 12px; padding: 8px 10px; }
  h1 { font-size: 21px; }
  h2 { font-size: 17px; }
  .service-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .service-hub-grid, .exam-tool-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .service-hub-card { min-height: 260px; padding: 20px; }
  .hub-card-title { margin-top: 16px; font-size: 19px; }
  .exam-tool-card { min-height: 220px; }
  .service-card { min-height: 148px; padding: 16px 16px 16px 72px; }
  .service-icon { position: absolute; left: 16px; top: 18px; }
  .service-title { font-size: 15px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .quick-match-grid { grid-template-columns: minmax(0, 1fr); }
  .kattam-charts { grid-template-columns: minmax(0, 1fr); }
  .kattam-table { font-size: 12px; }
  .kattam-table th, .kattam-table td { padding: 6px; }
  .view-nav { gap: 18px; font-size: 12px; }
  .form-actions .button { width: 100%; }
  .report-actions .button { flex: 1 1 130px; }
  .kattam-unlock-bar { gap: 8px; padding: 8px 10px; }
  .kattam-unlock-bar span { font-size: 12px; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body { background: white; color: black; }
  .site-header, .view-nav, .tradition-note, .page-heading, .site-footer, #global-status, #catalogue, #input-panel, #recovery-panel, .report-actions, .report-panel .panel-top .button, .kattam-paywall, .kattam-teaser, .kattam-unlock-bar, .kattam-preview-label, .kattam-pay-status, .kattam-pdf, .porutham-side { display: none !important; }
  .workspace { padding: 0; max-width: none; }
  .porutham-layout { display: block; }
  .report-panel { max-width: none; padding: 0; }
  .report-section { break-inside: avoid; }
  .kattam-figure, .kattam-table, .match-result, .kattam-summary { break-inside: avoid; }
  .kattam-grid, .kattam-cell.is-lagna, .match-verdict, .kattam-summary { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}