:root {
  --abn-base: #005277;
  --abn-base-deep: #003d59;
  --abn-teal: #005277;
  --abn-teal-deep: #003d59;
  --abn-teal-nav: #005277;
  --abn-orange: #fc771f;
  --abn-orange-hot: #ff8a3a;
  --abn-blue: #005277;
  --abn-blue-link: #005277;
  --abn-navy: #003d59;
  --abn-ink: #222831;
  --abn-muted: #6b7785;
  --abn-line: #dce3ea;
  --abn-paper: #ffffff;
  --abn-haze: #eef2f5;
  --abn-panel: #f5f7f9;
  --abn-breaking: #1c2430;
  --abn-max: 1180px;
  --abn-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --abn-display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--abn-font);
  color: var(--abn-ink);
  background: #e9eef2;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.container {
  width: min(100% - 1.5rem, var(--abn-max));
  margin-inline: auto;
}

.site-wrapper {
  background: #e9eef2;
}

.site-main {
  background: #e9eef2;
}

:root {
  --ghost-accent-color: #fc771f;
}

.nav-sign-up,
.nav-portal,
.primary-nav li:has(a[href*="portal"]),
.site-footer a[href*="portal"],
iframe.gh-portal-triggerbtn-iframe,
#ghost-portal-root {
  display: none !important;
}

