.detail-shell {
  --detail-rule: var(--line, #d9dfd1);
  overflow-wrap: anywhere;
}

.detail-shell .breadcrumbs {
  font-size: .8125rem;
  row-gap: .125rem;
}

.detail-shell .breadcrumbs [aria-current] {
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-shell .detail-hero {
  display: grid;
  grid-template-areas: "heading visual" "summary visual";
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
  grid-template-rows: auto auto;
  align-content: center;
  max-width: none;
  column-gap: clamp(1.75rem, 5vw, 4.5rem);
  padding: clamp(1.75rem, 4vw, 3.75rem) 0;
}

.detail-heading {
  grid-area: heading;
  min-width: 0;
  align-self: end;
}

.detail-kicker {
  display: block;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.detail-shell .detail-hero h1 {
  margin: .75rem 0 1.15rem;
  font-size: clamp(2.75rem, 5vw, 4.65rem);
  letter-spacing: -.05em;
  line-height: 1.025;
  overflow-wrap: anywhere;
}

.detail-summary {
  grid-area: summary;
  min-width: 0;
  align-self: start;
}

.detail-summary .lead {
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.65;
  margin: 0;
}

.detail-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.75rem, 4vw, 3.5rem);
  margin: 1.65rem 0 0;
}

.detail-counts > div {
  display: flex;
  flex-direction: column-reverse;
}

.detail-counts dt {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--muted);
}

.detail-counts dd {
  font: 500 2rem/1.12 Georgia, serif;
  font-variant-numeric: lining-nums tabular-nums;
  margin: 0 0 .2rem;
}

.detail-visual {
  grid-area: visual;
  min-width: 0;
  align-self: center;
}

.detail-visual > figure {
  margin: 0;
}

.detail-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: .4rem;
}

.detail-visual figcaption {
  margin: .55rem 0 0;
  font-size: .8125rem;
  line-height: 1.5;
}

.detail-visual figcaption a {
  text-decoration: underline;
  text-underline-offset: .16em;
}

.detail-shell .detail-hero--programme {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .85fr);
}

.detail-shell .detail-hero--programme h1 {
  font-size: clamp(2.6rem, 4.35vw, 4.1rem);
}

.detail-shell .detail-hero--programme.long-title h1 {
  font-size: clamp(2.15rem, 3.35vw, 3.1rem);
  line-height: 1.08;
}

.detail-hero--programme .detail-visual img {
  aspect-ratio: 5 / 4;
}

.detail-hero--programme .program-turkish-label {
  margin: 0 0 .85rem;
}

.detail-hero--programme .program-turkish-label > span {
  font-size: .8125rem;
  letter-spacing: normal;
}

.detail-hero--programme .degree-line {
  margin: 0 0 1.15rem;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--ink);
}

.detail-hero--programme .degree-line span {
  margin: 0 .25rem;
}

.detail-hero--programme .actions {
  margin-top: 1.3rem;
  flex-direction: row;
  align-items: center;
  gap: .7rem 1.5rem;
}

.detail-hero--programme .actions a {
  font-size: .9375rem;
}

.detail-hero--programme .actions .button > [aria-hidden] {
  display: none;
}

.detail-hero--programme .detail-summary .note {
  margin: 1rem 0 0;
}

.detail-shell .detail-nav {
  gap: .2rem clamp(.9rem, 3vw, 2.6rem);
  padding: .22rem 0;
}

.detail-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 600;
}

.detail-shell .section {
  border-bottom: 1px solid var(--detail-rule);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.detail-shell .section:last-child {
  border-bottom: 0;
}

.detail-shell .facts-grid {
  border: 0;
  border-block: 1px solid var(--detail-rule);
  border-radius: 0;
  background: transparent;
}

.detail-shell .fact {
  padding: 1.2rem clamp(.9rem, 2vw, 1.6rem);
}

.detail-shell .fact:first-child {
  padding-left: 0;
}

.detail-shell .fact dt,
.detail-shell .fact dd small,
.detail-shell .quiet,
.detail-shell .fact-context {
  font-size: .84375rem;
  line-height: 1.6;
}

.detail-shell .fact dt {
  margin-bottom: .35rem;
}

.detail-shell .fact dd {
  font-size: 1rem;
  line-height: 1.5;
}

.detail-shell .editorial {
  margin: 2rem 0 1.5rem;
}

.detail-shell .editorial p,
.detail-shell .places p,
.detail-shell .reading p {
  font-size: 1rem;
  line-height: 1.75;
}

.detail-shell .note {
  max-width: 86ch;
  font-size: .9375rem;
}

.detail-shell :is(.section, .list-title, .reading section, .section-anchor)[id] {
  scroll-margin-top: 1.5rem;
}

.detail-shell .places article {
  padding: 1.1rem 0 .5rem;
  border: 0;
  border-top: 1px solid var(--detail-rule);
  border-radius: 0;
  background: transparent;
}

.city-guide-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.25rem 0 1rem;
}

