/*
Theme Name:   Markus Abraham
Theme URI:    https://markusabraham.com
Description:  Child theme of Hello Elementor for markusabraham.com. One stylesheet holds the fonts, design tokens, fluid type and spacing scales, typography and components.
Author:       Markus Abraham
Template:     hello-elementor
Version:      1.4.0
Text Domain:  markusabraham
*/

/* ==========================================================================
   CONTENTS
   0. Reset            — the little Hello's reset did, so Hello CSS can be off
   1. Fonts            — self-hosted, loaded from this theme's /fonts folder
   2. Tokens           — colour scheme, fonts, fluid type, fluid spacing, layout
   3. Base             — page, headings, links
   4. Typography       — reusable classes for widgets, HTML and the post editor
   5. Article prose    — body of posts and episodes (drop cap, pull quote …)
   6–13. Components    — images, forms, Mental Note, end-mark, podcast,
                         Pro widgets, accessibility, print
   14. Sticky header    — header template "MA — Header (sticky)" + Pro menu
   15. Archives        — post lists, page numbers, search box, 404

   Fluid values interpolate between a 390px phone and a 1280px desktop and
   stop growing beyond that. Change a token once; the whole site follows.
   ========================================================================== */


/* 0. Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: light; }
body { margin: 0; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
figure, blockquote { margin: 0; }
:where(h1, h2, h3, h4, h5, h6, p) { margin: 0; }
:where(ul, ol)[class] { margin: 0; padding: 0; }


/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/source-serif-4-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/public-sans-latin-wght-italic.woff2") format("woff2");
}


/* 2. Tokens --------------------------------------------------------------- */

