/* Porutham pages (/porutham, jyoti/web/seo/porutham.py).
   Loaded after /static/seo.css, /static/web/site-base.css and /static/compat.css.
   The scorecard SVG draws with these tokens; the light-scheme block keeps it
   readable if a page is ever shown on a light surface. */

.porutham {
  --poru-ok: #3dbb85;
  --poru-half: #e0a63e;
  --poru-no: #ef7b72;
  --poru-line: rgba(240, 200, 120, .16);
  --poru-mark: #0b1026;
}

@media (prefers-color-scheme: light) {
  .porutham.poruLight,
  .poruLight .porutham {
    --poru-ok: #17734a;
    --poru-half: #9a6200;
    --poru-no: #b3322a;
    --poru-line: rgba(0, 0, 0, .12);
    --poru-mark: #fff;
  }
}

.poruCard { margin: 0 0 16px; max-width: 460px; }
.poruFor { font-weight: 700; margin: 0 0 8px; }
.poruSvg { display: block; width: 100%; height: auto; color: inherit; font-family: inherit; }
.poruSvg .pn { font-size: 15px; fill: currentColor; }
.poruSvg .pv { font-size: 13px; fill: currentColor; opacity: .85; }
.poruSvg .pl { stroke: var(--poru-line); stroke-width: 1; }
.poruSvg .pi { fill: none; stroke-width: 2; }
.poruSvg .pm { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.poruSvg .pr-uth .pi { fill: var(--poru-ok); stroke: var(--poru-ok); }
.poruSvg .pr-uth .pm { stroke: var(--poru-mark); }
.poruSvg .pr-mad .pi { stroke: var(--poru-half); }
.poruSvg .pr-mad .ph { fill: var(--poru-half); }
.poruSvg .pr-no .pi { stroke: var(--poru-no); }
.poruSvg .pr-no .pm { stroke: var(--poru-no); }

.poruCount { margin: 10px 0 4px; }
.poruTotal { opacity: .85; margin-left: .5em; white-space: nowrap; }
.poruVerdict { margin: 4px 0; }
.poruGate { margin: 4px 0; }
.poruGateWarn { border-left: 3px solid var(--poru-half); padding-left: 10px; }

.poruRules, .poruTools { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.poruRules li, .poruTools li { display: grid; gap: 2px; }
.poruRules li span, .poruTools li span { font-size: 14px; opacity: .85; }
.poruRules li.current > a { font-weight: 700; }
.poruPrevNext { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; }

.poruExamples { margin: 0; padding-left: 20px; display: grid; gap: 10px; }

.poruTable { min-width: 0; }
.poruTable caption { caption-side: top; text-align: left; font-weight: 700; padding: 0 0 8px; }
.poruTable th[scope="row"] { white-space: nowrap; }

.poruCtaGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; }
.poruCtaGrid p { margin: 0 0 8px; }
.poruCta h3 { margin: 18px 0 8px; font-size: 16px; }

.poruFields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 24px; }
.poruForm fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.poruForm legend { font-weight: 700; margin: 0 0 8px; padding: 0; }
.poruForm label { display: block; margin: 0 0 4px; font-weight: 600; }
.poruForm select,
.poruForm input[type="text"],
.poruForm input[type="date"],
.poruForm input[type="time"] {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 10px 12px;
  color: var(--on-dark-head, inherit);
  background: var(--indigo-2, #1a2149);
  border: 1px solid rgba(240, 200, 120, .35);
  border-radius: 12px;
}
.poruForm select:focus-visible,
.poruForm input:focus-visible { outline: 2px solid var(--gold, #e0a63e); outline-offset: 2px; }
.poruForm .field { margin: 0 0 12px; }
.poruError { color: var(--poru-no); font-weight: 600; }

/* The 27 x 27 chart: a sideways-scrolling table with the bride's star
   column pinned, one cell per pair. */
.poruChartWrap { margin: 0 0 24px; }
.poruChart { min-width: 0; }
.poruChart td.gate a { text-decoration: underline dotted; }
.poruChart thead th { vertical-align: bottom; }
.poruChart .poruColName { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.poruChart tbody th { white-space: nowrap; z-index: 1; }
.poruChart td { min-width: 30px; }
.poruJump { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 14px; }

@media (max-width: 600px) {
  .poruChart { font-size: 11px; }
  .poruChart th, .poruChart td { padding: 3px 4px; }
}
