/* Administration office pages (VC, Registrar, Controller, Treasurer, IT, QEC, ORIC, Sustainability) */
.office-page { --of-navy: #002a5c; --of-navy-deep: #001327; --of-gold: #d4a017; --of-ink: #1e2126; --of-soft: #52585f; --of-line: #e5e7eb; background: #f6f7f9; padding-bottom: 64px; }

/* Title band */
.office-hero { background: linear-gradient(135deg, var(--of-navy) 0%, #0b4a8f 100%); color: #fff; padding: 44px 0 72px; position: relative; }
.office-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--of-gold) 20%, var(--of-gold) 80%, transparent); }
.office-hero .office-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #e4cd94; margin-bottom: 10px; }
.office-hero .office-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--of-gold); }
.office-hero h1 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 700; margin: 0; }

/* Tabs */
.office-tabs { margin-top: -26px; position: relative; z-index: 2; }
.office-tabs .sub-menu { background: #fff; border: 1px solid var(--of-line); border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 20, 50, .08); padding: 6px; margin: 0 0 32px; display: inline-flex; max-width: 100%; }
.office-tabs .sub-menu ul { gap: 4px; }
.office-tabs .sub-menu ul li a { padding: 10px 22px; border: 0; border-radius: 999px; color: var(--of-navy); font-size: .95rem; }
.office-tabs .sub-menu ul li a:hover { color: var(--of-navy); background: #eef3fa; border: 0; }
.office-tabs .sub-menu ul li a.active { color: #fff; background: var(--of-navy); border: 0; font-weight: 600; }

/* Message */
.office-message { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; }
.office-profile { background: #fff; border: 1px solid var(--of-line); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 20, 50, .06); text-align: center; }
.office-profile .office-photo { aspect-ratio: 4 / 5; background: #eef0f3; border-bottom: 3px solid var(--of-gold); }
.office-profile .office-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.office-profile .office-id { padding: 18px 16px 22px; }
.office-profile .office-id strong { display: block; color: var(--of-navy); font-size: 1.1rem; }
.office-profile .office-id span { display: block; color: var(--of-soft); font-size: .9rem; margin-top: 4px; }

.office-letter { background: #fff; border: 1px solid var(--of-line); border-radius: 16px; padding: 36px 40px; box-shadow: 0 6px 20px rgba(0, 20, 50, .06); position: relative; }
.office-letter .office-quote { position: absolute; top: 18px; right: 28px; font-size: 64px; line-height: 1; color: var(--of-gold); opacity: .25; }
.office-letter .office-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #8a6200; margin-bottom: 6px; }
.office-letter h2 { color: var(--of-navy); font-size: 1.6rem; font-weight: 700; margin: 0 0 20px; }
.office-letter h4 { color: var(--of-ink); font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
.office-letter p { color: #3a4048; font-size: 1.02rem; line-height: 1.9; text-align: left; margin: 0; }
.office-sign { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--of-line); }
.office-sign strong { display: block; color: var(--of-navy); font-size: 1.05rem; }
.office-sign span { color: var(--of-soft); font-size: .92rem; }

/* Tenures */
.office-tenures-head { margin-bottom: 22px; }
.office-tenures-head h2 { color: var(--of-navy); font-size: 1.6rem; font-weight: 700; margin: 0; }
.office-tenures-head p { color: var(--of-soft); margin: 6px 0 0; }
.office-tenure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.office-tenure { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; border: 1px solid var(--of-line); border-radius: 14px; padding: 0 18px 22px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 20, 50, .05); transition: transform .25s ease, box-shadow .25s ease; }
.office-tenure::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 78px; background: linear-gradient(135deg, var(--of-navy) 0%, #0b4a8f 100%); }
.office-tenure:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 20, 50, .12); }
.office-tenure .office-avatar { position: relative; z-index: 1; width: 120px; height: 120px; margin-top: 22px; border-radius: 50%; padding: 4px; background: var(--of-gold); flex: none; }
.office-tenure .office-avatar img { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; object-fit: cover; object-position: top; display: block; background: #eef0f3; }
.office-tenure h5 { color: var(--of-navy); font-size: 1.02rem; font-weight: 600; margin: 16px 0 4px; }
.office-tenure .office-role { color: var(--of-soft); font-size: .88rem; margin: 0 0 14px; }
.office-tenure .office-dates { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--of-navy); background: #eef3fa; border-radius: 999px; padding: 6px 14px; }
.office-tenure.is-current { border-color: var(--of-gold); }
.office-tenure .office-badge { position: absolute; z-index: 2; top: 12px; right: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--of-navy-deep); background: var(--of-gold); border-radius: 999px; padding: 3px 9px; }

@media (min-width: 576px) { .office-tenure .office-dates { white-space: nowrap; font-size: .78rem; } }

/* Responsive */
@media (max-width: 991px) {
  .office-message { grid-template-columns: 1fr; }
  .office-profile { max-width: 340px; margin: 0 auto; width: 100%; }
}
@media (max-width: 575px) {
  .office-hero { padding: 32px 0 60px; }
  .office-tabs .sub-menu ul li a { padding: 9px 16px; font-size: .88rem; }
  .office-letter { padding: 26px 20px; }
  .office-letter h2 { font-size: 1.35rem; }
  .office-letter p { font-size: .98rem; line-height: 1.8; }
  .office-tenure-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .office-tenure { padding: 0 10px 16px; }
  .office-tenure::before { height: 58px; }
  .office-tenure .office-avatar { width: 88px; height: 88px; margin-top: 16px; padding: 3px; }
  .office-tenure h5 { font-size: .9rem; }
  .office-tenure .office-dates { font-size: .72rem; padding: 5px 10px; }
}

/* Message without a photo (full-width letter) */
.office-message.is-solo { grid-template-columns: 1fr; }
.office-letter ul { color: #3a4048; font-size: 1.02rem; line-height: 1.8; padding-left: 1.2rem; margin: 14px 0; }
.office-letter p + p { margin-top: 14px; }
.office-letter .office-tagline { color: var(--of-soft); font-style: italic; margin: -10px 0 18px; }

/* Tabs that have no page yet */
.office-empty { background: #fff; border: 1px dashed #cfd5dd; border-radius: 14px; padding: 48px 24px; text-align: center; color: var(--of-soft); }
.office-empty i { display: block; font-size: 34px; color: var(--of-gold); margin-bottom: 10px; }
.office-empty strong { display: block; color: var(--of-navy); font-size: 1.1rem; margin-bottom: 4px; }
.office-loading { padding: 40px 0; text-align: center; color: var(--of-soft); }

/* Generic tab content (rules, notices, downloads, contact...) gets a clean panel */
.office-page #content-area { min-height: 240px; }
.office-page #content-area > .container,
.office-page #content-area > .notice-container { padding-left: 0; padding-right: 0; max-width: none; }
.office-page #content-area h1,
.office-page #content-area h2,
.office-page #content-area h3 { color: var(--of-navy); }
.office-page #content-area table { background: #fff; }
.office-page #content-area .table thead th,
.office-page #content-area table thead th { background: var(--of-navy); color: #fff; border-color: var(--of-navy); }
.office-page .contact-card { background: #fff; border: 1px solid var(--of-line); border-radius: 14px; box-shadow: 0 6px 20px rgba(0, 20, 50, .06); }
.office-page .contact-card .contact-row:nth-child(odd) { background: #f8fafc; }
.office-page .contact-card .label { color: var(--of-navy); }
.office-page .notice-card { background: #fff; border-left-color: var(--of-gold); }
.office-page #content-area .card { border: 1px solid var(--of-line); border-radius: 14px; box-shadow: 0 4px 14px rgba(0, 20, 50, .05); }

@media (max-width: 575px) {
  .office-page .contact-row { flex-direction: column; gap: 2px; }
  .office-page .contact-row .label { width: auto; }
}

/* Many tabs: wrap onto two lines on larger screens, swipe on phones */
@media (min-width: 768px) {
  .office-tabs .sub-menu { border-radius: 22px; overflow: visible; }
  .office-tabs .sub-menu ul { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  .office-tabs .sub-menu { display: flex; border-radius: 999px; }
}
.office-letter h2, .office-letter .office-kicker { padding-right: 56px; }
