/* Homepage Geopolitical Summer School feature and its "Notify me" dialog.
   Replaces the earlier single text row and sits between the internship
   feature (which supplies the space above) and Past events. Refined A-Brown:
   square panels, serif headings, one rule above the section, none below. */
.summer-feature { padding-bottom: 96px; scroll-margin-top: 110px; }
.summer-feature .section-top { margin-bottom: 38px; }
.summer-feature-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(300px, 1fr); gap: 28px; align-items: stretch; }

.summer-previous { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1fr); background: var(--cream); }
.summer-previous-photo { margin: 0; min-height: 340px; }
.summer-previous-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.summer-previous-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 42px 44px; }
.summer-label { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font: 400 19px/1.35 var(--serif); color: var(--brown); }
.summer-tag { padding: 5px 10px 4px; border: 1px solid var(--red); color: var(--red); font: 700 11px/1.4 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; }
.summer-previous h2 { margin: 18px 0 14px; font: 400 clamp(30px, 2.9vw, 41px)/1.12 var(--serif); letter-spacing: -.6px; color: var(--brown); }
.summer-previous h2 a:hover, .summer-previous h2 a:focus-visible { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.summer-previous-copy > p:not(.summer-label) { max-width: 46ch; font: 18px/1.6 var(--serif); color: var(--ink); }
.summer-previous .text-link { margin-top: 14px; }

.summer-next { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 42px 38px; background: var(--brown); color: var(--cream); }
.summer-next .eyebrow { color: var(--gold); font-size: 11px; }
.summer-next h3 { margin: 12px 0 14px; font: 400 clamp(27px, 2.4vw, 33px)/1.18 var(--serif); letter-spacing: -.35px; color: #fff; }
.summer-next > p:not(.eyebrow) { font: 16px/1.65 var(--sans); color: #e4d8c9; }
.summer-next .button { margin-top: 26px; padding: 17px 23px; background: var(--cream); color: var(--brown); border: 1px solid var(--cream); white-space: nowrap; cursor: pointer; }
.summer-next .button:hover { background: #fff; border-color: #fff; }
.summer-next .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }

/* Same action inside the dark edition panel of the summer school page */
.edition-notify { margin-top: 26px; padding-top: 24px; border-top: 1px solid #806b54; }
.edition-notify p { font: 16px/1.65 var(--sans); color: #d7cbbd; }
.edition-notify p strong { color: #fff; font-weight: 600; }
.edition-notify .button { margin-top: 20px; padding: 17px 23px; background: var(--cream); color: var(--brown); border: 1px solid var(--cream); white-space: nowrap; cursor: pointer; }
.engagement-main .edition-notify .button .link-icon { color: inherit; }
.edition-notify .button:hover { background: #fff; border-color: #fff; }
.edition-notify .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.edition-notify + .text-link { margin-top: 18px; }

/* Notify dialog */
.notify-dialog { width: min(680px, calc(100% - 32px)); max-height: 92dvh; margin: auto; padding: 30px 36px 36px; border: 0; border-top: 4px solid var(--gold); background: #fff; overflow: auto; }
.notify-dialog .dialog-heading h2 { font-family: var(--serif); font-weight: 400; color: var(--brown); }
.notify-dialog .dialog-heading > button { cursor: pointer; }
.notify-dialog .dialog-heading > button:hover { background: var(--cream); }
.notify-intro { margin-top: 14px; font: 16px/1.6 var(--sans); color: var(--muted); }
.notify-form { display: grid; gap: 22px; }
.notify-form[hidden], .notify-done[hidden] { display: none; }
.notify-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.notify-field { min-width: 0; }
.notify-field label { display: block; margin-bottom: 8px; font: 600 16px/1.4 var(--sans); }
.notify-field input { display: block; width: 100%; min-height: 50px; padding: 11px 14px; border: 1px solid var(--muted); border-radius: 0; background: #fff; color: var(--ink); font: 400 17px/1.45 var(--sans); caret-color: var(--red); transition: border-color .15s ease; }
.notify-field input:hover { border-color: var(--brown); }
.notify-form input:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.notify-form input[aria-invalid=true] { border-color: var(--red); }
.notify-form input:disabled { background: var(--cream); color: var(--muted); cursor: wait; }
.notify-dialog .field-hint { margin-top: 6px; font: 14px/1.5 var(--sans); color: var(--muted); }
.notify-dialog .field-error { margin-top: 6px; font: 15px/1.4 var(--sans); color: var(--red); }
.notify-dialog .field-error:empty { display: none; }
.notify-agreement > div { display: flex; align-items: flex-start; gap: 12px; }
.notify-agreement input { flex: none; width: 21px; height: 21px; margin: 2px 0 0; accent-color: var(--red); cursor: pointer; }
.notify-agreement label { font: 16px/1.5 var(--sans); }
.notify-agreement a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.notify-submit { display: flex; align-items: center; gap: 20px; }
.notify-submit button { min-width: 170px; min-height: 52px; justify-content: center; cursor: pointer; }
.notify-submit button:disabled { opacity: .65; cursor: wait; }
.notify-submit p { font: 14px/1.5 var(--sans); color: var(--muted); }
.notify-dialog .form-status { padding: 15px 18px; border: 1px solid var(--stone); background: #fff; font: 16px/1.5 var(--sans); overflow-wrap: anywhere; }
.notify-dialog .form-status[data-state=error] { border-color: var(--red); color: var(--red); }
.notify-dialog .form-status[hidden] { display: none; }
.notify-trap, .notify-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.notify-done { margin-top: 22px; padding: 28px 30px; background: var(--cream); border-left: 3px solid var(--gold); }
.notify-done:focus { outline: none; }
.notify-done h3 { font: 400 27px/1.2 var(--serif); letter-spacing: -.3px; color: var(--brown); }
.notify-done p { margin: 10px 0 22px; font: 17px/1.6 var(--sans); }
.notify-done .button { background: var(--brown); color: #fff; border: 1px solid var(--brown); cursor: pointer; }
.notify-done .button:hover { background: var(--deep); }
.notify-dialog ::selection { background: var(--gold); color: var(--deep); }

@media (max-width: 1100px) {
  .summer-feature { padding-bottom: 67px; }
  .summer-feature-grid { grid-template-columns: 1fr; gap: 0; }
  .summer-previous-copy { padding: 36px; }
  .summer-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 40px; padding: 32px 36px; }
  .summer-next > :not(.button) { grid-column: 1; }
  .summer-next .button { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
}
@media (max-width: 720px) {
  .summer-previous { grid-template-columns: 1fr; }
  .summer-previous-photo { min-height: 0; }
  .summer-previous-photo img { height: auto; aspect-ratio: 16 / 10; }
  .summer-next { display: flex; align-items: flex-start; }
  .summer-next .button { margin-top: 24px; }
}
@media (max-width: 560px) {
  .summer-feature { padding-bottom: 54px; }
  .summer-feature .section-top { margin-bottom: 26px; }
  .summer-feature .section-top .text-link { display: none; }
  .summer-previous-copy { padding: 28px 24px 30px; }
  .summer-previous-copy > p:not(.summer-label) { font-size: 17px; }
  .summer-next { padding: 28px 24px 30px; }
  .summer-next .button { padding: 15px 18px; font-size: 11px; gap: 17px; max-width: 100%; }
  .notify-dialog { padding: 24px 22px 28px; }
  .notify-row { grid-template-columns: 1fr; }
  .notify-submit { flex-direction: column; align-items: flex-start; gap: 12px; }
  .notify-submit button { width: 100%; }
  .notify-done { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) { .notify-field input { transition: none; } }
@media print { .edition-notify .button { display: none; } .summer-next { background: #fff; color: #000; border: 1px solid #000; } .summer-next h3, .summer-next > p:not(.eyebrow), .summer-next .eyebrow { color: #000; } .summer-next .button { display: none; } }
