:root { --editorial-max-width: 1240px; }

.editorial-hero {
  position: relative;
  isolation: isolate;
  padding: 110px 5% 70px;
  overflow: hidden;
}

.editorial-hero-split { background: var(--inner-hero); }
.editorial-hero-photo { background: #2d4946; color: #f5f9f4; }

.editorial-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.editorial-hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .48);
}

.editorial-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px;
  height: 18px;
  background: var(--paper, #f2f6f3);
  z-index: 2;
  pointer-events: none;
  -webkit-mask: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-d9a66b52e5a94437.svg") center / max(100%, 1400px) 100% no-repeat;
  mask: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-d9a66b52e5a94437.svg") center / max(100%, 1400px) 100% no-repeat;
  transform: rotate(180deg);
}

.editorial-breadcrumb, .editorial-opening { max-width: var(--editorial-max-width); margin-inline: auto; }
.editorial-breadcrumb { margin-bottom: 40px; font-size: 13px; }
.editorial-breadcrumb a { color: inherit; }

.editorial-hero-split .editorial-opening:has(.editorial-featured-image) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 55px);
  align-items: center;
}

.editorial-hero-photo .editorial-opening {
  min-height: 400px;
  display: grid;
  align-items: center;
  text-align: center;
  max-width: 760px;
}

.inner-demo .editorial-heading h1 {
  color: inherit;
  font-size: clamp(32px, 3.5vw, 50px);
  line-height: 1.15;
  margin: 0 0 21px;
}

.editorial-heading > p { font-size: 17px; line-height: 1.6; }
.editorial-heading .editorial-date {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #345653;
  color: #f5f9f4;
  font-size: 13px;
}
.editorial-date > :is(time, span) { display: inline-flex; align-items: center; gap: 7px; }
.editorial-date svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: #8fc77d;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.editorial-featured-image {
  width: 100%;
  aspect-ratio: 1.25;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.editorial-body { width: min(90%, var(--editorial-max-width)); margin: 60px auto; }

@media (max-width: 760px) {
  .editorial-hero { padding: 40px 5%; }
  .editorial-hero-split .editorial-opening:has(.editorial-featured-image) { grid-template-columns: 1fr; }
  .editorial-hero-photo .editorial-opening { min-height: 370px; }
}

