/* கிரக ஓரைகள், as the PO's kiraga-orai-v7 mockup (TMC-193); scoped under .ko. Same mockup family as கௌரி பஞ்சாங்கம்
   (css/tmc/pages/calendar/gowri-panchangam.css), so the same base: colours and fonts from the site theme, text sizes = the
   Palli Kathum scale, the day pills = the app's pill. Added for the horai: a third kind, நடுநிலை (சூரியன், .n), the time
   first in the day's lists, and the week table's column times. */
.ko{--orange:#FF7700; --orange-soft:#FFF1E2; --orange-ink:#B55D00;
  --cream:#FFFBF6; --cream-deep:#FFF3E6;
  --peach:#F0D2B4; --peach-deep:#E5772A;
  --rose:#F4DBD7; --rose-ink:#BD5746;
  --good:#1F6B37; --good-bg:#EAF6EC; --bad:#A33A3A; --bad-dot:#C9524F; --neu:#B55D00;
  --ink:#1B1B1B; --body:#2B2524; --head:#35343D; --muted:#8A817A; --grey:#6B6259;
  --line:#E9E1D6; --rule:#ECE8E3;
  --radius-s:8px; --radius-m:12px; --pill:32px;
  --gutter:16px; --maxw:1200px;
  --lh-body:1.8; --lh-head:1.4;
  --ff-ta:'Anek Tamil','Noto Sans Tamil',system-ui,sans-serif;
  --ff-num:'Inter',system-ui,sans-serif;
  color:var(--body); font-family:var(--ff-ta); font-size:14px; line-height:var(--lh-body)}