:root {
  /* Colour scheme — one accent, warm newsprint neutrals */
  --ma-paper:        #F4F1EA;   /* page background */
  --ma-paper-2:      #EAE5DB;   /* shaded boxes: sign-up band, Mental Note */
  --ma-ink:          #1A1A1A;   /* headlines, heavy rules */
  --ma-text:         #333333;   /* body text */
  --ma-muted:        #5E5A54;   /* meta, captions, secondary text */
  --ma-rule:         #D6D0C4;   /* hairline rules (decorative only) */
  --ma-accent:       #8A1C1C;   /* labels, links, buttons */
  --ma-accent-dark:  #6E1515;   /* accent hover */
  --ma-brand:        #E3262B;   /* logo red — logo and end-mark only */
  --ma-field-border: #8F897E;   /* form field borders */
  --ma-white:        #FFFFFF;

  /* Font families */
  --ma-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ma-sans:  "Public Sans", "Helvetica Neue", Arial, sans-serif;

  /* Fluid type scale (phone → desktop) */
  --ma-fs-display:    clamp(2.5rem, 1.8427rem + 2.6966vw, 4rem);         /* 40 → 64  page titles */
  --ma-fs-h1:         clamp(2.375rem, 1.8272rem + 2.2472vw, 3.625rem);   /* 38 → 58  article & lead headlines */
  --ma-fs-h2:         clamp(1.875rem, 1.4916rem + 1.5730vw, 2.75rem);    /* 30 → 44  big section headlines */
  --ma-fs-numeral:    clamp(1.625rem, 1.3511rem + 1.1236vw, 2.25rem);    /* 26 → 36  step numbers I. II. 1 2 3 */
  --ma-fs-h3:         clamp(1.625rem, 1.4059rem + 0.8989vw, 2.125rem);   /* 26 → 34  secondary story headlines */
  --ma-fs-quote:      clamp(1.5rem, 1.2809rem + 0.8989vw, 2rem);         /* 24 → 32  Mental Note pull-quote */
  --ma-fs-section:    clamp(1.5rem, 1.3357rem + 0.6742vw, 1.875rem);     /* 24 → 30  section heads */
  --ma-fs-t4:         clamp(1.3125rem, 1.1756rem + 0.5618vw, 1.625rem);  /* 21 → 26  column headlines, masthead */
  --ma-fs-h4:         clamp(1.25rem, 1.1404rem + 0.4494vw, 1.5rem);      /* 20 → 24  subheads in articles */
  --ma-fs-standfirst: clamp(1.1875rem, 1.0779rem + 0.4494vw, 1.4375rem); /* 19 → 23  summaries under headlines */
  --ma-fs-t3:         clamp(1.1875rem, 1.0779rem + 0.4494vw, 1.4375rem); /* 19 → 23  list headlines, names */
  --ma-fs-article:    clamp(1.125rem, 1.0702rem + 0.2247vw, 1.25rem);    /* 18 → 20  article body */
  --ma-fs-t2:         clamp(1.125rem, 1.0702rem + 0.2247vw, 1.25rem);    /* 18 → 20  headline lists */
  --ma-fs-t1:         clamp(1.0625rem, 1.0351rem + 0.1124vw, 1.125rem);  /* 17 → 18  small headlines */
  --ma-fs-list:       var(--ma-fs-t2);
  /* Small text stays fixed on purpose: it must stay readable on phones */
  --ma-fs-body:   1.0625rem;  /* 17  interface body text */
  --ma-fs-text:   1rem;       /* 16  secondary body text */
  --ma-fs-small:  0.9375rem;  /* 15 */
  --ma-fs-meta:   0.875rem;   /* 14  bylines, captions */
  --ma-fs-kicker: 0.75rem;    /* 12  uppercase labels */

  /* Line heights */
  --ma-lh-tight:   1.05;
  --ma-lh-head:    1.15;
  --ma-lh-snug:    1.35;
  --ma-lh-body:    1.6;
  --ma-lh-article: 1.7;

  /* Fluid spacing scale (phone → desktop) */
  --ma-space-4xs: 0.125rem;                                   /*  2 */
  --ma-space-3xs: 0.25rem;                                    /*  4 */
  --ma-space-2xs: 0.375rem;                                   /*  6 */
  --ma-space-xs:  0.5rem;                                     /*  8 */
  --ma-space-s:   clamp(0.625rem, 0.5702rem + 0.2247vw, 0.75rem);  /* 10 → 12 */
  --ma-space-m:   clamp(0.875rem, 0.7654rem + 0.4494vw, 1.125rem); /* 14 → 18 */
  --ma-space-l:   clamp(1rem, 0.7809rem + 0.8989vw, 1.5rem);       /* 16 → 24 */
  --ma-space-xl:  clamp(1.25rem, 0.9213rem + 1.3483vw, 2rem);      /* 20 → 32 */
  --ma-space-2xl: clamp(1.5rem, 1.1713rem + 1.3483vw, 2.25rem);    /* 24 → 36 */
  --ma-space-3xl: clamp(1.75rem, 1.2022rem + 2.2472vw, 3rem);      /* 28 → 48 */
  --ma-space-4xl: clamp(2rem, 1.3427rem + 2.6966vw, 3.5rem);       /* 32 → 56 */

  /* Layout */
  --ma-page-width:  1200px;                                    /* outer width incl. gutters */
  --ma-gutter:      clamp(1rem, 0.7809rem + 0.8989vw, 1.5rem); /* 16 → 24 side margins */
  --ma-measure:     680px;                                     /* article line length */
  --ma-sidebar-top: var(--ma-space-l);                         /* sticky sidebar offset */
  --ma-logo-width:  clamp(7.5rem, 6.4045rem + 4.4944vw, 9.375rem); /* 120 → 150 */
  --ma-avatar:      clamp(6rem, 5.1236rem + 3.5955vw, 8rem);        /*  96 → 128 round portrait */
}


/* 3. Base ----------------------------------------------------------------- */

body {
  background-color: var(--ma-paper);
  color: var(--ma-text);
  font-family: var(--ma-sans);
  font-size: var(--ma-fs-body);
  line-height: var(--ma-lh-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ma-serif);
  color: var(--ma-ink);
  font-weight: 700;
  line-height: var(--ma-lh-head);
  text-wrap: balance;
}

p { text-wrap: pretty; }

