:root {
  --tpsa-navy: #15356d;
  --tpsa-deep-blue: #0c2250;
  --tpsa-royal: #243e97;
  --tpsa-red: #cb2f3d;
  --tpsa-red-bright: #e8283a;
  --tpsa-gold: #f2c84b;
  --tpsa-gold-deep: #d5a62b;
  --tpsa-gold-bright: #f8d147;
  --tpsa-ivory: #f7f4ee;
  --tpsa-cream: #fffdf5;
  --tpsa-white: #ffffff;
  --tpsa-ink: #14253f;
  --tpsa-muted: #5c6f8c;
  --tpsa-line: rgba(21, 53, 109, 0.14);
  --tpsa-shadow-sm: 0 1px 3px rgba(20, 37, 63, 0.07), 0 1px 2px rgba(20, 37, 63, 0.05);
  --tpsa-shadow-md: 0 4px 12px rgba(20, 37, 63, 0.1), 0 2px 4px rgba(20, 37, 63, 0.06);
  --tpsa-shadow-lg: 0 10px 28px rgba(20, 37, 63, 0.13), 0 4px 8px rgba(20, 37, 63, 0.07);
  --tpsa-shadow-xl: 0 20px 48px rgba(20, 37, 63, 0.16), 0 8px 16px rgba(20, 37, 63, 0.08);
  --tpsa-shadow: var(--tpsa-shadow-md); /* backwards compat */
  --tpsa-transition-fast: 120ms ease;
  --tpsa-transition-base: 200ms ease;
  --header-height: 4.5rem;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--tpsa-ink);
  background: linear-gradient(160deg, var(--tpsa-cream) 0%, #ffffff 55%, #fff8ee 100%);
  background-attachment: fixed;
}

h1,
h2,
h3,
h4,
.navbar-brand,
.display-font {
  font-family: "Manrope", "Noto Sans Thai", sans-serif;
}

.app-shell {
  position: relative;
  isolation: isolate;
  padding-top: var(--header-height);
}

body.tpsa-public-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.42), transparent 18%),
    url("../assets/images/hero-thailand-tricolor-mark.svg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0.055;
  pointer-events: none;
  transform: scale(1.02);
}

.page-section {
  scroll-margin-top: 6rem;
}

.hero-panel,
.surface-card,
.article-body,
.calendar-card,
.calendar-tabs-shell {
  border: 1px solid var(--tpsa-line);
  box-shadow: var(--tpsa-shadow);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.hero-panel {
  border-radius: 2rem;
  border-top: 4px solid var(--tpsa-red);
  border-color: rgba(21, 53, 109, 0.12);
  background:
    radial-gradient(circle, rgba(21, 53, 109, 0.055) 1.5px, transparent 1.5px),
    rgba(255, 255, 255, 0.92);
  background-size: 22px 22px, 100%;
}

.surface-card,
.calendar-card,
.article-body,
.calendar-tabs-shell {
  border-radius: 1.5rem;
}

.surface-card {
  transition: transform var(--tpsa-transition-base), box-shadow var(--tpsa-transition-base);
}

.surface-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tpsa-shadow-lg);
}

