/*
  MJ Labs — the look of the whole site: deep green and yellow, white pages, square-cornered buttons and a header in two rows.
  Loaded last on every page (views/n/_head.php and views/layout.php), so that it wins over home.css, blog.css, v2/v2.css and n/n.css.
*/
:root {
  --green: #002510; --green-2: #0b3b22; --green-3: #14532f; --mint: #dcf7e5; --yellow: #ffc600; --yellow-d: #e8b300; --paper: #f7f7f7;
  --blue: #0a7c3e; --blue-d: #066030; --navy: #002510; --navy-2: #0b3b22;
  --peach: #f1f8f3; --amber: #ffc600; --ink: #141414; --muted: #5f5e62; --line: #e2e2e2;
  --mist: #f7f7f7; --edge: #e2e2e2; --soft: #6a6a6e; --no: #b30016;
  --r: 14px; --shadow: 0 10px 30px rgba(0, 20, 8, .10);
}
body { color: var(--ink); }
h1, h2, h3 { letter-spacing: -.02em; }
.head h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.lead { color: var(--muted); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Buttons: rectangular, yellow for the main action, dark green for the second */
.btn { border-radius: 8px; border-width: 1px; font-weight: 600; letter-spacing: 0; }
.btn-primary { background: var(--yellow); color: var(--ink); box-shadow: none; }
.btn-primary:hover { background: var(--yellow-d); color: var(--ink); }
.btn-ghost { background: #fff; border-color: var(--yellow); color: var(--ink); }
.btn-ghost:hover { background: #fff7d1; color: var(--ink); }
.btn-amber { background: var(--yellow); color: var(--ink); }
.btn-amber:hover { background: var(--yellow-d); color: var(--ink); }
.btn-dark { background: var(--green); border-color: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-2); color: #fff; }

/* Bar with the offer: full width, a black tag, the text and the link */
.announce { background: var(--yellow); color: var(--ink); font-size: 16px; font-weight: 600; }
.announce .wrap { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px; min-height: 48px; padding-block: 6px; }
.announce-tag { display: inline-block; background: #000; color: var(--yellow); font-weight: 800; font-size: 15px; line-height: 1; padding: 8px 14px; transform: rotate(-4deg); box-shadow: 3px 3px 0 rgba(0, 0, 0, .18); white-space: nowrap; }
.announce a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: var(--green-3); }

/* Header: logo and utilities (with dividers) in the first row, the menu spread over the full width in the second */
.top { background: #fff; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.top .toprow { min-height: 62px; padding-block: 0; }
.top .util { display: flex; align-items: stretch; align-self: stretch; margin-right: -4px; }
.util-cell { display: inline-flex; align-items: center; padding: 0 24px; border-left: 1px solid var(--line); }
.util-link { gap: 8px; color: var(--ink); font-weight: 500; font-size: 16px; text-decoration: none; }
.util-link:hover { color: var(--blue); }
.util-tel { font-weight: 600; }
.util-last { padding-right: 0; }
.top .langs { gap: 4px; }
.top .langs a { color: var(--ink); }
.top .langs a.active { background: #eef7f1; color: var(--blue); }
.btn-outline { background: #fff; border: 1px solid var(--yellow); color: var(--ink); font-weight: 600; gap: 8px; }
.btn-outline:hover { background: #fff7d1; color: var(--ink); }
.top .btn.btn-small { min-height: 40px; padding: 0 18px; }
.top .subnav { margin: 0; border-top: 1px solid var(--line); background: #f4f4f4; }
.top .subnav .navrow { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; min-height: 56px; }
.top .subnav a:not(.btn), .top .subnav .dd-btn { color: var(--ink); font-weight: 500; font-size: 16px; }
.top .subnav a:not(.btn):hover, .top .subnav .dd-btn:hover, .top .subnav .dd.open .dd-btn { color: var(--blue); }
.top .dd-list { top: calc(100% + 1px); border-radius: 0 0 12px 12px; border-color: var(--line); }
.top .dd-right .dd-list { left: auto; right: -12px; }
.top .dd-list a:hover { background: var(--peach); }
.top .menu-toggle { color: var(--ink); }
@media (max-width: 1100px) { .util-cell { padding: 0 16px; } .util-tel { display: none; } }
@media (max-width: 980px) {
  .top .util-link, .top .util-last { display: none; }
  .top .util-cell { padding: 0 12px; }
  .top .subnav { margin: 0; padding: 4px clamp(16px, 5vw, 32px) 16px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 16px 28px rgba(0, 20, 8, .10); }
  .top .subnav .navrow { padding: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; }
  .top .subnav a:not(.btn), .top .subnav .dd-btn { min-height: 48px; font-size: 18px; }
  .top .dd-list, .top .dd-right .dd-list { border-radius: 0; left: auto; right: auto; }
}
@media (max-width: 520px) { .announce-tag { transform: rotate(-3deg); } }

/* Hero: deep green with a soft glow */
.hero { background: radial-gradient(900px 420px at 18% -6%, rgba(20, 160, 90, .30), transparent 62%), radial-gradient(700px 360px at 92% 30%, rgba(255, 198, 0, .10), transparent 60%), var(--green); color: #fff; }
.hero h1, .hero h2 { color: #fff; }
.hero h1 { font-weight: 800; font-size: clamp(40px, 5.6vw, 68px); }
.hero .lead { color: #cfe3d6; }
.hero .eyebrow { color: var(--yellow); }
.hero .ticks li { color: #fff; }
.hero .ticks svg { color: var(--yellow); }
.hero .btn-ghost { background: transparent; border-color: #fff; color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--green); }
.hero .crumbs, .hero .crumbs a { color: #cfe3d6; }
.hero .crumbs a:hover { color: var(--yellow); }
.hero .call h2, .hero .promise-card h2 { color: var(--green); }
.hero-media::before { background: var(--yellow); opacity: .9; }
.hero-media img { border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.call, .promise-card { box-shadow: 0 24px 60px rgba(0, 0, 0, .28); border: 0; }
.promise-card { border-radius: 20px; }
.call-icon { background: var(--yellow); }
.tile { background: #e7f4ec; color: var(--blue); }
.facts dd { color: var(--ink); }

/* The row of three points under the hero */
.chiprow { padding-block: 28px 0; }
.chiprow ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.chiprow li { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 18px; color: var(--ink); }
.chiprow svg { flex: none; color: var(--blue); }
.chiprow ~ section { padding-top: clamp(40px, 6vw, 72px); }
.bandsec { padding-block: clamp(32px, 5vw, 64px); }
.bandtext .eyebrow { color: var(--blue); }

/* Sections */
.navy { background: var(--green); color: #d6e6dc; }
.navy .eyebrow { color: var(--yellow); }
.navy .lead { color: #cfe3d6; }
.navy .item { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); box-shadow: none; }
.navy .item h3 svg { color: var(--yellow); }
.navy .item p a, .navy .lead a, .navy a { color: var(--yellow); }
.item, .step, .qa, .incl-box, .person, .related a { border-color: var(--edge); box-shadow: none; }
.item:hover, .card:hover { box-shadow: var(--shadow); }
.step .num { background: var(--green); border-color: #fff; }
.num { background: var(--green); }
.mist { background: var(--paper); }
.qa[open] { border-color: #b8d8c4; box-shadow: none; }
.qa summary::after { background: var(--paper); }
.related a:hover { border-color: var(--blue); color: var(--blue); }

/* Prices: a green ribbon over the card we recommend */
.price { border-radius: var(--r); padding: 32px 30px; }
.price.pick { border: 1px solid var(--blue); background: var(--mint); box-shadow: none; }
.prices { align-items: stretch; padding-top: 26px; }
.price .badge { position: absolute; top: -26px; left: -1px; right: -1px; transform: none; width: auto; height: 26px; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 12px 12px 0 0; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.amount { font-weight: 800; }
.price .btn-ghost { background: var(--green); border-color: var(--green); color: #fff; }
.price .btn-ghost:hover { background: var(--green-2); color: #fff; }
.price.pick .btn-primary { background: var(--yellow); }
.list svg { color: var(--blue); }
.list.out svg { color: var(--no); }

/* The final call to action and the footer */
.contact { background: var(--green); background-image: radial-gradient(800px 360px at 85% 0%, rgba(20, 160, 90, .28), transparent 60%); }
.contact .eyebrow { color: var(--yellow); }
.contact-number:hover { color: var(--yellow); }
.contact .btn-amber { background: var(--yellow); color: var(--ink); }
.foot { background: #001a0b; color: #cfe3d6; }
.foot a { color: #fff; }
.foot a:hover { color: var(--yellow); }
.fcol h3 { color: var(--yellow); }
.to-top { background: var(--green); }
.to-top:hover { color: var(--yellow); }
.consent { border-radius: 12px; }

/* Blog and policy pages keep their layout and take the colours */
.blog-cta, .side-cta { background: var(--green); }
@media (min-width: 981px) { .top .subnav { display: block; } }
@media (max-width: 980px) {
  .top .subnav .navrow { width: 100%; max-width: none; margin: 0; }
  .top .subnav .dd, .top .subnav .navrow > a { width: 100%; }
  .top .subnav .dd-btn { width: 100%; justify-content: space-between; }
}

/* Phones: the menu button sits in the middle of the row, the buttons of the first screen run the full width */
@media (max-width: 980px) {
  .top .util { align-items: center; align-self: center; margin-right: 0; }
  .top .menu-toggle { margin: 0; flex: none; }
}
@media (max-width: 640px) {
  .cta-row { flex-direction: column; align-items: stretch; width: 100%; }
  .cta-row .btn { width: 100%; }
  .hero-text { justify-items: stretch; }
  .bandtext .btn { width: 100%; }
}
@media (max-width: 640px) {
  .folks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .folk h3 { font-size: 18px; }
  .folk p { font-size: 14px; }
}

/* Touch targets: at least 44 px high where a finger has to hit them */
.announce a { min-height: 44px; padding-inline: 4px; }
.crumbs a, .blog-crumbs a, .bc a { min-height: 44px; display: inline-flex; align-items: center; }
.blog-cats a, .blog-chip, .blog-chips a { min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 980px) {
  .fcol a, .foot-legal a, .foot nav a { min-height: 44px !important; }
  .foot #legal-email a, .foot-co a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Titles of the cards on the list pages are links: give them room for a finger */
.item h3 a { display: inline-block; padding-block: 10px; }
.factsrow dt { font-size: 13px; }
.facts dt { font-size: 13px; }
.blog-toc-m summary { display: flex; align-items: center; min-height: 44px; }
.side-phone { display: inline-flex; align-items: center; min-height: 44px; }