a { color: var(--ma-ink); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus-visible { color: var(--ma-accent); }

::selection { background: var(--ma-paper-2); color: var(--ma-ink); }


/* 4. Typography classes ----------------------------------------------------
   For classic widgets, the HTML widget and the post editor. The atomic
   Elementor templates carry the same values as local styles.            */

.ma-kicker {
  font-family: var(--ma-sans);
  font-size: var(--ma-fs-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ma-accent);
}
.ma-kicker--ink { color: var(--ma-ink); }

.ma-display    { font-family: var(--ma-serif); font-weight: 700; font-size: var(--ma-fs-display); line-height: var(--ma-lh-tight); letter-spacing: -0.015em; color: var(--ma-ink); }
.ma-h1         { font-family: var(--ma-serif); font-weight: 700; font-size: var(--ma-fs-h1);      line-height: var(--ma-lh-tight); letter-spacing: -0.015em; color: var(--ma-ink); }
.ma-h2         { font-family: var(--ma-serif); font-weight: 700; font-size: var(--ma-fs-h2);      line-height: 1.1;  color: var(--ma-ink); }
.ma-h3         { font-family: var(--ma-serif); font-weight: 700; font-size: var(--ma-fs-h3);      line-height: var(--ma-lh-head); color: var(--ma-ink); }
.ma-section    { font-family: var(--ma-serif); font-weight: 700; font-size: var(--ma-fs-section); line-height: 1.2;  color: var(--ma-ink); }
.ma-h4         { font-family: var(--ma-serif); font-weight: 600; font-size: var(--ma-fs-h4);      line-height: 1.2;  color: var(--ma-ink); }
.ma-list-title { font-family: var(--ma-serif); font-weight: 600; font-size: var(--ma-fs-list);    line-height: 1.25; color: var(--ma-ink); }

.ma-standfirst { font-family: var(--ma-serif); font-size: var(--ma-fs-standfirst); line-height: 1.5; color: var(--ma-text); }
.ma-quote      { font-family: var(--ma-serif); font-style: italic; font-size: var(--ma-fs-quote); line-height: var(--ma-lh-snug); color: var(--ma-ink); }
.ma-motto      { font-family: var(--ma-serif); font-style: italic; color: var(--ma-muted); }
.ma-masthead   { font-family: var(--ma-serif); font-weight: 700; font-size: var(--ma-fs-t4); color: var(--ma-ink); }

.ma-body   { font-size: var(--ma-fs-body);  line-height: var(--ma-lh-body); color: var(--ma-text); }
.ma-small  { font-size: var(--ma-fs-small); line-height: 1.55; color: var(--ma-muted); }
.ma-meta   { font-size: var(--ma-fs-meta);  line-height: 1.5;  color: var(--ma-muted); }

.ma-link   { font-size: var(--ma-fs-small); font-weight: 600; color: var(--ma-accent); }
.ma-link:hover { color: var(--ma-accent-dark); }


/* 5. Article prose ---------------------------------------------------------
   Applied automatically to the body of single posts (the Post Content
   widget). Add the class "ma-prose" to any other long-form text block.    */

.ma-prose,
.elementor-widget-theme-post-content,
.single-post .entry-content {
  font-family: var(--ma-serif);
  font-size: var(--ma-fs-article);
  line-height: var(--ma-lh-article);
  color: #262626;
  max-width: var(--ma-measure);
  hanging-punctuation: first;
}

:is(.ma-prose, .elementor-widget-theme-post-content) > * + * { margin-top: 1.1em; }
:is(.ma-prose, .elementor-widget-theme-post-content) p { margin: 0 0 1.1em; }

/* Drop cap on the first paragraph */
:is(.ma-prose, .elementor-widget-theme-post-content) > p:first-of-type::first-letter,
:is(.ma-prose, .elementor-widget-theme-post-content) .elementor-widget-container > p:first-of-type::first-letter {
  float: left;
  font-weight: 700;
  font-size: 3.7em;
  line-height: 0.82;
  padding: 0.12em 0.12em 0 0;
  color: var(--ma-ink);
}
/* Opt out per post: give the first paragraph the class "no-dropcap" */
:is(.ma-prose, .elementor-widget-theme-post-content) p.no-dropcap::first-letter { float: none; font-size: inherit; padding: 0; line-height: inherit; font-weight: inherit; }

:is(.ma-prose, .elementor-widget-theme-post-content) h2 { font-size: var(--ma-fs-h4);  margin: 1.6em 0 0.5em; line-height: 1.2; }
:is(.ma-prose, .elementor-widget-theme-post-content) h3 { font-size: var(--ma-fs-list); margin: 1.4em 0 0.4em; font-weight: 600; }

:is(.ma-prose, .elementor-widget-theme-post-content) a {
  color: var(--ma-ink);
  text-decoration: underline;
  text-decoration-color: var(--ma-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
:is(.ma-prose, .elementor-widget-theme-post-content) a:hover { color: var(--ma-accent); }

/* Pull quote */
:is(.ma-prose, .elementor-widget-theme-post-content) blockquote,
:is(.ma-prose, .elementor-widget-theme-post-content) .wp-block-pullquote {
  margin: 1.4em 0;
  padding: 0.9em 0;
  border: 0;
  border-top: 2px solid var(--ma-ink);
  border-bottom: 1px solid var(--ma-rule);
  font-style: italic;
  font-size: var(--ma-fs-quote);
  line-height: var(--ma-lh-snug);
  color: var(--ma-ink);
  text-align: left;
}
:is(.ma-prose, .elementor-widget-theme-post-content) blockquote p { margin: 0; }
:is(.ma-prose, .elementor-widget-theme-post-content) blockquote cite {
  display: block; margin-top: 0.6em;
  font-family: var(--ma-sans); font-style: normal; font-size: var(--ma-fs-meta); color: var(--ma-muted);
}

:is(.ma-prose, .elementor-widget-theme-post-content) ul,
:is(.ma-prose, .elementor-widget-theme-post-content) ol { padding-left: 1.3em; }
:is(.ma-prose, .elementor-widget-theme-post-content) li + li { margin-top: 0.35em; }
:is(.ma-prose, .elementor-widget-theme-post-content) li::marker { color: var(--ma-accent); }

:is(.ma-prose, .elementor-widget-theme-post-content) hr {
  border: 0; border-top: 1px solid var(--ma-rule); margin: 2em 0;
}

:is(.ma-prose, .elementor-widget-theme-post-content) figure { margin: 1.6em 0; }
:is(.ma-prose, .elementor-widget-theme-post-content) figcaption,
:is(.ma-prose, .elementor-widget-theme-post-content) .wp-element-caption {
  font-family: var(--ma-sans); font-size: 0.8125rem; color: var(--ma-muted); margin-top: 0.5em;
}

/* The "Mental Note" block for posts written in the block editor:
   add a Group or Paragraph block and give it the class "mental-note". */
:is(.ma-prose, .elementor-widget-theme-post-content) .mental-note {
  margin: 2em 0 0;
  padding: 1.1em 1.3em;
  background: var(--ma-paper-2);
  border-top: 3px solid var(--ma-accent);
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.5;
  color: var(--ma-ink);
}
:is(.ma-prose, .elementor-widget-theme-post-content) .mental-note::before {
  content: "Mental Note";
  display: block;
  margin-bottom: 0.5em;
  font-family: var(--ma-sans); font-style: normal; font-size: var(--ma-fs-kicker);
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ma-accent);
}


/* 6. Images: newspaper desaturation ---------------------------------------
   Atomic Image elements in the templates already carry saturate(70%).
   These rules cover images from the post editor and featured images.     */

.ma-prose img,
.elementor-widget-theme-post-content img,
.elementor-widget-theme-post-featured-image img,
.wp-post-image {
  filter: saturate(70%);
}
.ma-no-desat, .ma-no-desat img { filter: none !important; }


/* 7. Forms -----------------------------------------------------------------
   Works for Elementor Pro Forms, MailPoet, WPForms, Fluent Forms and plain
   HTML forms. Put the form's shortcode inside the "Sign-up" containers.  */

:is(.elementor-form, .mailpoet_form, .wpforms-form, .fluentform, .ma-form)
  :is(input[type="email"], input[type="text"], input[type="tel"], select, textarea) {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--ma-field-border);
  border-radius: 0;
  background: var(--ma-white);
  color: var(--ma-ink);
  font-family: var(--ma-sans);
  font-size: 1rem;
  box-shadow: none;
}
:is(.elementor-form, .mailpoet_form, .wpforms-form, .fluentform, .ma-form) textarea {
  padding: 12px 14px; min-height: 140px; resize: vertical;
}
:is(.elementor-form, .mailpoet_form, .wpforms-form, .fluentform, .ma-form)
  :is(input, select, textarea):focus {
  outline: 2px solid var(--ma-accent);
  outline-offset: 1px;
  border-color: var(--ma-accent);
}
:is(.elementor-form, .mailpoet_form, .wpforms-form, .fluentform, .ma-form) label {
  font-family: var(--ma-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ma-text);
}
:is(.elementor-form, .mailpoet_form, .wpforms-form, .fluentform, .ma-form)
  :is(button, input[type="submit"], .elementor-button) {
  min-height: 48px;
  padding: 0 26px;
  border: 0;
  border-radius: 0;
  background: var(--ma-accent);
  color: var(--ma-white);
  font-family: var(--ma-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease;
}
:is(.elementor-form, .mailpoet_form, .wpforms-form, .fluentform, .ma-form)
  :is(button, input[type="submit"], .elementor-button):hover {
  background: var(--ma-accent-dark);
}
/* Small print under forms */
:is(.elementor-form, .mailpoet_form, .wpforms-form, .fluentform, .ma-form)
  :is(.elementor-field-type-acceptance, .mailpoet_paragraph small, .wpforms-field-description) {
  font-size: 0.75rem; color: var(--ma-muted);
}


/* 8. Mental Note box (HTML widget or block editor) ------------------------ */

.ma-mental-note {
  background: var(--ma-paper-2);
  border-top: 3px solid var(--ma-accent);
  padding: var(--ma-space-l) var(--ma-space-xl);
}
.ma-mental-note .ma-kicker { display: block; margin-bottom: var(--ma-space-xs); }
.ma-mental-note p {
  margin: 0;
  font-family: var(--ma-serif);
  font-style: italic;
  font-size: var(--ma-fs-t3);
  line-height: 1.5;
  color: var(--ma-ink);
}


/* 9. End-mark (the small red "M" after an article) ------------------------ */

.ma-endmark {
  display: flex;
  justify-content: flex-end;
}
.ma-endmark img, .ma-endmark svg { width: 28px; height: 28px; filter: none; }


/* 10. Podcast: audio player and transcript --------------------------------- */

.ma-audio {
  display: flex;
  flex-direction: column;
  gap: var(--ma-space-s);
  padding: var(--ma-space-m) var(--ma-space-l);
  background: var(--ma-paper-2);
  border-top: 2px solid var(--ma-ink);
  border-bottom: 1px solid var(--ma-rule);
}
.ma-audio__title {
  font-family: var(--ma-serif); font-weight: 600; font-size: 1.0625rem; color: var(--ma-ink);
}
.ma-audio audio { width: 100%; height: 44px; accent-color: var(--ma-accent); }

.ma-transcript {
  border-top: 1px solid var(--ma-ink);
  border-bottom: 1px solid var(--ma-rule);
  padding: var(--ma-space-m) 0;
}
.ma-transcript summary {
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--ma-space-s);
  font-family: var(--ma-serif); font-weight: 700; font-size: var(--ma-fs-t3); color: var(--ma-ink);
}
.ma-transcript summary::-webkit-details-marker { display: none; }
.ma-transcript summary::after {
  content: "Show"; font-family: var(--ma-sans); font-size: 0.875rem; font-weight: 600; color: var(--ma-accent);
}
.ma-transcript[open] summary::after { content: "Hide"; }
.ma-transcript__body { margin-top: var(--ma-space-m); font-size: 1rem; line-height: 1.7; max-width: var(--ma-measure); }

.ma-chapters { display: flex; flex-direction: column; }
.ma-chapters a {
  display: flex; gap: var(--ma-space-m); padding: var(--ma-space-s) 0; border-bottom: 1px solid var(--ma-rule); font-size: 0.9375rem;
}
.ma-chapters a:last-child { border-bottom: 0; }
.ma-chapters time { width: 44px; flex: none; font-size: 0.875rem; font-weight: 600; color: var(--ma-accent); }


/* 11. Elementor Pro widgets used in the single templates ------------------ */

/* "More from the Journal" (Posts widget, CSS class ma-related) */
.ma-related .elementor-posts-container { display: flex; flex-direction: column; gap: 0; }
.ma-related .elementor-post { padding: var(--ma-space-s) 0; border-bottom: 1px solid var(--ma-rule); }
.ma-related .elementor-post:last-child { border-bottom: 0; }
.ma-related .elementor-post__title,
.ma-related .elementor-post__title a {
  font-family: var(--ma-serif); font-weight: 600; font-size: var(--ma-fs-t1); line-height: 1.25; color: var(--ma-ink);
}
.ma-related .elementor-post__title a:hover { color: var(--ma-accent); }

/* Previous / next (Post Navigation widget, CSS class ma-prevnext) */
.ma-prevnext .elementor-post-navigation {
  border-top: 1px solid var(--ma-ink); border-bottom: 1px solid var(--ma-rule); padding: 0;
}
.ma-prevnext .elementor-post-navigation__link { padding: var(--ma-space-m) 0; }
.ma-prevnext .post-navigation__prev--label,
.ma-prevnext .post-navigation__next--label {
  font-family: var(--ma-sans); font-size: var(--ma-fs-kicker); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ma-muted);
}
.ma-prevnext .post-navigation__prev--title,
.ma-prevnext .post-navigation__next--title {
  font-family: var(--ma-serif); font-weight: 600; font-size: var(--ma-fs-t2); color: var(--ma-ink);
}
.ma-prevnext .elementor-post-navigation__separator { background: var(--ma-rule); }