.section-kicker {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.76rem;
  color: var(--tpsa-red);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.section-kicker::before {
  content: "";
  display: inline-block;
  width: 0.22rem;
  height: 1.3em;
  border-radius: 2px;
  background: linear-gradient(
    to bottom,
    var(--tpsa-red)   0%      16.67%,
    var(--tpsa-white) 16.67%  33.33%,
    var(--tpsa-navy)  33.33%  66.67%,
    var(--tpsa-white) 66.67%  83.33%,
    var(--tpsa-red)   83.33%  100%
  );
  border: 1px solid rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.section-hd {
  margin-bottom: 2rem;
}

.section-hd__title {
  margin-top: 0.5rem;
  margin-bottom: 0;
  color: var(--tpsa-ink);
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--tpsa-deep-blue) !important;
  border-bottom: 3px solid var(--tpsa-gold-deep);
  box-shadow: 0 2px 16px rgba(12, 34, 80, 0.35);
}

.site-header-bar {
  width: 100%;
}

.navbar-brand {
  color: var(--tpsa-white);
  letter-spacing: -0.02em;
}

.navbar-brand {
  align-items: center;
}

.navbar-brand__text {
  max-width: 18rem;
  font-size: 0.96rem;
  line-height: 1.15;
}

.navbar-brand__line {
  display: block;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus,
.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--tpsa-gold);
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.language-toggle .btn {
  border-radius: 999px;
  padding-inline: 1rem;
  min-width: 3.5rem;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.language-toggle .btn:not(.active) {
  border-color: rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.65);
}

.language-toggle .btn.active {
  background: var(--tpsa-gold);
  border-color: var(--tpsa-gold-deep);
  color: var(--tpsa-deep-blue);
  box-shadow: var(--tpsa-shadow-sm);
}

.navbar-collapse {
  flex-basis: 100%;
}

.brand-mark {
  --brand-logo-image: none;
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 1.5rem;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 238, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 0 0 0.2rem rgba(255, 255, 255, 0.1),
    var(--tpsa-shadow-md);
}

.brand-mark--bare {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.brand-mark--bare::before {
  display: none;
}

.brand-mark--bare .brand-mark__image {
  width: 100%;
  height: 100%;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, rgba(203, 47, 61, 0.94) 0 18%, transparent 18% 82%, rgba(242, 200, 75, 0.88) 82% 100%);
  opacity: 0.65;
}

.brand-mark__image,
.brand-mark__fallback {
  position: relative;
  z-index: 1;
}

.brand-mark__image {
  display: block;
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.brand-mark__fallback {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72%;
  min-height: 38%;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-family: "Manrope", "Noto Sans Thai", sans-serif;
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--tpsa-white);
  background: rgba(12, 34, 80, 0.84);
}

.brand-mark.has-image::before {
  opacity: 0.28;
}

.brand-mark.has-image .brand-mark__fallback {
  display: none;
}

.brand-mark--nav {
  width: 3.875rem;
  height: 5rem;
}

.brand-mark--nav .brand-mark__fallback {
  font-size: 0.65rem;
  min-height: 34%;
}

.brand-mark--hero {
  width: min(100%, 18.75rem);
  height: 12.5rem;
}

.hero-layout {
  display: grid;
  gap: 1.5rem;
}

.hero-brand {
  justify-self: start;
}

.hero-copy {
  min-width: 0;
}

.hero-mission {
  max-width: 58rem;
  color: var(--tpsa-muted);
  font-weight: 500;
  line-height: 1.5;
}

.hero-mission__lead {
  color: var(--tpsa-deep-blue);
  font-weight: 800;
}

.about-vision-card {
  color: var(--tpsa-white);
  border-color: rgba(21, 53, 109, 0.2);
  background:
    linear-gradient(135deg, rgba(21, 53, 109, 0.96), rgba(36, 62, 151, 0.92) 62%, rgba(203, 47, 61, 0.88));
  box-shadow: var(--tpsa-shadow-lg);
}

.about-vision-card .text-secondary,
.about-vision-card .small {
  color: rgba(255, 255, 255, 0.82) !important;
}

.about-vision-card__statement {
  max-width: 28rem;
  font-family: "Manrope", "Noto Sans Thai", sans-serif;
  font-size: clamp(1.2rem, 2.3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.4;
}

.about-timeline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(15rem, 1fr);
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
}

.about-timeline__item {
  position: relative;
  min-width: 0;
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(21, 53, 109, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 248, 251, 0.9));
}

.about-timeline__item::after {
  content: "";
  position: absolute;
  top: 2rem;
  right: -1rem;
  width: 1rem;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(203, 47, 61, 0.9), rgba(242, 200, 75, 0.85));
}

.about-timeline__item:last-child::after {
  display: none;
}

.about-timeline__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  margin-bottom: 1rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-family: "Manrope", "Noto Sans Thai", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tpsa-deep-blue);
  background: linear-gradient(180deg, rgba(242, 200, 75, 0.3), rgba(242, 200, 75, 0.48));
}

