/* ═══════════════════════════════════════════════════════════════════
   /application: the Interns section (templates/application.html,
   static/js/apply-interns.js). Approved design "Merge A", 2026-10-06:
   a big INTERNS heading, ALL / ACTIVE / GRADUATES with superscript
   counts, a white toolbar (search, country, sort, view), and Cards /
   Spotlight / List results with a bottom sheet on phones.

   Everything is scoped to .dfi so the short class names cannot leak, and
   every colour is a token from df-tokens.css (tests/test_theme_tokens.py
   forbids raw values here). Avatar tiles and the seal's tick use the
   theme-stable brand and navy tokens (--df-navy, --df-on-navy), since white initials must stay
   readable in both themes.
   ═══════════════════════════════════════════════════════════════════ */

.dfi {
    --dfi-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --dfi-grid: linear-gradient(color-mix(in srgb, var(--df-line-strong) 7%, transparent) 1px, transparent 1px) 0 0 / 22px 22px,
                linear-gradient(90deg, color-mix(in srgb, var(--df-line-strong) 7%, transparent) 1px, transparent 1px) 0 0 / 22px 22px;
    --dfi-card: var(--df-surface);
    --dfi-on-tile: var(--df-on-navy);
    padding: 1.5rem 0 4rem;
}
[data-theme="dark"] .dfi { --dfi-card: color-mix(in srgb, var(--df-line) 55%, var(--df-surface)); }

.dfi :focus-visible { outline: 2px solid var(--df-accent); outline-offset: 2px; }
.dfi ul { list-style: none; margin: 0; padding: 0; }
.dfi h2, .dfi h3, .dfi h4 { margin: 0; }
.dfi button, .dfi input, .dfi select { font: inherit; color: inherit; }
.dfi mark { background: var(--df-cell); color: inherit; border-radius: 3px; padding: 0 1px; }
.dfi kbd { font: 600 11px var(--dfi-mono); border-radius: 6px; padding: 2px 6px; background: var(--dfi-card); color: var(--df-ink-3); box-shadow: none; }
.dfi .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── panel ─────────────────────────────────────────────────────────── */
.dfi-panel { border-radius: 32px; background: var(--df-panel); padding: 30px 32px 36px; position: relative; }
.dfi-panel::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: var(--dfi-grid);
    -webkit-mask: linear-gradient(black, transparent 38%); mask: linear-gradient(black, transparent 38%); }
.dfi-panel > * { position: relative; }

.dfi .hd { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px 40px; flex-wrap: wrap; }
/* Display recipe and size come from the shared type system (df-tokens.css). */
body.public .dfi .disp { font-family: var(--df-font-display); font-stretch: var(--df-display-stretch); font-variation-settings: var(--df-display-wdth); font-weight: var(--df-display-weight); text-transform: uppercase; letter-spacing: var(--df-display-ls); line-height: var(--df-display-lh); margin: 0; color: var(--df-ink); }
body.public .dfi .hd h2 { font-size: var(--df-type-h2); }
.dfi .lede { font-size: 1.02rem; line-height: 1.5; color: var(--df-ink-2); max-width: 44ch; margin: 0; padding-bottom: 4px; }
.dfi .eyebrow { font: 600 12px var(--dfi-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--df-ink-3); }

.dfi .b1 { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: var(--df-ink); color: var(--df-paper); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; }
.dfi .b2 { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 15px; border-radius: 999px; border: 0; color: var(--df-ink); font-weight: 600; background: var(--df-panel); cursor: pointer; white-space: nowrap; font-size: 14px; }
.dfi .b2:hover { background: var(--df-accent-soft); }

/* ── atoms ─────────────────────────────────────────────────────────── */
.dfi .av { position: relative; display: block; overflow: hidden; background: var(--c, var(--df-brand-cyan)); color: var(--dfi-on-tile); flex: none; }
.dfi .av::before { content: attr(data-i); position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; letter-spacing: .02em; font-size: var(--fs, 15px); }
.dfi .av.g { background: linear-gradient(140deg, color-mix(in srgb, var(--df-brand-teal) 62%, var(--df-navy)), color-mix(in srgb, var(--df-brand-cyan) 72%, var(--df-navy))); }
.dfi .av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.dfi .lk { display: inline-flex; gap: 2px; }
.dfi .lk a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--df-ink-3); transition: background .15s, color .15s; }
.dfi .lk a:hover { background: var(--df-panel); color: var(--df-ink); }
.dfi .lk svg { width: 15px; height: 15px; fill: currentColor; }
.dfi .flag .fi { margin-right: 6px; border-radius: 2px; }
.dfi .seal { width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.dfi .seal polygon { fill: var(--df-achieve-fill); }
.dfi .seal path { stroke: var(--dfi-on-tile); }
.dfi .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--df-achieve-fill); flex: none; }

