/* Program details: a compact introduction followed by a readable course outline. */
.aws-program-detail main{box-sizing:border-box;width:100%;max-width:1080px;margin-inline:auto;padding-inline:24px}
.aws-program-detail main .alignwide,.aws-program-detail main .alignfull{width:100%;max-width:100%;margin-inline:0}
.aws-program-detail .aws-hero{padding-block:32px 24px}
.aws-program-detail .aws-hero__inner{max-width:none;padding-inline:0;grid-template-columns:minmax(0,1fr) minmax(220px,280px);gap:40px;align-items:center}
.aws-program-detail .aws-hero__said{gap:16px;min-width:0}
.aws-program-detail .aws-hero__heading{font-size:clamp(30px,3.4vw,44px);line-height:1.15;text-wrap:balance}
.aws-program-detail .aws-hero__lede{max-width:60ch;font-size:16px;line-height:1.65}
.aws-program-detail .aws-hero__figure{width:100%;max-width:280px;margin:0;align-self:center}
.aws-program-detail .aws-hero__image{width:100%;height:220px;aspect-ratio:auto;object-fit:cover;border-radius:16px}
.aws-program-detail .aws-dci-source-content{box-sizing:border-box;width:100%;max-width:760px!important;margin:24px auto!important;line-height:1.7}
.aws-program-detail .aws-dci-source-content h2{font-size:clamp(24px,2.5vw,30px);line-height:1.25;margin:28px 0 14px}
.aws-program-detail .aws-dci-source-content h3{font-size:21px;line-height:1.35;margin:24px 0 12px}
.aws-program-detail .aws-dci-source-content p,.aws-program-detail .aws-dci-source-content ul,.aws-program-detail .aws-dci-source-content ol{margin-block:0 18px}
.aws-program-detail .aws-dci-source-content li+li{margin-top:6px}
.aws-program-detail .aws-dci-source-content img{display:block;width:auto;max-width:100%;max-height:360px;height:auto;margin:20px auto;object-fit:contain;border-radius:12px}
.aws-program-detail .aws-band{padding-block:28px}
.aws-program-detail .aws-band__inner{max-width:760px;padding-inline:0}
@media(max-width:700px){
  .aws-program-detail main{padding-inline:20px}
  .aws-program-detail .aws-hero{padding-block:24px 16px}
  .aws-program-detail .aws-hero__inner{grid-template-columns:minmax(0,1fr);gap:20px}
  .aws-program-detail .aws-hero__figure{max-width:none}
  .aws-program-detail .aws-hero__image{height:200px}
  .aws-program-detail .aws-dci-source-content{margin-block:20px!important}
}

.aws-program-detail .aws-hero__inner:not(:has(.aws-hero__figure)){grid-template-columns:minmax(0,1fr);max-width:760px;margin-inline:auto}

/* The program catalogue starts directly below its title, without hero-sized whitespace. */
.aws-program-index main > .aws-hero { padding-block: 24px 12px; }
.aws-program-index .aws-hero__inner { min-height: 0; grid-template-columns: minmax(0, 1fr); }
.aws-program-index .aws-hero__said { gap: 0; }
.aws-program-index .aws-hero__heading { margin-block: 0; }
.aws-program-index .wp-site-blocks > main { margin-block-start: 0; padding-block-start: 0; }
.aws-program-index .wp-site-blocks main .aws-shop { margin-block-start: 0; padding-block-start: 20px; }
.aws-program-index main .wp-block-post-content,
.aws-program-index main .aws-grid { margin-block-start: 0; padding-block-start: 0; }
.aws-program-index main > .aws-dci-source-content { margin-block: 12px !important; }

/* Keep the welcome copy close to its slider, including on stacked screens. */
.aws-dci-home-hero { padding-block: 20px; }
.aws-dci-home-hero .aws-hero__inner { gap: 16px; }
.aws-dci-home-hero .aws-hero__lede { max-width: none; }
.aws-dci-home-hero .aws-hero__figure { margin: 0; }

/* The school's welcome slider uses a square frame with rounded corners. */
.aws-dci-home-hero .aws-hero__turn,
.aws-dci-home-hero .aws-hero__image { aspect-ratio: 1; border-radius: 20px; }

