/**
 * India Kalyan Matka - main stylesheet.
 * Mobile-first, lightweight, information-dashboard aesthetic.
 */

:root {
	--ikm-max: 1140px;
	--ikm-wide: 1320px;
	--ikm-ink: #1a2332;
	--ikm-muted: #55617a;
	--ikm-line: #e2e6ee;
	--ikm-bg: #ffffff;
	--ikm-alt: #f5f7fb;
	--ikm-brand: #12457a;
	--ikm-brand-dark: #0d3560;
	--ikm-accent: #1f7a5c;
	--ikm-warn-bg: #fff6e6;
	--ikm-warn-line: #e9b949;
	--ikm-note-bg: #eef4fb;
	--ikm-radius: 10px;
	--ikm-shadow: 0 1px 2px rgba(16, 33, 60, .06), 0 6px 20px rgba(16, 33, 60, .05);
	--ikm-space: 16px;
	--ikm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ikm-bg); color: var(--ikm-ink); font-family: var(--ikm-font); font-size: 17px; line-height: 1.65; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ikm-brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ikm-brand-dark); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ikm-ink); margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid #1f7a5c; outline-offset: 2px; }

/* Layout helpers */
.ikm-container { width: 100%; max-width: var(--ikm-max); margin-inline: auto; padding-inline: var(--ikm-space); }
.ikm-section { padding-block: 32px; }
.ikm-section--alt { background: var(--ikm-alt); }
.ikm-skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ikm-brand); padding: 10px 16px; border-radius: 6px; z-index: 1000; }
.ikm-skip-link:focus { left: 8px; top: 8px; }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; }

/* Header */
.ikm-header { background: #fff; border-bottom: 1px solid var(--ikm-line); position: sticky; top: 0; z-index: 50; }
.ikm-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.ikm-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ikm-brand); text-decoration: none; letter-spacing: -.01em; }
.ikm-brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--ikm-brand); color: #fff; font-size: .95rem; font-weight: 800; }
.ikm-nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: var(--ikm-alt); border: 1px solid var(--ikm-line); border-radius: 8px; padding: 8px 12px; font: inherit; font-size: .95rem; cursor: pointer; color: var(--ikm-ink); }
.ikm-nav-toggle__bars { position: relative; width: 18px; height: 2px; background: currentColor; display: inline-block; }
.ikm-nav-toggle__bars::before, .ikm-nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.ikm-nav-toggle__bars::before { top: -6px; }
.ikm-nav-toggle__bars::after { top: 6px; }
.ikm-primary-nav ul { list-style: none; margin: 0; padding: 0; }
.ikm-primary-nav a { display: block; padding: 12px 4px; color: var(--ikm-ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--ikm-line); }
.ikm-primary-nav a:hover, .ikm-primary-nav .current-menu-item > a { color: var(--ikm-brand); }

/* Mobile nav is collapsed by default; shown when toggled or when JS is absent via :target fallback */
.ikm-primary-nav { display: none; padding-bottom: 10px; }
.ikm-primary-nav.is-open { display: block; }
.no-js .ikm-primary-nav { display: block; }

/* Breadcrumbs */
.ikm-breadcrumbs { font-size: .85rem; color: var(--ikm-muted); padding-block: 12px; }
.ikm-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.ikm-breadcrumbs li::after { content: "/"; margin-left: 6px; color: var(--ikm-line); }
.ikm-breadcrumbs li:last-child::after { content: ""; }
.ikm-breadcrumbs a { text-decoration: none; }

/* Hero / page intro */
.ikm-hero { background: linear-gradient(180deg, #eef4fb 0%, #ffffff 100%); border-bottom: 1px solid var(--ikm-line); }
.ikm-hero__inner { padding-block: 34px; }
.ikm-hero h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: .4em; }
.ikm-hero p { color: var(--ikm-muted); max-width: 60ch; margin-bottom: 0; }
.ikm-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ikm-accent); background: #e6f2ec; padding: 4px 10px; border-radius: 999px; margin-bottom: 12px; }