/* ── status words ──────────────────────────────────────────────────── */
.dfi .words { display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 22px 0 0; }
.dfi .words button { border: 0; background: none; padding: 2px 0 7px; cursor: pointer; font-size: clamp(1.5rem, 3vw, 2.55rem); font-weight: 800; font-stretch: 75%; font-variation-settings: "wdth" 75; text-transform: uppercase; line-height: .9;
    color: color-mix(in srgb, var(--df-line-strong) 75%, transparent); position: relative; transition: color .2s; display: inline-flex; align-items: flex-start; }
.dfi .words button:hover { color: var(--df-ink-2); }
.dfi .words button[aria-pressed="true"] { color: var(--df-ink); }
.dfi .words button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--df-accent); width: 0; transition: width .3s var(--df-ease); }
.dfi .words button[aria-pressed="true"]::after { width: 100%; }
.dfi .words sup { font: 600 11px var(--dfi-mono); letter-spacing: 0; margin: .3em 0 0 3px; display: inline-block; min-width: 3ch; font-variant-numeric: tabular-nums; top: 0; }
.dfi .words button:focus-visible { outline-offset: 4px; border-radius: 6px; }
.dfi .words button.bump sup { animation: dfi-bump .32s var(--df-ease); }
@keyframes dfi-bump { 40% { transform: translateY(-3px) scale(1.2); color: var(--df-accent); } }

/* ── toolbar ───────────────────────────────────────────────────────── */
.dfi .tb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--dfi-card); border-radius: 20px; padding: 8px; margin: 16px 0 0; }
.dfi .search { position: relative; flex: 1 1 260px; display: flex; align-items: center; min-width: 0; }
.dfi .search > svg { position: absolute; left: 14px; width: 17px; height: 17px; stroke: var(--df-ink-3); fill: none; stroke-width: 2; pointer-events: none; }
.dfi .search input { width: 100%; min-width: 0; border: 0; outline: 0; background: var(--df-panel); border-radius: 14px; padding: 11px 84px 11px 40px; font-size: 15.5px; color: var(--df-ink); transition: box-shadow .2s, background .2s; }
.dfi .search input::placeholder { color: var(--df-ink-3); }
.dfi .search input::-webkit-search-cancel-button { display: none; }
.dfi .search input:focus { background: var(--dfi-card); box-shadow: 0 0 0 2px var(--df-accent); }
.dfi .search .hint { position: absolute; right: 10px; display: flex; gap: 6px; align-items: center; pointer-events: none; }
.dfi .search .x { position: absolute; right: 8px; height: 28px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--df-line); color: var(--df-ink); cursor: pointer; font-size: 12.5px; font-weight: 600; display: none; }
.dfi .search.has .x { display: block; }
.dfi .search.has .hint { display: none; }
.dfi .search.busy::after { content: ""; position: absolute; left: 40px; right: 90px; bottom: 6px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--df-accent), transparent); background-size: 50% 100%; animation: dfi-scan .8s linear infinite; }
@keyframes dfi-scan { from { background-position: -100% 0; } to { background-position: 200% 0; } }
.dfi .opts { display: flex; gap: 8px; align-items: center; }

/* sort: a native select, its chevron drawn by the label so no colour is
   baked into an SVG */
.dfi .srt { position: relative; display: inline-flex; margin: 0; }
.dfi .srt::after { content: ""; position: absolute; right: 13px; top: 50%; width: 10px; height: 6px; margin-top: -3px; background: var(--df-ink-3); pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='black' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='black' fill='none' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain; }
.dfi .sel2 { appearance: none; -webkit-appearance: none; border: 0; background: var(--df-panel); color: var(--df-ink); border-radius: 12px; padding: 10px 32px 10px 14px; font-size: 14px; font-weight: 600; cursor: pointer; height: 42px; }
.dfi .sel2:hover { background-color: var(--df-accent-soft); }
.dfi .sel2 option { color: var(--df-ink); background: var(--dfi-card); }

