/* /explore/rankings (Phase 25) — the home page's look (landing.css cards,
   curvy lines, pill buttons) around two tab cards, a scope row and one
   ranking panel. Layout from docs/mockups/rankings_tabs_mockup.html. */
.rk {
    --rk-tx: #1d1d1f; --rk-tx2: #6e6e73; --rk-tx3: #86868b; --rk-bd: #e9ebf0;
    --rk-blue: #007aff; --rk-violet: #6e4ff5;
    padding-top: var(--navbar-height, 64px) !important;
    padding-bottom: 0 !important;
}
.rk-wrap { position: relative; overflow: hidden; padding-bottom: 12px; }
.rk-curves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* hero */
.rk-hero { position: relative; z-index: 1; text-align: center; padding: 44px 16px 22px; }
.rk-pill {
    display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 8px; align-items: center;
    max-width: 100%; padding: 7px 16px; border: 1px solid var(--rk-bd); border-radius: 999px;
    font-size: 13.5px; color: #3a3a3c; background: #fff;
}
@media (max-width: 700px) { .rk-pill { display: inline-block; text-align: center; font-size: 12.5px; } .rk-dot { display: inline-block; margin-right: 6px; vertical-align: 1px; } }
.rk-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d4c; box-shadow: 0 0 0 3px #1f9d4c22; }
.rk-hero h1 {
    font-size: clamp(34px, 6vw, 58px); font-weight: 800; letter-spacing: -.035em;
    margin: 18px 0 6px; line-height: 1.05; text-wrap: balance; color: var(--rk-tx);
}
.rk-hero h1 span { font-weight: 300; }
.rk-tag { font-size: clamp(16px, 2.2vw, 20px); color: var(--rk-tx2); margin: 0 auto; max-width: 620px; text-wrap: balance; }
.rk-sub { color: var(--rk-tx3); font-size: 14px; margin: 8px 0 0; }

