/* College details: overview tab panel (prefix agd-ov-). Compact: At a glance tiles first, About (5-line clamp), Key information, Why choose.
   Shared .agd-section / .agd-prose live in nav.css. */
.agd-ov { position: relative; min-width: 0; --agd-ov-card: var(--ag-surface); }
.agd-ov .agd-section-title { font-size: 1.2rem; line-height: 1.3; margin-bottom: 12px; gap: 8px; }
.agd-ov .agd-section-title > i { font-size: 1.05rem; }

/* Shared compact card */
.agd-ov-about, .agd-ov-facts, .agd-ov-why {
  --agd-ov-fade: var(--agd-ov-card);
  position: relative; min-width: 0; margin: 0 0 12px; padding: 14px 16px;
  background: var(--agd-ov-card); border: 1px solid color-mix(in srgb, var(--ag-brand) 12%, var(--ag-line)); border-radius: 14px;
  box-shadow: 0 10px 24px -20px rgba(2, 44, 34, .35);
}
html[data-theme="dark"] .agd-ov-about, html[data-theme="dark"] .agd-ov-facts, html[data-theme="dark"] .agd-ov-why { box-shadow: 0 12px 26px -20px rgba(0, 0, 0, .8); }
.agd-ov-facts-title, .agd-ov-why-title {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-family: var(--ag-font); font-size: .95rem; font-weight: 700; line-height: 1.3; color: var(--ag-ink); letter-spacing: -.01em;
}
.agd-ov-sub-ic, .agd-ov-why-ic {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  color: #fff; background: var(--ag-grad); font-size: .78rem;
}
.agd-ov .agd-prose { font-size: .9rem; }

/* Read more (the clamp only applies once the script has measured it) */
.agd-ov-clip { position: relative; }
[data-agd-clamp].is-clamped > .agd-ov-clip {
  max-height: calc(1.75em * var(--agd-lines, 5)); overflow: hidden;
  transition: max-height .5s var(--ag-ease);
}
[data-agd-clamp].is-clamped > .agd-ov-clip::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.6em; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--agd-ov-fade, var(--ag-bg)));
  transition: opacity .3s ease;
}
[data-agd-clamp].is-open > .agd-ov-clip::after { opacity: 0; }
.agd-ov-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 12px;
  font-family: var(--ag-font); font-size: .82rem; font-weight: 600; line-height: 1.2;
  color: var(--ag-brand); background: var(--ag-brand-soft); border: 1px solid color-mix(in srgb, var(--ag-brand) 20%, transparent); border-radius: 999px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.agd-ov-more[hidden] { display: none; }
.agd-ov-more:hover { border-color: var(--ag-brand); color: var(--ag-brand-strong); }
.agd-ov-more:focus-visible { outline: 3px solid var(--ag-brand-mid); outline-offset: 2px; }
.agd-ov-more i { font-size: .75rem; transition: transform .35s var(--ag-ease); }
[data-agd-clamp].is-open .agd-ov-more i { transform: rotate(180deg); }
.agd-ov-about .agd-prose > :last-child { margin-bottom: 0; }

