@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..500&family=Public+Sans:ital,wght@0,400..800;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ============================================================
   Nautilia Yachting — Blog article redesign
   Scope: single-article view (com_content/article) inside the
   .naut-article wrapper added by the template override.
   Safe to load site-wide: every rule is scoped to .naut-article
   or .naut-hero so it never leaks into the rest of the template.
   ============================================================ */

.naut-article{
  /* Brand */
  --navy:#15264d;
  --royal:#27408b;
  --accent:#d92b2e;     /* CTAs & links */
  --sea:#1f7a86;

  /* Editorial neutrals (warm) */
  --paper:#f6f2ea;
  --surface:#ffffff;
  --surface-2:#f4f0e8;
  --ink:#15213f;
  --body:#3b424f;
  --muted:#7c7f88;
  --line:rgba(21,33,63,.12);
  --line-soft:rgba(21,33,63,.07);

  /* Type */
  --font-head:'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body:'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono:'IBM Plex Mono', ui-monospace, monospace;

  --measure:42rem;
  --r-sm:8px; --r-md:14px; --r-lg:20px;
  --shadow-sm:0 1px 2px rgba(21,33,63,.05), 0 2px 8px rgba(21,33,63,.05);
  --shadow-md:0 8px 30px rgba(21,33,63,.10);
  --ease:cubic-bezier(.4,.7,.3,1);

  font-family:var(--font-body);
  color:var(--body);
  -webkit-font-smoothing:antialiased;
  /* break out of any narrow template container */
  width:100%;
}
.naut-article *{box-sizing:border-box}
html{scroll-behavior:smooth}

/* reading-progress bar (element injected by JS) */
.naut-progress{position:fixed;top:0;left:0;height:3px;width:0;z-index:1200;
  background:var(--accent);transition:width .08s linear}

/* ============================================================
   HERO
   ============================================================ */
.naut-hero{position:relative;min-height:440px;height:min(70vh,600px);overflow:hidden;
  background:#0c1733 var(--hero,none) center/cover no-repeat;
  display:flex;flex-direction:column;justify-content:flex-end;
  /* full-bleed even if template wraps the component */
  margin-bottom:0;font-family:'Public Sans',system-ui,sans-serif}
.naut-hero::after{content:"";position:absolute;inset:0;
  background:
    linear-gradient(180deg, rgba(10,20,45,.40) 0%, rgba(10,20,45,0) 30%),
    linear-gradient(0deg, rgba(8,16,38,.88) 2%, rgba(8,16,38,.32) 40%, rgba(8,16,38,0) 66%);}
.naut-hero__inner{position:relative;z-index:2;max-width:1180px;margin:0 auto;width:100%;
  padding:0 28px 52px}
.naut-hero__cat{display:inline-flex;align-items:center;gap:9px;
  background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;
  padding:6px 14px;border-radius:999px;font-family:var(--font-mono);font-size:.68rem;
  letter-spacing:.18em;text-transform:uppercase;margin-bottom:18px;text-decoration:none}
.naut-hero__cat::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent)}
.naut-hero h1,
.naut-hero .naut-hero__title{font-family:var(--font-head);font-weight:430;color:#fff;
  font-size:clamp(2.1rem,4.6vw,3.5rem);line-height:1.06;letter-spacing:-.01em;
  margin:0;max-width:20ch;text-shadow:0 2px 30px rgba(0,0,0,.3);text-wrap:balance}
.naut-hero__meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin-top:24px;
  color:rgba(255,255,255,.9);font-size:.9rem}
