/* ==========================================================================
   HeronHex-HigherEd connector — homepage section + /mcp/ page
   Additive only: reuses tokens and components from style.css.
   ========================================================================== */

/* ---------- Homepage section ---------- */
.connector { background: linear-gradient(180deg, #03232a 0%, var(--ink) 100%); border-top: 1px solid var(--line-dark); overflow: hidden; }
.connector::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 55% at 100% 0%, rgba(79, 184, 200, .12), transparent 70%); }
.connector .wrap { position: relative; }
.conn-lede { margin-top: 26px; }

.areas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.area { position: relative; display: flex; flex-direction: column; padding: 28px 22px 24px; border-radius: 20px; border: 1px solid var(--line-dark);
  background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); transition: transform .5s var(--ease), border-color .4s; }
.area:hover { transform: translateY(-6px); border-color: rgba(155, 232, 242, .38); }
.area .hexicon { width: 52px; height: 60px; margin-bottom: 24px; }
.area:hover .hexicon { transform: rotate(60deg) scale(1.04); }
.area:hover .hexicon svg { transform: rotate(-60deg); }
.area .hexicon svg { width: 24px; height: 24px; }
.area h3 { font-size: 1.4rem; margin-bottom: 10px; }
.area p { font-size: .93rem; line-height: 1.6; color: var(--text-dark-mute); margin-bottom: 20px; }
.src { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-dark); font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); line-height: 1.7; }

.conn-foot { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line-dark); }
.conn-stats { display: flex; flex-wrap: wrap; gap: 14px clamp(28px, 4vw, 56px); }
.conn-stats li { display: grid; gap: 2px; }
.conn-stats b { font-family: var(--f-display); font-weight: 200; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1; letter-spacing: -.02em; color: var(--white); }
.conn-stats span { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dark-mute); }
.conn-foot .cta-row { margin-top: 0; }

/* ---------- /mcp/ page ---------- */
.links a[aria-current="page"]:not(.btn) { color: var(--white); }
.links a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }

.page-hero { position: relative; padding: clamp(140px, 18vw, 210px) 0 clamp(70px, 9vw, 110px); overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 90% at 80% 0%, #06353d 0%, var(--ink) 62%); }
.page-hero h1 { margin-bottom: 28px; }
.page-hero .hero-art { position: absolute; z-index: -1; top: 50%; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); width: min(34vw, 400px); translate: 0 -46%; }
.page-hero .wrap { position: relative; }
.page-hero .lede { max-width: 60ch; }
.page-hero .cta-row { margin-top: 38px; }
.page-hero .conn-stats { margin-top: clamp(44px, 6vw, 72px); padding-top: 32px; border-top: 1px solid var(--line-dark); }

/* sources strip */
.srcs { margin-top: clamp(44px, 6vw, 72px); }
.srcs-label { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dark-mute); margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 16px; border-radius: 999px; font-size: .84rem; font-weight: 500; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); color: var(--text-dark); }

/* why */
.why { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); border-top: 1px solid var(--line-dark); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-item { padding: 34px 30px 36px; border-radius: 22px; border: 1px solid var(--line-dark); background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); transition: transform .5s var(--ease), border-color .4s; }
.why-item:hover { transform: translateY(-5px); border-color: rgba(155, 232, 242, .38); }
.why-item .dot { width: 14px; height: 16px; color: var(--aqua); margin-bottom: 26px; }
.why-item h3 { font-size: 1.45rem; margin-bottom: 12px; }
.why-item p { font-size: .96rem; color: var(--text-dark-mute); }

