/* NIC: an affiliated service in the Westarctican College of Arms design family.
   Core palette, masthead, and footer are adapted from the College's global.css. */
:root {
  --ink: #102c46;
  --text: #283a49;
  --muted: #586775;
  --gold: #b49342;
  --rule: #d8dce0;
  --paper: #fff;
  --wash: #f2f5f7;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body { margin: 0; color: var(--text); background: var(--paper); font: 17px/1.7 var(--sans); border-top: 5px solid var(--gold); }
a { color: var(--ink); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: #755815; }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button, summary { cursor: pointer; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--ink); line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.3rem,4.3vw,3.8rem); letter-spacing: -.035em; margin: 0 0 1rem; }
h2 { font-size: 2rem; margin: 0 0 1rem; }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1.25rem; }
button { color: var(--ink); }
:focus-visible { outline: 3px solid #aa7b12; outline-offset: 5px; }
.skip-link { position: absolute; top: -100px; left: 1rem; z-index: 20; background: white; padding: .5rem 1rem; }
.skip-link:focus { top: 1rem; }

.masthead { text-align: center; color: var(--ink); }
.national-line { font: 600 .68rem/1.4 var(--sans); text-transform: uppercase; letter-spacing: .23em; padding: 1.25rem 1rem .8rem; }
.college-brand { display: inline-flex; align-items: center; gap: 1.35rem; text-align: left; color: var(--ink); text-decoration: none; padding: 0 1.5rem 1.4rem; }
.college-brand img { width: 90px; height: 106px; object-fit: contain; }
.college-brand > span { display: grid; gap: .25rem; }
.brand-place { font: 400 1.1rem var(--serif); letter-spacing: .12em; text-transform: uppercase; }
.brand-name { font: 400 clamp(1.85rem,3vw,2.6rem)/1.1 var(--serif); letter-spacing: -.025em; }
.brand-service { font: 400 .72rem/1.5 var(--sans); letter-spacing: .06em; color: var(--muted); }
.desktop-navigation { display: flex; justify-content: center; gap: 3.1rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0 1rem; }
.desktop-navigation a { font-size: .88rem; text-decoration: none; padding: 1rem 0 .85rem; border-bottom: 3px solid transparent; }
.desktop-navigation a:hover, .desktop-navigation a[aria-current] { border-bottom-color: var(--gold); color: var(--ink); }
.mobile-navigation { display: none; }
main { max-width: var(--page); margin: auto; padding: 0 2rem 5rem; min-height: 35vh; }
.college-introduction { display: grid; grid-template-columns: 1.3fr 1fr; gap: 6rem; padding: 4.2rem 0 3.6rem; align-items: start; }
.introduction-text h1 { font-size: clamp(2.3rem,3.4vw,3.25rem); line-height: 1.16; }
.introduction-text > p:not(.eyebrow) { font-size: 1.05rem; max-width: 36em; margin: 1.5rem 0; }
.eyebrow { font: 600 .72rem/1.5 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; }
.introduction-text .service-note { border-left: 3px solid var(--gold); background: var(--wash); font-size: .85rem !important; padding: .8rem 1rem; }
.ink-link { font-size: .88rem; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: .3rem; }
.register-index { border-top: 3px double var(--gold); padding-top: .85rem; }
.register-index h2 { font: 600 .74rem var(--sans); text-transform: uppercase; letter-spacing: .13em; color: var(--muted); margin: 0 0 .35rem; }
.register-index > a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--rule); padding: 1rem 0; text-decoration: none; font: 400 1.25rem/1.4 var(--serif); }
.register-index small { display: block; font: 400 .76rem/1.6 var(--sans); color: var(--muted); margin-top: .2rem; }
.register-index > a > span:last-child { font: 400 1.1rem var(--sans); color: #8b6c22; }

.lookup-section { border-top: 1px solid var(--ink); padding: 2.5rem 0 3rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 1.6rem; }
.section-heading h2 { font-size: 2.15rem; margin-bottom: .35rem; }
.section-heading p { font-size: .86rem; color: var(--muted); margin: 0; }
.prelaunch-mark { font: 600 .72rem/1.5 var(--sans); letter-spacing: .04em; color: var(--muted); border: 1px solid var(--rule); padding: .5rem .8rem; flex-shrink: 0; }
.lookup-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.7rem; align-items: start; }
.lookup-form { background: var(--wash); padding: 1.5rem; min-width: 0; }
.lookup-form label { font-size: .76rem; font-weight: 600; display: block; margin-bottom: .5rem; }
.input-row { display: flex; align-items: center; border: 1px solid #a6b0b9; background: white; min-width: 0; }
.input-row:focus-within { outline: 2px solid var(--gold); outline-offset: 1px; }
.input-row input { flex: 1 1 0; width: 40%; min-width: 0; border: 0; border-radius: 0; background: white; padding: .65rem .7rem; min-height: 44px; color: var(--text); font-size: .98rem; outline: 0; }
.input-row span { padding: 0 .65rem 0 .1rem; font-size: .82rem; white-space: nowrap; color: var(--muted); }
.button { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: white; padding: .55rem 1rem; font: 500 .84rem/1.6 var(--sans); margin: 1rem 0 0; }
.button:hover { background: #244a66; color: #fff; }
.lookup-hint { font-size: .75rem; line-height: 1.6; color: var(--muted); margin: .75rem 0 0; }
.lookup-result { font-size: .85rem; line-height: 1.65; border-top: 1px solid var(--rule); padding: .8rem 0 0; margin: 1rem 0 0; overflow-wrap: anywhere; }
.lookup-explanation { border-top: 3px double var(--gold); padding-top: .85rem; }
.lookup-explanation h3 { margin: 0 0 .7rem; }
.lookup-explanation p { font-size: .88rem; line-height: 1.75; }

.principles { border-top: 1px solid var(--ink); padding: 2.5rem 0 3.5rem; }
.principle-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2rem; }
.principle-grid article { border-top: 2px solid var(--gold); padding-top: 1.1rem; min-width: 0; }
.principle-number { font: 400 1.1rem var(--serif); color: #8b6c22; }
.principle-grid h3 { margin: .65rem 0 .55rem; }
.principle-grid p { font-size: .87rem; color: var(--muted); }
.institution-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 2.5rem; background: var(--wash); padding: 2rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.institution-heading { display: flex; align-items: flex-start; gap: 1rem; }
.institution-heading img { width: 68px; height: 68px; flex: 0 0 68px; object-fit: contain; }
.institution-heading h2 { font-size: 1.65rem; }
.institution-records > div { border-bottom: 1px solid var(--rule); padding: .5rem 0 1rem; }
.institution-records > div:last-child { border-bottom: none; }
.institution-records code { color: var(--ink); font-size: 1rem; overflow-wrap: anywhere; }
.institution-records p { color: var(--muted); font-size: .8rem; margin: .45rem 0 0; }

/* Synchronized with the revised three-column College of Arms footer. */
.site-footer { background: var(--ink); color: #e8edf2; border-top: 4px double var(--gold); font-size: .8rem; }
.footer-inner { max-width: var(--page); margin: auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding: 2.8rem 2rem; }
.site-footer a { color: #e8edf2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-identity > a { font: 1.4rem/1.3 var(--serif); }
.footer-identity p { font-size: .76rem; line-height: 1.8; color: #bbc9d5; margin: 1rem 0 0; }
.footer-column h2 { font: 600 .75rem var(--sans); color: #e3c879; margin: 0 0 1.1rem; }
.footer-column > a { display: block; font-size: .76rem; margin: .6rem 0; line-height: 1.6; }
.footer-colophon { max-width: calc(var(--page) - 4rem); margin: 0 auto; padding: 1rem 0 1.4rem; border-top: 1px solid #40566a; display: flex; justify-content: space-between; gap: 1rem; color: #bbc9d5; font-size: .68rem; align-items: center; }
.footer-colophon a { color: #bbc9d5; }
.college-service-identity { display: inline-flex; align-items: center; gap: .9rem; min-width: 0; text-decoration: none !important; }
.college-service-identity img { display: block; width: 56px; height: 56px; flex: 0 0 56px; }
.college-service-identity > span { display: grid; gap: .2rem; }
.college-service-identity strong { color: #fff; font: 600 .85rem/1.4 var(--sans); }
.college-service-identity > span > span { font-size: .72rem; line-height: 1.6; max-width: 28em; }
.college-service-identity:hover strong { text-decoration: underline; text-underline-offset: .2em; }

@media (min-width: 1500px) { :root { --page: 1240px; } .college-introduction { gap: 7rem; } }
@media (max-width: 1000px) {
  .desktop-navigation { gap: 2rem; }
  .college-introduction { gap: 3rem; }
  .footer-inner { gap: 1.5rem; }
  .lookup-grid { gap: 1.6rem; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  main { padding: 0 1.25rem 3rem; }
  .national-line { font-size: .58rem; letter-spacing: .16em; padding: 1rem 1rem .6rem; }
  .college-brand { gap: 1rem; padding: .25rem 1rem 1.1rem; }
  .college-brand img { width: 67px; height: 80px; }
  .brand-place { font-size: .85rem; }
  .brand-name { font-size: 1.85rem; }
  .brand-service { font-size: .65rem; }
  .desktop-navigation { display: none; }
  .mobile-navigation { display: block; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); position: relative; text-align: left; }
  .mobile-navigation > summary { padding: .8rem 1.25rem; font-size: .85rem; color: var(--ink); list-style-position: inside; }
  .mobile-navigation nav { display: grid; border-top: 1px solid var(--rule); background: var(--wash); padding: .6rem 1.25rem 1rem; }
  .mobile-navigation nav a { padding: .65rem 0; text-decoration: none; font-size: .9rem; }
  .college-introduction { grid-template-columns: 1fr; gap: 2.2rem; padding: 2.6rem 0; }
  .introduction-text h1 { font-size: 2.6rem; }
  .introduction-text > p:not(.eyebrow) { font-size: .98rem; }
  .register-index h2 { font-size: .7rem; }
  .register-index > a { font-size: 1.2rem; }
  .lookup-grid, .institution-panel { grid-template-columns: 1fr; gap: 1.4rem; }
  .section-heading { display: block; }
  .prelaunch-mark { display: inline-block; margin-top: 1rem; }
  .principle-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .footer-inner { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 2rem 1.25rem; gap: 2rem 1.5rem; }
  .footer-identity { grid-column: 1/-1; }
  .footer-colophon { margin: 0 1.25rem; display: block; font-size: .65rem; }
  .footer-colophon > .college-service-identity { display: flex; width: 100%; margin-bottom: 1rem; }
  .footer-colophon > a:last-child { display: block; }
}
@media (max-width: 420px) {
  .brand-name { font-size: 1.65rem; }
  .college-brand { gap: .7rem; }
  .brand-place { font-size: .75rem; }
  .college-brand img { width: 58px; height: 70px; }
  .introduction-text h1 { font-size: 2.25rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-identity { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .masthead, .site-footer, .skip-link, .lookup-form { display: none !important; } main { max-width: none; } body { border: 0; color: #000; } }