.naut-hero__meta .who{display:flex;align-items:center;gap:11px}
.naut-hero__meta .av{width:38px;height:38px;border-radius:50%;
  background:linear-gradient(135deg,#2b7c86,#15264d);display:flex;align-items:center;
  justify-content:center;color:#fff;font-weight:700;font-size:.82rem;
  border:1.5px solid rgba(255,255,255,.5)}
.naut-hero__meta .dot{width:4px;height:4px;border-radius:50%;background:rgba(255,255,255,.5)}

/* ============================================================
   LAYOUT GRID  (TOC · body · rail)
   ============================================================ */
.naut-shell{max-width:1180px;margin:0 auto;padding:0 28px}
.naut-grid{display:grid;grid-template-columns:230px minmax(0,var(--measure)) 1fr;
  gap:56px;align-items:start;padding:56px 0 64px}
/* page sits on the template's own (white) background for a seamless join */
.naut-article{background:var(--surface)}

/* ---- TOC ---- */
/* Sticky fix: a site script (offcanvas menu / Hotjar) stamps an inline
   `overflow-y:auto` on <html>, which turns the root into its own scroll box
   and makes every `position:sticky` descendant completely inert. Forcing the
   root back to `visible` (an !important rule beats the inline non-important
   style) restores normal viewport scrolling so the TOC can pin. */
html{overflow-y:visible !important}

.naut-toc{position:sticky;top:90px;align-self:start}
.naut-toc__label{font-family:var(--font-mono);font-size:.66rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted);margin-bottom:16px;padding-bottom:12px;
  border-bottom:1px solid var(--line)}
.naut-toc ol{list-style:none;margin:0;padding:0;counter-reset:toc}
.naut-toc li{counter-increment:toc;display:block}
.naut-toc a{display:block;text-decoration:none;color:var(--muted);font-size:.85rem;
  line-height:1.3;padding:8px 0 8px 16px;margin-left:-2px;
  border-left:2px solid var(--line-soft);transition:color .2s,border-color .2s}
.naut-toc a::before{content:counter(toc,decimal-leading-zero)"  ";font-family:var(--font-mono);
  font-size:.66rem;color:var(--muted);opacity:.6}
.naut-toc a:hover{color:var(--ink)}
.naut-toc a.is-active{color:var(--ink);font-weight:600;border-color:var(--accent)}
.naut-toc a.is-active::before{color:var(--accent);opacity:1}

/* ============================================================
   ARTICLE BODY  (styles the raw editor output)
   ============================================================ */
.naut-article__body{font-size:1.06rem;line-height:1.72;color:var(--body)}
/* some templates columnise article content — force single column back */
.naut-article,
.naut-article .naut-shell,
.naut-article .naut-grid,
.naut-article article,
.naut-article__body,
.naut-article__body section,
.naut-article__body > *{
  -webkit-columns:auto !important;-moz-columns:auto !important;columns:auto !important;
  column-count:1 !important;column-width:auto !important;
}
.naut-article__body p{margin:0 0 1.3em}
.naut-article__body > p:first-of-type{font-family:var(--font-head);font-weight:380;
  font-size:1.32rem;line-height:1.55;color:var(--ink)}
.naut-article__body > p:first-of-type strong{font-weight:600;color:var(--navy)}
/* content is often wrapped in <section> blocks — keep rhythm from the headings */
.naut-article__body section{margin:0}
.naut-article__body footer{margin-top:3em;padding-top:2em;border-top:1px solid var(--line)}
.naut-article__body footer p{font-family:var(--font-head);font-weight:380;font-size:1.4rem;
  line-height:1.4;color:var(--ink);margin:0 0 .5em;max-width:42ch}
.naut-article__body footer em,
.naut-article__body footer strong{color:var(--accent);font-style:italic;font-weight:500}
.naut-article__body p:empty{display:none}

.naut-article__body h2{font-family:var(--font-head);font-weight:440;color:var(--ink);
  font-size:1.95rem;line-height:1.14;letter-spacing:-.01em;margin:1.5em 0 .35em;
  scroll-margin-top:96px;text-wrap:balance}
.naut-article__body h2 .naut-secnum{display:block;font-family:var(--font-mono);
  font-size:.72rem;letter-spacing:.2em;color:var(--accent);margin-bottom:.45em;font-weight:500}
.naut-article__body h3{font-family:var(--font-body);font-weight:700;color:var(--navy);
  font-size:1.16rem;margin:1.5em 0 .4em;letter-spacing:-.005em}
.naut-article__body h4{font-family:var(--font-head);font-weight:500;color:var(--ink);
  font-size:1.25rem;margin:1.3em 0 .35em}
