/* ==========================================================================
   Shenachie — .entry-content
   Styles for everything the block editor can produce.

   WHY THIS FILE IS LONG
   The design demonstrates nine content styles. Gutenberg can emit well over
   thirty. Anything not styled here falls back to browser defaults, which on a
   #231F20 background means near-black text on near-black — invisible. Since
   Iain publishes without a developer, every block he might reach for has to
   be covered. Adding a style here is cheap; a broken live post is not.
   ========================================================================== */

.entry-content {
  max-width: var(--w-measure);
  overflow-wrap: break-word;
  word-break: break-word;
}
.entry-content > *:last-child { margin-bottom: 0; }

/* ==========================================================================
   TIER 1 — styles the design explicitly demonstrates
   ========================================================================== */

.entry-content p {
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.8;
  color: var(--t-2);
  margin: 0 0 22px;
}

/*
  Standfirst — the opening paragraph, set larger and brighter.
  Auto-applied to the first paragraph so it works with zero effort, and also
  available as a block style ("Standfirst") if it needs applying elsewhere.
*/
.entry-content > p:first-child,
.entry-content > .is-style-standfirst {
  font-size: 20px;
  line-height: 1.65;
  font-weight: 500;
  color: var(--c-white);
  margin: 0 0 32px;
}

.entry-content strong,
.entry-content b { color: var(--c-yellow); font-weight: 700; }

.entry-content em, .entry-content i { color: rgba(255,255,255,0.9); font-style: italic; }

/*
  Scoped away from components. `.entry-content a` is (0,1,1) and outranks
  .btn--primary (0,1,0), so any button placed in article content lost its
  label colour -- a yellow pill with yellow text reads as an empty button.
*/
.entry-content a:not([class]),
.entry-content a:not([class]):visited {
  color: var(--c-yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.entry-content a:not([class]):hover { color: var(--c-white); }

/* Headings. Gutenberg won't inherit the design's reliance on the preceding
   block's margin-bottom, so top margins are set explicitly. */
.entry-content h2 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: var(--fs-h3);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--c-white);
  margin: 44px 0 16px;
}
.entry-content h3 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--c-yellow);
  margin: 28px 0 12px;
}
.entry-content h4 {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--c-white);
  margin: 24px 0 10px;
}
.entry-content h5,
.entry-content h6 {
  font-family: var(--f-body);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--t-3);
  margin: 22px 0 10px;
}
.entry-content h5 { font-size: 16px; }
.entry-content h6 { font-size: 15px; }
.entry-content > :is(h2,h3,h4,h5,h6):first-child { margin-top: 0; }

/* Unordered lists — the design hand-builds each row with an inline tick SVG.
   Gutenberg emits a plain <ul>, so the tick is a masked pseudo-element. Using
   mask rather than a background image keeps the colour on one token. */
.entry-content ul,
.entry-content .wp-block-list:not([style*="list-style"]) {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.entry-content ul li {
  position: relative;
  padding-left: 33px;              /* 19px tick + 14px gap */
  font-size: 17px;
  line-height: 1.7;
  color: var(--t-2);
  margin: 0;
}
.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 19px;
  height: 19px;
  background: var(--c-yellow);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5 11-11'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5 11-11'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Ordered lists — numerals in brand yellow, aligned to the tick lists. */
.entry-content ol {
  list-style: none;
  counter-reset: shenachie-ol;
  margin: 0 0 36px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.entry-content ol li {
  counter-increment: shenachie-ol;
  position: relative;
  padding-left: 33px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--t-2);
  margin: 0;
}
.entry-content ol li::before {
  content: counter(shenachie-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--f-display);
  font-weight: 700;
  color: var(--c-yellow);
}

.entry-content li > ul,
.entry-content li > ol { margin: 14px 0 0; }
.entry-content li li { font-size: 16px; }

/* Pull quote — the yellow card from the design */
.entry-content .wp-block-pullquote {
  background: var(--c-yellow);
  border: 0;
  border-radius: var(--r-xl);
  padding: 36px 38px;
  margin: 0 0 36px;
  text-align: left;
}
.entry-content .wp-block-pullquote::before {
  content: "\201C";
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 0.4;
  height: 28px;
  color: var(--c-ink);
}
.entry-content .wp-block-pullquote p {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-quote);
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--c-ink);
  margin: 0;
}
.entry-content .wp-block-pullquote cite {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 14px;
  font-style: normal;
  text-transform: none;
  color: var(--c-body-light);
  margin-top: 16px;
}

/* Figures and captions */
.entry-content figure { margin: 0 0 36px; }
.entry-content figure img { border-radius: var(--r-lg); }
.entry-content figcaption,
.entry-content .wp-element-caption {
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.6;
  color: var(--t-4);
  margin: 12px 0 0;
  text-align: left;
}