/* country dropdown (listbox popover) */
.dfi .cty { position: relative; }
.dfi .ctyb { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 14px; border: 0; border-radius: 12px; background: var(--df-panel); color: var(--df-ink); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; max-width: 200px; }
.dfi .ctyb span { overflow: hidden; text-overflow: ellipsis; }
.dfi .ctyb svg { flex: none; color: var(--df-ink-3); transition: transform .2s var(--df-ease); }
.dfi .ctyb:hover { background: var(--df-accent-soft); }
.dfi .ctyb[aria-expanded="true"] svg { transform: rotate(180deg); }
.dfi .ctyb.on { background: var(--df-ink); color: var(--df-paper); }
.dfi .ctyb.on svg { color: inherit; }
.dfi .ctyl { position: absolute; left: 0; top: calc(100% + 8px); z-index: 40; width: 240px; max-width: calc(100vw - 32px); background: var(--dfi-card); border-radius: 16px; box-shadow: var(--df-shadow); padding: 6px; max-height: min(360px, 60vh); overflow: auto; outline: 0;
    opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top left; pointer-events: none; visibility: hidden; transition: opacity .16s ease-out, transform .18s var(--df-ease), visibility 0s .18s; }
.dfi .ctyl.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .16s ease-out, transform .18s var(--df-ease); }
.dfi .ctyl [role="option"] { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--df-ink); }
.dfi .ctyl .box { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1.5px var(--df-line-strong); transition: background .15s, box-shadow .15s; }
.dfi .ctyl .box svg { width: 12px; height: 12px; stroke: var(--df-surface); fill: none; stroke-width: 2.6; visibility: hidden; }
.dfi .ctyl [aria-selected="true"] { font-weight: 600; }
.dfi .ctyl [aria-selected="true"] .box { background: var(--df-accent); box-shadow: none; }
.dfi .ctyl [aria-selected="true"] .box svg { visibility: visible; }
.dfi .ctyl [role="option"]:hover, .dfi .ctyl .cur { background: var(--df-panel); }
.dfi .ctyl .fi, .dfi .chip .fi, .dfi .ctyb .fi { margin-right: 6px; border-radius: 2px; }
.dfi .ctyl .sep { height: 1px; background: var(--df-line); margin: 4px 8px; }

.dfi .vw { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--df-panel); gap: 2px; }
.dfi .vw button { border: 0; background: none; height: 36px; padding: 0 11px; border-radius: 9px; display: inline-flex; gap: 6px; align-items: center; color: var(--df-ink-3); cursor: pointer; font-size: 13.5px; font-weight: 600; }
.dfi .vw button:hover { color: var(--df-ink); }
.dfi .vw button[aria-pressed="true"] { background: var(--dfi-card); color: var(--df-ink); }
.dfi .vw svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* filter chips + count (only shown when something is set) */
.dfi .meta { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin: 12px 4px 0; }
.dfi .meta.off { display: none; }
.dfi .chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.dfi .chip { display: inline-flex; align-items: center; gap: 6px; background: var(--df-ink); color: var(--df-paper); border: 0; border-radius: 999px; padding: 5px 7px 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; max-width: 100%; }
.dfi .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfi .chip i { font-style: normal; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: color-mix(in srgb, var(--df-paper) 22%, transparent); font-size: 12px; }
.dfi .chip.clear { background: none; color: var(--df-ink-2); text-decoration: underline; text-underline-offset: 3px; padding: 5px 6px; }
.dfi .count { font: 500 12.5px var(--dfi-mono); color: var(--df-ink-3); }
.dfi .res { margin-top: 16px; }

/* ── cards: flat, even, quiet ──────────────────────────────────────── */
/* 4 columns, 3 on tablets: both divide the 12-card page evenly. Phones
   are 2 columns with a 6-card page (see per() in apply-interns.js). */