.naut-article__body strong{color:var(--ink);font-weight:650}
.naut-article__body a{color:var(--accent);text-decoration:underline;
  text-underline-offset:2px;text-decoration-thickness:1px}
.naut-article__body a:hover{text-decoration-thickness:2px}
.naut-article__body hr{height:1px;background:var(--line);border:0;margin:2.6em 0}
.naut-article__body img{border-radius:var(--r-md);margin:2em 0;box-shadow:var(--shadow-sm)}
.naut-article__body figure{margin:2.2em 0}
.naut-article__body figcaption{font-family:var(--font-mono);font-size:.72rem;color:var(--muted);
  margin-top:10px;display:flex;gap:8px;align-items:center}
.naut-article__body figcaption::before{content:"";width:18px;height:1px;background:var(--accent)}
.naut-article__body blockquote{margin:2em 0;padding:.2em 0 .2em 26px;
  border-left:3px solid var(--accent);font-family:var(--font-head);font-style:italic;
  font-size:1.35rem;line-height:1.4;color:var(--ink)}
.naut-article__body table{width:100%;border-collapse:collapse;margin:2em 0;font-size:.96rem}
.naut-article__body th,.naut-article__body td{padding:12px 14px;border-bottom:1px solid var(--line);
  text-align:left}
.naut-article__body th{font-family:var(--font-mono);font-size:.7rem;letter-spacing:.12em;
  text-transform:uppercase;color:var(--muted)}

/* default lists */
.naut-article__body ul,.naut-article__body ol{margin:1.1em 0 1.4em;padding-left:1.3em}
.naut-article__body li{margin:.4em 0}
.naut-article__body ul:not([class]) li{list-style:none;position:relative;padding-left:6px}
.naut-article__body ul:not([class]) li::before{content:"";position:absolute;left:-14px;top:.62em;
  width:6px;height:6px;border-radius:50%;background:var(--sea)}

/* ---- opt-in rich blocks (editor snippets) ---- */
/* benefit checklist */
.naut-checks{list-style:none!important;margin:1.2em 0 1.5em!important;padding:0!important;
  display:grid;gap:.6em}
.naut-checks li{position:relative;padding-left:32px;margin:0}
.naut-checks li::before{content:"";position:absolute;left:0;top:.12em;width:20px;height:20px;
  border-radius:50%;background:rgba(31,122,134,.12);
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.3l2.8 2.8 6-6.2' fill='none' stroke='%231f7a86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat:no-repeat;background-position:center}

/* definition rows (e.g. the three "fingers") */
.naut-fingers{list-style:none!important;margin:1.2em 0 1.5em!important;padding:0!important;display:grid}
.naut-fingers li{display:grid;grid-template-columns:128px 1fr;gap:18px;align-items:baseline;
  padding:.85em 0;margin:0;border-top:1px solid var(--line-soft)}
.naut-fingers li:last-child{border-bottom:1px solid var(--line-soft)}
.naut-fingers .nm{font-family:var(--font-head);font-size:1.12em;color:var(--navy);font-weight:520}
.naut-fingers .ds{color:var(--muted)}

/* fact / distance callout */
.naut-fact{display:flex;align-items:center;gap:12px;margin:1.4em 0;padding:14px 18px;
  background:var(--surface-2);border:1px solid var(--line-soft);border-radius:var(--r-sm);
  font-size:.95rem}