/* ==========================================================================
   TIER 2 — blocks the design never showed, but the editor will produce
   ========================================================================== */

/* Quote block. Distinct from pullquote so both reach for something sensible. */
.entry-content blockquote,
.entry-content .wp-block-quote {
  border-left: 3px solid var(--c-yellow);
  padding: 4px 0 4px 22px;
  margin: 0 0 36px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}
.entry-content blockquote p { font-size: inherit; color: inherit; }
.entry-content blockquote cite,
.entry-content cite {
  display: block;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  font-style: normal;
  color: var(--t-3);
  margin-top: 10px;
}
/* Optional yellow-card treatment, registered as a block style */
.entry-content .wp-block-quote.is-style-yellow-card {
  background: var(--c-yellow);
  border: 0;
  border-radius: var(--r-xl);
  padding: 32px 34px;
  color: var(--c-ink);
}
.entry-content .wp-block-quote.is-style-yellow-card p { color: var(--c-ink); }
.entry-content .wp-block-quote.is-style-yellow-card cite { color: var(--c-body-light); }

/* Inline oddments */
.entry-content mark {
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 0 4px;
  border-radius: 3px;
}
.entry-content del, .entry-content s { opacity: 0.55; text-decoration: line-through; }
.entry-content sub, .entry-content sup { font-size: 0.72em; line-height: 0; }
.entry-content abbr[title] { text-decoration: underline dotted; cursor: help; }

.entry-content code, .entry-content kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: rgba(255,255,255,0.08);
  color: var(--c-yellow);
  padding: 2px 6px;
  border-radius: 4px;
}

/* Code and preformatted blocks overflow the column without this */
.entry-content pre,
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted,
.entry-content .wp-block-verse {
  background: var(--c-black);
  border-radius: var(--r-md);
  padding: 22px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0 0 36px;
  white-space: pre;
}
.entry-content pre code { background: none; padding: 0; color: inherit; }

/* Separator */
.entry-content hr,
.entry-content .wp-block-separator {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 44px 0;
  height: 0;
}
.entry-content .wp-block-separator.is-style-dots {
  border: 0;
  text-align: center;
  line-height: 1;
  color: var(--c-yellow);
}
.entry-content .wp-block-separator.is-style-dots::before {
  content: "···";
  font-size: 24px;
  letter-spacing: 0.5em;
}

/* Tables — the single most common cause of a broken-looking post */
.entry-content .wp-block-table { margin: 0 0 36px; overflow-x: auto; }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.entry-content th {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-yellow);
  text-align: left;
  padding: 12px 14px;
  border-bottom: 2px solid var(--c-yellow);
}
.entry-content td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  color: var(--t-2);
  line-height: 1.5;
}
.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: rgba(255,255,255,0.04);
}

/* Buttons — default Gutenberg blue is completely off-brand */
.entry-content .wp-block-buttons { margin: 0 0 36px; gap: 12px; }
.entry-content .wp-block-button__link {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 16px 32px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast);
}
.entry-content .wp-block-button__link:hover { background: var(--c-white); color: var(--c-ink); }
.entry-content .is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid var(--border-ghost);
}
.entry-content .is-style-outline .wp-block-button__link:hover {
  border-color: var(--c-yellow);
  color: var(--c-yellow);
  background: transparent;
}

/* Image alignment */
.entry-content .alignleft  { float: left;  margin: 6px 28px 22px 0; max-width: 45%; }
.entry-content .alignright { float: right; margin: 6px 0 22px 28px; max-width: 45%; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content::after { content: ""; display: table; clear: both; }

/* Galleries, covers, media-text, columns, groups */
.entry-content .wp-block-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 0 0 36px;
}
.entry-content .wp-block-gallery figure { margin: 0; border-radius: var(--r-md); overflow: hidden; }

.entry-content .wp-block-cover {
  min-height: 340px;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0 0 36px;
  color: var(--c-white);
}

.entry-content .wp-block-media-text {
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 0 0 36px;
}

.entry-content .wp-block-columns { gap: 28px; margin: 0 0 36px; }
.entry-content .wp-block-group.has-background {
  border-radius: var(--r-lg);
  padding: 28px;
}

/* Embeds — YouTube and friends overflow the column without a ratio box */
.entry-content .wp-block-embed { margin: 0 0 36px; }
.entry-content .wp-block-embed__wrapper {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.entry-content .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper { padding-top: 56.25%; }
.entry-content .wp-block-embed.wp-has-aspect-ratio iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.entry-content .wp-block-video video,
.entry-content .wp-block-audio audio {
  width: 100%;
  border-radius: var(--r-lg);
}
.entry-content .wp-block-video,
.entry-content .wp-block-audio { margin: 0 0 36px; }

/* Details / accordion */
.entry-content .wp-block-details {
  border-top: 1px solid var(--hairline);
  padding: 18px 0;
  margin: 0 0 12px;
}
.entry-content .wp-block-details summary {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--c-yellow);
  cursor: pointer;
  list-style: none;
}
.entry-content .wp-block-details summary::-webkit-details-marker { display: none; }
.entry-content .wp-block-details summary::after { content: " +"; }
.entry-content .wp-block-details[open] summary::after { content: " –"; }