.city-guide-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .5rem 1rem;
  border: 1px solid var(--detail-rule);
  border-radius: 999px;
  background: #fffdf6;
  color: #23463b;
  font-weight: 700;
}

.city-guide-group {
  --city-guide-tint: #e8f1e7;
  margin: 0 0 1.25rem;
  padding: clamp(1rem, 3vw, 1.5rem);
  border-radius: 1rem;
  background: var(--city-guide-tint);
}

.city-guide-language {
  --city-guide-tint: #efebf5;
}

.detail-shell .city-guide-group .places article {
  background: #fffdf9;
  padding: 1rem;
  border: 1px solid var(--detail-rule);
  border-radius: .75rem;
}

.detail-shell .city-guide-group .place-location {
  color: #365747;
  font-weight: 700;
}

.city-guide-group address {
  margin: .25rem 0 .5rem;
  color: #515c56;
  font-size: .875rem;
  font-style: normal;
}

.city-guide-group .city-guide-note {
  margin: .8rem 0 0;
  font-size: .875rem;
}

.detail-shell .places small,
.detail-shell .source-links a,
.detail-shell .places a,
.detail-shell .program-row p,
.detail-shell .program-row small {
  font-size: .875rem;
}

.detail-shell .program-row-main {
  min-width: 0;
}

.detail-shell .article-layout {
  grid-template-columns: minmax(0, 43rem) minmax(13rem, 17rem);
  justify-content: space-between;
  gap: clamp(2rem, 6vw, 5rem);
  padding-top: .75rem;
}

.detail-shell .reading > section {
  margin-bottom: 2.25rem;
  padding-bottom: 2.25rem;
}

.detail-shell .reading h2 {
  margin-bottom: 1rem;
}

.detail-shell .topic-list li {
  font-size: .9375rem;
}

.detail-shell .reading .fact-context {
  margin-top: .85rem;
}

.detail-shell .article-aside .aside-card {
  position: sticky;
  top: 1.5rem;
  border: 0;
  border-left: 1px solid var(--detail-rule);
  border-radius: 0;
  background: transparent;
  padding: .2rem 0 .25rem 1.5rem;
}

.detail-shell .article-aside .aside-card a {
  padding: .7rem 0;
  font-size: .9375rem;
  line-height: 1.45;
}

.detail-shell .article-aside .detail-kicker {
  margin-bottom: .65rem;
}

.detail-shell .program-contents {
  margin: 0 0 1.25rem;
}

.detail-shell .program-contents a {
  font-size: .9375rem;
}

@media (max-width: 800px) {
  .detail-shell .detail-hero,
  .detail-shell .detail-hero--programme {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    column-gap: 1.5rem;
  }
  .detail-shell .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-shell .fact:nth-child(odd) {
    padding-left: 0;
  }
}

@media (max-width: 660px) {
  .detail-shell .detail-hero,
  .detail-shell .detail-hero--programme {
    grid-template-areas: "heading" "visual" "summary";
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    padding: 1.5rem 0;
  }
  .detail-shell .detail-hero h1 {
    font-size: clamp(2.35rem, 8.7vw, 3.5rem);
    margin: .6rem 0 0;
    line-height: 1.06;
  }
  .detail-shell .detail-hero--programme.long-title h1 {
    font-size: clamp(1.95rem, 7vw, 2.65rem);
    line-height: 1.1;
  }
  .detail-hero--programme .program-turkish-label {
    margin: .75rem 0 0;
  }
  .detail-hero--programme .degree-line {
    margin: .7rem 0 0;
  }
  .detail-visual img,
  .detail-hero--programme .detail-visual img {
    aspect-ratio: 16 / 9;
  }
  .detail-shell .detail-nav {
    gap: 0 1.15rem;
  }
  .detail-shell .detail-nav a {
    font-size: .875rem;
  }
  .detail-counts {
    margin-top: 1rem;
  }
  .detail-shell .reading > section {
    margin-bottom: 1.6rem;
    padding-bottom: 1.6rem;
  }
}

@media (max-width: 470px) {
  .detail-shell .facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail-shell .facts-grid .fact {
    display: grid;
    grid-template-columns: minmax(4rem, .55fr) minmax(0, 1.45fr);
    align-items: baseline;
    gap: .75rem;
    padding: .85rem 0;
    border: 0;
    border-bottom: 1px solid var(--detail-rule);
  }
  .detail-shell .facts-grid .fact:last-child {
    border-bottom: 0;
  }
  .detail-shell .fact dt {
    margin: 0;
  }
}

@media print {
  .detail-shell .detail-nav,
  .detail-shell .detail-visual {
    display: none;
  }
  .detail-shell .detail-hero,
  .detail-shell .article-layout {
    display: block;
  }
}