@media (min-width: 992px) {
  .app-shell {
    padding-top: 7.5rem;
  }

  .page-section {
    scroll-margin-top: 8rem;
  }

  .section-hd {
    margin-bottom: 2.5rem;
  }

  .hero-layout {
    grid-template-columns: minmax(14rem, 18.75rem) minmax(0, 1fr);
    column-gap: 2.5rem;
    row-gap: 1.25rem;
    align-items: start;
  }

  .hero-brand {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .hero-copy {
    grid-column: 2;
  }
}

.btn-brand-gold {
  border: 0;
  color: var(--tpsa-deep-blue);
  font-weight: 800;
  background: linear-gradient(180deg, #f8d96b 0%, #f2c84b 100%);
}

.btn-brand-gold:hover,
.btn-brand-gold:focus {
  color: var(--tpsa-deep-blue);
  background: linear-gradient(180deg, #ffd96d 0%, #ebb62b 100%);
  transform: translateY(-1px);
}

.btn-brand-outline {
  border: 2px solid rgba(21, 53, 109, 0.24);
  color: var(--tpsa-deep-blue);
  font-weight: 800;
  background: transparent;
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
  color: white;
  border-color: var(--tpsa-navy);
  background: var(--tpsa-navy);
  transform: translateY(-1px);
}

.btn-brand-dark {
  border: 0;
  color: white;
  font-weight: 800;
  background: linear-gradient(180deg, var(--tpsa-navy) 0%, var(--tpsa-deep-blue) 100%);
}

.btn-brand-dark:hover,
.btn-brand-dark:focus {
  color: white;
  background: linear-gradient(180deg, #1b468d 0%, #0a1d47 100%);
  transform: translateY(-1px);
}

.btn-brand-red {
  border: 0;
  color: white;
  font-weight: 800;
  background: linear-gradient(180deg, var(--tpsa-red-bright) 0%, var(--tpsa-red) 100%);
}

.btn-brand-red:hover,
.btn-brand-red:focus {
  color: white;
  background: linear-gradient(180deg, #f04455 0%, #b82434 100%);
  transform: translateY(-1px);
}

.section-anchor {
  text-decoration: none;
}

.event-card,
.article-card,
.team-card {
  height: 100%;
}

.content-carousel-card {
  box-shadow: var(--tpsa-shadow-sm);
  transition: transform var(--tpsa-transition-base), box-shadow var(--tpsa-transition-base);
}

.content-carousel-card:hover {
  box-shadow: var(--tpsa-shadow-lg);
  transform: translateY(-3px);
}

.content-carousel--press .content-carousel-card .article-meta,
.content-carousel--articles .content-carousel-card .article-meta {
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: calc(1.5rem - 1px) calc(1.5rem - 1px) 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.content-carousel--press .content-carousel-card .article-meta::before,
.content-carousel--articles .content-carousel-card .article-meta::before {
  display: none;
}

.content-carousel--press .content-carousel-card .article-meta {
  background: var(--tpsa-red);
}

.content-carousel--articles .content-carousel-card .article-meta {
  background: var(--tpsa-navy);
}

.event-date {
  min-width: 4.85rem;
  border-radius: 1rem;
  background: linear-gradient(160deg, rgba(248, 209, 71, 0.52), rgba(213, 166, 43, 0.72));
  border: 1px solid rgba(213, 166, 43, 0.55);
  color: var(--tpsa-deep-blue);
  font-weight: 800;
}

.calendar-tabs-shell {
  padding: 1.25rem;
}

.calendar-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.calendar-tab {
  border: 0;
  padding: 0.8rem 1.15rem;
  border-radius: 1rem;
  font-weight: 800;
  color: var(--tpsa-muted);
  background:
    linear-gradient(180deg, rgba(21, 53, 109, 0.06), rgba(21, 53, 109, 0.02)),
    white;
  box-shadow: inset 0 0 0 1px rgba(21, 53, 109, 0.08);
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.calendar-tab:hover,
.calendar-tab:focus {
  color: var(--tpsa-deep-blue);
  transform: translateY(-1px);
}

.calendar-tab.is-active {
  color: white;
  background:
    linear-gradient(120deg, rgba(203, 47, 61, 0.98) 0%, rgba(21, 53, 109, 0.98) 52%, rgba(242, 200, 75, 0.95) 100%);
  box-shadow: var(--tpsa-shadow-md);
}

.calendar-list-item {
  border-radius: 1rem;
  border: 1px solid rgba(21, 53, 109, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 251, 0.84));
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.calendar-list-item:hover,
.calendar-list-item:focus-within {
  transform: translateY(-1px);
  border-color: rgba(21, 53, 109, 0.18);
  box-shadow: var(--tpsa-shadow-lg);
}

.calendar-list-link {
  display: block;
  padding: 1rem;
  color: inherit;
  text-decoration: none;
}

.calendar-date-pill {
  min-width: 4.6rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(248, 209, 71, 0.5), rgba(213, 166, 43, 0.7));
  border: 1px solid rgba(213, 166, 43, 0.5);
  color: var(--tpsa-deep-blue);
  font-weight: 800;
}

.content-carousel-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  position: relative;
  overflow: visible;
  padding-inline: 3.5rem;
}

.content-carousel-frame {
  position: relative;
}

.content-carousel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding-bottom: 2.25rem;
}

.content-carousel .swiper-wrapper {
  align-items: stretch;
}

.content-carousel .swiper-slide {
  height: auto;
  padding-block: 0.2rem 0.9rem;
}

.content-carousel--events .swiper-slide {
  width: min(22rem, calc(100% - 0.5rem));
}

.content-carousel--press .swiper-slide,
.content-carousel--articles .swiper-slide {
  width: min(28rem, calc(100% - 0.5rem));
}

.content-carousel--team .swiper-slide {
  width: min(20rem, calc(100% - 0.5rem));
}

.content-carousel.is-fallback {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.75rem;
}

.content-carousel.is-fallback .swiper-wrapper {
  display: flex;
  gap: 1.25rem;
}

.content-carousel.is-fallback .swiper-pagination,
.content-carousel.is-fallback + .swiper-pagination {
  display: none;
}

.content-carousel-nav {
  position: absolute;
  top: calc(50% - 1.125rem);
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  line-height: 1;
  flex: 0 0 auto;
  z-index: 2;
}

.content-carousel-nav.swiper-button-prev {
  left: -3.5rem;
}

.content-carousel-nav.swiper-button-next {
  right: -3.5rem;
}

.content-carousel-nav::after {
  display: none;
}

.content-carousel-nav.swiper-button-disabled,
.content-carousel-nav:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.content-carousel-pagination {
  bottom: 0 !important;
}

.content-carousel-pagination .swiper-pagination-bullet {
  background: var(--tpsa-deep-blue);
  opacity: 0.28;
}

.content-carousel-pagination .swiper-pagination-bullet-active {
  opacity: 1;
}

.article-meta,
.eyebrow {
  color: var(--tpsa-muted);
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-meta::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 2px;
  border-radius: 999px;
  background: var(--tpsa-red);
  flex-shrink: 0;
}

.team-card__photo-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at top, rgba(242, 200, 75, 0.45), transparent 46%),
    linear-gradient(160deg, rgba(21, 53, 109, 0.96), rgba(36, 62, 151, 0.86));
}

.team-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 999px;
  font-family: "Manrope", "Noto Sans Thai", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--tpsa-white);
  background: rgba(255, 255, 255, 0.18);
}

