@import url('fonts.css');
:root {
  /* Text colours: at least 7:1 contrast on the light backgrounds (white, --soft, --cream). */
  --ink: #0d2c44;
  --navy: #123f64;
  --blue: #12568a;
  --muted: #3b4954;
  --line: #dce3e7;
  --soft: #f4f7f8;
  --cream: #f5f3ed;
  --white: #fff;
  --serif: Georgia, 'Times New Roman', serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    16px/1.65 'Manrope',
    Arial,
    sans-serif;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(40px, 4.8vw, 70px);
  font-weight: 500;
  margin-bottom: 25px;
}
h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  font-weight: 500;
  margin-bottom: 22px;
}
h3 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.025em;
}
em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--blue);
}
p {
  color: var(--muted);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #d99435;
  outline-offset: 4px;
}
a:hover {
  color: var(--blue);
}
.container {
  width: min(1280px, calc(100% - 96px));
  margin-inline: auto;
}
.narrow {
  max-width: 820px;
}
.section {
  padding-block: 95px;
}
.soft {
  background: var(--soft);
}
.topbar {
  background: var(--navy);
  color: #e6eef4;
  font-size: 11px;
  letter-spacing: 0.025em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  padding-block: 9px;
}
.topbar a:hover {
  color: #fff;
}
.header {
  background: #fffffff5;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 94px;
}
.brand {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.brand img {
  width: 248px;
  height: 44px;
  object-fit: contain;
}
.brand > span {
  font-size: 10px;
  letter-spacing: 0.35em;
  padding-left: 45px;
  margin-top: 3px;
  font-weight: 700;
}
.nav nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 600;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
}
.account-link {
  white-space: nowrap;
}
.account-link span {
  margin-left: 6px;
}
.cart-link {
  display: flex;
  align-items: center;
  gap: 3px;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.cart-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-link span {
  display: grid;
  place-items: center;
  background: var(--navy);
  color: white;
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  align-self: flex-start;
}
.menu-toggle {
  display: none;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin-bottom: 24px;
  text-transform: uppercase;
  color: var(--blue);
}
.dot {
  width: 7px;
  height: 7px;
  background: var(--blue);
  border-radius: 50%;
  display: inline-block;
  margin-right: 9px;
}
.hero {
  padding-block: 70px 52px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero h1 {
  font-size: clamp(45px, 5.2vw, 76px);
  line-height: 1.08;
  max-width: 920px;
  margin-bottom: 26px;
}
.hero p {
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 49px;
  padding: 13px 23px;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  background: #21628e;
  color: #fff;
  transform: translateY(-1px);
}
.button span {
  font-size: 20px;
  line-height: 1;
}
.button.secondary {
  background: white;
  color: var(--navy);
  border-color: var(--line);
}
.button.light {
  background: #fff;
  color: var(--navy);
  border-color: white;
}
.button.full {
  width: 100%;
}
.text-link {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #b0bec8;
  padding-block: 6px;
}
.text-link span {
  font-size: 20px;
}
.hero-note {
  padding: 0 12px 10px 40px;
  min-width: 220px;
}
.line-mark {
  font-size: 72px;
  font-family: var(--serif);
  line-height: 1;
  color: #acc2d2;
  display: block;
  margin-bottom: 20px;
}
.hero-note p {
  font-size: 12px;
}
.hero-note strong {
  font-weight: 500;
  color: var(--ink);
}
.hero-media {
  height: 440px;
  position: relative;
  border-radius: 7px;
  overflow: hidden;
  background: var(--navy);
}
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}
.video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 28, 47, 0.55), rgba(5, 28, 47, 0.04) 80%);
}
.video-caption {
  position: absolute;
  bottom: 54px;
  left: 48px;
  color: white;
}
.video-caption .eyebrow {
  color: #fff;
  font-size: 9px;
  display: block;
  margin-bottom: 18px;
}
.video-caption h2 {
  font-size: 42px;
  color: white;
  line-height: 1.13;
  margin: 0;
}
.video-controls {
  position: absolute;
  top: 27px;
  right: 28px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: white;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.video-controls button {
  border: 1px solid #ffffff80;
  color: white;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  background: #ffffff15;
}
.media-stamp {
  position: absolute;
  right: 0;
  bottom: 0;
  background: var(--cream);
  padding: 22px 36px;
  font-size: 12px;
  border-top-left-radius: 7px;
}
.media-stamp strong {
  font-weight: 600;
}
.values-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 32px 42px;
  font-size: 13px;
}
.values-strip i {
  font-style: normal;
  font-size: 22px;
  color: #92aabb;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}
.section-heading .eyebrow {
  margin-bottom: 18px;
}
.section-heading h2,
.section-heading h1 {
  margin-bottom: 0;
}
.section-heading p {
  font-size: 13px;
  margin-bottom: 4px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.service-card {
  padding: 27px 24px 24px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.service-card:hover {
  background: #fff;
}
.service-number {
  font-size: 12px;
  color: #4a6479;
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.service-number span {
  font-size: 21px;
  color: var(--ink);
}
.service-card h3 {
  font-size: 19px;
  line-height: 1.3;
  margin-bottom: 14px;
}
.service-card p {
  font-size: 12px;
  line-height: 1.8;
  margin: 0;
}
.learning-layout {
  display: grid;
  grid-template-columns: 0.88fr 1fr 1fr;
  gap: 28px;
}
.learning-intro {
  padding: 20px 34px 10px 0;
}
.outline-star {
  font-size: 70px;
  line-height: 1;
  color: #73a0bd;
  display: block;
  margin-bottom: 30px;
}
.learning-intro h3 {
  font-size: 28px;
  line-height: 1.2;
}
.learning-intro p {
  font-size: 13px;
}
.check-list {
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--muted);
  margin: 24px 0 30px;
}
.check-list li {
  margin-block: 10px;
  display: flex;
  gap: 12px;
}
.check-list li:before {
  content: '✓';
  color: var(--blue);
}
.course-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: white;
  display: flex;
  flex-direction: column;
}
.course-image {
  display: block;
  position: relative;
  overflow: hidden;
  height: 210px;
}
.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.course-card:hover .course-image img {
  transform: scale(1.025);
}
.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 10px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 600;
  background: white;
  color: var(--ink);
}
/* Discounts: the full price struck through next to the price the buyer pays. */
.badge.discount {
  left: auto;
  right: 16px;
  background: var(--navy);
  color: var(--white);
}
.list-price {
  color: var(--muted);
  font-size: 13px;
  margin-right: 8px;
}
.course-bottom .list-price {
  display: block;
  margin-right: 0;
}
p.list-price {
  margin: 0;
}
.discount-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  background: #e0f1e7;
  color: #246341;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.course-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.meta {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 14px;
}
.meta span {
  margin-inline: 7px;
}
.course-body h3 {
  font-size: 24px;
  line-height: 1.25;
  margin-bottom: 14px;
}
.course-body p {
  font-size: 12px;
  line-height: 1.8;
}
.course-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.course-bottom strong {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.05em;
}
.course-bottom small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.circle-link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
}
.about {
  background: var(--cream);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}