.dfi .cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .dfi .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dfi .tc { background: var(--dfi-card); border-radius: 20px; padding: 16px; display: grid; grid-template-rows: auto auto 1fr auto; position: relative; transition: transform .2s var(--df-ease), box-shadow .2s; }
.dfi .tc:hover, .dfi .tc:focus-within { transform: translateY(-2px); box-shadow: var(--df-shadow-soft); }
.dfi .tc .top { display: flex; justify-content: space-between; align-items: flex-start; }
.dfi .tc .av { width: 56px; height: 56px; border-radius: 16px; --fs: 18px; }
.dfi .tc .st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--df-ink-3); font-weight: 600; padding-top: 4px; }
.dfi .tc.graduate .st { color: var(--df-achieve); }
.dfi .tc .n { margin-top: 14px; font-size: 16.5px; font-weight: 650; line-height: 1.22; min-height: 2.44em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--df-ink); }
.dfi .go { all: unset; cursor: pointer; border-radius: 4px; }
.dfi .go:focus-visible { outline: 2px solid var(--df-accent); outline-offset: 3px; }
.dfi .tc .go::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.dfi .tc .ft { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; min-height: 30px; }
.dfi .tc .c { font-size: 13.5px; color: var(--df-ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.dfi .tc .lk { position: relative; z-index: 1; }

/* ── list rows ─────────────────────────────────────────────────────── */
.dfi .rows { background: var(--dfi-card); border-radius: 20px; overflow: hidden; }
.dfi .lr { display: grid; grid-template-columns: 42px minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--df-line); position: relative; transition: background .15s; }
.dfi .lr:last-child { border-bottom: 0; }
.dfi .lr:hover, .dfi .lr:focus-within { background: var(--df-accent-soft); }
.dfi .lr .av { width: 42px; height: 42px; border-radius: 12px; --fs: 13px; }
.dfi .lr .go { font-size: 15.5px; font-weight: 600; overflow-wrap: break-word; color: var(--df-ink); }
.dfi .lr .go::after { content: ""; position: absolute; inset: 0; }
.dfi .lr .lk { position: relative; z-index: 1; }
.dfi .lr .c { font-size: 14px; color: var(--df-ink-2); }
.dfi .lr .s { font-size: 13px; color: var(--df-ink-2); display: flex; gap: 7px; align-items: center; }
.dfi .lr.graduate .s { color: var(--df-achieve); font-weight: 600; }
.dfi .lgrp { font: 700 11px var(--dfi-mono); letter-spacing: .12em; color: var(--df-accent); padding: 12px 14px 6px; border-bottom: 1px solid var(--df-line); background: var(--dfi-card); }

/* ── spotlight ─────────────────────────────────────────────────────── */
.dfi .spl { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 14px; align-items: start; }
.dfi .side { background: var(--dfi-card); border-radius: 20px; padding: 8px; }
.dfi .scroller { max-height: 430px; overflow: auto; overscroll-behavior: contain; }
.dfi .spi { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; box-sizing: border-box; border: 0; background: none; padding: 7px 8px; border-radius: 14px; cursor: pointer; text-align: left; color: var(--df-ink); transition: background .15s, color .15s; }
.dfi .spi:hover { background: var(--df-panel); }
.dfi .spi[aria-current="true"] { background: var(--df-ink); color: var(--df-paper); }
.dfi .spi[aria-current="true"] small { color: inherit; opacity: .7; }
.dfi .spi .av { width: 40px; height: 40px; border-radius: 12px; --fs: 13px; }
.dfi .spi b { display: block; font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dfi .spi small { font-size: 12px; color: var(--df-ink-3); }
.dfi .spd { font: 700 11px var(--dfi-mono); letter-spacing: .12em; color: var(--df-accent); padding: 12px 8px 4px; }
.dfi .stage { position: sticky; top: 84px; border-radius: 24px; background: var(--dfi-card); padding: 22px; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 26px; align-items: end; overflow: hidden; }
.dfi .stage .av { width: 100%; aspect-ratio: 4 / 5; border-radius: 20px; --fs: 56px; }
.dfi .stage .n { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 700; line-height: 1.08; overflow-wrap: break-word; margin-top: 10px; color: var(--df-ink); }
.dfi .stage .st { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; color: var(--df-ink-2); }
.dfi .stage.graduate .st { color: var(--df-achieve); }
.dfi .stage dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; border-top: 1px solid var(--df-line); padding-top: 12px; }
.dfi dl div { min-width: 0; }
.dfi dt { font: 600 10px var(--dfi-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--df-ink-3); }
.dfi dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--df-ink); }
.dfi .stage .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.dfi .stage .acts a { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: var(--df-ink); color: var(--df-paper); text-decoration: none; font-weight: 600; font-size: 14px; }
.dfi .stage .acts svg { width: 15px; height: 15px; fill: currentColor; }
.dfi .stage .nav2 { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; z-index: 2; }
.dfi .stage .nav2 button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--df-panel); color: var(--df-ink); cursor: pointer; font-size: 16px; }
.dfi .stage .nav2 button:hover { background: var(--df-accent-soft); }
.dfi .stage.single { position: relative; top: 0; }
.dfi .banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--dfi-card); border-radius: 18px; padding: 10px 12px 10px 18px; margin-bottom: 12px; font-size: 15px; color: var(--df-ink); }
.dfi .others { margin-top: 14px; }