.ko *,.ko *::before,.ko *::after{box-sizing:border-box}
.ko h1,.ko h2,.ko h3{color:var(--head); margin:0; line-height:var(--lh-head); font-weight:700}
.ko p{margin:0; line-height:var(--lh-body)}
.ko a{color:var(--orange); text-decoration:none}
.ko .num{font-family:var(--ff-num)}
.ko .wrap{width:100%; max-width:var(--maxw); margin:0 auto; padding:14px var(--gutter) 8px}
.ko .sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* page head: the title, the city and the date */
.ko .rp-head{display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px 16px; margin:4px 0 14px}
.ko .rp-head h1{font-size:25px; line-height:1.4}
.ko .rp-head h1 .en{display:block; font-size:12.5px; font-weight:500; line-height:1.4; color:var(--muted)}
@media (min-width:760px){.ko .rp-head h1{font-size:32px; line-height:40px}}
.ko .rp-sel{display:flex; gap:10px; flex-wrap:wrap}
.ko .rp-sel label{position:relative; display:block}
.ko .rp-sel select{appearance:none; -webkit-appearance:none; font:500 15px var(--ff-ta); line-height:1.3; color:var(--ink); background:#fff;
  height:44px; padding:0 40px 0 12px; border:1px solid #DDD6CF; border-radius:8px; min-width:170px; cursor:pointer}
.ko .rp-sel input.dp{font:500 15px var(--ff-num); color:var(--ink); background:#fff; height:44px; padding:0 10px; border:1px solid #DDD6CF;
  border-radius:8px; min-width:150px}
.ko .rp-sel label::after{content:""; position:absolute; right:13px; top:50%; width:8px; height:8px; margin-top:-6px; border-right:1.6px solid var(--ink);
  border-bottom:1.6px solid var(--ink); transform:rotate(45deg); pointer-events:none}
.ko .rp-sel label#dlab::after{display:none}
.ko .rp-sel select:focus-visible,.ko .rp-sel input:focus-visible{outline:2px solid var(--peach-deep); outline-offset:2px}
@media (max-width:480px){.ko .rp-sel{width:100%; flex-wrap:nowrap}
  .ko .rp-sel label{flex:1 1 0; min-width:0} .ko .rp-sel select,.ko .rp-sel input.dp{min-width:0; width:100%}}

/* நேற்று · இன்று · நாளை and என் ஊர் — the app's pill */
.ko .dnav{display:flex; gap:8px; margin:-4px 0 14px; flex-wrap:wrap}
.ko .dnav button{display:inline-flex; align-items:center; gap:6px; font:400 13.5px/1.5 var(--ff-ta); padding:7px 14px; border-radius:var(--pill);
  border:1px solid #E9E1D6; background:#fff; color:var(--head); cursor:pointer; white-space:nowrap}
.ko .dnav button:hover{border-color:var(--orange)}
.ko .dnav button.on{background:var(--orange); border-color:var(--orange); color:#fff; font-weight:600}
.ko .dnav .geo{margin-left:auto; color:var(--orange-ink)}
.ko .dnav .geo svg{width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:1.6}
@media (max-width:420px){.ko .dnav{gap:6px} .ko .dnav button{padding:6px 11px; gap:4px}}

/* the day's card: weekday, date, the place's sunrise and sunset */
.ko .rp-box{margin-top:16px}
@media (max-width:899px){.ko .rp-box{border:1px solid rgba(198,107,4,.4); border-radius:8px; padding:0 0 18px}}
.ko .rp-band{display:flex; align-items:center; gap:8px}
@media (min-width:900px){.ko .rp-band{background:#FCEFE0; border-radius:16px; padding:12px 20px; min-height:143px}}
.ko .rp-card{flex:1; display:flex; align-items:center; justify-content:space-between; gap:12px; max-width:366px; min-height:120px; margin:0 auto;
  padding:16px 18px; background:rgba(255,248,237,.6); border-radius:8px}
@media (max-width:899px){.ko .rp-card{max-width:none; margin:0; border-radius:8px 8px 0 0; background:linear-gradient(180deg,#FFF3EB 0%,#FFF9F5 100%)}}
.ko .rp-card .nm{font-size:30px; font-weight:700; line-height:1.3; color:#D77027}
.ko .rp-card .per{font-size:15.5px; font-weight:500; line-height:1.7; color:#D77027}
.ko .rp-card .sub2{font-size:13.5px; line-height:1.7; color:var(--body)}
.ko .rp-card .sub2 b{font-weight:600; white-space:nowrap}
@media (max-width:360px){.ko .rp-card{padding:14px 12px} .ko .rp-card .nm{font-size:25px} .ko .rp-card .per{font-size:14px} .ko .rp-card .art.ga{width:56px; height:56px}
  .ko .rp-card .art.ga svg{width:32px; height:32px}}
.ko .rp-card .art.ga{display:grid; place-items:center; flex:0 0 auto; background:#fff; width:72px; height:72px; border-radius:50%; color:var(--orange)}
.ko .rp-card .art.ga svg{width:40px; height:40px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round}
.ko .rp-card .art.ga.night{color:#5A5A8A}
@media (min-width:900px){.ko .rp-card .nm{font-size:32px}}

.ko .rp-body{padding:16px 16px 0}
@media (min-width:900px){.ko .rp-body{padding:26px 0 0}}
.ko .rp-p{font-size:14px; line-height:1.9; margin:0 0 10px}
.ko .rp-note{font-size:13px; line-height:1.7; color:var(--grey); background:var(--cream); border:1px solid var(--line); border-radius:8px; padding:9px 12px; margin:0 0 12px}

/* the part running now */
.ko .now{padding:12px 14px; border-radius:8px; margin:0 0 12px; background:var(--good-bg); border:1px solid #CDEBD4}
.ko .now.b{background:#FDECEC; border-color:#F5CFCF}
.ko .now .r1{display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px}
.ko .now .k{font-size:12.5px; font-weight:600; line-height:1.4; color:var(--muted)}
.ko .now b{font-size:20px; line-height:1.3; color:var(--good)} .ko .now.b b{color:var(--bad)}
.ko .now .tag{margin-left:auto; flex:0 0 auto; font-size:12.5px; font-weight:700; line-height:1.6; padding:3px 11px; border-radius:var(--pill); background:var(--good); color:#fff}
.ko .now.b .tag{background:var(--bad)}
.ko .now.n{background:var(--orange-soft); border-color:#F3D3B5} .ko .now.n b{color:var(--neu)} .ko .now.n .tag{background:var(--neu)}
@media (max-width:420px){.ko .now{padding:10px 12px} .ko .now .r1{gap:4px 8px} .ko .now b{font-size:18px} .ko .now .tag{font-size:12px; padding:2px 9px}}
.ko .now .r2{margin-top:4px}
.ko .now .r2 .num{display:block; font:600 15px/1.4 var(--ff-num); color:var(--body)}
.ko .now .nx{display:block; margin-top:6px; padding-top:6px; border-top:1px solid rgba(0,0,0,.06); font-size:12.5px; line-height:1.6; color:var(--muted)}
.ko .now .nx b{font-size:inherit; line-height:inherit; font-weight:600; color:var(--good)}
.ko .now .nx .t{white-space:nowrap}

/* பகல் / இரவு: two pills on phones, both lists side by side on desktop */
.ko .segs{display:flex; gap:8px; margin:0 0 10px}
.ko .segs button{flex:1; font:600 14px/1.4 var(--ff-ta); padding:8px 10px; border-radius:var(--pill); border:1px solid #E9E1D6; background:#fff; color:var(--head); cursor:pointer}
.ko .segs button small{display:block; font-weight:500; font-size:12px; color:var(--muted)}
@media (max-width:360px){.ko .segs button{padding:7px 6px} .ko .segs button small{font-size:11px}}
.ko .segs button.on{background:var(--orange); border-color:var(--orange); color:#fff}
.ko .segs button.on small{color:#fff}
.ko .lst{display:none} .ko .lst.on{display:block} .ko .lst h3{display:none}
.ko .lst ul{list-style:none; margin:0; padding:0; border:1px solid var(--rule); border-radius:8px; overflow:hidden}
.ko .lst li{display:flex; align-items:center; gap:10px; padding:10px 12px; border-top:1px solid var(--rule); background:#fff}
.ko .lst li:first-child{border-top:0}
.ko .lst li.empty{color:var(--muted); font-size:13.5px}
.ko .lst .dot{width:10px; height:10px; border-radius:50%; flex:0 0 10px; margin-left:auto}
.ko .lst li.g .dot{background:var(--good)} .ko .lst li.b .dot{background:var(--bad-dot)} .ko .lst li.n .dot{background:var(--neu)}
.ko .lst .nm{flex:0 0 auto; text-align:right; font-size:15px; font-weight:700; line-height:1.4; color:var(--ink)}
.ko .lst li.g .nm{color:var(--good)} .ko .lst li.b .nm{color:var(--bad)} .ko .lst li.n .nm{color:var(--neu)}
.ko .lst .tm{flex:0 0 auto; font:600 14px/1.4 var(--ff-num); color:var(--body); white-space:nowrap}
.ko .lst li.now{background:var(--good)} .ko .lst li.b.now{background:var(--bad)} .ko .lst li.n.now{background:var(--neu)}
.ko .lst li.now .nm,.ko .lst li.now .tm{color:#fff} .ko .lst li.now .dot{background:#fff}
.ko .leg{display:flex; flex-wrap:wrap; gap:6px 16px; font-size:12.5px; line-height:1.6; color:var(--grey); margin:10px 0 0}
.ko .leg span::before{content:""; display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:6px; vertical-align:-1px}
.ko .leg .g::before{background:var(--good)} .ko .leg .b::before{background:var(--bad-dot)} .ko .leg .n::before{background:var(--neu)}
@media (min-width:900px){
  .ko .segs{display:none}
  .ko .lists{display:grid; grid-template-columns:1fr 1fr; gap:20px}
  .ko .lst{display:block}
  .ko .lst h3{display:flex; align-items:baseline; gap:8px; font-size:17px; line-height:1.5; color:var(--head); margin:0 0 8px}
  .ko .lst h3 small{margin-left:auto; font:600 13px var(--ff-num); color:var(--muted)}
  .ko .lst .nm{font-size:15.5px} .ko .lst .tm{font-size:15px}
  .ko .now b{font-size:22px}
}

/* links to the day's ராகு காலம் and கௌரி பஞ்சாங்கம் */
.ko .nl{display:flex; justify-content:space-between; align-items:center; gap:10px; margin:14px 0 10px; padding:12px 14px; background:#FBEDED; border-radius:8px;
  color:var(--ink); font-weight:600; font-size:14px; line-height:1.5}
.ko .nl span{color:var(--orange); font-size:20px}

/* sections */
.ko .sec{margin:22px 0}
.ko .sec > h2,.ko .sech h2{font-size:17px; margin-bottom:8px}
@media (min-width:900px){.ko .sec > h2,.ko .sech h2{font-size:21px}}
.ko .sech{display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:18px 0 8px}
.ko .sech h2{margin:0}

/* tables: the week (names, the chosen day's times over the columns) and the weekday table */
.ko .tw{overflow-x:auto; margin:0 calc(-1*var(--gutter)); padding:0 var(--gutter)}
.ko .pt{width:100%; border-collapse:collapse; font-size:13.5px; line-height:1.6}
.ko .pt th{background:#FCEFE0; color:#6B4A2B; font-weight:600; text-align:left; padding:9px 10px; font-size:12.5px; white-space:nowrap}
.ko .pt td{padding:8px 10px; border-bottom:1px solid var(--rule); vertical-align:top}
.ko .pt tr.today td,.ko .pt tr.today th{background:#FFF8ED}
.ko .kv2{min-width:520px}
.ko .kv2 .gtxt{color:var(--good); font-weight:600} .ko .kv2 .btxt{color:var(--bad); font-weight:600}
.ko .big{min-width:1120px}
.ko .big th{text-align:center}
.ko .big thead th:first-child,.ko .big tbody th{text-align:left; position:sticky; left:0; background:#FCEFE0; z-index:1}
.ko .big tbody th{background:#fff; font-weight:700; color:var(--ink); vertical-align:middle; border-bottom:1px solid var(--rule)}
.ko .big tr.today th{background:#FFF8ED}
.ko .big td{text-align:center; white-space:nowrap; font-size:13px; padding:7px 6px}
.ko .big td.dn{color:var(--muted); font-size:12px; text-align:left}
.ko .big td.g{color:var(--good); font-weight:600} .ko .big td.b{color:var(--bad); font-weight:600} .ko .big td.n{color:var(--neu); font-weight:600}
.ko .big td.cur{background:var(--good) !important; color:#fff} .ko .big td.b.cur{background:var(--bad) !important} .ko .big td.n.cur{background:var(--neu) !important}
.ko .big thead th.tm{padding:6px; vertical-align:bottom} .ko .big thead th.tm span{display:block; white-space:nowrap; line-height:1.35}
.ko .big thead th.tm .d{font:600 12.5px var(--ff-num); color:#6B4A2B} .ko .big thead th.tm .n{font:500 11.5px var(--ff-num); color:#9A7B60}
.ko .big thead th.tl .d,.ko .big thead th.tl .n{font-family:var(--ff-ta)}
.ko .bigcap{font-size:12.5px; line-height:1.7; color:var(--muted); margin:6px 0 0}
.ko .big td.cur::after{content:'இப்போது'; display:block; font-size:10px; font-weight:600; line-height:1.2; opacity:.9}
.ko .swipe{display:none; font-size:12px; color:var(--muted); margin:6px 0 0; text-align:center}
@media (max-width:800px){.ko .swipe{display:block}}
@media (min-width:900px){.ko .pt{font-size:13.5px} .ko .tw{margin:0; padding:0}}

/* the explanations: folded on phones, open on desktop */
.ko .vs{border:1px solid rgba(198,107,4,.4); border-radius:8px; margin:14px 0; background:#fff}
.ko .vs summary{list-style:none; cursor:pointer; padding:12px 44px 12px 14px; position:relative}
.ko .vs summary::-webkit-details-marker{display:none}
.ko .vs summary h2{font-size:17px; line-height:1.5; color:var(--head); margin:0}
.ko .vs summary::after{content:""; position:absolute; right:18px; top:20px; width:9px; height:9px; border-right:2px solid var(--orange); border-bottom:2px solid var(--orange);
  transform:rotate(45deg); transition:transform .2s}
.ko .vs[open] summary::after{transform:rotate(-135deg); top:24px}
.ko .vs[open] summary{border-bottom:1px solid var(--rule)}
.ko .vs-b{padding:12px 14px 6px}
@media (min-width:900px){.ko .vs{border:0; margin:30px 0 0} .ko .vs summary{padding:0 0 8px; pointer-events:none} .ko .vs summary::after{display:none}
  .ko .vs summary h2{font-size:21px} .ko .vs[open] summary{border:0} .ko .vs-b{padding:0}}
.ko .cyc{background:var(--cream); border:1px solid var(--line); border-radius:8px; padding:10px 14px; text-align:center; font-weight:700; color:var(--orange-ink);
  font-size:14px; line-height:1.8; margin:0 0 12px}
.ko .vs .tw + .rp-note,.ko .vs .tw + .rp-p{margin-top:12px}

/* the seven horai */
.ko .vcg{display:grid; grid-template-columns:1fr; gap:12px; margin-top:6px}
@media (min-width:700px){.ko .vcg{grid-template-columns:1fr 1fr; gap:16px}}
.ko .vc{background:#fff; border:1px solid #CFCFCF; border-radius:8px; padding:12px 14px; color:var(--ink)}
.ko .vc-top{display:flex; align-items:center; gap:10px; margin-bottom:8px}
.ko .vc-top .dot{width:12px; height:12px; border-radius:50%; flex:0 0 12px}
.ko .vc.g .dot{background:var(--good)} .ko .vc.b .dot{background:var(--bad-dot)} .ko .vc.n .dot{background:var(--neu)}
.ko .vc-top b{display:block; font-size:15.5px; line-height:1.4}
.ko .vc.g .vc-top b{color:var(--good)} .ko .vc.b .vc-top b{color:var(--bad)} .ko .vc.n .vc-top b{color:var(--neu)}
.ko .vc-top span{display:block; font-size:12.5px; line-height:1.4; color:var(--muted)}
.ko .vc-row{display:grid; grid-template-columns:62px 1fr; gap:8px; font-size:13.5px; line-height:1.7; padding:3px 0}
.ko .vc-row .l{color:var(--muted); font-size:12px; font-weight:600}
.ko .vc-row .ok{color:var(--good)} .ko .vc-row .no{color:var(--bad)}

/* பொதுவாக நேரும் தவறுகள் */
.ko .vl{margin:0 0 10px; padding-left:20px}
.ko .vl li{font-size:14px; line-height:1.8; margin:0 0 8px}
.ko .vl li b{color:var(--head)}

/* தொடர்புடைய பக்கங்கள் */
.ko .reco{display:grid; grid-template-columns:1fr; gap:10px}
@media (min-width:600px){.ko .reco{grid-template-columns:1fr 1fr}}
@media (min-width:1000px){.ko .reco{grid-template-columns:repeat(4,1fr)}}
.ko .reco a{display:flex; align-items:center; gap:12px; background:var(--rose); border-radius:var(--radius-m); padding:10px 12px; color:var(--head); font-weight:700;
  font-size:14px; line-height:1.4}
.ko .reco a .tl{width:44px; height:44px; border-radius:10px; background:#fff; display:grid; place-items:center; color:var(--rose-ink); flex:0 0 auto}
.ko .reco a .tl svg{width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round}
.ko .reco a span.t{flex:1}
.ko .reco a::after{content:"›"; font-size:20px; color:var(--rose-ink)}

/* who wrote it, and the disclaimer */
.ko .rp-author{font-size:13px; line-height:1.8; color:var(--body); margin:18px 0 6px}
.ko .rp-disc{font-size:12px; line-height:1.7; color:#979797; margin:0}
@media (min-width:900px){.ko .rp-author{font-size:14px} .ko .rp-disc{font-size:13px}}

/* ---------- v19 (TMC-193) ---------- */
/* The day's கௌரி நல்ல நேரம் (blue) and நல்ல நேரம் (green) cards, from the calendar. */
.ko .gn{display:grid; grid-template-columns:1fr; gap:10px; margin:14px 0 10px}
.ko .gc{border-radius:8px; padding:12px 14px; border:1px solid transparent; line-height:1.4}
.ko .gc>b{display:block; font-size:14px; line-height:1.5; margin-bottom:6px}
.ko .gc>b .en{font-size:11.5px; font-weight:500; display:block; margin:0; opacity:.85}
.ko .gc .r{display:flex; justify-content:space-between; align-items:baseline; gap:8px; padding:3px 0; border-top:1px dashed rgba(0,0,0,.08)}
.ko .gc b+.r{border-top:0}
.ko .gc .r span{font-size:12.5px; color:var(--grey)}
.ko .gc .r strong{font-size:15px; font-weight:700; white-space:nowrap}
.ko .gc .more{display:block; margin-top:6px; font-size:12.5px; font-weight:500; line-height:1.6}
.ko .gc .more[hidden]{display:none}
.ko .gc.empty .r{display:none}
.ko .gc .lnk{display:block; margin-top:8px; font-size:12.5px; font-weight:600}
.ko .gc.nn{background:#EEF6F0; border-color:#D5E8DA; color:#1F6B37}
.ko .gc.nn .r strong,.ko .gc.nn .more,.ko .gc.nn .lnk{color:#1F6B37}
.ko .gc.gw{background:#F1F5FD; border-color:#C9D8F3; color:#2F6FD6}
.ko .gc.gw .r strong,.ko .gc.gw .more{color:#2F6FD6}
@media (min-width:900px){
  .ko .gn{grid-template-columns:1fr 1fr; gap:16px; margin-top:16px}
  .ko .gc{padding:16px 18px}
  .ko .gc>b{font-size:15px}
  .ko .gc>b .en{display:inline; margin-left:6px}
  .ko .gc .r strong{font-size:18px}
  .ko .gc .r span{font-size:13.5px}
}
/* The week table's header: each part's time for the chosen day (day above, night below), and its caption. */
.ko .big thead th.tm{padding:6px; vertical-align:bottom; text-align:center}
.ko .big thead th.tm span{display:block; white-space:nowrap; line-height:1.35}
.ko .big thead th.tm .d{font:600 12.5px var(--ff-num); color:#6B4A2B}
.ko .big thead th.tm .n{font:500 11.5px var(--ff-num); color:#9A7B60}
.ko .big thead th.tl .d,.ko .big thead th.tl .n{font-family:var(--ff-ta)}
.ko .bigcap{font-size:12.5px; line-height:1.7; color:var(--muted); margin:6px 0 0}

/* iPhone Safari: no text enlarging in the wide week table, and each header time on its own line (a <br> between them). */
.ko .tw{-webkit-text-size-adjust:100%; text-size-adjust:100%}
.ko .big thead th.tm{white-space:nowrap; line-height:1.35}
.ko .big thead th.tm br{display:block}