.about-visual {
  position: relative;
}
.about-visual > img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 5px;
}
.about-label {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--cream);
  font-size: 9px;
  padding: 20px 0 0 25px;
  letter-spacing: 0.1em;
}
.about-grid > div > p {
  font-size: 14px;
}
.lead {
  font-size: 19px;
  line-height: 1.7;
}
.people {
  display: flex;
  gap: 60px;
  padding-block: 14px 28px;
  margin-block: 20px 16px;
  border-bottom: 1px solid #d9d9d1;
}
.people strong,
.people span {
  display: block;
  font-size: 12px;
}
.people span {
  font-size: 11px;
  color: var(--muted);
}
.partners {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  border-bottom: 1px solid var(--line);
  padding-block: 38px;
}
.partners > span {
  max-width: 200px;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.partners img {
  width: 180px;
  height: 65px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 23px;
}
.news-card h3 {
  font-size: 23px;
  line-height: 1.35;
  margin-bottom: 15px;
}
.news-card p {
  font-size: 13px;
}
.newsletter-card {
  background: var(--cream);
  padding: 40px 32px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.newsletter-card > span {
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-bottom: 35px;
}
.newsletter-card h3 {
  font-size: 29px;
  line-height: 1.3;
  font-family: var(--serif);
  font-weight: 400;
}
.newsletter-card p {
  font-size: 13px;
}
.newsletter-card .button {
  margin-top: auto;
  width: 100%;
}
.contact-section {
  padding-block: 65px;
  background: #eaf1f5;
  border-top: 1px solid #e0e9ee;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 80px;
}
.contact-grid h2 {
  font-size: 54px;
  margin: 0;
}
.contact-grid > div:last-child {
  border-left: 1px solid #c6d6e1;
  padding-left: 70px;
}
.contact-grid p {
  font-size: 13px;
}
.contact-grid a {
  display: block;
  font-size: 13px;
}
.contact-grid .contact-phone {
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 18px 0 6px;
}
footer {
  background: #102f47;
  color: #dce6ed;
  padding-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 45px;
  padding-bottom: 48px;
}
.footer-brand {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 0.015em;
  color: white;
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}
.footer-brand span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.5em;
  font-weight: 400;
  margin-top: 10px;
}
.footer-grid h3 {
  font-size: 12px;
  letter-spacing: 0;
  margin-bottom: 20px;
  font-weight: 600;
  color: #fff;
}
.footer-grid p,
.footer-grid a:not(.footer-brand) {
  font-size: 11px;
  line-height: 1.9;
  color: #b5c5d1;
}
.footer-grid a:not(.footer-brand) {
  display: block;
  margin-block: 4px;
}
.footer-bottom {
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff20;
  font-size: 9px;
  color: #99b0c0;
}
.footer-bottom > div {
  display: flex;
  gap: 20px;
}
.skip {
  position: fixed;
  top: -100px;
  padding: 15px;
  background: white;
  z-index: 100;
}
.skip:focus {
  top: 0;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 70px;
  margin-top: 40px;
  align-items: start;
}
.detail-grid h1 {
  font-size: 44px;
}
.detail-image {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 6px;
  margin-block: 25px;
}
.prose {
  white-space: pre-line;
  line-height: 1.9;
  color: var(--muted);
  overflow-wrap: anywhere;
}
/* Course page sections (Caratteristiche, Descrizione, Obiettivi, Sbocchi) and text from site:richText */
.course-section {
  margin-top: 34px;
}
.course-section h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.rich-text {
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.rich-text p,
.rich-text ul {
  margin: 0 0 14px;
}
.rich-text ul {
  padding-left: 22px;
}
.rich-text li + li {
  margin-top: 6px;
}
.course-sections {
  display: grid;
  gap: 18px;
}
/* Photo field of the admin forms (_imageField.gsp) */
.image-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: center;
}
.image-field-preview {
  margin: 0;
}
.image-field-preview figcaption {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.image-field.changed figcaption {
  color: var(--blue);
  font-weight: 600;
}
.image-field small {
  color: var(--muted);
  font-weight: 400;
}
@media (max-width: 600px) {
  .image-field {
    grid-template-columns: 1fr;
  }
}
.panel {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  margin-bottom: 25px;
}
.panel h2 {
  font-size: 30px;
}
.sticky {
  position: sticky;
  top: 125px;
}
.small {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.notice {
  background: #eaf3f6;
  border: 1px solid #bfd3e1;
  padding: 18px 22px;
  border-radius: 5px;
  margin-top: 20px;
  margin-bottom: 20px;
  font-size: 14px;
}
.notice.error {
  background: #fff0ee;
  border-color: #e8bbb1;
  color: #8d2b20;
}
.auth-wrap {
  width: min(1060px, calc(100% - 80px));
  margin: 90px auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.auth-intro h1 {
  font-size: 54px;
}
.auth-wrap .panel h2 {
  font-size: 25px;
}
.auth-wrap .panel > p {
  font-size: 13px;
  margin: 22px 0 0;
}
.form-grid {
  display: grid;
  gap: 22px;
}
.form-grid label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
.form-grid input:not([type='checkbox']):not([type='radio']),
.form-grid textarea,
.form-grid select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #becbd4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}
.form-grid textarea {
  resize: vertical;
}
.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.form-grid .check {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--navy);
}
.check a {
  text-decoration: underline;
}
.form-grid fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.form-grid legend {
  font-weight: 600;
  margin-bottom: 16px;
}
.form-grid .payment-option {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 14px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.payment-option small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 11px;
}
.text-button {
  background: none;
  border: 0;
  color: var(--blue);
  padding: 8px 0;
  font-size: 12px;
  text-decoration: underline;
}
.empty-state {
  padding: 65px 30px;
  text-align: center;
  border: 1px dashed #b1c5d3;
  border-radius: 6px;
  margin-top: 30px;
  background: var(--soft);
}
.empty-state > span {
  font-size: 55px;
  color: #7c9db5;
}
.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.order-line h3 {
  font-size: 20px;
  margin: 0;
}
.status {
  display: inline-block;
  font-size: 10px;
  border-radius: 20px;
  padding: 4px 12px;
  background: #fff2d7;
  color: #80601b;
  white-space: nowrap;
}
.status.paid {
  background: #e0f1e7;
  color: #246341;
}
.status.refunded,
.status.disputed {
  background: #f6e2e0;
  color: #8a3932;
}
.cart-row {
  display: flex;
  gap: 24px;
  align-items: center;
  padding-block: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.cart-row img {
  width: 120px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}
.cart-row .eyebrow {
  font-size: 9px;
}
.cart-row h3 {
  font-size: 22px;
  margin-block: 8px;
}
.cart-row form {
  margin-left: auto;
}
.cart-row strong {
  font-size: 18px;
}
dt {
  font-weight: 600;
  margin-top: 16px;
}
dd {
  margin-left: 0;
  overflow-wrap: anywhere;
}
.admin-body {
  background: var(--soft);
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 255px;
  background: var(--navy);
  color: white;
  padding: 35px 25px;
  position: fixed;
  height: 100vh;
  overflow: auto;
}
.admin-sidebar .eyebrow {
  display: block;
  color: #9abbce;
  margin-top: 38px;
  font-size: 9px;
}
.admin-sidebar nav {
  display: grid;
  gap: 8px;
  margin-bottom: 40px;
}
.admin-sidebar nav a {
  padding: 10px 0;
  font-size: 13px;
  color: #e0edf6;
}
.admin-main {
  margin-left: 255px;
  padding: 25px 45px 70px;
  width: calc(100% - 255px);
}
.admin-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 40px;
  font-size: 10px;
  letter-spacing: 0.06em;
}
.admin-main h1 {
  font-size: 43px;
}
.admin-main h2 {
  font-size: 26px;
  margin-top: 32px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-grid .panel {
  padding: 22px;
}
.stat-grid span {
  font-size: 11px;
  color: var(--muted);
}
.stat-grid strong {
  display: block;
  font-size: 31px;
  margin-top: 12px;
}
.table-wrap {
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 30px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #edf2f5;
  white-space: nowrap;
}
th,
td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  max-width: 280px;
  overflow-wrap: anywhere;
}
td a {
  text-decoration: underline;
}
.admin-preview {
  width: 180px;
  height: 110px;
  object-fit: cover;
}
.danger {
  color: #a33b31;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 18px;
}
/* Links and text buttons side by side look the same */
.row-actions > a,
.row-actions .text-button {
  font-size: 13px;
  color: var(--blue);
  text-decoration: underline;
}
.row-actions .text-button.danger {
  color: #a33b31;
}
.small-button {
  padding: 8px 12px;
  min-height: 38px;
  font-size: 10px;
}
pre {
  white-space: pre-wrap;
  max-width: 280px;
  font-size: 10px;
}
details {
  margin-top: 8px;
}
summary {
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .hero {
    padding-top: 85px;
  }
  .hero-media {
    height: 470px;
  }
}
@media (max-width: 1150px) {
  .container {
    width: calc(100% - 64px);
  }
  .nav {
    gap: 20px;
  }
  .brand {
    width: 210px;
  }
  .brand img {
    width: 205px;
  }
  .nav nav {
    gap: 18px;
    font-size: 12px;
  }
  .nav-actions {
    font-size: 12px;
  }
  .hero-note {
    display: none;
  }
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .about-grid {
    gap: 50px;
  }
  .learning-layout {
    gap: 20px;
  }
  .learning-intro {
    padding-right: 10px;
  }
  .hero-media {
    height: 400px;
  }
  .contact-grid > div:last-child {
    padding-left: 40px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .admin-main {
    padding-inline: 25px;
  }
  .footer-grid {
    gap: 25px;
  }
}
@media (max-width: 900px) {
  .container {
    width: calc(100% - 44px);
  }
  .nav {
    height: 80px;
    gap: 16px;
  }
  .brand {
    width: 210px;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: 0;
    color: var(--navy);
    font-size: 24px;
    margin-left: auto;
  }
  .nav nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    padding: 25px;
    box-shadow: 0 10px 15px #123f6415;
    flex-direction: column;
  }
  .nav nav.open {
    display: flex;
  }
  .nav-actions {
    gap: 12px;
  }
  .hero {
    padding-block: 50px 35px;
  }
  .hero h1 {
    font-size: 56px;
  }
  .hero-media {
    height: 380px;
  }
  .section {
    padding-block: 65px;
  }
  .learning-layout {
    grid-template-columns: repeat(2, 1fr);
  }
  .learning-intro {
    grid-column: 1/-1;
    padding: 0;
    max-width: 600px;
  }
  .outline-star {
    display: none;
  }
  .learning-intro .check-list {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    margin-block: 12px;
  }
  .learning-intro h3 br {
    display: none;
  }
  .section-heading {
    gap: 25px;
  }
  .about-grid {
    gap: 35px;
  }
  .about-grid h2 {
    font-size: 36px;
  }
  .about-visual > img {
    height: 390px;
  }
  .people {
    gap: 30px;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-card {
    grid-column: 1/-1;
    min-height: 270px;
  }
  .newsletter-card .button {
    width: auto;
  }
  .partners {
    gap: 25px;
  }
  .partners img {
    width: 140px;
  }
  .partners > span {
    font-size: 10px;
  }
  .contact-grid {
    gap: 30px;
  }
  .contact-grid h2 {
    font-size: 42px;
  }
  .contact-grid .contact-phone {
    font-size: 23px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-grid {
    gap: 30px;
    grid-template-columns: 1.2fr 1fr;
  }
  .auth-wrap {
    gap: 30px;
    width: calc(100% - 44px);
  }
  .auth-intro h1 {
    font-size: 42px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cart-row {
    flex-wrap: wrap;
  }
  .cart-row form {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .topbar {
    font-size: 12px;
  }
  .topbar .container > span {
    display: none;
  }
  .topbar .container {
    justify-content: center;
    padding-block: 6px;
  }
  .nav {
    height: 74px;
    gap: 10px;
  }
  .brand {
    width: 155px;
  }
  .brand img {
    width: 155px;
    height: 32px;
  }
  .brand > span {
    font-size: 10px;
    padding-left: 30px;
  }
  .account-link {
    font-size: 13px;
  }
  .account-link span {
    display: none;
  }
  .cart-link {
    padding-left: 10px;
  }
  .nav-actions {
    gap: 8px;
  }
  .nav nav {
    top: 74px;
  }
  .hero {
    padding-top: 36px;
  }
  .hero .eyebrow {
    font-size: 10px;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
  }
  .hero h1 {
    font-size: 43px;
    line-height: 1.12;
  }
  .hero p {
    font-size: 14px;
  }
  .desktop {
    display: none;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 23px;
  }
  .hero-actions .button {
    font-size: 13px;
    padding-inline: 17px;
  }
  .hero-media {
    width: calc(100% - 24px);
    height: 350px;
  }
  .video-caption {
    left: 25px;
    bottom: 80px;
  }
  .video-caption h2 {
    font-size: 32px;
  }
  .video-caption .eyebrow {
    font-size: 10px;
  }
  .video-controls {
    top: 20px;
    right: 18px;
    font-size: 10px;
  }
  .media-stamp {
    padding: 13px 20px;
    font-size: 12px;
  }
  .values-strip {
    gap: 12px;
    text-align: center;
    font-size: 12px;
    padding-block: 24px 30px;
    line-height: 1.4;
  }
  .values-strip i {
    font-size: 13px;
  }
  .section {
    padding-block: 48px;
  }
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 27px;
  }
  .section-heading p {
    font-size: 14px;
  }
  .section-heading h2 {
    font-size: 33px;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card {
    padding: 20px 16px;
  }
  .service-number {
    margin-bottom: 18px;
    font-size: 11px;
  }
  .service-card h3 {
    font-size: 17px;
  }
  .service-card p {
    font-size: 13px;
    line-height: 1.65;
  }
  .learning-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .learning-intro {
    padding-bottom: 10px;
  }
  .learning-intro .check-list {
    display: block;
  }
  .course-image {
    height: 215px;
  }
  .course-body h3 {
    font-size: 25px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .about-visual > img {
    height: 330px;
  }
  .about-label {
    font-size: 10px;
  }
  .about-grid h2 {
    font-size: 35px;
  }
  .partners {
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    padding-block: 30px;
  }
  .partners > span {
    max-width: none;
    width: 100%;
    text-align: center;
    font-size: 10px;
  }
  .partners img {
    width: 85px;
    height: 50px;
  }
  .news-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .news-card img {
    height: 220px;
  }
  .newsletter-card {
    grid-column: auto;
  }
  .contact-section {
    padding-block: 42px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .contact-grid h2 {
    font-size: 43px;
  }
  .contact-grid > div:last-child {
    border-left: 0;
    border-top: 1px solid #c6d6e1;
    padding: 25px 0 0;
  }
  .contact-grid .contact-phone {
    font-size: 27px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-grid h3 {
    font-size: 13px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    font-size: 11px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .detail-grid h1 {
    font-size: 36px;
  }
  .detail-image {
    max-height: 290px;
  }
  .sticky {
    position: static;
  }
  .panel {
    padding: 24px;
  }
  .auth-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-block: 40px;
  }
  .auth-intro h1 {
    font-size: 40px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .lead {
    font-size: 17px;
  }
  .order-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .cart-row img {
    width: 85px;
    height: 85px;
  }
  .cart-row > div {
    max-width: calc(100% - 110px);
  }
  .cart-row h3 {
    font-size: 18px;
  }
  .cart-row .eyebrow {
    font-size: 10px;
  }
  .stat-grid {
    gap: 12px;
  }
  .stat-grid .panel {
    padding: 17px;
  }
  .stat-grid strong {
    font-size: 27px;
  }
  .stat-grid span {
    font-size: 12px;
  }
  .admin-main h1 {
    font-size: 36px;
  }
  .admin-main .section-heading {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
    animation: none !important;
  }
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding-bottom: 42px;
}
.about-visual figure {
  margin: 0;
  align-self: start;
}
.about-visual figure:nth-child(2) {
  margin-top: 65px;
}
.about-visual figure img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 100px 100px 4px 4px;
}
.about-visual figcaption {
  font-size: 12px;
  margin-top: 15px;
  font-weight: 600;
}
.about-visual figcaption span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.about-visual .about-label {
  bottom: 0;
  left: 0;
  padding-left: 0;
}
.pagination {
  display: flex;
  gap: 9px;
  margin: 24px 0;
  font-size: 13px;
}
.pagination a,
.pagination .currentStep {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.pagination .currentStep {
  background: var(--navy);
  color: white;
}
@media (max-width: 900px) {
  .about-visual figure img {
    height: 190px;
  }
}
@media (max-width: 600px) {
  .about-visual figure img {
    height: 225px;
  }
  .about-visual {
    gap: 20px;
  }
  .learning-intro h3 br {
    display: block;
  }
}

.narrow > .text-link:first-child {
  display: inline-block;
  margin-bottom: 28px;
}
.account-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 30px;
}
.account-panel p {
  margin: 0;
  overflow-wrap: anywhere;
}
.account-panel .eyebrow {
  display: block;
  margin-bottom: 8px;
}

.field-error {
  color: #a33b31;
  font-size: 13px;
  font-weight: 500;
}
.field-error:empty {
  display: none;
}

/* ---- Confirmation dialog (site.js confirmDialog) ---- */
.confirm-dialog {
  width: min(460px, calc(100% - 32px));
  padding: 30px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  box-shadow: 0 24px 60px #0b243a40;
}
.confirm-dialog::backdrop {
  background: #0b243a8c;
}
.confirm-dialog h2 {
  margin: 0 0 14px;
  font-size: 24px;
}
.confirm-dialog p,
.confirm-page p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}
.confirm-dialog .confirm-dialog-subject,
.confirm-page .confirm-dialog-subject {
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 4px;
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.confirm-dialog-details {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.confirm-dialog-details li + li {
  margin-top: 6px;
}
.confirm-dialog {
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}
.confirm-dialog-actions .button {
  justify-content: center;
}
.confirm-page {
  max-width: 560px;
  margin-top: 20px;
}
.confirm-page h1 {
  font-size: 34px;
  margin: 0 0 18px;
}
.confirm-page .confirm-dialog-actions form {
  display: contents;
}
.button.danger-button {
  background: #a33b31;
  border-color: #a33b31;
}
.button.danger-button:hover {
  background: #86281f;
}
@media (max-width: 600px) {
  .confirm-dialog {
    padding: 24px 20px;
  }
  .confirm-dialog-actions {
    flex-direction: column-reverse;
  }
  .confirm-dialog-actions .button {
    width: 100%;
  }
}

/* ---- Back to top button (site.js) ---- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 8px 24px #0b243a40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.2s,
    transform 0.2s,
    visibility 0.2s,
    background 0.2s;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.back-to-top:hover {
  background: #21628e;
}
.back-to-top:focus-visible {
  outline: 3px solid #fff;
  box-shadow: 0 0 0 6px var(--blue);
}
@media (max-width: 600px) {
  .back-to-top {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 44px;
    height: 44px;
  }
}
@media print {
  .back-to-top {
    display: none;
  }
}

/* ---- Phones and tablets ---- */

/* Touch screens: controls at least 44px, text links at least 24px (WCAG 2.5.8). */
@media (pointer: coarse), (max-width: 900px) {
  .menu-toggle {
    width: 44px;
    height: 44px;
  }
  .cart-link,
  .account-link {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
  .nav nav a,
  .admin-sidebar nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .topbar a {
    display: inline-block;
    padding-block: 6px;
  }
  .video-controls button {
    width: 44px;
    height: 44px;
  }
  .text-button,
  .small-button {
    min-height: 44px;
  }
  .form-grid .check {
    min-height: 44px;
  }
  .footer-grid a,
  .footer-bottom a,
  .contact-grid a,
  .text-link,
  a.small,
  td a,
  summary {
    display: inline-block;
    min-height: 24px;
    padding-block: 3px;
  }
  .pagination a,
  .pagination .currentStep {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
  }
  /* iOS Safari zooms into fields with text under 16px. */
  .form-grid input:not([type='checkbox']):not([type='radio']),
  .form-grid textarea,
  .form-grid select {
    font-size: 16px;
  }
}

/* Tablet portrait and phones: the admin sidebar becomes a top bar. */
@media (max-width: 900px) {
  .admin-body {
    display: block;
  }
  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 22px;
  }
  .admin-sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0 20px;
    margin-bottom: 15px;
  }
  .admin-sidebar nav a {
    font-size: 14px;
    padding: 12px 0;
  }
  .admin-sidebar .eyebrow {
    margin-top: 20px;
    margin-bottom: 4px;
  }
  .admin-sidebar .footer-brand {
    font-size: 25px;
  }
  .admin-main {
    margin-left: 0;
    width: 100%;
    padding: 25px 22px 60px;
  }
  .admin-top {
    font-size: 11px;
    gap: 15px;
    overflow-wrap: anywhere;
  }
}

/* Phones: tables become one card per row, labelled by site.js from the table header. */
@media (max-width: 600px) {
  .table-wrap:has(.stackable) {
    background: none;
    border: 0;
    overflow: visible;
  }
  table.stackable,
  .stackable tbody,
  .stackable tr,
  .stackable td {
    display: block;
    width: 100%;
    max-width: none;
  }
  .stackable thead {
    display: none;
  }
  .stackable tr {
    background: white;
    border: 1px solid var(--line);
    border-radius: 5px;
    margin-bottom: 14px;
    padding: 6px 0;
  }
  .stackable td {
    position: relative;
    padding: 10px 16px 10px calc(38% + 12px);
    border-bottom: 0;
    font-size: 14px;
  }
  .stackable td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    width: calc(38% - 24px);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 2px;
  }
  .stackable td:not([data-label]) {
    padding-left: 16px;
  }
  .stackable td:not([data-label])::before {
    content: none;
  }
  .stackable td.is-empty {
    display: none;
  }
}

/* Small phones (360px): keep logo, account link and cart on one line. */
@media (max-width: 380px) {
  .brand,
  .brand img {
    width: 128px;
  }
  .brand img {
    height: auto;
  }
  .brand > span {
    padding-left: 24px;
  }
  .nav-actions {
    gap: 4px;
  }
}

/* Containers focused by script (e.g. after "back to top") show no focus ring. */
[tabindex='-1']:focus {
  outline: none;
}

/* Application version (from gradle.properties), footer and admin sidebar */
.app-version {
  white-space: nowrap;
}
.admin-sidebar .app-version {
  margin: 24px 0 0;
  font-size: 11px;
  color: #9abbce;
}
/* Course catalogue (site/courses.gsp): search, type › category navigation and filtered results */
.catalog-search {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin-top: 30px;
}
.catalog-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #becbd4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}
.catalog-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 48px;
  margin-top: 44px;
  align-items: start;
}
.catalog-nav .eyebrow {
  margin-bottom: 12px;
}
.catalog-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.catalog-nav ul ul {
  margin: 4px 0 10px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}
.catalog-nav a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.catalog-nav ul ul a {
  padding: 6px 0;
  border-bottom: 0;
  font-size: 12px;
  font-weight: 500;
}
.catalog-nav a span {
  color: var(--muted);
  font-weight: 400;
}
.catalog-nav li.active > a {
  color: var(--blue);
}
.catalog-results .catalog-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 18px;
}
.catalog-crumbs {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.catalog-crumbs a {
  color: var(--blue);
  font-weight: 600;
}
.eyebrow a {
  color: inherit;
}
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
/* Admin list filters (admin/courses.gsp) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 18px 0 8px;
}
.filter-bar input,
.filter-bar select {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #becbd4;
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.filter-bar input[type='search'] {
  flex: 1 1 220px;
}
.filter-bar select {
  max-width: 320px;
}
.filter-bar .button {
  min-height: 41px;
  padding: 9px 18px;
}
