.alma-institutional {
  background: var(--alma-paper, #fffdfa);
  color: var(--alma-ink, #181818);
}

.alma-institutional-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--alma-line, #ddd5c8);
  background:
    radial-gradient(circle at 84% 26%, rgba(212,166,58,.20), transparent 24%),
    linear-gradient(145deg, var(--alma-navy-deep, #040b1a), var(--alma-navy, #071a3d));
  color: #fff;
}

.alma-institutional-hero-inner {
  padding-top: clamp(54px, 8vw, 104px);
  padding-bottom: clamp(54px, 8vw, 104px);
}

.alma-institutional-hero .alma-kicker { color: var(--alma-gold-soft, #e3c878); }

.alma-institutional-hero h1 {
  max-width: 18ch;
  margin: 10px 0 14px;
  font: 600 clamp(42px, 6vw, 76px)/1.02 Georgia, "Times New Roman", serif;
  letter-spacing: -.025em;
}

.alma-institutional-deck {
  max-width: 58ch;
  margin: 0;
  color: #d8dbe4;
  font: 400 clamp(17px, 2vw, 20px)/1.55 Georgia, "Times New Roman", serif;
}

.alma-institutional-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
  padding-top: clamp(42px, 6vw, 78px);
  padding-bottom: clamp(60px, 8vw, 104px);
}

.alma-institutional-copy {
  font-size: 18px;
  line-height: 1.76;
}

.alma-institutional-copy > h2:first-child {
  margin-top: 0;
  color: var(--alma-navy, #071a3d);
  font: 600 clamp(31px, 4vw, 44px)/1.08 Georgia, "Times New Roman", serif;
  letter-spacing: -.018em;
}

.alma-institutional-copy h2 {
  margin: 2.2em 0 .7em;
  color: var(--alma-navy, #071a3d);
  font: 600 30px/1.17 Georgia, "Times New Roman", serif;
}

.alma-institutional-copy h3 {
  margin: 1.9em 0 .6em;
  color: var(--alma-navy-deep, #040b1a);
  font: 600 24px/1.2 Georgia, "Times New Roman", serif;
}

.alma-institutional-copy p { margin: 0 0 1.25em; }
.alma-institutional-copy ul,
.alma-institutional-copy ol { margin: 0 0 1.5em; padding-left: 1.35em; }
.alma-institutional-copy li { margin: .45em 0; }
.alma-institutional-copy strong { color: #1a2745; }
.alma-institutional-copy code {
  overflow-wrap: anywhere;
  border-radius: 4px;
  padding: .12em .35em;
  background: #f0ebe3;
  font-size: .9em;
}

.alma-related-links {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 3px solid var(--alma-navy, #071a3d);
}

.alma-related-links ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.alma-related-links li { border-top: 1px solid var(--alma-line, #ddd5c8); }
.alma-related-links a {
  display: block;
  padding: 15px 0;
  color: var(--alma-navy, #071a3d);
  font-weight: 700;
  text-decoration: none;
}
.alma-related-links a:hover { color: #80601a; }

/* Contact */
.alma-contact-form-wrap {
  margin-top: 58px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--alma-line, #ddd5c8);
  background: #fbf8f2;
}

.alma-contact-form-heading h2 {
  margin: 6px 0 8px;
  color: var(--alma-navy, #071a3d);
  font: 600 32px/1.1 Georgia, "Times New Roman", serif;
}

.alma-contact-form-heading > p:last-child {
  margin-top: 0;
  color: var(--alma-muted, #6f6a64);
}

.alma-contact-form { display: grid; gap: 18px; }
.alma-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.alma-contact-form label { display: grid; gap: 7px; }
.alma-contact-form label > span { color: var(--alma-navy, #071a3d); font-size: 14px; font-weight: 800; }
.alma-contact-form input,
.alma-contact-form select,
.alma-contact-form textarea {
  width: 100%;
  border: 1px solid #bfb6aa;
  border-radius: 4px;
  background: #fff;
  color: #181818;
  padding: 12px 13px;
}
.alma-contact-form input,
.alma-contact-form select { min-height: 48px; }
.alma-contact-form textarea { resize: vertical; }
.alma-contact-form input:focus,
.alma-contact-form select:focus,
.alma-contact-form textarea:focus {
  outline: 3px solid rgba(212,166,58,.22);
  border-color: #9a751f;
}
.alma-form-submit {
  width: fit-content;
  min-height: 48px;
  border: 1px solid var(--alma-navy, #071a3d);
  border-radius: 4px;
  padding: 0 22px;
  background: var(--alma-navy, #071a3d);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.alma-form-privacy { margin: 0; color: var(--alma-muted, #6f6a64); font-size: 13px; }
.alma-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.alma-form-notice { margin-bottom: 18px; border-left: 4px solid; padding: 13px 15px; font-size: 14px; }
.alma-form-notice.is-success { border-color: #2f7c4e; background: #edf8f1; }
.alma-form-notice.is-error { border-color: #9d3232; background: #fff1f1; }

/* Footer compliance navigation */
.alma-compliance-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding: 34px 0 30px;
  border-top: 1px solid rgba(255,255,255,.14);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.alma-compliance-footer-grid > div { display: grid; align-content: start; gap: 9px; }
.alma-compliance-footer-grid strong {
  margin-bottom: 5px;
  color: var(--alma-gold-soft, #e3c878);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.alma-compliance-footer-grid a,
.alma-cookie-preferences-link {
  width: fit-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: #d8dbe4;
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.alma-compliance-footer-grid a:hover,
.alma-cookie-preferences-link:hover { color: #fff; text-decoration: underline; }

/* CMP */
.alma-consent[hidden],
.alma-consent [hidden] { display: none !important; }

.alma-consent {
  position: fixed;
  z-index: 999999;
  inset: 0;
  display: grid;
  align-items: end;
  padding: 18px;
}

.alma-consent-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,7,17,.58);
  backdrop-filter: blur(2px);
}

.alma-consent-card {
  position: relative;
  width: min(100%, 760px);
  max-height: min(84vh, 760px);
  overflow: auto;
  margin: 0 auto;
  border: 1px solid rgba(212,166,58,.4);
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  padding: clamp(22px, 4vw, 34px);
}

.alma-consent-eyebrow {
  margin: 0 0 7px;
  color: #87631a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .12em;
}

.alma-consent-card h2 {
  margin: 0 0 12px;
  color: var(--alma-navy, #071a3d);
  font: 600 clamp(28px, 4vw, 38px)/1.08 Georgia, "Times New Roman", serif;
}

.alma-consent-card p { color: #514d49; line-height: 1.55; }
.alma-consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}
.alma-consent-actions-primary { grid-template-columns: repeat(3, 1fr); }
.alma-consent-actions button,
.alma-consent-tcf button {
  min-height: 48px;
  border: 1px solid var(--alma-navy, #071a3d);
  border-radius: 5px;
  padding: 10px 14px;
  background: var(--alma-navy, #071a3d);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.alma-consent-actions-primary button {
  /* Deliberately equivalent prominence for accept/reject/manage. */
  background: var(--alma-navy, #071a3d);
  color: #fff;
}
.alma-consent-actions button:hover,
.alma-consent-tcf button:hover { background: #102c62; }
.alma-consent-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  font-size: 13px;
}
.alma-consent-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.alma-consent-close {
  width: 42px;
  height: 42px;
  border: 1px solid #cfc6b8;
  border-radius: 50%;
  background: transparent;
  color: #222;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.alma-consent-category {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--alma-line, #ddd5c8);
}
.alma-consent-category strong { color: var(--alma-navy, #071a3d); }
.alma-consent-category p { margin: 4px 0 0; font-size: 13px; }
.alma-consent-category input { width: 22px; height: 22px; accent-color: var(--alma-navy, #071a3d); }
.alma-consent-category.is-locked { opacity: .78; }
.alma-consent-runtime,
.alma-consent-tcf {
  margin-top: 18px;
  border: 1px solid var(--alma-line, #ddd5c8);
  border-radius: 6px;
  padding: 15px;
  background: #f8f4ed;
  font-size: 13px;
}
.alma-consent-runtime p { margin: 7px 0 0; }
.alma-consent-runtime span { font-weight: 800; }
.alma-consent-tcf p { margin-top: 0; }

.alma-consent-inventory-table {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--alma-line, #ddd5c8);
  border-radius: 5px;
  overflow: hidden;
  background: #fff;
}
.alma-consent-inventory-row {
  display: grid;
  grid-template-columns: minmax(120px,.9fr) minmax(100px,.7fr) minmax(200px,1.5fr) minmax(130px,.9fr) minmax(140px,.9fr);
  font-size: 12px;
}
.alma-consent-inventory-row > span {
  padding: 10px;
  border-top: 1px solid #e8e1d6;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.alma-consent-inventory-row.is-head {
  background: #f2ede5;
  color: var(--alma-navy,#071a3d);
  font-weight: 800;
}
.alma-consent-inventory-row.is-head > span { border-top: 0; }

@media (max-width: 720px) {
  .alma-institutional-hero-inner { padding-top: 46px; padding-bottom: 50px; }
  .alma-institutional-hero h1 { font-size: 43px; }
  .alma-institutional-layout { padding-top: 40px; }
  .alma-institutional-copy { font-size: 17px; }
  .alma-institutional-copy h2 { font-size: 28px; }
  .alma-related-links ul,
  .alma-form-grid,
  .alma-compliance-footer-grid,
  .alma-consent-actions,
  .alma-consent-actions-primary { grid-template-columns: 1fr; }
  .alma-consent { padding: 10px; }
  .alma-consent-card { max-height: 90vh; }
}

@media (max-width: 760px) {
  .alma-consent-inventory-row {
    display: block;
    padding: 10px 12px;
    border-top: 1px solid #e8e1d6;
  }
  .alma-consent-inventory-row:first-child { border-top: 0; }
  .alma-consent-inventory-row.is-head { display: none; }
  .alma-consent-inventory-row > span { display: block; border: 0; padding: 5px 0; }
  .alma-consent-inventory-row > span:before {
    content: attr(data-label) ": ";
    color: var(--alma-navy,#071a3d);
    font-weight: 800;
  }
}