.team-card__title {
  color: var(--tpsa-deep-blue);
  font-weight: 700;
}

.team-card__bio {
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.two-line-truncate {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.five-line-truncate {
  display: -webkit-box;
  line-clamp: 5;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-body p:last-child,
.article-card p:last-child {
  margin-bottom: 0;
}

.subscription-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(21, 53, 109, 0.16);
  border-radius: 1.75rem;
  box-shadow: var(--tpsa-shadow);
  background:
    linear-gradient(135deg, rgba(21, 53, 109, 0.95), rgba(36, 62, 151, 0.92) 58%, rgba(203, 47, 61, 0.9));
  color: var(--tpsa-white);
}

.subscription-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(242, 200, 75, 0.28), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(255, 255, 255, 0.14), transparent 22%);
  pointer-events: none;
}

.subscription-panel > * {
  position: relative;
  z-index: 1;
}

.subscription-panel .section-kicker,
.subscription-panel .text-secondary,
.subscription-success .text-secondary {
  color: rgba(255, 255, 255, 0.84) !important;
}

.subscription-form__layout {
  display: grid;
  gap: 0.9rem;
}

.subscription-form__field,
.subscription-form__action {
  min-width: 0;
}

.subscription-form__action .btn {
  width: 100%;
}

.subscription-form .form-control,
.subscription-form .form-check-input {
  border-color: rgba(255, 255, 255, 0.35);
}