/* ── empty state ───────────────────────────────────────────────────── */
.dfi .empty { background: var(--dfi-card); border-radius: 24px; padding: 34px 30px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.dfi .empty h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; line-height: 1.1; color: var(--df-ink); }
.dfi .empty h3 q { color: var(--df-accent); quotes: "\201C" "\201D"; }
.dfi .empty p { color: var(--df-ink-2); margin: 12px 0 18px; line-height: 1.5; }
.dfi .empty .sugg h4 { margin: 0 0 10px; font: 600 11px var(--dfi-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--df-ink-3); }
.dfi .empty .sugg ul { display: grid; gap: 6px; margin-bottom: 18px; }
.dfi .empty .sugg .s1 { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: var(--df-panel); color: var(--df-ink); border-radius: 14px; padding: 7px 10px 7px 7px; cursor: pointer; text-align: left; }
.dfi .empty .sugg .s1:hover { background: var(--df-accent-soft); }
.dfi .empty .sugg .s1 .av { width: 34px; height: 34px; border-radius: 10px; --fs: 11px; }
.dfi .empty .sugg .s1 small { margin-left: auto; font-size: 12px; color: var(--df-ink-3); }
.dfi .empty .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.dfi .morebtn { display: flex; justify-content: center; margin-top: 20px; }

/* no-JS fallback: names and countries as a plain list */
.dfi .nojs { margin-top: 18px; columns: 3 220px; color: var(--df-ink-2); }
.dfi .nojs li { padding: 4px 0; break-inside: avoid; }

/* micro-interactions */
.dfi .b1, .dfi .b2, .dfi .chip, .dfi .vw button, .dfi .sel2, .dfi .ctyb { transition: transform .15s var(--df-ease), background .2s, box-shadow .2s; }
.dfi .b1:hover { transform: translateY(-1px); }
.dfi .b1:active, .dfi .b2:active, .dfi .chip:active, .dfi .vw button:active, .dfi .ctyb:active, .dfi .spi:active { transform: scale(.97); }

/* ── mobile sheet ──────────────────────────────────────────────────── */
.dfi .sheetbg { position: fixed; inset: 0; z-index: 1070; background: color-mix(in srgb, var(--df-navy) 45%, transparent); opacity: 0; pointer-events: none; transition: opacity .25s; }
.dfi .sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1071; max-height: 88vh; overflow: auto; background: var(--df-paper); border-radius: 26px 26px 0 0; padding: 10px 12px 20px; transform: translateY(100%); transition: transform .4s var(--df-ease); visibility: hidden; }
.dfi .sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: var(--df-line); margin: 2px auto 10px; }
.dfi .sheet .stage { position: relative; top: 0; }
.dfi .sheet .x2 { position: absolute; top: 12px; left: 14px; z-index: 3; border: 0; background: var(--df-panel); color: var(--df-ink); border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; }
.dfi .open .sheetbg { opacity: 1; pointer-events: auto; }
.dfi .open .sheet { transform: none; visibility: visible; }