/* At a glance: dense grid of small tiles (icon + two short lines) */
.agd-ov-glance { margin: 0 0 12px; min-width: 0; }
.agd-ov-glance .agd-ov-facts-title { margin-bottom: 8px; }
.agd-ov-bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agd-ov-bento > li { margin: 0; padding: 0; min-width: 0; display: flex; }
.agd-ov-bento > li::before, .agd-ov-bento > li::after { content: none; }
.agd-ov-bento > li.is-wide { grid-column: auto; } /* uniform dense grid; long values clamp to 2 lines (full text in title) */
.agd-ov-tile {
  --t1: #10b981; --t2: #047857;
  position: relative; overflow: hidden; flex: 1; min-width: 0; min-height: 60px;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--t1) 10%, var(--ag-surface)), var(--ag-surface) 75%);
  border: 1px solid color-mix(in srgb, var(--t1) 22%, var(--ag-line)); border-radius: 12px;
  transition: translate .3s var(--ag-ease), border-color .25s ease;
}
.agd-ov-tile.is-amber { --t1: #f59e0b; --t2: #ea580c; }
.agd-ov-tile.is-violet { --t1: #8b5cf6; --t2: #6366f1; }
.agd-ov-tile.is-sky { --t1: #0ea5e9; --t2: #2563eb; }
.agd-ov-tile.is-rose { --t1: #f43f5e; --t2: #db2777; }
.agd-ov-tile.is-teal { --t1: #14b8a6; --t2: #0891b2; }
.agd-ov-tile:hover { translate: 0 -2px; border-color: color-mix(in srgb, var(--t1) 50%, var(--ag-line)); }
.agd-ov-tile-ic {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  font-size: .85rem; color: #fff; background: linear-gradient(135deg, var(--t1), var(--t2));
  box-shadow: 0 6px 12px -6px var(--t1);
}
.agd-ov-tile-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agd-ov-tile-k { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ag-muted); line-height: 1.2; }
.agd-ov-tile-v {
  font-size: .9rem; font-weight: 700; line-height: 1.3; color: var(--ag-ink); overflow-wrap: anywhere;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.agd-ov-tile.is-num .agd-ov-tile-v { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; }

/* Key information: compact 2-column definition list */
.agd-ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin: 0; }
.agd-ov-row { display: flex; align-items: flex-start; gap: 8px; min-width: 0; padding: 4px 0; }
.agd-ov-row.is-wide:has(.agd-ov-chips) { grid-column: 1 / -1; }
.agd-ov-ic {
  flex: none; display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
  color: var(--ag-brand); background: var(--ag-brand-soft); font-size: .78rem;
}
.agd-ov-kv { min-width: 0; }
.agd-ov-kv dt { margin: 0 0 1px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ag-muted); line-height: 1.3; }
.agd-ov-kv dd { margin: 0; font-size: .88rem; font-weight: 500; line-height: 1.45; color: var(--ag-ink); overflow-wrap: anywhere; }
.agd-ov-kv dd a { color: var(--ag-brand); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; max-width: 100%; overflow-wrap: anywhere; }
.agd-ov-kv dd a:hover { color: var(--ag-brand-strong); text-decoration: underline; text-underline-offset: 3px; }
.agd-ov-kv dd a i { font-size: .7rem; flex: none; }
.agd-ov-kv dd a:focus-visible { outline: 2px solid var(--ag-brand-mid); outline-offset: 2px; border-radius: 4px; }
.agd-ov-chips { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0 0; padding: 0; list-style: none; }
.agd-ov-chips li {
  margin: 0; padding: 2px 9px; font-size: .76rem; font-weight: 600; line-height: 1.4;
  color: var(--ag-brand); background: var(--ag-brand-soft); border: 1px solid color-mix(in srgb, var(--ag-brand) 20%, transparent); border-radius: 999px;
}
.agd-ov-chips li::before, .agd-ov-chips li::after { content: none; }

/* Why choose: compact 2-column check list */
.agd-ov-why { overflow: hidden; }
.agd-ov-why::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--ag-brand), var(--ag-brand-mid), transparent); }
.agd-ov-why-glow { display: none; }
.agd-ov-why .agd-prose { font-size: .86rem; }
.agd-ov-why .agd-prose > p { margin-bottom: .5em; }
.agd-ov-why .agd-prose :is(h2, h3, h4) { margin: .2em 0 .45em; font-size: .9rem; line-height: 1.35; }
/* CMS text often wraps every item in its own <ul>, so the prose box itself is the 2-column grid */
.agd-ov-why .agd-prose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; align-items: start; }
.agd-ov-why .agd-prose > :not(ul) { grid-column: 1 / -1; }
.agd-ov-why .agd-prose > ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; list-style: none; min-width: 0; }
.agd-ov-why .agd-prose > ul > li {
  position: relative; margin: 0; padding: 3px 0 3px 22px; min-width: 0; line-height: 1.4; color: var(--ag-text); overflow-wrap: anywhere;
}
.agd-ov-why .agd-prose > ul > li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 15px; height: 15px; border: 0; border-radius: 50%; transform: none;
  background: var(--ag-grad); box-shadow: none;
}
.agd-ov-why .agd-prose > ul > li::after {
  content: ""; position: absolute; left: 5px; top: 8px; width: 4px; height: 7px;
  border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg);
}
.agd-ov-why.is-anim .agd-prose > ul > li {
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease calc(var(--agd-i, 0) * 40ms), transform .4s var(--ag-ease) calc(var(--agd-i, 0) * 40ms);
}
.agd-ov-why.is-anim.is-in .agd-prose > ul > li { opacity: 1; transform: none; }

@media (max-width: 767.98px) {
  .agd-ov-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .agd-ov-grid, .agd-ov-why .agd-prose { grid-template-columns: minmax(0, 1fr); }
  .agd-ov-about, .agd-ov-facts, .agd-ov-why { padding: 12px; }
  .agd-ov-tile { padding: 8px 10px; gap: 8px; }
}
@media (max-width: 359.98px) {
  .agd-ov-tile-ic { width: 24px; height: 24px; font-size: .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-agd-clamp].is-clamped > .agd-ov-clip, .agd-ov-tile, .agd-ov-more i { transition: none; }
  .agd-ov-tile:hover { translate: none; }
  .agd-ov-why.is-anim .agd-prose > ul > li { opacity: 1; transform: none; transition: none; }
}