.subscription-form .form-control {
  background: rgba(255, 255, 255, 0.96);
}

.subscription-form .form-check-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.93rem;
}

.subscription-success {
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.form-control:focus,
.form-check-input:focus {
  border-color: var(--tpsa-navy);
  box-shadow: 0 0 0 0.2rem rgba(21, 53, 109, 0.18);
}

.site-footer {
  background: var(--tpsa-deep-blue);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  border-top: 3px solid var(--tpsa-gold-deep);
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

.footer-consent-link {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  text-decoration: none;
}

.footer-consent-link:hover,
.footer-consent-link:focus-visible {
  color: var(--tpsa-gold);
  text-decoration: underline;
}

.cookie-consent {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 1080;
  max-width: 28rem;
  width: min(28rem, calc(100% - 3rem));
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100%);
  transition: all 0.45s ease;
}

.cookie-consent.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.cookie-consent-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--tpsa-line);
  border-radius: 1rem;
  box-shadow: var(--tpsa-shadow);
  padding: 1.1rem 1.2rem;
  backdrop-filter: blur(12px);
}

.cookie-consent-card p {
  color: var(--tpsa-ink);
  font-size: 0.94rem;
}

.cookie-consent-card .form-check-label {
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .navbar-brand__text {
    max-width: 15rem;
  }

  .site-header-bar {
    align-items: flex-start;
  }

  .hero-layout {
    justify-items: center;
  }

  .hero-brand {
    display: flex;
    justify-self: center;
    justify-content: center;
    width: 100%;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-mission {
    margin-inline: auto;
  }

  .brand-mark--hero {
    width: min(100%, 10rem);
    height: auto;
  }

  .brand-mark--hero .brand-mark__image {
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .subscription-form__layout {
    grid-template-columns: 1fr;
  }

  .content-carousel-shell {
    padding-inline: 0;
  }

  .hero-panel {
    border-radius: 1.5rem;
  }

  body.tpsa-public-body::before {
    background-position: center center;
    background-size: cover;
  }

  .content-carousel-nav {
    display: none;
  }

  .cookie-consent {
    left: 1rem;
    bottom: 1rem;
    width: calc(100% - 2rem);
    transform: translateY(120%);
  }

  .cookie-consent.show {
    transform: translateY(0);
  }

  .navbar-brand__text {
    max-width: 10rem;
    font-size: 0.88rem;
  }

  .brand-mark--nav {
    width: 3.25rem;
    height: 4.2rem;
  }

  .hero-layout {
    gap: 1.25rem;
  }

  .brand-mark--hero {
    width: min(100%, 8.5rem);
  }

  .language-toggle .btn {
    padding-inline: 0.8rem;
    min-width: 3.25rem;
  }

  .calendar-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  }

  .about-timeline {
    grid-auto-columns: minmax(14rem, 82%);
  }
}

@media (min-width: 768px) {
  .subscription-form__layout {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .subscription-form--compact .subscription-form__layout {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