@media (max-width: 900px) {
    .dfi .spl { grid-template-columns: 1fr; }
    .dfi .spl .stage { display: none; }
    .dfi .scroller { max-height: none; }
    .dfi .stage { grid-template-columns: 1fr; gap: 14px; }
    .dfi .stage .av { max-width: 180px; }
    .dfi .empty { grid-template-columns: 1fr; padding: 26px 20px; }
}
@media (max-width: 860px) {
    .dfi-panel { padding: 22px 14px 28px; border-radius: 24px; }
}
@media (max-width: 760px) {
    .dfi .hd { gap: 8px; }
    .dfi .lede { font-size: .97rem; }
    .dfi .words { gap: 2px 16px; margin-top: 16px; }
    .dfi .words button { font-size: 1.45rem; }
    .dfi .lr { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
    .dfi .lr .c, .dfi .lr .s { display: none; }
    .dfi .tb { position: sticky; top: calc(var(--df-nav-h) + 8px); z-index: 30; margin-top: 12px; padding: 6px; gap: 6px; }
    .dfi .tb .search { flex-basis: 100%; }
    .dfi .opts { width: 100%; gap: 6px; }
    .dfi .cty { flex: 1; min-width: 0; }
    .dfi .ctyb { width: 100%; max-width: none; justify-content: space-between; padding: 0 9px 0 11px; gap: 6px; font-size: 13.5px; }
    .dfi .sel2 { padding: 10px 26px 10px 11px; }
    .dfi .srt::after { right: 10px; }
    .dfi .vw button span { display: none; }
    .dfi .vw button { padding: 0 7px; }
    .dfi .search input { padding-top: 10px; padding-bottom: 10px; }
    /* 16px on touch screens: iOS zooms the page into any field under 16px. */
    .dfi .search input, .dfi .sel2 { font-size: 16px; }
    .dfi .res { margin-top: 12px; }
}
@media (max-width: 560px) {
    .dfi .df-wrap { padding-inline: 8px; }
    .dfi .lede { font-size: .95rem; }
    /* sort collapses to an icon button; the select stays focusable and
       keeps its accessible name */
    .dfi .sel2 { width: 42px; padding: 0; color: transparent; }
    .dfi .srt::after { right: 12px; width: 18px; height: 18px; margin-top: -9px;
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4v16M3 16l4 4 4-4M17 20V4M13 8l4-4 4 4'/%3E%3C/svg%3E"); }
    .dfi .sel2.on { background-color: var(--df-cell); }
    .dfi .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .dfi .tc { padding: 12px; border-radius: 18px; }
    .dfi .tc .av { width: 48px; height: 48px; border-radius: 14px; }
    .dfi .tc .n { font-size: 15px; margin-top: 12px; }
    .dfi .tc .ft { flex-direction: column; align-items: flex-start; gap: 4px; }
    .dfi .tc .lk { margin-left: -6px; }
    .dfi .tc .go::after { border-radius: 18px; }
}
@media (hover: none) { .dfi .search .hint { display: none; } }
/* Tablets too: iOS zooms into any field under 16px whatever the width. */
@media (hover: none) and (pointer: coarse) { .dfi .search input, .dfi .sel2 { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) {
    .dfi *, .dfi *::before, .dfi *::after { animation: none !important; transition: none !important; }
}

/* Interns section sits on the page, not in a card (Tassy, 2026-10-09). The intern cards inside stay. */
.dfi-panel { background: none; border-radius: 0; padding: 72px 0 80px; }
.dfi-panel::before { display: none; }
@media (max-width: 600px) { .dfi-panel { padding: 44px 8px 52px; border-radius: 0; } } /* 8px + the wrap's 8px = the site's 16px phone gutter */

/* All / Active / Graduates: the same segmented pill as Cards / Spotlight / List,
   not headline-sized words (Tassy, 2026-10-09: "inconsistent with the rest"). */
.dfi .words { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; margin: 20px 0 0; border-radius: 12px; background: var(--df-panel); }
.dfi .words button { position: relative; height: 38px; padding: 0 14px; border-radius: 9px; display: inline-flex; align-items: center; gap: 8px;
    font: 600 14.5px var(--df-font-text); font-stretch: 100%; font-variation-settings: normal; text-transform: none; line-height: 1; letter-spacing: 0; color: var(--df-ink-3); }
.dfi .words button:hover { color: var(--df-ink); }
.dfi .words button[aria-pressed="true"] { background: var(--dfi-card); color: var(--df-ink); box-shadow: 0 1px 2px color-mix(in srgb, var(--df-ink) 10%, transparent); }
.dfi .words button::after { display: none; }
.dfi .words sup { margin: 0; min-width: 0; padding: 3px 7px; border-radius: 999px; font: 600 11.5px var(--df-font-text); line-height: 1; vertical-align: baseline; background: color-mix(in srgb, var(--df-ink) 7%, transparent); color: var(--df-ink-2); }
.dfi .words button[aria-pressed="true"] sup { background: color-mix(in srgb, var(--df-accent) 14%, transparent); color: var(--df-accent-deep); }
.dfi .words button:focus-visible { outline-offset: 2px; border-radius: 9px; }
@media (max-width: 600px) { .dfi .words { margin-top: 14px; } .dfi .words button { font-size: 13.5px; padding: 0 10px; height: 36px; } }