/* In two columns, the copy sets the height and the slider fills its column. */
@container (min-width: 1000px) {
  .aws-dci-home-hero .aws-hero__figure { align-self: stretch; min-height: 0; }
  .aws-dci-home-hero .aws-hero__turn,
  .aws-dci-home-hero .aws-hero__figure > .aws-hero__image {
    position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto;
  }
}

/* Compact school information pages share readable copy and the brand slideshow. */
.aws-dci-information .wp-site-blocks > main { margin-block-start: 0; padding-block-start: 0; }
.aws-dci-information main .aws-hero { padding-block: 20px 12px; }
.aws-dci-information .aws-hero__inner { box-sizing: border-box; max-width: 1100px; padding-inline: 24px; grid-template-columns: minmax(0,1fr); min-height: 0; }
.aws-dci-information .aws-hero__heading { margin: 0; font-size: clamp(30px,4vw,44px); line-height: 1.2; }
.aws-dci-information main .aws-dci-source-content {
  box-sizing: border-box; width: 100%; max-width: 1100px!important;
  margin: 12px auto 24px!important; padding-inline: 24px; line-height: 1.7;
}
.aws-dci-information .aws-dci-source-content:has(>.aws-dci-information__slider) {
  display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 32px; align-items: start;
}
.aws-dci-information__copy { min-width: 0; }
.aws-dci-information__copy>:first-child { margin-top: 0; }
.aws-dci-information__copy>:last-child { margin-bottom: 0; }
.aws-dci-information__copy p { margin-block: 0 16px; }
.aws-dci-information__copy h2 { font-size: clamp(22px,2.5vw,28px); line-height: 1.3; margin-block: 24px 12px; }
.aws-dci-information__copy img { display: block; width: auto; max-width: 100%; max-height: 300px; height: auto; object-fit: contain; margin-block: 12px; border-radius: 12px!important; }
.aws-dci-information__copy table { display: block; max-width: 100%; overflow-x: auto; }
.aws-dci-information__slider { align-self: stretch; position: relative; min-width: 0; min-height: 300px; }
.aws-dci-information__slider .aws-hero__turn { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; border-radius: 20px; }
.aws-dci-information__slider .aws-hero__image { border-radius: 0; }
@media(max-width:700px) {
  .aws-dci-information main .aws-dci-source-content,
  .aws-dci-information .aws-hero__inner { padding-inline: 20px; }
  .aws-dci-information .aws-dci-source-content:has(>.aws-dci-information__slider) { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .aws-dci-information__slider { min-height: 0; }
  .aws-dci-information__slider .aws-hero__turn { position: relative; height: auto; aspect-ratio: 1; }
}

/* Contact details: address, telephone/fax and email each have their own column. */
.aws-dci-contact__intro { margin-bottom: 24px; }
.aws-dci-contact__columns { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.aws-dci-contact__column { min-width: 0; overflow-wrap: anywhere; }
.aws-dci-contact__column h3 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; }
.aws-dci-contact__column p { margin: 0 0 8px; }
@media(max-width:700px) {
  .aws-dci-contact__columns { grid-template-columns: minmax(0,1fr); }
}

/* Course prices sit at the right edge of each Programs card. */
.aws-program-index .aws-shop__price { margin-inline-start: auto; order: 1; text-align: right; }

.aws-dci-blog-hero .aws-hero__heading { font-size: clamp(30px,4vw,44px); line-height: 1.2; margin: 0; }
.aws-dci-blog-hero__post { font-size: clamp(22px,2.5vw,30px); line-height: 1.3; margin: 0; }
.aws-dci-blog-hero__post a { color: inherit; text-decoration: none; }
.aws-dci-blog-hero__post a:hover { text-decoration: underline; }

.aws-dci-privacy-hero .aws-hero__heading { font-size: clamp(30px,4vw,44px); line-height: 1.2; margin: 0; }
.aws-dci-privacy-copy { min-width: 0; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.aws-dci-privacy-copy p { margin-block: 0 16px; }
.aws-dci-privacy-copy>:last-child { margin-bottom: 0; }

.aws-dci-contact-hero .aws-hero__said { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.aws-dci-contact-hero .aws-hero__heading { flex: 0 0 auto; }
.aws-dci-contact-hero .aws-dci-contact__intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px 20px; margin: 0; }
@media(max-width:700px) {
  .aws-dci-contact-hero .aws-dci-contact__intro { justify-content: flex-start; }
}

/* Preserve the masthead's height; only the logo is reduced. */
.aws-dci-site .aws-head.has-banner-mark .aws-head__brand {
  height: calc(var(--wp--preset--spacing--8) * 8 / 3); display: flex; align-items: center;
  /* A row, so align-items centres it up and down; the masthead's own rules made it a column, which centred it sideways and left it at the top. */
  flex-direction: row; justify-content: flex-start;
}
.aws-dci-site .aws-head.has-banner-mark .aws-head__brand img {
  width: 40%; height: calc(var(--wp--preset--spacing--8) * 1.6); object-position: left center; margin: 0;
}

/* The school's site is drawn at four fifths of its size on a desktop or laptop: the scale it was approved at, with the ground showing either side of the sheet. Phones and tablets keep their own size. */
@media (min-width: 1100px) {
  body.aws-dci-site { zoom: .8; }
}

/* The class schedule's table: a hairline-ruled list on the sheet, the program leading each row, prices and dates kept whole. */
.aws-dci-information__copy table { border: 1px solid var(--wp--preset--color--divider); border-collapse: separate; border-radius: var(--wp--custom--radius--md); border-spacing: 0; font-size: var(--wp--preset--font-size--small); line-height: 1.5; margin-block: var(--wp--preset--spacing--4); overflow: hidden; width: 100%; }
.aws-dci-information__copy thead th { background: var(--wp--preset--color--surface); font-size: var(--wp--preset--font-size--x-small); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.aws-dci-information__copy th, .aws-dci-information__copy td { border-bottom: 1px solid var(--wp--preset--color--divider); padding: var(--wp--preset--spacing--3) var(--wp--preset--spacing--4); text-align: left; vertical-align: top; }
.aws-dci-information__copy tbody tr:last-child > * { border-bottom: 0; }
.aws-dci-information__copy tbody th { font-weight: 600; }
.aws-dci-information__copy tbody tr:hover > * { background: color-mix(in srgb, var(--wp--preset--color--surface) 60%, transparent); }
/* Tuition and each start date on one line: "$850.0 / 0" and "December 2, / 2026" broke mid-figure. */
.aws-dci-information__copy td:nth-child(2), .aws-dci-information__copy td:nth-child(3) { white-space: nowrap; }
.aws-dci-information__copy td:nth-child(2) { font-variant-numeric: tabular-nums; }

/* On a phone each class is a card: the program as its heading, the rest labelled under it. */
@media (max-width: 700px) {
  .aws-dci-information__copy table, .aws-dci-information__copy tbody, .aws-dci-information__copy tr, .aws-dci-information__copy th, .aws-dci-information__copy td { display: block; }
  .aws-dci-information__copy table { border: 0; overflow: visible; }
  .aws-dci-information__copy thead { display: none; }
  .aws-dci-information__copy tbody tr { border: 1px solid var(--wp--preset--color--divider); border-radius: var(--wp--custom--radius--md); margin-block-end: var(--wp--preset--spacing--3); }
  .aws-dci-information__copy tbody th { background: var(--wp--preset--color--surface); }
  .aws-dci-information__copy tbody td { border-bottom: 0; padding-block: var(--wp--preset--spacing--1); }
  .aws-dci-information__copy tbody td:last-child { padding-block-end: var(--wp--preset--spacing--3); }
  .aws-dci-information__copy tbody td::before { color: var(--wp--preset--color--neutral-600); display: block; font-size: var(--wp--preset--font-size--x-small); letter-spacing: .06em; text-transform: uppercase; }
  .aws-dci-information__copy tbody td:nth-child(2)::before { content: "Tuition"; }
  .aws-dci-information__copy tbody td:nth-child(3)::before { content: "Upcoming start dates"; }
  .aws-dci-information__copy tbody td:nth-child(4)::before { content: "Class hours"; }
}