/* how it works (light) */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-bottom: 28px; }
.how-step { padding: clamp(28px, 3vw, 40px); background: var(--white); border: 1px solid var(--line-light); border-radius: 22px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.how-step:hover { transform: translateY(-5px); box-shadow: 0 30px 60px -30px rgba(0, 52, 61, .35); }
.how-step .n { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .16em; color: var(--teal); }
.how-step h3 { color: var(--deep); margin: 14px 0 10px; font-size: 1.6rem; }
.how-step p { color: var(--text-light-mute); font-size: .98rem; }
.how-step a.inline { color: var(--deep); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(0, 52, 61, .35); text-underline-offset: 3px; }
.how-step a.inline:hover { text-decoration-color: var(--deep); }
.how-step code, .note code { font-family: var(--f-mono); font-size: .82em; background: rgba(0, 52, 61, .07); padding: 2px 7px; border-radius: 6px; color: var(--deep); }
.note { padding: 22px 26px; border-radius: 16px; border: 1px dashed rgba(0, 52, 61, .3); color: var(--text-light-mute); font-size: .95rem; background: rgba(79, 184, 200, .06); }
.note b { color: var(--deep); font-weight: 600; }

.endpoint { display: flex; align-items: center; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap; margin-bottom: 18px; padding: clamp(24px, 3vw, 34px) clamp(24px, 3vw, 36px); border-radius: 22px; background: var(--ink); color: var(--text-dark); }
.endpoint h3 { font-size: 1.5rem; margin-bottom: 6px; color: var(--white); }
.endpoint p { color: var(--text-dark-mute); font-size: .96rem; max-width: 52ch; }
.endpoint-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 8px 8px 18px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04); max-width: 100%; }
.endpoint-url code { font-family: var(--f-mono); font-size: .92rem; color: var(--aqua-hi); word-break: break-all; }

/* prompt library (dark) */
.library { background: var(--ink); border-top: 1px solid var(--line-dark); overflow: hidden; }
.library::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(45% 40% at 0% 0%, rgba(79, 184, 200, .1), transparent 70%); }
.library .wrap { position: relative; }
.lib-intro { max-width: 70ch; color: var(--text-dark-mute); margin-top: 22px; }

.lib-bar { position: sticky; top: 76px; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 0; margin-bottom: 30px; background: rgba(2, 26, 31, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); }
.lib-search { flex: 1 1 260px; min-width: 200px; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: rgba(2, 26, 31, .7); color: var(--white); transition: border-color .25s, box-shadow .25s; }
.lib-search::placeholder { color: rgba(234, 244, 246, .38); }
.lib-search:focus { outline: none; border-color: var(--aqua); box-shadow: 0 0 0 4px rgba(79, 184, 200, .16); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-dark); background: transparent; color: var(--text-dark-mute); font-size: .86rem; font-weight: 500; cursor: pointer; transition: all .3s var(--ease); }
.filter:hover { color: var(--white); border-color: rgba(155, 232, 242, .5); }
.filter[aria-pressed="true"] { background: linear-gradient(135deg, var(--aqua-hi), var(--aqua)); color: var(--ink); border-color: transparent; }
.lib-count { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dark-mute); margin-left: auto; }

.prompts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.prompt { display: flex; flex-direction: column; gap: 14px; padding: 28px 28px 26px; border-radius: 22px; border: 1px solid var(--line-dark); background: linear-gradient(160deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012)); transition: border-color .4s; }
.prompt:hover { border-color: rgba(155, 232, 242, .32); }
.prompt[hidden] { display: none; }
.ptop { display: flex; align-items: baseline; gap: 14px; }
.pnum { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; color: rgba(155, 232, 242, .55); }
.prompt h3 { font-size: 1.45rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 4px 11px; border-radius: 999px; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--aqua); border: 1px solid rgba(79, 184, 200, .4); }
.tools code { font-family: var(--f-mono); font-size: .72rem; padding: 3px 9px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--text-dark); }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.pnote { font-size: .86rem; line-height: 1.55; color: var(--text-dark-mute); }
.pbox { position: relative; margin-top: auto; border-radius: 14px; background: rgba(2, 26, 31, .75); border: 1px solid var(--line-dark); }
.ptext { margin: 0; padding: 20px 20px 18px; font-family: var(--f-body); font-size: .92rem; line-height: 1.65; color: var(--text-dark); white-space: pre-wrap; word-wrap: break-word; }
.ph { color: var(--aqua-hi); background: rgba(79, 184, 200, .14); border-radius: 4px; padding: 0 4px; font-weight: 500; }
.pfoot { display: flex; justify-content: flex-end; padding: 0 14px 14px; }
button.copy { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(155, 232, 242, .35); background: transparent; color: var(--aqua-hi); font-size: .82rem; font-weight: 500; cursor: pointer; transition: all .3s var(--ease); }
button.copy:hover { background: rgba(155, 232, 242, .1); border-color: var(--aqua-hi); }
button.copy.done { background: var(--aqua); color: var(--ink); border-color: var(--aqua); }
button.copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lib-empty { text-align: center; padding: 60px 0; color: var(--text-dark-mute); }