/* Article blocks share the scale, spacing and treatments of the block wireframe. */
.article-module { margin-block: 48px; font-size: 17px; line-height: 1.75; }
.article-module h2 { margin: 0 0 18px; font-size: 29px; line-height: 1.25; }
.article-module h3 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; }
.article-module p { margin: 0 0 22px; }
.article-module :is(p, ul, ol, dl):last-child { margin-bottom: 0; }
.article-module figure { margin: 0; }
.article-module figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.article-module figcaption { margin-top: 6px; font-size: 14px; }
.article-module a:not(.pill):hover { color: #609c50; }

.article-module-highlight { padding: clamp(20px, 4vw, 34px); border-radius: 8px; }
.article-module-highlight, .article-module-information-panel, .article-module-action-callout { background: #e6efe4; }
.article-module-information-panel {
  padding: 30px 34px;
  border-left: 4px solid #8bc37a;
}
.article-facts { margin: 0; padding-left: 24px; }
.article-facts div { display: list-item; margin-top: 6px; padding-left: 5px; }
.article-facts dt, .article-facts dd { display: inline; }
.article-facts dt { font-weight: 700; }
.article-facts dt::after { content: ': '; }
.article-facts dd { margin: 0; }

.article-items, .article-steps, .article-events, .article-places { list-style: none; padding: 0; margin: 0; }
.article-items, .article-gallery { display: grid; gap: 14px; }
.article-ticks, .article-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.article-features { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.article-features li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 23px 20px;
  border-radius: 5px;
  background: #e5efe1;
  font-size: 15px;
  line-height: 1.6;
}
.article-module-rich-text:has(+ .article-module-feature-cards .article-features),
.article-module-feature-cards:has(.article-features) { margin-bottom: 28px; }
.article-module-rich-text + .article-module-feature-cards:has(.article-features),
.article-module-feature-cards:has(.article-features) + .article-module-rich-text { margin-top: 28px; }
.article-features img { width: 34px; height: 34px; }
.article-ticks, .article-places { gap: 12px; }
.article-ticks li, .article-places li {
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #d9e2dc;
  border-radius: 8px;
}
.article-ticks li { display: flex; gap: 10px; align-items: baseline; }
.article-tick { color: #426e6b; font-weight: 800; }

.article-image-text, .article-places .place-with-image {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
}
.article-image-text.image-right figure { grid-column: 2; grid-row: 1; }
.article-image-text.image-right > div { grid-column: 1; grid-row: 1; }
.article-image-text:not(:has(figure)) { grid-template-columns: 1fr; }
.article-gallery { gap: 16px; }
.article-gallery:has(> figure:nth-child(2)) > figure > img {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.article-table { overflow-x: auto; background: #fff; }
.article-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; }
.article-table :is(th, td) { padding: 14px 16px; border-bottom: 1px solid #d9e2dc; text-align: left; }
.article-table thead th { background: #477470; color: #f5f9f4; }
.article-table tbody tr:nth-child(even) { background: #edf3ee; }

.article-steps > li { position: relative; padding: 0 0 25px 38px; margin-left: 15px; }
.article-steps > li:not(:last-child) { border-left: 1px solid #b6cabc; }
.article-steps > li:last-child { padding-left: 38px; }
.article-steps > li figure { margin: 24px 0; }
.article-marker { display: inline-block; }
.article-steps-numbered > li > .article-marker {
  z-index: 1;
  position: absolute;
  inset: 0 auto auto -16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #477470;
  color: #f5f9f4;
  text-align: center;
  font-size: 15px;
  line-height: 32px;
}
/* Only journey entries get the timeline: lists within their copy stay ordinary lists. */
.article-steps-numbered > li:not(:last-child) { border-left: 0; }
.article-steps-numbered > li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: -16px;
  width: 1px;
  background: #b6cabc;
}
.article-steps > li :is(ul, ol) { margin: 16px 0; padding-left: 24px; }
.article-steps > li ul { list-style: disc; }
.article-steps > li ol { list-style: decimal; }
.article-steps > li :is(ul, ol) > li { margin: 0 0 8px; padding: 0; border: 0; }

.article-steps-labelled > li { margin-left: 0; padding-left: 18px; }
.article-steps-labelled > li:last-child { padding-left: 19px; }
.article-steps-labelled .article-marker {
  padding: 2px 10px;
  margin-bottom: 8px;
  border-radius: 20px;
  background: #e6efe4;
  font-size: 14px;
  font-weight: 700;
}

.article-events { margin-top: 26px; overflow: hidden; border-radius: 4px; background: #fff; }
.article-events li { display: flex; align-items: center; gap: 23px; padding: 17px 22px; }
.article-events li + li { border-top: 1px solid #e1e9e2; }
.article-events h3 { margin: 0 0 5px; font-size: 19px; }
.article-events time { display: block; color: #507e79; font-size: 13px; }
.article-events p { margin: 4px 0 0; }
.article-event-date {
  display: flex;
  flex: 0 0 60px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 64px;
  border-radius: 4px;
  background: #e5efe1;
  color: #2d4946;
  line-height: 1.2;
}
.article-event-date b { font-size: 25px; }
.article-event-date > span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.article-module-faq details { border-bottom: 1px solid #ccdad1; }
.article-module-faq details[open] { background: #edf2ed; }
.article-module-faq summary { cursor: pointer; padding: 20px 25px 20px 0; font-weight: 600; }
.article-module-faq details > :not(summary) { padding: 0 15px 10px; }
.article-places li + li { margin-top: 12px; }
.article-places h3 { margin-bottom: 6px; }
.article-places p { margin-bottom: 8px; }
.article-places .place-with-image { grid-template-columns: minmax(0, 1fr) minmax(0, 32%); gap: 16px; align-items: center; }

.article-module-action-callout { padding: 24px; border-radius: 10px; }
.article-module-action-callout :is(h2, p) {margin-bottom: 12px;}
.article-module-action-callout .pill {
  width: fit-content;
  max-width: 100%;
  gap: 12px;
  padding: 8px 10px 8px 16px;
  color: #f5f9f4;
  text-decoration: none;
}

@media (max-width: 900px) {
  .article-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .article-module h2 { font-size: 26px; }
  .article-module-information-panel { padding: 24px; }
  .article-image-text { grid-template-columns: 1fr; gap: 24px; }
  .article-image-text.image-right :is(figure, div) { grid-column: auto; grid-row: auto; }
  .article-gallery { gap: 10px; }
  .article-events li { gap: 15px; padding: 14px; }
  .article-events h3 { font-size: 17px; }
  .article-event-date { flex-basis: 50px; min-height: 58px; }
}
@media (max-width: 600px) {
  .article-ticks, .article-places .place-with-image { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .article-features { grid-template-columns: 1fr; }
}

.article-download-icon { color: #fff; }
.article-download-icon::before { display: none; }
.article-module[id] { scroll-margin-top: calc(var(--header-height) + 105px); }
.editorial-body.has-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 22vw, 255px);
  gap: clamp(24px, 4vw, 70px);
  align-items: start;
}
.editorial-contents {
  padding: 26px 28px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgb(45 73 70 / 5%);
}
.editorial-contents h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; font-size: 22px; }
.editorial-contents img { object-fit: contain; flex: none; }
.editorial-contents ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 14px;
}
.editorial-contents a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.editorial-contents + .editorial-gutenberg { margin-block-start: 48px; }
.editorial-gutenberg > :first-child,
.editorial-content > .article-module:first-child { margin-block-start: 0; }
.editorial-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 100px);
  isolation: isolate;
  background: #fff;
  border-radius: 4px;
}
.editorial-sidebar::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: -30px;
  bottom: -116px;
  width: min(260px, calc(100% + 30px));
  aspect-ratio: 330.42 / 269;
  background: url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-6c75d5bc413ebd2d.svg") center / contain no-repeat;
  pointer-events: none;
}
.editorial-sidebar figure { margin: 0; }
.editorial-sidebar figure img { display: block; width: 100%; aspect-ratio: 1.6; height: auto; object-fit: cover; border-radius: 4px 4px 0 0; }
.editorial-sidebar-copy { position: relative; padding: 22px; background: #fff; border-radius: 0 0 4px 4px; }
.editorial-sidebar-copy .eyebrow { margin: 0 0 11px; font-size: 10px; line-height: 1.5; letter-spacing: .17em; }
.editorial-sidebar-copy h2 { margin: 0 0 14px; font-size: 22px; line-height: 1.25; }
.editorial-sidebar-copy > p:not(.eyebrow) {margin: 0 0 24px; font-size: 15px; line-height: 1.75;}
.editorial-sidebar-button { width: 100%; justify-content: space-between; white-space: normal; text-decoration: none; padding: 10px 21px; font-size: 14px; line-height: 1.5; }
@media (max-width: 760px) {
  .editorial-body.has-sidebar { display: block; }
  .editorial-sidebar { position: relative; top: auto; width: 100%; max-width: none; margin: 32px auto 72px; }
  .article-module[id] { scroll-margin-top: calc(var(--header-height) + 20px); }
}
@media (max-width: 540px) {
  .editorial-contents ul { grid-template-columns: 1fr; }
}

@media (min-width: 901px) {
  .article-image-text > figure {
    position: sticky;
    top: calc(var(--header-height) + 105px);
    align-self: start;
  }
}

.editorial-content .wp-block-image img,
.editorial-content .wp-block-gallery img { height: auto; aspect-ratio: auto; object-fit: contain; }

/* Editorial quotations use the left-rule highlight treatment. */
.article-module-highlight:has(> blockquote) {
  border-left: 4px solid #8bc37a;
  border-radius: 0;
}
.article-module-highlight > blockquote { margin: 0; padding: 0; }
.article-module-highlight > blockquote + blockquote { margin-top: 24px; }
.article-module-highlight > blockquote p { font-style: italic; }
.article-module-highlight > blockquote cite { display: block; margin-top: 10px; font-style: normal; }

@media (max-width: 600px) {
  .article-table::before { content: 'Swipe sideways to compare all columns →'; display: block; position: sticky; left: 0; width: 100%; padding: 10px 12px; font-size: 12px; background: #edf3ee; }
}

/* A shorter, bottom-aligned photo hero with metadata across the torn edge. */
@media(max-width:760px){
 .editorial-hero-photo{display:flex;flex-direction:column;min-height:400px;padding:28px 5% 52px;overflow:visible}
 .editorial-hero-photo .editorial-breadcrumb{width:100%;margin:0 auto}
 .editorial-hero-photo .editorial-opening{flex:1;width:100%;min-height:0;align-items:end;padding-top:36px}
 .editorial-hero-photo .editorial-heading .editorial-date{position:absolute;left:50%;bottom:6px;transform:translate(-50%,50%);z-index:3;width:max-content;max-width:calc(100% - 32px);justify-content:center;margin:0;gap:4px 14px}
}

/* Native, keyboard-accessible contents disclosure, collapsed initially. */
.editorial-contents-toggle>summary{cursor:pointer;list-style:none;min-height:36px}
.editorial-contents-toggle>summary::-webkit-details-marker{display:none}
.editorial-contents-toggle>summary::marker{content:''}
.editorial-contents .editorial-contents-toggle h2{margin:0;gap:10px;min-height:36px}
.editorial-contents .editorial-contents-toggle img{width:36px;height:24px}
.contents-chevron{display:block;flex:none;width:8px;height:14px;margin-left:auto;background:currentColor;mask:url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-e814b896535d16d3.svg") center/contain no-repeat;-webkit-mask:url("https://madebyalpha.co.uk/oaks/wp-content/uploads/2026/11/hog-asset-e814b896535d16d3.svg") center/contain no-repeat;transform:rotate(90deg)}
.editorial-contents-toggle[open] .contents-chevron{transform:rotate(-90deg)}
.editorial-contents-toggle>ul{margin-top:18px}
@media(max-width:760px){.editorial-contents{padding:20px}.editorial-contents .editorial-contents-toggle h2{font-size:20px}}

/* Two or four icon cards form balanced desktop rows; other counts retain three columns. */
@media(min-width:901px){
 .article-features:has(>li:nth-child(2):last-child),
 .article-features:has(>li:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(min-width:901px){.article-module-action-callout .pill{margin-top:0}}

@media(min-width:1101px){.editorial-contents-toggle>summary{cursor:default}.editorial-contents-toggle .contents-chevron{display:none}.editorial-contents-toggle>ul{display:grid}}

/* Labelled journeys share marker colours and connect to the final label centre. */
.article-steps-labelled>li{border-left:0;padding-left:19px}
.article-steps-labelled>li>.article-marker{background:#477470;color:#f5f9f4;line-height:24px}
.article-steps-labelled>li:not(:last-child)::before{content:"";position:absolute;left:0;top:14px;bottom:-14px;width:1px;background:#b6cabc}

.article-steps-labelled>li:not(:last-child){border-left:0}

.article-steps-labelled>li>.article-marker{position:relative;vertical-align:top}
.article-steps-labelled>li>.article-marker::before{content:"";position:absolute;left:-19px;top:50%;width:19px;height:1px;background:#b6cabc;transform:translateY(-50%)}

/* Continue the final branch to the end of its content, excluding row padding. */
.article-steps-labelled>li:last-child::before{content:"";position:absolute;left:0;top:14px;bottom:25px;width:1px;background:#b6cabc}
.article-steps-labelled>li:last-child>:last-child{margin-bottom:0}

.article-share-back{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px 24px;margin-top:40px;padding-top:22px;border-top:1px solid #ccdad1;font-size:15px}
.article-share-back a{color:inherit;text-decoration:underline;text-underline-offset:4px;font-weight:600}
.article-share-back a:hover{color:#477470}

.article-share-back a{display:inline-flex;align-items:center;gap:8px}.article-share-back .article-link-icon{flex:0 0 18px}

/* Follow the desktop header's visible height as its navigation slides away. */
@media(min-width:1101px){
 .editorial-sidebar,.article-image-text>figure{top:calc(var(--hog-header-slide-height,var(--header-height)) + var(--hog-booking-bar-height,84px) + 20px);transition:top .24s ease}
 html.hog-header-collapsed :is(.editorial-sidebar,.article-image-text>figure){top:calc(var(--hog-booking-bar-height,84px) + 20px)}
}
@media(min-width:1101px) and (prefers-reduced-motion:reduce){.editorial-sidebar,.article-image-text>figure{transition:none}}