/* icon is drawn from CSS (the editor strips inline <svg> from article content) */
.naut-fact::before{content:"";width:22px;height:22px;flex-shrink:0;background:no-repeat center/contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f7a86' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3v18M3 12h18'/%3E%3C/svg%3E")}
.naut-fact svg{display:none}

/* numbered place / anchorage cards */
.naut-anchors{display:grid;gap:18px;margin:1.6em 0 1.8em}
.naut-anchor{display:grid;grid-template-columns:160px 1fr;gap:0;align-items:stretch;
  background:var(--surface-2);border:1px solid var(--line-soft);border-radius:var(--r-md);
  overflow:hidden;box-shadow:var(--shadow-sm);transition:box-shadow .25s,transform .25s}
.naut-anchor:hover{box-shadow:var(--shadow-md);transform:translateY(-2px)}
.naut-anchor img{width:160px;height:100%;min-height:132px;object-fit:cover;margin:0!important;
  border-radius:0!important;box-shadow:none!important}
.naut-anchor .b{padding:18px 22px;display:flex;flex-direction:column;justify-content:center}
.naut-anchor .idx{font-family:var(--font-mono);font-size:.7rem;letter-spacing:.16em;
  color:var(--accent);text-transform:uppercase;margin-bottom:5px}
.naut-anchor h4{margin:0 0 .35em!important;font-size:1.28rem!important}
.naut-anchor p{margin:0;font-size:.96rem;line-height:1.55}

/* months grid */
.naut-months{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:1.4em 0 1.6em}
.naut-month{background:var(--surface-2);border:1px solid var(--line-soft);border-radius:var(--r-md);
  padding:18px;box-shadow:var(--shadow-sm)}
.naut-month .mo{font-family:var(--font-head);font-size:1.3rem;color:var(--navy);font-weight:520}
.naut-month .tag{display:inline-block;margin:8px 0 9px;font-family:var(--font-mono);font-size:.6rem;
  letter-spacing:.12em;text-transform:uppercase;padding:3px 8px;border-radius:999px;
  background:rgba(31,122,134,.1);color:var(--sea)}
.naut-month.is-peak .tag{background:rgba(217,43,46,.1);color:var(--accent)}
.naut-month p{margin:0;font-size:.9rem;line-height:1.45}

/* two-column compare */
.naut-compare{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:1.4em 0 1.6em}
.naut-cmp{background:var(--surface-2);border:1px solid var(--line-soft);border-radius:var(--r-md);
  padding:22px;box-shadow:var(--shadow-sm)}
.naut-cmp .top{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.naut-cmp .ico{width:40px;height:40px;border-radius:10px;display:flex;align-items:center;
  justify-content:center;background-color:var(--navy);background-repeat:no-repeat;
  background-position:center;background-size:24px}
/* icons drawn from CSS — by modifier class AND by position, so they survive
   the editor stripping inline <svg> even if the modifier class is missing */
.naut-cmp--cat .ico,
.naut-compare .naut-cmp:nth-of-type(1) .ico{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 16h7M14 16h7'/%3E%3Cpath d='M4 16l1.6 3h12.8L20 16'/%3E%3Cpath d='M12 3v13M12 3l5 3-5 1.6'/%3E%3C/svg%3E")}
.naut-cmp--mono .ico,
.naut-compare .naut-cmp:nth-of-type(2) .ico{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18h16l-3 3H7z'/%3E%3Cpath d='M12 17V3l6 11H6'/%3E%3C/svg%3E")}
.naut-cmp .ico svg{display:none}
.naut-cmp h4{margin:0!important;font-size:1.25rem!important}
.naut-cmp p{margin:0;font-size:.95rem;line-height:1.55}

/* inline charter CTA band */
.naut-cta{position:relative;overflow:hidden;border-radius:var(--r-lg);
  background:linear-gradient(120deg,#15264d 0%,#1d3566 60%,#1f5b6a 130%);color:#fff;
  margin:2.4em 0;display:grid;grid-template-columns:1.2fr 1fr;box-shadow:var(--shadow-md)}
.naut-cta .copy{padding:34px 32px 36px}
.naut-cta .kick{font-family:var(--font-mono);font-size:.7rem;letter-spacing:.22em;
  text-transform:uppercase;color:#8fd0d8}
.naut-cta h3{font-family:var(--font-head);font-weight:480;font-size:1.7rem;line-height:1.15;
  margin:.5em 0 .5em!important;color:#fff}
.naut-cta p{margin:0 0 22px;color:rgba(255,255,255,.82);font-size:.98rem;line-height:1.5;max-width:34ch}
.naut-cta img{width:100%;height:100%;min-height:240px;object-fit:cover;margin:0!important;
  border-radius:0!important;box-shadow:none!important}
.naut-cta .actions{display:flex;gap:12px;flex-wrap:wrap}

/* inline "browse the fleet" strip — paste-in snippet, no inline SVG needed */
.naut-browse{display:flex;align-items:center;justify-content:space-between;gap:18px 28px;
  flex-wrap:wrap;margin:2.2em 0;padding:22px 26px;background:var(--surface-2);
  border:1px solid var(--line-soft);border-radius:var(--r-md);box-shadow:var(--shadow-sm)}
.naut-browse .kick{display:block;font-family:var(--font-mono);font-size:.66rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--sea);margin-bottom:6px}
.naut-browse h3{margin:0!important;font-family:var(--font-head);font-weight:500;font-size:1.4rem;
  color:var(--ink);line-height:1.15}
.naut-browse .naut-btn{flex-shrink:0}

/* ============================================================
   BUTTONS
   ============================================================ */
.naut-btn{display:inline-flex;align-items:center;gap:8px;cursor:pointer;border:none;
  font-family:var(--font-body);font-weight:600;font-size:.88rem;letter-spacing:.01em;
  padding:11px 20px;border-radius:6px;text-decoration:none!important;white-space:nowrap;
  transition:transform .15s var(--ease),box-shadow .2s,background .2s}
.naut-btn:hover{transform:translateY(-1px)}
.naut-btn--primary{background:var(--accent);color:#fff!important;box-shadow:0 4px 14px rgba(217,43,46,.28)}
.naut-btn--primary:hover{box-shadow:0 8px 22px rgba(217,43,46,.36)}
.naut-btn--outline{background:transparent;color:var(--navy)!important;border:1.5px solid var(--navy)}
.naut-btn--outline:hover{background:var(--navy);color:#fff!important}
.naut-btn--ghost{background:rgba(255,255,255,.1);color:#fff!important;border:1px solid rgba(255,255,255,.28)}
.naut-btn--ghost:hover{background:rgba(255,255,255,.18)}
.naut-btn--full{width:100%;justify-content:center}

/* ============================================================
   RIGHT RAIL  (quote card + share)
   ============================================================ */
.naut-rail{position:sticky;top:90px;align-self:start;display:flex;flex-direction:column;gap:18px}
/* sticky needs non-clipping ancestors + a start-aligned grid cell */
.naut-article,.naut-shell,.naut-grid{overflow:visible}
html{overflow-x:visible !important}
body.view-article,
body.view-article #sp-component,
body.view-article #sp-main-body,
body.view-article .body-innerwrapper,
body.view-article .body-wrapper,
body.view-article #sp-page-builder{overflow:visible !important}
.naut-quote{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-md);
  padding:24px 22px;box-shadow:var(--shadow-md)}
.naut-quote .kick{display:block;font-family:var(--font-mono);font-size:.66rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.naut-quote h4{font-family:var(--font-head);font-weight:500;font-size:1.35rem;color:var(--ink);
  margin:0 0 6px;line-height:1.2}
.naut-quote p{margin:0 0 18px;font-size:.92rem;color:var(--muted);line-height:1.5}
.naut-quote .naut-btn{margin-bottom:10px}
.naut-quote .call{display:flex;align-items:center;gap:9px;justify-content:center;font-size:.88rem;
  color:var(--navy);text-decoration:none;font-weight:600;margin-top:4px}
.naut-quote .call svg{width:15px;height:15px;color:var(--accent)}
.naut-share{display:flex;flex-direction:column;gap:10px;align-items:center;
  background:var(--surface-2);border:1px solid var(--line-soft);border-radius:var(--r-md);padding:18px}
.naut-share span{font-family:var(--font-mono);font-size:.6rem;letter-spacing:.16em;
  text-transform:uppercase;color:var(--muted)}
.naut-share .row{display:flex;gap:14px}
.naut-share a{width:54px;height:54px;border-radius:50%;display:flex;align-items:center;
  justify-content:center;background:var(--surface);border:1px solid var(--line);color:var(--navy);
  transition:.2s}
.naut-share a:hover{background:var(--navy);color:#fff;transform:translateY(-2px)}
.naut-share svg{width:26px;height:26px}

/* ============================================================
   FAQ accordion  (use <details class="naut-faq"> in the editor)
   ============================================================ */
.naut-faqs{margin:2.4em 0 0}
details.naut-faq{border-bottom:1px solid var(--line)}
details.naut-faq:first-of-type{border-top:1px solid var(--line)}
details.naut-faq summary{list-style:none;cursor:pointer;display:flex;gap:18px;
  align-items:center;justify-content:space-between;padding:20px 2px;
  font-family:var(--font-head);font-weight:480;font-size:1.18rem;color:var(--ink);line-height:1.3}
details.naut-faq summary::-webkit-details-marker{display:none}
details.naut-faq summary:hover{color:var(--navy)}
details.naut-faq summary::after{content:"";flex-shrink:0;width:22px;height:22px;
  background:
    linear-gradient(var(--accent),var(--accent)) center/12px 2px no-repeat,
    linear-gradient(var(--accent),var(--accent)) center/2px 12px no-repeat;
  transition:transform .3s var(--ease)}
details.naut-faq[open] summary::after{transform:rotate(45deg)}
details.naut-faq > *:not(summary){margin:0 2px 22px!important;font-size:1rem;line-height:1.6;
  color:var(--body);max-width:60ch}

/* ============================================================
   TAGS  (native Joomla .tags styled as chips)
   ============================================================ */
.naut-article .com-content-article__tags,
.naut-article .tags{margin:2.4em 0 0;padding-top:2em;border-top:1px solid var(--line);
  display:flex;flex-wrap:wrap;gap:9px;list-style:none}
.naut-article .tags li{margin:0}
.naut-article .tags .tag-name,
.naut-article .tags a{display:inline-block;font-size:.82rem;color:var(--navy)!important;
  background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:7px 14px;
  text-decoration:none!important;transition:background .2s,color .2s,border-color .2s}
.naut-article .tags a:hover{background:var(--navy);color:#fff!important;border-color:var(--navy)}

/* author byline footer */
.naut-byline{display:flex;align-items:center;gap:16px;margin-top:36px;padding:22px;
  background:var(--surface);border:1px solid var(--line-soft);border-radius:var(--r-md)}
.naut-byline .av{width:54px;height:54px;border-radius:50%;flex-shrink:0;
  background:linear-gradient(135deg,#2b7c86,#15264d);display:flex;align-items:center;
  justify-content:center;color:#fff;font-weight:700}
.naut-byline .nm{font-weight:700;color:var(--ink)}
.naut-byline .ds{font-size:.9rem;color:var(--muted)}

/* native article info / icons — kept tidy, mostly hidden in favour of hero meta */
.naut-article .icons{margin:0}
.naut-article .article-info{font-family:var(--font-mono);font-size:.72rem;color:var(--muted);
  letter-spacing:.04em;margin:0 0 1.4em}
.naut-article .article-info dd{display:inline;margin:0 14px 0 0}

/* floating mobile quote button (injected by JS) */
.naut-fab{position:fixed;right:18px;bottom:18px;z-index:1100;display:none;
  background:var(--accent);color:#fff!important;font-weight:600;border:none;cursor:pointer;
  font-family:var(--font-body);font-size:.92rem;border-radius:999px;
  padding:14px 22px;box-shadow:0 10px 30px rgba(217,43,46,.45);text-decoration:none;
  align-items:center;gap:9px}
.naut-fab svg{width:17px;height:17px}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .naut-grid{grid-template-columns:minmax(0,var(--measure)) 1fr;gap:44px}
  .naut-toc{display:none}
}
@media (max-width:880px){
  .naut-grid{grid-template-columns:1fr;gap:0;padding:44px 0 64px}
  .naut-rail{position:static;flex-direction:row;flex-wrap:wrap;margin-top:34px}
  .naut-rail .naut-quote{flex:1;min-width:260px}
  .naut-compare,.naut-months{grid-template-columns:1fr 1fr}
  .naut-cta{grid-template-columns:1fr}
  .naut-cta img{min-height:180px;order:-1}
}
@media (max-width:620px){
  .naut-shell,.naut-hero__inner{padding-left:18px;padding-right:18px}
  .naut-anchor{grid-template-columns:1fr}
  .naut-anchor img{width:100%;height:170px}
  .naut-months,.naut-compare{grid-template-columns:1fr}
  .naut-fab{display:inline-flex}
}

/* ============================================================
   MOBILE-SAFE PATCH for article components
   Append at the end of naut-article.css
   ============================================================ */

/* Force every article child to respect the container width */
.naut-article__body > * {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* .naut-fact — was a fixed-width flex row, now wraps on small screens */
.naut-article__body .naut-fact {
  flex-wrap: wrap;
  align-items: flex-start;
  min-width: 0;
}
.naut-article__body .naut-fact > * {
  min-width: 0;
  flex: 1 1 auto;
}

@media (max-width: 600px) {
  .naut-article__body .naut-fact {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .naut-article__body .naut-fact::before {
    margin-bottom: 4px;
  }
}

/* .naut-cta — was a 2-column grid that broke on narrow phones */
@media (max-width: 600px) {
  .naut-article__body .naut-cta {
    grid-template-columns: 1fr;
  }
  .naut-article__body .naut-cta .copy {
    padding: 24px 20px;
  }
  .naut-article__body .naut-cta h3 {
    font-size: 1.35rem !important;
  }
  .naut-article__body .naut-cta .actions {
    flex-direction: column;
    align-items: stretch;
  }
  .naut-article__body .naut-cta .naut-btn {
    width: 100%;
    justify-content: center;
  }
}

/* .naut-checks — long item text wraps cleanly */
.naut-article__body .naut-checks li {
  word-break: break-word;
}

/* ============================================================
   .naut-gallery — single-column magazine-style image gallery
   Append to the end of naut-article.css
   ============================================================ */

.naut-article__body .naut-gallery {
  margin: 2.4em 0 2.8em;
  display: block;
  /* kill any column-count inheritance from article overrides */
  column-count: 1 !important;
  -webkit-columns: auto !important;
  -moz-columns: auto !important;
  columns: auto !important;
}

.naut-article__body .naut-gallery__item {
  margin: 0 0 1.8em;
  padding: 0;
  display: block;
}

.naut-article__body .naut-gallery__item:last-child {
  margin-bottom: 0;
}

.naut-article__body .naut-gallery__item img {
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--shadow-sm) !important;
}

/* figcaption — block layout, no columns, clean typography */
.naut-article__body .naut-gallery__item figcaption {
  margin: 0;
  padding: 14px 4px 0;
  display: block;
  column-count: 1 !important;
  -webkit-columns: auto !important;
  -moz-columns: auto !important;
  columns: auto !important;
}

.naut-article__body .naut-gallery__item figcaption strong,
.naut-article__body .naut-gallery__item figcaption em,
.naut-article__body .naut-gallery__item figcaption p {
  display: block;
  width: 100%;
  margin: 0;
}

/* kicker / subtitle (small label above the title) */
.naut-article__body .naut-gallery__item figcaption em {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 6px;
  line-height: 1.3;
}

/* title — serif, matches your H4 article style */
.naut-article__body .naut-gallery__item figcaption strong {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 480;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}

/* description — italic magazine-caption feel */
.naut-article__body .naut-gallery__item figcaption p {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  font-style: italic;
}

@media (max-width: 600px) {
  .naut-article__body .naut-gallery__item {
    margin-bottom: 1.5em;
  }
  .naut-article__body .naut-gallery__item figcaption strong {
    font-size: 1.2rem;
  }
  .naut-article__body .naut-gallery__item img {
    max-height: 360px;
  }
}
/* ============================================================
   naut-anchors — module variant (single column, horizontal cards)
   Append to the END of naut-article.css
   Makes the mod_articles override (.naut-mod) render identical to
   the site's existing .naut-anchor "Keep Exploring" cards.
   ============================================================ */

/* single column — cards keep their default horizontal layout
   (image 160px on the left, text on the right), exactly like the
   other naut-anchor cards on the site */
.naut-article .naut-anchors--grid{
  grid-template-columns:1fr;
}

/* the module wrapper shouldn't add page padding/background */
.naut-mod{background:transparent;width:100%}
.naut-mod .naut-anchors{margin:1.4em 0 0}
/* ============================================================
   naut-links — compact "related links" row
   Append to the END of naut-article.css
   Lighter alternative to naut-anchor cards: small thumbnail,
   title + one line, in a 3-up grid. Used for "Keep Exploring"
   so it reads as related links, not a second destination list.
   ============================================================ */

.naut-article .naut-links{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:1.4em 0 1.8em;
  list-style:none;
  padding:0;
}

.naut-article .naut-link{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  background:var(--surface-2);
  border:1px solid var(--line-soft);
  border-radius:var(--r-md);
  text-decoration:none;
  color:inherit;
  transition:background .2s,border-color .2s,transform .2s;
}
.naut-article .naut-link:hover{
  background:var(--surface);
  border-color:var(--line);
  transform:translateY(-2px);
}

.naut-article .naut-link img{
  width:54px;
  height:54px;
  flex-shrink:0;
  object-fit:cover;
  border-radius:10px;
  margin:0 !important;
  box-shadow:none !important;
}

.naut-article .naut-link .t{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.naut-article .naut-link .k{
  font-family:var(--font-mono);
  font-size:.6rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--sea);
}
.naut-article .naut-link .n{
  font-family:var(--font-body);
  font-weight:600;
  font-size:.98rem;
  color:var(--ink);
  line-height:1.25;
}
.naut-article .naut-link .n::after{
  content:" →";
  color:var(--accent);
  font-weight:700;
}

@media (max-width:780px){
  .naut-article .naut-links{grid-template-columns:1fr;}
}

/* ============================================================
   THANK YOU page (article override)
   Scoped to .naut-article .naut-thanks so it never affects the
   blog single-article layout. Used by the thanks.php override.
   ============================================================ */
.naut-article .naut-thanks{
  max-width:var(--measure);
  margin:0 auto;
  padding:clamp(40px,7vw,72px) 28px;
  font-family:var(--font-body);
  color:var(--body);
}

/* ---- Confirmation hero ---- */
.naut-article .naut-thanks__hero{text-align:center;margin-bottom:36px}

.naut-article .naut-thanks__cat{display:inline-flex;align-items:center;gap:9px;
  font-family:var(--font-mono);font-size:.66rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--sea);margin:0 auto 18px}
.naut-article .naut-thanks__cat::before{content:"";width:7px;height:7px;border-radius:50%;
  background:var(--accent)}

.naut-article .naut-thanks__check{display:flex;align-items:center;justify-content:center;
  width:66px;height:66px;margin:0 auto 22px;border-radius:50%;color:#fff;
  background:linear-gradient(135deg,#2b7c86,var(--navy));box-shadow:var(--shadow-md)}
.naut-article .naut-thanks__check svg{width:32px;height:32px}

.naut-article .naut-thanks__hero h1{font-family:var(--font-head);font-weight:430;color:var(--ink);
  font-size:clamp(2rem,4.4vw,2.9rem);line-height:1.08;letter-spacing:-.01em;
  margin:0;text-wrap:balance}

/* ---- Article body (authored in Joomla) ---- */
.naut-article .naut-thanks__body{text-align:center}
.naut-article .naut-thanks__body > p:first-of-type{margin-left:auto;margin-right:auto;max-width:36ch}

/* notice box — wrap notice text in the editor with <div class="naut-thanks__notice"> */
.naut-article .naut-thanks__notice{
  text-align:left;background:var(--surface-2);border:1px solid var(--line-soft);
  border-radius:var(--r-md);padding:26px 28px;margin:32px 0;box-shadow:var(--shadow-sm)}
.naut-article .naut-thanks__notice .kick{display:block;font-family:var(--font-mono);
  font-size:.66rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:16px}

/* ---- CTA row ---- */
.naut-article .naut-thanks__cta{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:8px}

@media (max-width:480px){
  .naut-article .naut-thanks__cta{flex-direction:column}
  .naut-article .naut-thanks__cta .naut-btn{width:100%;justify-content:center}
}