/* Footnotes */
.entry-content .wp-block-footnotes { font-size: 15px; color: var(--t-3); }
.entry-content .wp-element-footnote-anchor { color: var(--c-yellow); }

/* Definition lists */
.entry-content dt { color: var(--c-yellow); font-weight: 700; }
.entry-content dd { margin: 0 0 14px; }

/* Drop cap */
.entry-content .has-drop-cap:not(:focus)::first-letter {
  font-family: var(--f-display);
  font-weight: 900;
  color: var(--c-yellow);
  float: left;
  font-size: 3.4em;
  line-height: 0.72;
  margin: 6px 12px 0 0;
}

/* Wide and full alignment, relative to the 756px article column */
.entry-content .alignwide {
  width: var(--w-content);
  max-width: 100vw;
  margin-left: calc((var(--w-measure) - var(--w-content)) / 2);
}
.entry-content .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
}

@media (max-width: 1024px) {
  .entry-content .alignwide { width: 100%; margin-left: 0; }
}

@media (max-width: 600px) {
  .entry-content .wp-block-columns { flex-wrap: wrap; }
  .entry-content .alignleft,
  .entry-content .alignright { float: none; max-width: 100%; margin: 0 0 22px; }
}

/* ==========================================================================
   COMPLIANZ GENERATED DOCUMENTS (Cookie Policy)
   ==========================================================================
   Complianz styles its documents for a light page: grey category panels and
   near-white table cells. Ours renders inside .section--dark, where body text
   is white, so its panels arrived as white text on #efefef -- measured at
   1.15:1 against a 4.5:1 minimum, which is what made the dropdowns unreadable.

   The panels are re-tinted rather than the text darkened, so the page reads
   like the Legals page beside it instead of a grey plugin block dropped onto a
   dark background. The structural banding is kept, just inverted.

   Scoped to `.entry-content .cmplz-document` deliberately. Complianz ALSO puts
   `cmplz-document` on <body> as a state class, so an unscoped
   `.cmplz-document .name` would have restyled the nav CTA, footer pills and
   contact form as well.

   !important is here because Complianz ships these colours at a specificity we
   would otherwise have to out-nest; this is a narrower, more legible override
   than mirroring its selector chains.
   ========================================================================== */

.entry-content .cmplz-document .cmplz-category,
.entry-content .cmplz-document .cmplz-dropdown,
.entry-content .cmplz-document .cmplz-service-desc,
.entry-content .cmplz-document .cookies-per-purpose,
.entry-content .cmplz-document .purpose,
.entry-content .cmplz-document .name,
.entry-content .cmplz-document .function,
.entry-content .cmplz-document .retention {
	background: rgba(255, 255, 255, 0.05) !important;
	border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Header rows sit a shade brighter so the table still reads as a table. */
.entry-content .cmplz-document .cmplz-category-header,
.entry-content .cmplz-document .cmplz-service-header,
.entry-content .cmplz-document .purpose-header,
.entry-content .cmplz-document .name-header,
.entry-content .cmplz-document .function-header,
.entry-content .cmplz-document .retention-header {
	background: rgba(255, 255, 255, 0.10) !important;
	border-color: rgba(255, 255, 255, 0.14) !important;
}

/* Text back to the band's own colour, including anything Complianz set dark. */
.entry-content .cmplz-document,
.entry-content .cmplz-document p,
.entry-content .cmplz-document li,
.entry-content .cmplz-document h1,
.entry-content .cmplz-document h2,
.entry-content .cmplz-document h3,
.entry-content .cmplz-document h4,
.entry-content .cmplz-document h5,
.entry-content .cmplz-document summary,
.entry-content .cmplz-document details,
.entry-content .cmplz-document th,
.entry-content .cmplz-document td,
.entry-content .cmplz-document .cmplz-always-active {
	color: var(--c-white) !important;
}

/* Links keep the site's accent rather than Complianz's blue. */
.entry-content .cmplz-document a,
.entry-content .cmplz-document a:visited {
	color: var(--c-yellow) !important;
}

/* The disclosure arrow is drawn from currentColor in some builds. */
.entry-content .cmplz-document summary::marker,
.entry-content .cmplz-document summary::-webkit-details-marker {
	color: var(--c-yellow);
}