/* the two big tabs — landing.css .lp-f-card, as buttons */
.rk-tabs {
    position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
    max-width: 1040px; margin: 18px auto 0; padding: 0 16px;
}
.rk .rk-tab {
    --c: var(--rk-blue); width: 100%; min-height: 0; gap: 18px; padding: 22px 22px 18px;
    font: inherit; text-align: left; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.rk .rk-tab[data-tab="whattnext"] { --c: var(--rk-violet); }
.rk .rk-tab[aria-selected="true"] {
    border-color: color-mix(in srgb, var(--c) 55%, #e9ebf0);
    box-shadow: 0 2px 4px rgba(20, 30, 60, .05), 0 18px 40px color-mix(in srgb, var(--c) 20%, transparent);
}
.rk .rk-tab[aria-selected="false"] { opacity: .78; }
.rk .rk-tab[aria-selected="false"]:hover, .rk .rk-tab[aria-selected="false"]:focus-visible { opacity: 1; }
.rk-tab .lp-f-d { font-size: 14px; }
.rk-tab .lp-f-foot { flex-wrap: wrap; row-gap: 8px; }
.rk-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.rk-src {
    font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px;
    background: color-mix(in srgb, var(--c) 9%, #fff); color: color-mix(in srgb, var(--c) 80%, #000);
}

/* scope row + panel */
.rk-board { position: relative; z-index: 1; max-width: 1040px; margin: 22px auto 0; padding: 0 16px 10px; }
.rk-scope { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.rk-lab { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rk-tx3); margin-right: 4px; }
.rk-sc {
    font: inherit; font-size: 14px; line-height: 1.3; padding: 8px 15px; border-radius: 999px;
    border: 1px solid var(--rk-bd); background: #fff; color: #3a3a3c; cursor: pointer;
}
.rk-sc:hover { border-color: #c7c9d1; }
.rk-sc[aria-pressed="true"], select.rk-sc.rk-on { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
select.rk-sc { padding-right: 30px; max-width: 100%; }
select.rk-sc option { background: #fff; color: #1d1d1f; }
.rk-sc:focus-visible, .rk-sw:focus-visible, .rk-next:focus-visible, .rk-panel a:focus-visible {
    outline: 3px solid #007aff66; outline-offset: 2px;
}

.rk-panel {
    --c: var(--rk-blue); border: 1px solid var(--rk-bd); border-radius: 22px; background: #fff;
    box-shadow: 0 1px 2px rgba(20, 30, 60, .04), 0 14px 34px rgba(20, 40, 90, .06); overflow: hidden;
}
.rk-panel.rk-wtn { --c: var(--rk-violet); }
.rk-phead {
    display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between;
    padding: 20px 22px 14px;
    background: radial-gradient(90% 140% at 100% 0%, color-mix(in srgb, var(--c) 8%, transparent), transparent 60%);
}
.rk .rk-h3 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.02em; color: var(--rk-tx); }
.rk-meta { color: var(--rk-tx2); font-size: 13.5px; margin-top: 2px; }
.rk-switch { display: inline-flex; flex-wrap: wrap; padding: 3px; border-radius: 999px; background: #f2f3f7; border: 1px solid var(--rk-bd); }
.rk-sw {
    font: inherit; font-size: 13.5px; font-weight: 600; border: 0; background: transparent;
    padding: 7px 14px; border-radius: 999px; color: #55555a; cursor: pointer;
}
.rk-sw[aria-pressed="true"] { background: #fff; color: var(--rk-tx); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.rk-tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.rk-tbl table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; margin: 0; }
.rk-tbl.rk-wide table { min-width: 760px; }
.rk-tbl th {
    font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--rk-tx3);
    text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--rk-bd); background: #fafbfd; white-space: nowrap;
}
.rk-tbl td { padding: 11px 14px; border-bottom: 1px solid #f0f1f5; font-size: 14.5px; vertical-align: middle; color: var(--rk-tx); }
.rk-tbl tr:last-child td { border-bottom: 0; }
.rk-tbl td.rk-rk { font-weight: 800; color: var(--c); width: 74px; white-space: nowrap; }
.rk-tbl td.rk-nm { font-weight: 600; }
.rk-tbl td.rk-nm a { color: inherit; text-decoration: none; }
.rk-tbl td.rk-nm a:hover { color: var(--c); text-decoration: underline; }
.rk-tbl td.rk-nm small { display: block; font-weight: 400; color: var(--rk-tx3); font-size: 12.5px; }
.rk-tbl td.rk-num { font-weight: 700; white-space: nowrap; }
.rk-tbl td.rk-dim { color: var(--rk-tx3); }
.rk-flag { font-size: 12px; font-weight: 600; color: #55555a; background: #f2f3f7; border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.rk-b { font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; display: inline-block; }
.rk-b.rk-meas { background: #e7f6ec; color: #1f7a3f; }
.rk-b.rk-est { background: #fff4dc; color: #a0680a; }
.rk-b.rk-naac { background: #efeafe; color: #5b3fd6; margin-left: 4px; }
.rk-bars, .rk-bh { display: grid; grid-template-columns: repeat(6, minmax(34px, 1fr)); gap: 6px; min-width: 250px; }
.rk-bh span { font-size: 9.5px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
.rk-bar { height: 6px; border-radius: 4px; background: #eef0f5; position: relative; display: block; }
.rk-bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 55%, #00c6ff)); }

.rk-note {
    display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 13px 22px;
    border-top: 1px solid var(--rk-bd); background: #fbfbfd; color: var(--rk-tx2); font-size: 13px; line-height: 1.5;
}
.rk-note a { color: color-mix(in srgb, var(--c) 85%, #000); font-weight: 600; text-decoration: none; }
.rk-note a:hover { text-decoration: underline; }
.rk-ic {
    flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px;
    background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
    display: grid; place-items: center; font-size: 11px; font-weight: 800; font-style: normal;
}
.rk-more-row { text-align: center; padding: 14px; border-top: 1px solid #f0f1f5; color: var(--rk-tx2); font-size: 14px; }
.rk-next {
    font: inherit; font-size: 14px; font-weight: 600; background: #1d1d1f; color: #fff; border: 0;
    border-radius: 999px; padding: 9px 18px; cursor: pointer;
}
.rk-next b { color: #7cc4ff; }
.rk-next[disabled] { opacity: .6; cursor: progress; }
.rk-all { display: inline-block; margin-left: 10px; font-weight: 600; color: var(--c); text-decoration: none; }
.rk-empty { padding: 22px; color: var(--rk-tx2); margin: 0; }
.rk-empty a { color: var(--c); font-weight: 600; }

/* lower section (landing.css .lp-proof / .lp-ex) */
.rk-lower { margin-top: 40px; }
.rk-cards { max-width: 1040px; }
.rk-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); }
.rk .rk-card h3 { margin: 6px 0 8px; font-size: 17px; color: var(--rk-tx); }
.rk .rk-card p, .rk .rk-card li { color: var(--rk-tx2); font-size: 13.5px; margin: 0; line-height: 1.5; }
.rk .rk-card ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.rk-trends { padding-top: 36px; padding-bottom: 48px; }

@media (max-width: 1000px) { .rk-cards { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 800px) { .rk-cards { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
    .rk-tabs { grid-template-columns: 1fr; gap: 12px; }
    .rk .rk-tab { padding: 19px 18px 16px; }
    .rk-hero { padding-top: 28px; }
    .rk-phead { padding: 16px 16px 12px; }
    .rk-note { padding: 12px 16px; }
    .rk-tbl td, .rk-tbl th { padding-left: 10px; padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .rk *, .rk *::before, .rk *::after { transition: none !important; animation: none !important; }
    .rk .rk-tab:hover { transform: none; }
}

/* Phase 17 L11: specialist institutes under the India outcomes list */
.rk-spec { margin: 10px 0 4px; }
.rk-spec > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.rk-spec .rk-nm small { display: block; }
