/* thirukanitham.com – Base Styles */
/* Colors: Burgundy #800020 / Gold #C5993A / Cream #F5E6CC / Dark #4A0E0E */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Noto Sans Tamil', 'Segoe UI', sans-serif;
    background: #F5E6CC;
    color: #4A0E0E;
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.5;
}

a { color: #800020; text-decoration: none; }
a:hover { text-decoration: underline; color: #C5993A; }

/* ── Top kolam stripe ── */
.tk-top-stripe {
    height: 6px;
    background: repeating-linear-gradient(
        90deg,
        #800020 0px, #800020 8px,
        #C5993A 8px, #C5993A 16px,
        #800020 16px, #800020 24px,
        #2e7d32 24px, #2e7d32 32px
    );
}

/* ── Sticky header wrapper ── */
.tk-header-wrap {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* ── Utility bar ── */
.tk-utility-bar {
    background: #3d0010;
    padding: 4px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}
.tk-util-label {
    color: #e8d5b0;
    font-size: 0.72em;
    letter-spacing: 0.5px;
}
.tk-util-clock {
    color: #C5993A;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 1px;
    white-space: nowrap;
}

/* ── Main header ── */
.tk-site-header {
    background: linear-gradient(135deg, #800020 0%, #5a0015 50%, #800020 100%);
    padding: 14px 16px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
}
.tk-site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(197,153,58,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.tk-logo-block { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tk-logo-text {
    font-size: 1.35em;
    font-weight: 700;
    color: #C5993A;
    letter-spacing: 1px;
    line-height: 1.1;
}
.tk-logo-sub {
    font-size: 0.65em;
    color: #e8d5b0;
    font-weight: 400;
    letter-spacing: 0px;
    display: block;
}

/* ── Hamburger ── */
.tk-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(197,153,58,0.4);
    border-radius: 6px;
    cursor: pointer;
    gap: 5px;
    flex-shrink: 0;
}
.tk-hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #C5993A;
    border-radius: 2px;
    transition: transform 0.2s;
}

/* ── Desktop nav bar ── */
.tk-nav-bar {
    background: #4A0E0E;
    border-bottom: 3px solid #C5993A;
}
.tk-nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 12px;
    flex-wrap: wrap;
}
.tk-nav-list > li > a {
    display: block;
    padding: 10px 14px;
    color: #e8d5b0;
    font-size: 0.88em;
    font-weight: 500;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    position: relative;
}
.tk-nav-list > li > a:hover,
.tk-nav-list > li > a.active {
    color: #C5993A;
    border-bottom-color: #C5993A;
    text-decoration: none;
}

/* ── Dropdown ── */
.tk-has-drop { position: relative; }
.tk-drop {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 2px solid #C5993A;
    border-radius: 6px;
    min-width: 200px;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(128,0,32,0.15);
}
.tk-has-drop:hover .tk-drop { display: block; }
.tk-drop a {
    display: block;
    padding: 9px 14px;
    color: #4A0E0E;
    font-size: 0.85em;
    border-bottom: 1px solid rgba(197,153,58,0.2);
}
.tk-drop a:last-child { border-bottom: none; }
.tk-drop a:hover { background: #fef9ee; color: #800020; text-decoration: none; }
.tk-drop-label {
    padding: 8px 14px 4px;
    font-size: 0.72em;
    font-weight: 700;
    color: #C5993A;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ── Mobile nav ── */
.tk-mobile-nav {
    display: none;
    background: linear-gradient(135deg, #5a0015, #800020);
    border-top: 2px solid #C5993A;
}
.tk-mobile-nav.open { display: block; }
.tk-mob-section {
    padding: 8px 16px 4px;
    font-size: 0.72em;
    font-weight: 700;
    color: #C5993A;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid rgba(197,153,58,0.2);
    margin-top: 4px;
}
.tk-mob-section:first-child { border-top: none; margin-top: 0; }
.tk-mobile-nav a {
    display: block;
    padding: 9px 20px;
    color: #e8d5b0;
    font-size: 0.88em;
    border-bottom: 1px solid rgba(197,153,58,0.1);
}
.tk-mobile-nav a:hover { color: #C5993A; background: rgba(255,255,255,0.05); text-decoration: none; }

/* ── Main content ── */
main {
    max-width: 820px;
    margin: 0 auto;
    padding: 16px 14px 40px;
}

/* ── Breadcrumb ── */
.tk-breadcrumb {
    font-size: 0.82em;
    color: #888;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.tk-breadcrumb a { color: #800020; }
.tk-breadcrumb span { color: #aaa; }

/* ── Section box ── */
.tk-box {
    background: #fff;
    border: 1px solid rgba(128,0,32,0.12);
    border-radius: 8px;
    margin-bottom: 18px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(74,14,14,0.07);
}
.tk-box-title {
    background: linear-gradient(135deg, #800020, #C5993A);
    color: #fff;
    padding: 10px 15px;
    font-size: 0.96em;
    font-weight: 700;
    letter-spacing: 0.5px;
}
.tk-box-body { padding: 14px 15px; }

/* ── Row label/value ── */
.tk-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 0;
    border-bottom: 1px solid rgba(128,0,32,0.08);
}
.tk-row:last-child { border-bottom: none; }
.tk-lbl { font-weight: 600; color: #800020; font-size: 0.9em; }
.tk-val { color: #4A0E0E; font-size: 0.9em; text-align: right; }
.tk-val small { display: block; color: #888; font-size: 0.8em; }
.tk-panchang-link { color: inherit; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 2px; }
.tk-panchang-link:hover { color: #800020; text-decoration-style: solid; }

/* ── Grid (2/3 col) ── */
.tk-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tk-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.tk-grid-card {
    background: rgba(128,0,32,0.04);
    border: 1px solid rgba(128,0,32,0.1);
    border-left: 3px solid #C5993A;
    border-radius: 6px;
    padding: 10px 12px;
}
.tk-grid-card .tk-gc-label { font-size: 0.78em; color: #888; margin-bottom: 3px; }
.tk-grid-card .tk-gc-val { font-weight: 600; color: #4A0E0E; font-size: 0.92em; }

/* ── Warning banner ── */
.tk-warning {
    background: linear-gradient(135deg, #8b0000, #5a0015);
    color: #ffd700;
    padding: 11px 14px;
    border-radius: 6px;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* ── Timing pill ── */
.tk-time-pill {
    display: inline-block;
    background: rgba(128,0,32,0.06);
    border: 1px solid rgba(197,153,58,0.5);
    border-radius: 20px;
    padding: 2px 10px;
    font-size: 0.85em;
    color: #4A0E0E;
    font-weight: 600;
}

/* ── Page nav buttons ── */
.tk-page-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 4px;
}
.tk-page-nav a {
    display: inline-block;
    background: linear-gradient(135deg, #800020, #b03030);
    color: #fff;
    padding: 9px 18px;
    border-radius: 22px;
    font-size: 0.85em;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}
.tk-page-nav a:hover { opacity: 0.85; text-decoration: none; }
.tk-page-nav a.secondary {
    background: #fff;
    color: #800020;
    border: 1px solid rgba(128,0,32,0.3);
}
.tk-page-nav a.secondary:hover { background: #fef9ee; }

/* ── Date card ── */
.tk-date-card {
    background: linear-gradient(135deg, #800020 0%, #5a0015 100%);
    color: #fff;
    text-align: center;
    padding: 22px 15px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    border: 3px solid #C5993A;
}
.tk-date-card .day-num { font-size: 3.4em; font-weight: 700; color: #C5993A; line-height: 1; }
.tk-date-card .month-yr { font-size: 1.2em; margin-top: 4px; color: #e8d5b0; }
.tk-date-card .day-name { font-size: 1em; color: #e8d5b0; font-weight: 600; margin-top: 3px; }
.tk-date-card .tn-line { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(197,153,58,0.4); font-size: 0.95em; color: #e8d5b0; }
.tk-date-card .en-line { margin-top: 5px; font-size: 0.8em; color: #c4a97d; }

/* ── Day nav ── */
.tk-day-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
}
.tk-day-nav a {
    padding: 9px 18px;
    background: #800020;
    color: #C5993A;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.88em;
    text-decoration: none;
    transition: opacity 0.2s;
}
.tk-day-nav a:hover { opacity: 0.85; text-decoration: none; }
.tk-day-nav a.today { background: #C5993A; color: #fff; }

/* ── Monthly calendar grid ── */
.tk-month-grid-wrapper { overflow-x: auto; margin-bottom: 16px; }
.tk-month-grid { width: 100%; border-collapse: collapse; }
.tk-month-grid th {
    background: #800020;
    color: #C5993A;
    padding: 8px 4px;
    font-size: 0.82em;
    font-weight: 700;
    text-align: center;
}
.tk-month-grid td {
    border: 1px solid rgba(128,0,32,0.12);
    padding: 6px 4px;
    vertical-align: top;
    min-width: 42px;
    background: #fff;
}
.tk-month-grid td.empty { background: rgba(128,0,32,0.03); }
.tk-month-grid td.today { background: rgba(197,153,58,0.12); border-color: #C5993A; }
.tk-month-grid td.sunday .mc-day-num a { color: #c0392b; }
.tk-month-grid .mc-day-num { font-weight: 700; font-size: 0.9em; }
.tk-month-grid .mc-day-num a { color: #800020; }
.tk-month-grid .mc-tithi { font-size: 0.7em; color: #555; line-height: 1.2; margin-top: 2px; }
.tk-month-grid .mc-nak   { font-size: 0.68em; color: #777; line-height: 1.2; }
.mc-paksha { display: inline-block; font-size: 0.6em; font-weight: 700; border-radius: 3px; padding: 0 3px; margin-left: 4px; vertical-align: middle; line-height: 1.5; }
.mc-paksha--shukla { background: #fef9c3; color: #854d0e; border: 1px solid #fde047; }
.mc-paksha--krishna { background: #e0e7ff; color: #3730a3; border: 1px solid #a5b4fc; }
.tk-month-grid .mc-fest  { font-size: 0.68em; color: #800020; font-weight: 600; margin-top: 2px; display: flex; align-items: center; gap: 3px; line-height: 1.2; }
.tk-month-grid .mc-fest::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #C5993A; flex-shrink: 0; }
.tk-month-grid .mc-fest-linked a { color: #800020; text-decoration: none; }
.tk-month-grid .mc-fest-linked a:hover { text-decoration: underline; }
.tk-month-grid .mc-fest-more { color: #888; font-weight: 500; }
.tk-month-grid .mc-fest-more::before { background: #aaa; }
.tk-month-grid .mc-fest-more a { color: #888; text-decoration: none; }
.tk-month-grid .mc-fest-more a:hover { color: #800020; text-decoration: underline; }

/* ── Festival hover tooltip ── */
.mc-fest-group { position: relative; }
.mc-fest-group .mc-fest-more a { cursor: pointer; }
.mc-fest-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    background: #fff;
    border: 1px solid rgba(128,0,32,0.18);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    padding: 10px 12px;
    min-width: 160px;
    max-width: 240px;
    white-space: normal;
    pointer-events: auto;
}
.mc-fest-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #fff;
    filter: drop-shadow(0 1px 0 rgba(128,0,32,0.12));
}
.mc-fest-group:hover .mc-fest-tooltip,
.mc-fest-group.mc-tip-open .mc-fest-tooltip { display: block; }
.mc-fest-tooltip-title {
    font-size: 0.72em;
    font-weight: 700;
    color: #800020;
    margin-bottom: 6px;
    padding-bottom: 5px;
    border-bottom: 1px solid rgba(128,0,32,0.12);
}
.mc-tooltip-item {
    font-size: 0.75em;
    color: #333;
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.3;
}
.mc-tooltip-item::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #C5993A;
    flex-shrink: 0;
    margin-top: 4px;
}
.mc-tooltip-item a { color: #800020; text-decoration: none; }
.mc-tooltip-item a:hover { text-decoration: underline; }
.mc-tooltip-daylink {
    display: block;
    margin-top: 7px;
    padding-top: 6px;
    border-top: 1px solid rgba(128,0,32,0.10);
    font-size: 0.72em;
    font-weight: 600;
    color: #800020;
    text-decoration: none;
    text-align: right;
}
.mc-tooltip-daylink:hover { text-decoration: underline; }
/* Prevent tooltip clipping on first/last calendar columns */
.col-first .mc-fest-tooltip {
    left: 0;
    transform: translateX(0);
}
.col-first .mc-fest-tooltip::after {
    left: 24px;
    transform: translateX(0);
}
.col-last .mc-fest-tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}
.col-last .mc-fest-tooltip::after {
    left: auto;
    right: 24px;
    transform: translateX(0);
}
/* Keep tooltip visible when hovering over it on desktop */
@media (hover: none) {
    .mc-fest-group:hover .mc-fest-tooltip { display: none; }
}

/* ── Observance dot indicators on calendar grid cells ── */
.tk-month-grid td.has-obs { background: rgba(197,153,58,0.06); }
.tk-month-grid td.today.has-obs { background: rgba(197,153,58,0.18); }

.mc-obs-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 2px;
}
.mc-obs-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78em;
    line-height: 1;
    text-decoration: none;
    border-radius: 3px;
    padding: 1px 2px;
    background: rgba(128,0,32,0.06);
    border: 1px solid rgba(128,0,32,0.12);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.mc-obs-dot:hover {
    background: rgba(128,0,32,0.13);
    border-color: rgba(128,0,32,0.28);
}
.mc-obs-dot--amavasai  { background: rgba(30,41,59,0.08);  border-color: rgba(30,41,59,0.2); }
.mc-obs-dot--amavasai:hover  { background: rgba(30,41,59,0.18);  border-color: rgba(30,41,59,0.35); }
.mc-obs-dot--pournami  { background: rgba(217,119,6,0.09);  border-color: rgba(217,119,6,0.22); }
.mc-obs-dot--pournami:hover  { background: rgba(217,119,6,0.18);  border-color: rgba(217,119,6,0.38); }
.mc-obs-dot--ekadashi  { background: rgba(8,145,178,0.08);  border-color: rgba(8,145,178,0.2); }
.mc-obs-dot--ekadashi:hover  { background: rgba(8,145,178,0.18);  border-color: rgba(8,145,178,0.35); }
.mc-obs-dot--pradosham { background: rgba(124,58,237,0.08); border-color: rgba(124,58,237,0.2); }
.mc-obs-dot--pradosham:hover { background: rgba(124,58,237,0.18); border-color: rgba(124,58,237,0.35); }
.mc-obs-dot--sashti    { background: rgba(220,38,38,0.08);  border-color: rgba(220,38,38,0.2); }
.mc-obs-dot--sashti:hover    { background: rgba(220,38,38,0.18);  border-color: rgba(220,38,38,0.35); }

/* ── Today intent page ── */
.tk-page { }
.tk-intent-hero {
    background: linear-gradient(135deg, #800020, #5a0015);
    color: #fff;
    padding: 22px 18px;
    border-radius: 10px;
    margin-bottom: 18px;
    text-align: center;
}
.tk-intent-hero h1 { font-size: 1.4em; color: #C5993A; margin-bottom: 6px; }
.tk-intent-hero .hero-date { font-size: 0.9em; color: #e8d5b0; }
.tk-intent-hero .hero-time {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin: 10px 0 4px;
}

/* ── Hora table ── */
.tk-hora-table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.tk-hora-table th {
    background: #800020;
    color: #C5993A;
    padding: 7px 10px;
    font-weight: 700;
    text-align: left;
}
.tk-hora-table td { padding: 8px 10px; border-bottom: 1px solid rgba(128,0,32,0.08); }
.tk-hora-table tr:last-child td { border-bottom: none; }
.tk-hora-table tr.hora-active td { background: rgba(197,153,58,0.15); font-weight: 700; }
.tk-hora-table tr.hora-ausp td { background: rgba(46,125,50,0.05); }

/* ── FAQ section ── */
.tk-faq { margin-top: 18px; }
.tk-faq h2 { font-size: 1.05em; color: #800020; margin-bottom: 12px; }
.tk-faq-item { border-bottom: 1px solid rgba(128,0,32,0.1); padding: 12px 0; }
.tk-faq-item:last-child { border-bottom: none; }
.tk-faq-q { font-weight: 700; color: #4A0E0E; font-size: 0.9em; margin-bottom: 5px; }
.tk-faq-a { color: #555; font-size: 0.88em; line-height: 1.5; }

/* ── SEO content block ── */
.tk-seo-block { margin-bottom: 16px; }
.tk-seo-block h1 { font-size: 1.25em; color: #800020; margin-bottom: 8px; font-weight: 700; }
.tk-seo-block p { font-size: 0.88em; color: #555; line-height: 1.6; margin-bottom: 6px; }

/* ── Homepage quick links ── */
.tk-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}
.tk-quick-card {
    background: #fff;
    border: 1px solid rgba(128,0,32,0.12);
    border-top: 3px solid #C5993A;
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    text-decoration: none;
    color: #4A0E0E;
    transition: box-shadow 0.2s, transform 0.2s;
}
.tk-quick-card:hover { box-shadow: 0 4px 12px rgba(128,0,32,0.12); transform: translateY(-2px); text-decoration: none; }
.tk-quick-card .qc-icon { font-size: 1.5em; margin-bottom: 6px; }
.tk-quick-card .qc-label { font-size: 0.82em; font-weight: 600; color: #800020; line-height: 1.3; }

/* ── Festival list ── */
.tk-event-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(128,0,32,0.07);
}
.tk-event-item:last-child { border-bottom: none; }
.tk-event-dot { width: 8px; height: 8px; border-radius: 50%; background: #C5993A; flex-shrink: 0; }

/* ── Event type badges ── */
.tk-event-badge {
    display: inline-block;
    font-size: 0.68em;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: capitalize;
    padding: 1px 7px;
    border-radius: 10px;
    margin-top: 4px;
    color: #fff;
    background: #C5993A;
}
.tk-event-badge--festival   { background: #C5993A; color: #fff; }
.tk-event-badge--ekadashi   { background: #3A6BB5; color: #fff; }
.tk-event-badge--sashti     { background: #6B3AB5; color: #fff; }
.tk-event-badge--pradosham  { background: #2E7D60; color: #fff; }
.tk-event-badge--amavasai   { background: #4A4A6A; color: #fff; }
.tk-event-badge--pournami   { background: #0077A8; color: #fff; }
.tk-event-badge--vrata      { background: #7A3535; color: #fff; }
.tk-event-badge--other      { background: #888;    color: #fff; }

/* ── Event type filter buttons ── */
.tk-event-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.tk-filter-btn {
    display: inline-flex;
    align-items: center;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.03em;
    padding: 3px 12px;
    border-radius: 12px;
    border: 1.5px solid #800020;
    background: transparent;
    color: #800020;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.tk-filter-btn:hover,
.tk-filter-btn.active {
    background: #800020;
    color: #fff;
}
.tk-filter-btn[data-filter="all"].active {
    background: #4A0E0E;
    border-color: #4A0E0E;
}
.tk-filter-btn[data-filter="festival"].active   { background: #C5993A; border-color: #C5993A; }
.tk-filter-btn[data-filter="ekadashi"].active   { background: #3A6BB5; border-color: #3A6BB5; }
.tk-filter-btn[data-filter="sashti"].active     { background: #6B3AB5; border-color: #6B3AB5; }
.tk-filter-btn[data-filter="pradosham"].active  { background: #2E7D60; border-color: #2E7D60; }
.tk-filter-btn[data-filter="amavasai"].active   { background: #4A4A6A; border-color: #4A4A6A; }
.tk-filter-btn[data-filter="pournami"].active   { background: #0077A8; border-color: #0077A8; }
.tk-filter-btn[data-filter="vrata"].active      { background: #7A3535; border-color: #7A3535; }
.tk-filter-btn[data-filter="other"].active      { background: #888;    border-color: #888; }
.tk-event-item[hidden] { display: none !important; }
.tk-no-filter-results {
    font-size: 0.88em;
    color: #888;
    padding: 10px 0 4px;
    display: none;
}

/* ── 404 ── */
.tk-404 { text-align: center; padding: 60px 20px; }
.tk-404 h1 { font-size: 4em; color: rgba(128,0,32,0.2); font-weight: 900; }
.tk-404 h2 { font-size: 1.4em; color: #800020; margin-bottom: 10px; }

/* ── Footer ── */
footer.tk-footer {
    background: #4A0E0E;
    color: #e8d5b0;
    padding: 28px 16px 18px;
    margin-top: 30px;
    border-top: 4px solid #C5993A;
}
.tk-footer-inner { max-width: 820px; margin: 0 auto; }
.tk-footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
    margin-bottom: 18px;
}
.tk-footer-grid a {
    color: #e8d5b0;
    font-size: 0.83em;
    padding: 8px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(197,153,58,0.2);
    border-radius: 4px;
    text-align: center;
    display: block;
}
.tk-footer-grid a:hover { background: rgba(255,255,255,0.1); color: #C5993A; text-decoration: none; }
.tk-footer-bottom { text-align: center; border-top: 1px solid rgba(197,153,58,0.3); padding-top: 14px; }
.tk-footer-name { color: #C5993A; font-weight: 700; font-size: 1em; margin-bottom: 4px; }
.tk-footer-copy { font-size: 0.76em; color: #9a8a6e; margin-top: 6px; }

/* ── Responsiveness ── */
@media (max-width: 768px) {
    .tk-hamburger { display: flex; }
    .tk-nav-bar { display: none; }
    .tk-grid-3 { grid-template-columns: 1fr 1fr; }
    .tk-date-card .day-num { font-size: 2.8em; }
    .tk-quick-grid { grid-template-columns: repeat(3, 1fr); }
    main { padding: 12px 10px 30px; }
    .tk-util-label { display: none; }
}
@media (max-width: 480px) {
    .tk-grid-2, .tk-grid-3 { grid-template-columns: 1fr; }
    .tk-quick-grid { grid-template-columns: repeat(2, 1fr); }
    .tk-day-nav a { padding: 8px 12px; font-size: 0.82em; }

    /* Observance dots: strip border/padding on narrow screens to avoid overlap */
    .mc-obs-dots {
        gap: 1px;
        margin-bottom: 1px;
    }
    .mc-obs-dot,
    .mc-obs-dot--amavasai,
    .mc-obs-dot--pournami,
    .mc-obs-dot--ekadashi,
    .mc-obs-dot--pradosham,
    .mc-obs-dot--sashti {
        font-size: 0.65em;
        padding: 0;
        background: transparent !important;
        border: none !important;
        border-radius: 0;
    }
}

/* ── Calculator pages ── */
.tk-calc-hero { background: linear-gradient(135deg, #800020 0%, #5a0015 100%); color: #F5E6CC; padding: 26px 20px; border-radius: 12px; text-align: center; margin-bottom: 20px; }
.tk-calc-hero h1 { font-size: 1.5em; color: #C5993A; margin: 0 0 8px; }
.tk-calc-hero p { margin: 0; opacity: .85; font-size: .9em; }
.tk-calc-form { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,.08); padding: 20px; margin-bottom: 20px; }
.tk-calc-form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.tk-calc-fg { display: flex; flex-direction: column; gap: 4px; }
.tk-calc-fg label { font-size: 11px; color: #5a3a1a; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.tk-calc-fg select, .tk-calc-fg input[type=text] { padding: 8px 10px; border: 1px solid #d5b890; border-radius: 6px; font-size: 14px; font-family: inherit; background: #fefdf9; color: #3a1a00; min-width: 80px; }
.tk-calc-btn { background: linear-gradient(135deg, #800020, #a01030); color: #fff; border: none; padding: 10px 28px; border-radius: 7px; font-size: 15px; font-weight: 700; cursor: pointer; margin-top: 6px; letter-spacing: .5px; }
.tk-calc-btn:hover { opacity: .9; transform: translateY(-1px); }
.tk-calc-result { background: linear-gradient(135deg, #800020 0%, #5a0015 100%); color: #F5E6CC; border-radius: 12px; padding: 24px 20px; margin-bottom: 20px; text-align: center; }
.tk-calc-result h2 { color: #C5993A; font-size: .85em; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 1px; }
.tk-calc-result-value { font-size: 2em; font-weight: 800; color: #C5993A; margin: 4px 0 8px; line-height: 1.2; }
.tk-calc-result-sub { font-size: .88em; opacity: .8; margin: 4px 0; }
.tk-calc-result-meta { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.tk-calc-result-meta span { background: rgba(197,153,58,.2); color: #C5993A; padding: 4px 12px; border-radius: 14px; font-size: 12px; font-weight: 600; border: 1px solid rgba(197,153,58,.35); }
.tk-calc-timing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.tk-calc-timing-item { background: rgba(255,255,255,.08); border-radius: 8px; padding: 12px; text-align: center; }
.tk-calc-timing-item .ti-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; opacity: .7; margin-bottom: 4px; }
.tk-calc-timing-item .ti-value { font-size: 1.1em; font-weight: 800; color: #C5993A; }
.tk-calc-info { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.07); padding: 18px; margin-bottom: 16px; }
.tk-calc-info h2, .tk-calc-info h3 { color: #800020; margin: 0 0 10px; font-size: 1.05em; border-bottom: 2px solid #f0e0c0; padding-bottom: 6px; }
.tk-calc-info p { color: #4b3a2a; line-height: 1.8; font-size: 14px; margin: 0 0 10px; }
.tk-calc-info ul, .tk-calc-info ol { color: #4b3a2a; line-height: 1.8; font-size: 14px; padding-left: 20px; margin: 0 0 10px; }
.tk-calc-timing-table { width: 100%; border-collapse: collapse; }
.tk-calc-timing-table th { background: #800020; color: #C5993A; padding: 9px 10px; font-size: 12px; text-align: left; text-transform: uppercase; }
.tk-calc-timing-table td { padding: 9px 10px; border-bottom: 1px solid #f0e0c0; font-size: 13px; vertical-align: middle; }
.tk-calc-timing-table tr.today-row { background: #fef9f0; font-weight: 700; }
.tk-calc-timing-table tr:hover { background: #fefaf4; }
.tk-calc-related { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }
.tk-calc-related a { background: #fef6ed; color: #800020; border: 1px solid #e8c89a; padding: 7px 14px; border-radius: 20px; text-decoration: none; font-size: 13px; font-weight: 600; }
.tk-calc-related a:hover { background: #800020; color: #C5993A; }
.tk-calc-faq-item { border-bottom: 1px solid #e8d5b0; padding: 10px 0; cursor: pointer; }
.tk-calc-faq-q { font-weight: 700; color: #3a1a00; font-size: .95em; }
.tk-calc-faq-q::after { content: ' ▾'; color: #800020; }
.tk-calc-faq-a { display: none; color: #5a3a1a; margin-top: 6px; font-size: .9em; line-height: 1.6; }
.tk-calc-faq-item.open .tk-calc-faq-a { display: block; }
.tk-calc-faq-item.open .tk-calc-faq-q::after { content: ' ▴'; }
.tk-calc-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.tk-calc-hub-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,.08); padding: 16px; text-decoration: none; display: block; border: 2px solid transparent; transition: border .15s, box-shadow .15s; }
.tk-calc-hub-card:hover { border-color: #C5993A; box-shadow: 0 4px 14px rgba(128,0,32,.15); text-decoration: none; }
.tk-calc-hub-card .hub-icon { font-size: 1.8em; margin-bottom: 8px; }
.tk-calc-hub-card .hub-name { font-size: .9em; font-weight: 800; color: #800020; margin-bottom: 4px; }
.tk-calc-hub-card .hub-desc { font-size: .78em; color: #6b5a45; line-height: 1.5; }
.tk-calc-section-title { font-size: 1em; font-weight: 700; color: #800020; margin: 20px 0 10px; border-left: 4px solid #C5993A; padding-left: 10px; }
.tk-calc-no-result { background: #fff8f0; border: 1px solid #e8c89a; border-radius: 8px; padding: 18px; text-align: center; color: #7a4a1a; font-size: 14px; margin-bottom: 16px; }
@media (max-width: 600px) {
    .tk-calc-timing-grid { grid-template-columns: 1fr; }
    .tk-calc-hub-grid { grid-template-columns: 1fr 1fr; }
    .tk-calc-result-value { font-size: 1.5em; }
}

/* ========== Observance pages ========== */
.obs-hero { background: #fff; border-radius: 10px; padding: 22px 20px 18px; margin-bottom: 16px; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.obs-hero-icon { font-size: 2.4em; margin-bottom: 6px; }
.obs-hero-title { font-size: 1.25em; font-weight: 800; color: #2d1a0e; margin: 0 0 6px; line-height: 1.3; }
.obs-hero-ta { display: block; font-size: 0.8em; color: #888; font-weight: 400; margin-top: 2px; }
.obs-hero-sub { font-size: 0.85em; color: #666; margin: 0; }

.obs-year-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.obs-year-tab { flex: 1; min-width: 80px; text-align: center; padding: 9px 14px; border-radius: 8px; background: #f5f0eb; color: #4A0E0E; font-weight: 700; font-size: 0.9em; text-decoration: none; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.obs-year-tab:hover { background: #fef0e0; border-color: #C5993A; text-decoration: none; }
.obs-year-tab.active { background: #800020; color: #fff; border-color: #800020; cursor: default; }

.obs-section { background: #fff; border-radius: 10px; padding: 18px 16px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.obs-section-title { font-size: 1em; font-weight: 800; color: #800020; margin: 0 0 14px; border-left: 4px solid #C5993A; padding-left: 10px; }
.obs-significance p { font-size: 0.9em; color: #444; line-height: 1.75; margin-bottom: 12px; }

.obs-next-banner { display: flex; align-items: flex-start; gap: 14px; background: #fff; border-radius: 10px; border-left: 5px solid #800020; padding: 16px 18px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.obs-next-banner--past { background: #faf6f2; }
.obs-next-banner-icon { font-size: 2em; line-height: 1; flex-shrink: 0; margin-top: 2px; }
.obs-next-banner-body { flex: 1; min-width: 0; }
.obs-next-banner-label { font-size: 0.78em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #888; margin-bottom: 4px; }
.obs-next-banner-date { font-size: 1.12em; font-weight: 800; color: #2d1a0e; line-height: 1.25; margin-bottom: 8px; }
.obs-next-banner-links { display: flex; flex-wrap: wrap; gap: 8px; }
.obs-next-banner-link { font-size: 0.82em; font-weight: 700; color: #800020; text-decoration: none; background: #fdf0f0; border: 1px solid #f5c0c0; border-radius: 6px; padding: 4px 10px; transition: background .15s; }
.obs-next-banner-link:hover { background: #fce0e0; text-decoration: none; }
.obs-row--past td { color: #aaa; }
.obs-row--past td strong { font-weight: 400; }
.obs-row--past td a { color: #bbb; }
.obs-row--past:hover td { color: #888; }
.obs-row--today { background: #fff8e8 !important; }
.obs-row--today td { color: #2d1a0e; }
.obs-row--today:hover { background: #fff3d4 !important; }
.obs-row--next { background: #f5fdf5 !important; }
.obs-row--next td { color: #1a3a1a; }
.obs-row--next:hover { background: #ebfaeb !important; }
.obs-date-badge { display: inline-block; font-size: 0.7em; font-weight: 700; border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; white-space: nowrap; }
.obs-date-badge--today { background: #C5993A; color: #fff; }
.obs-date-badge--next { background: #2e7d32; color: #fff; }
.obs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 4px; }
.obs-table { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.obs-table thead th { background: #800020; color: #fff; padding: 9px 10px; text-align: left; font-size: 0.82em; font-weight: 700; white-space: nowrap; }
.obs-table tbody tr:nth-child(even) { background: #faf6f2; }
.obs-table tbody td { padding: 9px 10px; color: #333; border-bottom: 1px solid #f0e8e0; vertical-align: middle; }
.obs-table tbody td a { color: #800020; font-weight: 600; text-decoration: none; }
.obs-table tbody td a:hover { text-decoration: underline; }
.obs-table tbody tr:hover { background: #fff8f2; }

.obs-month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.obs-month-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #faf6f2; border-radius: 10px; padding: 12px 10px; text-decoration: none; border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; }
.obs-month-card:hover { border-color: #C5993A; box-shadow: 0 3px 10px rgba(128,0,32,.12); text-decoration: none; }
.obs-month-card--none { opacity: 0.6; }
.obs-month-name { font-weight: 700; color: #2d1a0e; font-size: 0.85em; }
.obs-month-date { font-size: 0.78em; font-weight: 700; }
.obs-month-none { color: #aaa; font-style: italic; }
.obs-month-cta { font-size: 0.72em; color: #800020; margin-top: 2px; }

.obs-activity-list { margin: 0; padding-left: 20px; }
.obs-activity-list li { color: #444; font-size: 0.9em; padding: 4px 0; line-height: 1.5; }

.obs-year-links { display: flex; flex-wrap: wrap; gap: 8px; }
.obs-year-link { padding: 8px 16px; border-radius: 8px; background: #f5f0eb; color: #4A0E0E; font-weight: 700; font-size: 0.88em; text-decoration: none; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.obs-year-link:hover { background: #fef0e0; border-color: #C5993A; text-decoration: none; }
.obs-year-link.active { background: #800020; color: #fff; border-color: #800020; }

.obs-other-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.obs-other-card { display: flex; flex-direction: column; align-items: center; gap: 4px; background: #faf6f2; border-radius: 10px; padding: 12px 10px; text-decoration: none; border: 2px solid transparent; transition: border-color .15s; }
.obs-other-card:hover { border-color: #C5993A; text-decoration: none; }
.obs-other-icon { font-size: 1.6em; }
.obs-other-name { font-size: 0.78em; font-weight: 700; color: #2d1a0e; text-align: center; }
.obs-other-ta { font-size: 0.7em; color: #888; text-align: center; }

.obs-month-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.obs-month-nav-btn { padding: 8px 14px; background: #f5f0eb; border-radius: 8px; color: #4A0E0E; font-weight: 700; font-size: 0.85em; text-decoration: none; border: 2px solid transparent; transition: background .15s, border-color .15s; }
.obs-month-nav-btn:hover { background: #fef0e0; border-color: #C5993A; text-decoration: none; }
.obs-month-nav-current { font-size: 0.9em; font-weight: 700; color: #800020; }

/* ---- Observance day badges (panchangam-day.php) ---- */
.obs-day-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.obs-day-badge { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 10px; padding: 10px 14px; text-decoration: none; border: 2px solid currentColor; box-shadow: 0 2px 8px rgba(0,0,0,.07); transition: box-shadow .15s, transform .15s; flex: 1; min-width: 180px; }
.obs-day-badge:hover { box-shadow: 0 4px 14px rgba(0,0,0,.13); transform: translateY(-1px); text-decoration: none; }
.obs-badge-icon { font-size: 1.6em; flex-shrink: 0; }
.obs-badge-name { font-weight: 800; font-size: 0.95em; }
.obs-badge-ta { font-size: 0.78em; color: #666; }
.obs-badge-cta { font-size: 0.72em; margin-left: auto; flex-shrink: 0; opacity: 0.75; }

@media (max-width: 600px) {
    .obs-month-grid { grid-template-columns: repeat(3, 1fr); }
    .obs-other-grid { grid-template-columns: repeat(3, 1fr); }
    .obs-year-tabs { gap: 6px; }
    .obs-hero-title { font-size: 1.1em; }
    .obs-day-badge { min-width: 140px; }
}

/* Observance summary on monthly Panchangam page */
.tk-obs-month-grid { display: flex; flex-direction: column; gap: 10px; }
.tk-obs-month-card { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0ebe4; }
.tk-obs-month-card:last-child { border-bottom: none; padding-bottom: 0; }
.tk-obs-month-icon { font-size: 1.5em; flex-shrink: 0; line-height: 1.2; }
.tk-obs-month-info { flex: 1; min-width: 0; }
.tk-obs-month-name { display: block; font-weight: 700; color: #800020; font-size: 0.9em; text-decoration: none; line-height: 1.3; }
.tk-obs-month-name:hover { text-decoration: underline; }
.tk-obs-month-ta { font-weight: 400; color: #888; font-size: 0.85em; margin-left: 4px; }
.tk-obs-month-dates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.tk-obs-date-chip { display: inline-block; padding: 2px 9px; background: #faf0e0; border-radius: 12px; color: #800020; font-size: 0.78em; font-weight: 600; text-decoration: none; border: 1px solid rgba(128,0,32,.2); }
.tk-obs-date-chip:hover { background: #fde8c8; text-decoration: none; }

/* Upcoming observances widget on homepage */
.tk-obs-upcoming-list { display: flex; flex-direction: column; gap: 8px; }
.tk-obs-upcoming-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; background: #faf6f2; border: 1px solid #efe8e0; }
.tk-obs-upcoming-today { background: #fff8e8; border-color: #C5993A; }
.tk-obs-upcoming-icon { font-size: 1.4em; flex-shrink: 0; line-height: 1.2; }
.tk-obs-upcoming-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tk-obs-upcoming-name { font-weight: 700; color: #800020; font-size: 0.88em; text-decoration: none; }
.tk-obs-upcoming-name:hover { text-decoration: underline; }
.tk-obs-upcoming-ta { font-weight: 400; color: #999; font-size: 0.82em; margin-left: 4px; }
.tk-obs-upcoming-date { font-size: 0.82em; color: #555; text-decoration: none; }
.tk-obs-upcoming-date:hover { color: #800020; text-decoration: underline; }

/* City cross-links on daily Panchangam pages */
.tk-city-links-box { margin-top: 16px; }
.tk-city-links { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0; }
.tk-city-link { display: inline-block; padding: 6px 14px; background: #faf6f2; border: 1px solid #ded0c0; border-radius: 20px; color: #800020; font-size: 0.82em; font-weight: 500; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.tk-city-link:hover { background: #fde8c8; border-color: #C5993A; color: #800020; text-decoration: none; }
.tk-city-link--active { background: #800020; border-color: #800020; color: #fff; cursor: default; font-weight: 600; }
.tk-city-link--active:hover { background: #800020; border-color: #800020; color: #fff; }

/* City directory – nearest-city highlight */
.tk-city-hub-card.tk-your-city {
    border-color: #800020;
    box-shadow: 0 4px 18px rgba(128,0,32,.22);
    background: #fff8f0;
}
.city-badge-your-city {
    font-size: .65em;
    font-weight: 800;
    color: #fff;
    background: #800020;
    border-radius: 20px;
    padding: 2px 9px;
    margin-bottom: 4px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* ── New panchangam section styles ── */
.tk-next-row { display: block; margin-top: 3px; color: #5c6bc0; font-size: 0.82em; }
.tk-muhurtha-card { border-left: 3px solid #C5993A; }
.tk-chog-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 8px 0; }
.tk-chog-cell { padding: 8px 10px; border-radius: 5px; }
.tk-chog-legend { font-size: 0.78em; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; color: #555; }
@media (max-width: 640px) {
  .tk-chog-grid { grid-template-columns: repeat(2, 1fr); }
}