/* ——— Top bar ——— */
.top-bar {
  background: var(--abn-base-deep);
  color: #d5eef6;
  font-size: 0.75rem;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 1.85rem;
  gap: 1rem;
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-bar__social {
  display: flex;
  gap: 0.75rem;
}

.top-bar__social a:hover {
  color: #fff;
}

/* ——— Brand ——— */
.brand-bar {
  background: var(--abn-base);
  border-bottom: 0;
}

.brand-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand:hover {
  color: inherit;
}

.brand__logo {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(100%, 360px);
  object-fit: contain;
}

.brand__mark {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.28rem;
  line-height: 1;
}

.brand__word {
  font-family: var(--abn-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
}

.brand__word--ab {
  color: var(--abn-blue);
}

.brand__word--biz {
  color: var(--abn-orange);
}

.brand__word--net {
  color: var(--abn-teal);
}

.site-search {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
}

.site-search input {
  border: 0;
  background: transparent;
  padding: 0.5rem 0.7rem;
  min-width: 11rem;
  font: inherit;
  font-size: 0.9rem;
}

.site-search button {
  border: 0;
  background: var(--abn-orange);
  color: #fff;
  padding: 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.site-search button:hover {
  background: var(--abn-orange-hot);
}

/* ——— Primary nav (teal + orange Home) ——— */
.primary-nav {
  background: var(--abn-base-deep);
}

.primary-nav__inner {
  overflow-x: auto;
}

.primary-nav .nav,
.primary-nav ul {
  display: flex;
  flex-wrap: nowrap;
  min-height: 2.75rem;
}

.primary-nav li,
.primary-nav .nav-item {
  flex: 0 0 auto;
}

.primary-nav li a,
.primary-nav .nav-item a {
  display: block;
  padding: 0.85rem 1rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.primary-nav li:first-child a,
.primary-nav .nav-item:first-child a,
.primary-nav li.nav-current a,
.primary-nav .nav-item.nav-current a {
  background: var(--abn-orange);
  color: #fff;
}

.primary-nav li a:hover,
.primary-nav .nav-item a:hover {
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
}

.primary-nav li:first-child a:hover,
.primary-nav .nav-item:first-child a:hover,
.primary-nav li.nav-current a:hover {
  background: var(--abn-orange-hot);
  color: #fff;
}

/* ——— Secondary strip ——— */
.secondary-nav {
  background: var(--abn-teal);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.secondary-nav__inner {
  overflow-x: auto;
}

.secondary-nav__list {
  display: flex;
  min-height: 2.15rem;
  align-items: center;
}

.secondary-nav__list a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.secondary-nav__list a:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
}

/* ——— Hero (full bleed) ——— */
.hero {
  position: relative;
  min-height: clamp(340px, 48vw, 520px);
  background: #0f2a38;
  overflow: hidden;
}

.hero__link {
  display: block;
  position: relative;
  min-height: inherit;
  color: #fff;
}

.hero__link:hover {
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  background: #0f2a38;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.hero__media--fallback {
  background:
    radial-gradient(circle at 72% 40%, rgba(252, 119, 31, 0.45), transparent 42%),
    linear-gradient(115deg, #003d59 0%, #005277 45%, #fc771f 100%);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 32, 48, 0.82) 0%,
    rgba(0, 32, 48, 0.45) 48%,
    rgba(0, 32, 48, 0.2) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 1.5rem, var(--abn-max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: inherit;
  padding: 2.5rem 0;
  max-width: 36rem;
  margin-left: max(0.75rem, calc((100% - var(--abn-max)) / 2));
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.55rem;
  background: var(--abn-orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: fit-content;
}

.hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--abn-display);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__excerpt {
  margin: 0;
  max-width: 32rem;
  font-size: 1.02rem;
  line-height: 1.45;
  color: #f2f4f7;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

/* ——— Breaking news ——— */
.breaking {
  background: var(--abn-breaking);
  color: #fff;
}

.breaking__inner {
  display: flex;
  align-items: stretch;
  min-height: 2.55rem;
  gap: 0;
  padding-inline: 0;
}

.breaking__label {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 1rem;
  background: var(--abn-blue);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.breaking__track-wrap {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.breaking__track {
  display: flex;
  gap: 2.75rem;
  width: max-content;
  padding-left: 1rem;
  animation: abn-ticker 42s linear infinite;
}

.breaking__track a {
  color: #fff;
  white-space: nowrap;
  font-size: 0.88rem;
}

.breaking__track a:hover {
  color: var(--abn-orange-hot);
}

@keyframes abn-ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .breaking__track {
    animation: none;
  }
}

/* ——— Page body / news panels ——— */
.page-body {
  padding: 1.35rem 0 2.5rem;
}

.page-body__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.25rem;
  align-items: start;
}

.news-panel {
  background: var(--abn-paper);
  border: 1px solid #d7dee6;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem 0.35rem;
}

.news-panel__head {
  margin: 0 0 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px solid var(--abn-navy);
}

.news-panel__title {
  margin: 0;
  font-family: var(--abn-display);
  font-size: 1.35rem;
  color: var(--abn-navy);
  letter-spacing: -0.01em;
}

.news-panel__title a:hover {
  color: var(--abn-orange);
}

.post-feed {
  display: grid;
  gap: 0;
}

.post-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 0 1.35rem;
  border-bottom: 1px solid var(--abn-line);
}

.post-card:last-child {
  border-bottom: 0;
}

.post-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--abn-haze);
  aspect-ratio: 16 / 9;
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.post-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background: linear-gradient(135deg, #cfd8e2, #9eb0c2);
}

.post-card__tag {
  display: inline-block;
  margin-bottom: 0.35rem;
  color: var(--abn-blue-link);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-card__title {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.post-card__title a {
  color: var(--abn-blue-link);
  font-weight: 700;
}

.post-card__title a:hover {
  color: var(--abn-orange);
  text-decoration: underline;
}

.post-card__excerpt {
  margin: 0 0 0.55rem;
  color: var(--abn-muted);
  font-size: 0.94rem;
}

.post-card__more {
  color: var(--abn-blue-link);
  font-size: 0.88rem;
  font-weight: 700;
}

.post-card__more:hover {
  color: var(--abn-orange);
}

.empty-feed {
  padding: 1.5rem 0 2rem;
  color: var(--abn-muted);
}

/* ——— Sidebar ——— */
.sidebar {
  display: grid;
  gap: 1rem;
}

.sidebar-box {
  background: var(--abn-paper);
  border: 1px solid #d7dee6;
  padding: 0.9rem 1rem 1.1rem;
}

.sidebar-box__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid var(--abn-blue);
  font-size: 1rem;
  color: var(--abn-blue);
}

.sidebar-box__slot {
  min-height: 140px;
  display: grid;
  place-items: center;
  background: var(--abn-panel);
  border: 1px dashed #b7c3d0;
  color: var(--abn-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

.sidebar-box__text {
  margin: 0 0 0.85rem;
  color: var(--abn-muted);
  font-size: 0.9rem;
}

.sidebar-box__btn {
  display: inline-block;
  background: var(--abn-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 0.9rem;
}

.sidebar-box__btn:hover {
  background: var(--abn-orange-hot);
  color: #fff;
}

.sidebar-list li {
  border-bottom: 1px solid var(--abn-line);
}

.sidebar-list li:last-child {
  border-bottom: 0;
}

.sidebar-list a {
  display: block;
  padding: 0.55rem 0;
  font-size: 0.88rem;
  color: var(--abn-navy);
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-list a:hover {
  color: var(--abn-orange);
}

/* ——— Post / page ——— */
.post-full,
.page-full {
  padding: 1.5rem 0 2.5rem;
}

.post-full__card {
  background: var(--abn-paper);
  border: 1px solid #d7dee6;
  box-shadow: 0 1px 2px rgba(0, 61, 89, 0.04);
  overflow: hidden;
}

.post-full__header,
.post-full__content,
.page-full .post-full__header,
.page-full .post-full__content {
  background: transparent;
}

.post-full__header {
  padding: 1.35rem 1.35rem 0.85rem;
  border: 0;
}

.post-full__title {
  margin: 0.35rem 0 0.65rem;
  font-family: var(--abn-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  color: var(--abn-navy);
}

.post-full__meta {
  color: var(--abn-muted);
  font-size: 0.88rem;
  margin-bottom: 0;
}

.post-full__media {
  position: relative;
  margin: 0;
  border: 0;
  background: #f0f3f6;
}

.post-full__media img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center top;
  display: block;
}

.post-full__media figcaption {
  padding: 0.55rem 1.35rem 0.15rem;
  color: var(--abn-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.error-page__logo {
  display: block;
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
}

.post-full__content {
  padding: 1.15rem 1.35rem 2rem;
  border: 0;
  font-size: 1.05rem;
}

/* Legacy page template (header/content still use .container) */
.page-full .post-full__header,
.page-full .post-full__content {
  background: var(--abn-paper);
  border: 1px solid #d7dee6;
}

.page-full .post-full__header {
  border-bottom: 0;
  padding: 1.25rem 1.25rem 0.5rem;
}

.page-full .post-full__content {
  border-top: 0;
  padding: 1.25rem 1.25rem 2rem;
}

.page-full .post-full__media {
  border-left: 1px solid #d7dee6;
  border-right: 1px solid #d7dee6;
}

.gh-content > * + * {
  margin-top: 1.05rem;
}

.gh-content h2,
.gh-content h3 {
  color: var(--abn-navy);
  margin-top: 1.6rem;
}

.gh-content a {
  color: var(--abn-blue-link);
  text-decoration: underline;
}

.kg-width-wide {
  position: relative;
  width: 85vw;
  min-width: 100%;
  margin: 1.5rem calc(50% - 42.5vw);
}

.kg-width-full {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.kg-width-full img,
.kg-width-wide img {
  width: 100%;
  max-height: none;
}

.pagination {
  padding: 0.5rem 0 1.25rem;
}

.pagination__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.pagination a {
  font-weight: 700;
  color: var(--abn-blue-link);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--abn-base-deep);
  color: #d5eef6;
  padding: 2.25rem 0;
  margin-top: 0.5rem;
}

.site-footer a {
  color: #e7eef7;
}

.site-footer a:hover {
  color: var(--abn-orange-hot);
}

.site-footer__grid {
  display: grid;
  gap: 1rem;
}

.site-footer__brand p {
  margin: 0.65rem 0 0;
}

.site-footer__logo-link {
  display: inline-block;
}

.site-footer__logo-link:hover {
  color: inherit;
}

.site-footer__logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 280px;
  object-fit: contain;
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.8;
}

.feed-section {
  padding: 1.35rem 0;
}

.feed-section .container {
  background: var(--abn-paper);
  border: 1px solid #d7dee6;
  padding: 1rem 1.15rem;
}

.section-head {
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--abn-navy);
  padding-bottom: 0.5rem;
}

.section-title {
  margin: 0;
  font-family: var(--abn-display);
  font-size: 1.35rem;
  color: var(--abn-navy);
}

.section-desc {
  margin: 0.45rem 0 0;
  color: var(--abn-muted);
}

@media (max-width: 900px) {
  .page-body__grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .brand-bar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-search {
    width: 100%;
  }

  .site-search input {
    flex: 1;
    min-width: 0;
  }

  .hero__content {
    margin-left: 0.75rem;
    justify-content: flex-end;
    padding-bottom: 2rem;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .top-bar__tagline {
    display: none;
  }
}