/* Featured image on single posts (only shows when a post has one) */
.ma-featured img { width: 100%; height: auto; }


/* 12. Accessibility ---------------------------------------------------------- */

:focus-visible { outline: 2px solid var(--ma-accent); outline-offset: 2px; }

/* WordPress standard: text for screen readers only (e.g. Hello's "Skip to content"),
   visible again when it receives keyboard focus. */
.screen-reader-text {
  border: 0;
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  top: 8px;
  left: 8px;
  z-index: 100000;
  padding: 10px 16px;
  background: var(--ma-ink);
  color: var(--ma-white);
  font-weight: 600;
  text-decoration: none;
}

.ma-skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  padding: 10px 16px; background: var(--ma-ink); color: var(--ma-white); font-weight: 600;
}
.ma-skip-link:focus { left: 16px; color: var(--ma-white); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* 13. Print: articles print like a newspaper cutting ------------------------- */

@media print {
  body { background: #fff; color: #000; }
  header, footer, nav, aside, form, .ma-audio, .ma-no-print { display: none !important; }
  .elementor-widget-theme-post-content, .ma-prose { max-width: none; font-size: 11.5pt; }
  a { color: #000; text-decoration: none; }
}


/* 14. Sticky header and menu ------------------------------------------------
   Used by the header template "MA — Header (sticky)". The header becomes sticky
   only when it contains #ma-sticky-header, so the static header is unaffected. */

.elementor-location-header:has(#ma-sticky-header) {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 100;
}
@media (max-width: 600px) {           /* WordPress admin bar scrolls away here */
  .admin-bar .elementor-location-header:has(#ma-sticky-header) { top: 0; }
}
html:has(#ma-sticky-header) { scroll-padding-top: 6rem; }   /* anchors land below the header */

/* Elementor Pro Nav Menu (CSS class ma-nav) */
.ma-nav .elementor-nav-menu--main > .elementor-nav-menu { column-gap: var(--ma-space-xl); row-gap: var(--ma-space-xs); }
.ma-nav .elementor-nav-menu--main .elementor-item {
  padding: 0;
  font-family: var(--ma-sans);
  font-size: var(--ma-fs-small);
  font-weight: 500;
  line-height: 1.4;
  color: var(--ma-ink);
  background: none;
}
.ma-nav .elementor-nav-menu--main .elementor-item:hover,
.ma-nav .elementor-nav-menu--main .elementor-item.elementor-item-active { color: var(--ma-accent); }
.ma-nav .elementor-nav-menu--main .elementor-item.elementor-item-active {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.35em;
}

/* Menu button (tablet and phone) */
.ma-nav .elementor-menu-toggle {
  background: none;
  border: 1px solid var(--ma-ink);
  border-radius: 0;
  color: var(--ma-ink);
  font-size: 1.25rem;
  padding: 0.35rem;
}
.ma-nav .elementor-menu-toggle svg { fill: currentColor; }
.ma-nav .elementor-menu-toggle:hover { color: var(--ma-accent); border-color: var(--ma-accent); }

/* Opened menu: a ruled list in the headline serif */
.ma-nav .elementor-nav-menu--dropdown {
  background: var(--ma-paper);
  border-top: 1px solid var(--ma-ink);
  border-bottom: 3px double var(--ma-ink);
  box-shadow: none;
}
.ma-nav .elementor-nav-menu--dropdown .elementor-item {
  padding: var(--ma-space-m) var(--ma-gutter);
  border-bottom: 1px solid var(--ma-rule);
  font-family: var(--ma-serif);
  font-size: var(--ma-fs-t2);
  font-weight: 600;
  color: var(--ma-ink);
  background: none;
}
.ma-nav .elementor-nav-menu--dropdown li:last-child .elementor-item { border-bottom: 0; }
.ma-nav .elementor-nav-menu--dropdown .elementor-item:hover,
.ma-nav .elementor-nav-menu--dropdown .elementor-item.elementor-item-active { color: var(--ma-accent); background: none; }


/* 15. Archives, search results, 404 -----------------------------------------
   Pro "Archive Posts" widget (CSS class ma-archive), Pro "Search Form"
   (ma-search). One ruled list, newest first, like a newspaper index. */

.ma-archive .elementor-posts-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ma-archive .elementor-post {
  padding: var(--ma-space-l) 0;
  border-bottom: 1px solid var(--ma-rule);
}
.ma-archive .elementor-post:first-child { padding-top: 0; }
.ma-archive .elementor-post__text { display: flex; flex-direction: column; gap: var(--ma-space-xs); }
.ma-archive .elementor-post__meta-data {           /* date above the headline */
  order: -1;
  margin: 0;
  font-family: var(--ma-sans);
  font-size: var(--ma-fs-kicker);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ma-accent);
}
.ma-archive .elementor-post__title,
.ma-archive .elementor-post__title a {
  margin: 0;
  font-family: var(--ma-serif);
  font-size: var(--ma-fs-h3);
  font-weight: 700;
  line-height: var(--ma-lh-head);
  color: var(--ma-ink);
}
.ma-archive .elementor-post__title a:hover { color: var(--ma-accent); }
.ma-archive .elementor-post__excerpt p {
  margin: 0;
  max-width: var(--ma-measure);
  font-family: var(--ma-sans);
  font-size: var(--ma-fs-text);
  line-height: var(--ma-lh-body);
  color: var(--ma-text);
}
.ma-archive .elementor-posts-nothing-found {
  font-family: var(--ma-serif);
  font-style: italic;
  font-size: var(--ma-fs-standfirst);
  color: var(--ma-muted);
}

/* Page numbers */
.ma-archive .elementor-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ma-space-xs) var(--ma-space-m);
  margin-top: var(--ma-space-xl);
  padding-top: var(--ma-space-m);
  border-top: 1px solid var(--ma-ink);
  font-family: var(--ma-sans);
  font-size: var(--ma-fs-small);
  text-align: left;
}
.ma-archive .elementor-pagination .page-numbers { color: var(--ma-ink); margin: 0; }
.ma-archive .elementor-pagination a.page-numbers:hover { color: var(--ma-accent); }
.ma-archive .elementor-pagination .page-numbers.current { color: var(--ma-accent); font-weight: 600; }
.ma-archive .elementor-pagination .prev,
.ma-archive .elementor-pagination .next { font-weight: 600; color: var(--ma-accent); }

/* Search box */
.ma-search .elementor-search-form__container {
  display: flex;
  gap: var(--ma-space-xs);
  min-height: 48px;
  border: 0;
  background: none;
  box-shadow: none;
}
.ma-search .elementor-search-form__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--ma-field-border);
  border-radius: 0;
  background: var(--ma-white);
  color: var(--ma-ink);
  font-family: var(--ma-sans);
  font-size: 1rem;
}
.ma-search .elementor-search-form__input:focus { outline: 2px solid var(--ma-accent); outline-offset: 1px; }
.ma-search .elementor-search-form__submit {
  flex: none;
  min-width: 0;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: var(--ma-accent);
  color: var(--ma-white);
  font-family: var(--ma-sans);
  font-size: var(--ma-fs-small);
  font-weight: 600;
  cursor: pointer;
}
.ma-search .elementor-search-form__submit:hover { background: var(--ma-accent-dark); }