/* Cards */
.ikm-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.ikm-card { background: #fff; border: 1px solid var(--ikm-line); border-radius: var(--ikm-radius); padding: 18px; box-shadow: var(--ikm-shadow); }
.ikm-card h3 { margin-bottom: 6px; }
.ikm-card h3 a { text-decoration: none; color: var(--ikm-ink); }
.ikm-card h3 a:hover { color: var(--ikm-brand); }
.ikm-card p { color: var(--ikm-muted); margin-bottom: 10px; font-size: .96rem; }
.ikm-card__meta { font-size: .8rem; color: var(--ikm-muted); display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.ikm-card__link { font-weight: 600; font-size: .92rem; text-decoration: none; }
.ikm-card__link::after { content: " \2192"; }

.ikm-topic-card { display: flex; flex-direction: column; gap: 4px; }
.ikm-topic-card__icon { width: 40px; height: 40px; border-radius: 9px; background: var(--ikm-note-bg); color: var(--ikm-brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 6px; }

/* Update meta line */
.ikm-updated { font-size: .8rem; color: var(--ikm-muted); }

/* Notices */
.ikm-notice { border-radius: var(--ikm-radius); padding: 16px 18px; margin: 18px 0; border: 1px solid var(--ikm-line); background: var(--ikm-note-bg); }
.ikm-notice--safety { background: var(--ikm-warn-bg); border-color: var(--ikm-warn-line); }
.ikm-notice h2, .ikm-notice h3 { margin-top: 0; }
.ikm-notice p:last-child { margin-bottom: 0; }
.ikm-disclaimer { font-size: .9rem; color: var(--ikm-muted); background: var(--ikm-alt); border: 1px dashed var(--ikm-line); border-radius: var(--ikm-radius); padding: 14px 16px; }

/* Content layout */
.ikm-layout { display: grid; gap: 28px; grid-template-columns: 1fr; }
.ikm-content { max-width: 72ch; }
.ikm-content h2 { margin-top: 1.6em; padding-top: .2em; }
.ikm-content h3 { margin-top: 1.3em; }
.ikm-content ul, .ikm-content ol { padding-left: 1.25em; }
.ikm-content li { margin-bottom: .4em; }
.ikm-content table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; }
.ikm-content th, .ikm-content td { border: 1px solid var(--ikm-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.ikm-content th { background: var(--ikm-alt); }
.ikm-table-wrap { overflow-x: auto; }

/* Definition/glossary */
.ikm-glossary { display: grid; gap: 12px; }
.ikm-term { border: 1px solid var(--ikm-line); border-radius: var(--ikm-radius); padding: 14px 16px; background: #fff; }
.ikm-term__name { font-weight: 700; margin: 0 0 4px; }
.ikm-term__caution { color: #8a5b00; background: var(--ikm-warn-bg); border-radius: 6px; padding: 6px 10px; font-size: .88rem; margin-top: 8px; }

/* FAQ accordion (works without JS: uses details/summary) */
.ikm-faq { display: grid; gap: 10px; }
.ikm-faq details { border: 1px solid var(--ikm-line); border-radius: var(--ikm-radius); background: #fff; }
.ikm-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.ikm-faq summary::-webkit-details-marker { display: none; }
.ikm-faq summary::after { content: "+"; font-size: 1.3rem; color: var(--ikm-brand); }
.ikm-faq details[open] summary::after { content: "\2212"; }
.ikm-faq__answer { padding: 0 16px 16px; color: var(--ikm-ink); }
.ikm-faq__answer p:last-child { margin-bottom: 0; }

/* Buttons */
.ikm-btn { display: inline-block; background: var(--ikm-brand); color: #fff; text-decoration: none; padding: 11px 18px; border-radius: 8px; font-weight: 600; border: 1px solid var(--ikm-brand); cursor: pointer; font: inherit; font-weight: 600; }
.ikm-btn:hover { background: var(--ikm-brand-dark); color: #fff; }
.ikm-btn--ghost { background: transparent; color: var(--ikm-brand); }

/* Forms */
.ikm-form { display: grid; gap: 14px; max-width: 620px; }
.ikm-field { display: grid; gap: 6px; }
.ikm-field label { font-weight: 600; font-size: .95rem; }
.ikm-field input, .ikm-field select, .ikm-field textarea { width: 100%; padding: 11px 12px; border: 1px solid #c3ccdb; border-radius: 8px; font: inherit; background: #fff; }
.ikm-field input:focus, .ikm-field select:focus, .ikm-field textarea:focus { border-color: var(--ikm-brand); }
.ikm-field textarea { min-height: 150px; resize: vertical; }
.ikm-hp { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.ikm-form__note { font-size: .85rem; color: var(--ikm-muted); }
.ikm-form-message { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.ikm-form-message--ok { background: #e6f4ec; border: 1px solid #9bceb3; color: #14603a; }
.ikm-form-message--err { background: #fbe6e6; border: 1px solid #e0a3a3; color: #8a1f1f; }

/* Pagination */
.ikm-pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ikm-pagination a, .ikm-pagination span { display: inline-block; padding: 8px 13px; border: 1px solid var(--ikm-line); border-radius: 8px; text-decoration: none; }
.ikm-pagination .current { background: var(--ikm-brand); color: #fff; border-color: var(--ikm-brand); }

/* Article footer meta */
.ikm-byline { font-size: .85rem; color: var(--ikm-muted); display: flex; flex-wrap: wrap; gap: 6px 16px; border-top: 1px solid var(--ikm-line); border-bottom: 1px solid var(--ikm-line); padding: 12px 0; margin: 6px 0 20px; }
.ikm-source-note { font-size: .9rem; background: var(--ikm-note-bg); border-radius: var(--ikm-radius); padding: 12px 14px; margin: 18px 0; }

/* Ad slots (generic, clearly labeled; no gambling creatives shipped) */
.ikm-ad { margin: 22px 0; text-align: center; }
.ikm-ad__label { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ikm-muted); margin-bottom: 6px; }
.ikm-ad__slot { min-height: 90px; border: 1px dashed var(--ikm-line); border-radius: 8px; display: grid; place-items: center; color: var(--ikm-muted); font-size: .82rem; background: var(--ikm-alt); }

/* Footer */
.ikm-footer { background: #0e1b2e; color: #c7d2e2; margin-top: 40px; }
.ikm-footer a { color: #dfe7f2; text-decoration: none; }
.ikm-footer a:hover { text-decoration: underline; color: #fff; }
.ikm-footer__cols { display: grid; gap: 24px; grid-template-columns: 1fr; padding-block: 34px; }
.ikm-footer__col h2 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.ikm-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ikm-footer__brand { font-weight: 800; color: #fff; font-size: 1.1rem; margin-bottom: 8px; display: inline-block; }
.ikm-footer__bottom { border-top: 1px solid #22344d; padding-block: 18px; font-size: .85rem; color: #9fb0c7; }

/* Empty state */
.ikm-empty { border: 1px dashed var(--ikm-line); border-radius: var(--ikm-radius); padding: 22px; text-align: center; color: var(--ikm-muted); background: var(--ikm-alt); }

/* 404 */
.ikm-404 { text-align: center; padding-block: 40px; }
.ikm-404 h1 { font-size: 2.2rem; }

/* Section heading */
.ikm-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.ikm-section__head h2 { margin: 0; }
.ikm-section__head a { font-size: .9rem; font-weight: 600; text-decoration: none; }

/* Responsive */
@media (min-width: 700px) {
	.ikm-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.ikm-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.ikm-footer__cols { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
	body { font-size: 18px; }
	.ikm-nav-toggle { display: none; }
	.ikm-primary-nav { display: block !important; }
	.ikm-primary-nav ul { display: flex; gap: 4px; align-items: center; }
	.ikm-primary-nav a { border-bottom: 0; padding: 10px 12px; border-radius: 8px; }
	.ikm-primary-nav a:hover, .ikm-primary-nav .current-menu-item > a { background: var(--ikm-note-bg); }
	.ikm-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.ikm-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ikm-layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
@media (min-width: 1100px) {
	.ikm-grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
}