/* tool reference (light) */
.tools-ref { display: grid; gap: 12px; }
.tools-ref details { background: var(--white); border: 1px solid var(--line-light); border-radius: 18px; overflow: hidden; transition: box-shadow .4s var(--ease); }
.tools-ref details[open] { box-shadow: 0 24px 50px -30px rgba(0, 52, 61, .35); }
.tools-ref summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 22px 26px; font-family: var(--f-display); font-size: 1.5rem; color: var(--deep); }
.tools-ref summary::-webkit-details-marker { display: none; }
.tools-ref summary .cnt { margin-left: auto; font-family: var(--f-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.tools-ref summary::after { content: ""; width: 9px; height: 9px; border-right: 1.5px solid var(--teal); border-bottom: 1.5px solid var(--teal); transform: rotate(45deg); transition: transform .35s var(--ease); margin-left: 4px; margin-top: -4px; }
.tools-ref details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.tools-ref dl { margin: 0; padding: 4px 26px 24px; display: grid; grid-template-columns: minmax(200px, 280px) 1fr; gap: 0 28px; }
.tools-ref dt, .tools-ref dd { padding: 12px 0; border-top: 1px solid var(--line-light); margin: 0; }
.tools-ref dt { font-family: var(--f-mono); font-size: .8rem; color: var(--deep); word-break: break-word; }
.tools-ref dd { color: var(--text-light-mute); font-size: .95rem; }

/* reading the results (dark) */
.caveats { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); border-top: 1px solid var(--line-dark); }
.cav-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cav { padding: 28px 30px; border-radius: 20px; border: 1px solid var(--line-dark); background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); }
.cav .meta { font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); margin-bottom: 12px; }
.cav p { color: var(--text-dark); font-size: .98rem; }

/* closing CTA (light) */
.page-cta { text-align: center; }
.page-cta .eyebrow { justify-content: center; }
.page-cta h2 { max-width: 18ch; margin-inline: auto; }
.page-cta p.body-lg { margin: 24px auto 0; }
.page-cta .btn-ghost { color: var(--deep); box-shadow: inset 0 0 0 1px rgba(0, 52, 61, .3); }
.page-cta .btn-ghost:hover { background: rgba(0, 52, 61, .06); box-shadow: inset 0 0 0 1px var(--deep); }
.page-cta .cta-row { justify-content: center; margin-top: 38px; }

.foot-link { display: inline-block; margin-top: 8px; color: var(--aqua); border-bottom: 1px solid rgba(79, 184, 200, .35); padding-bottom: 1px; transition: color .25s, border-color .25s; }
.foot-link:hover { color: var(--aqua-hi); border-color: var(--aqua-hi); }

/* ---------- Responsive ---------- */
/* six-item nav: tighten between tablet and wide desktop */
@media (min-width: 821px) and (max-width: 1100px) {
  .links { gap: 20px; }
  .links a:not(.btn) { font-size: .86rem; white-space: nowrap; }
  .links .btn-sm { padding: 9px 16px; font-size: .82rem; white-space: nowrap; }
  .brand img { height: 52px; }
}
@media (max-width: 1100px) {
  .areas { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 980px) {
  .page-hero .hero-art { width: 340px; right: -110px; }
  .page-hero .hero-art > * { opacity: .16; }
  .why-grid, .how-grid { grid-template-columns: 1fr; }
  .prompts, .cav-grid { grid-template-columns: 1fr; }
  .lib-count { margin-left: 0; }
}
@media (max-width: 820px) {
  .lib-bar { top: 68px; }
  .tools-ref dl { grid-template-columns: 1fr; }
  .tools-ref dt { padding-bottom: 0; border-top: 1px solid var(--line-light); }
  .tools-ref dd { border-top: 0; padding-top: 4px; }
}
@media (max-width: 680px) {
  .areas { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .endpoint-url { border-radius: 16px; padding: 14px; width: 100%; }
  .page-hero .conn-stats { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 22px 48px; }
  .areas { grid-template-columns: 1fr; }
  .conn-foot .btn, .conn-foot .cta-row { width: 100%; justify-content: center; }
  .page-hero .cta-row .btn { width: 100%; justify-content: center; }
  .prompt { padding: 24px 20px 22px; }
}
