/* ============================================================
   WordPress additions only — the approved design lives in style.css and is untouched.
   ============================================================ */

/* Logged-in admin bar: keep the fixed header below it */
.admin-bar .site-header { top: 32px; }
.admin-bar .mobile-menu { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .mobile-menu { top: 46px; } }

.skip-link:focus { position: fixed; left: 1rem; top: 1rem; z-index: 3000; width: auto; height: auto; clip: auto; padding: .6rem 1rem; background: var(--color-yellow); color: var(--color-teal-dark); }

/* Items beyond the first page of a grid (revealed by "Load More") */
.is-extra { display: none !important; }

/* Bot trap: invisible to people */
.ylnas-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Small privacy lines under forms */
.newsletter-note, .survey-note { margin: .9rem auto 0; max-width: 34rem; font-size: .78rem; line-height: 1.5; text-align: center; opacity: .9; }
.newsletter-note { color: var(--color-white); }
.newsletter-note a { color: var(--color-yellow); text-decoration: underline; }
.survey-note { color: var(--color-white); }
.survey-note a { color: var(--color-yellow); text-decoration: underline; }
.newsletter-form + .form-status { text-align: center; }

/* Footer: Cookie Policy / Cookie Settings sit in a quiet line under the triangle, so the approved footer shape is untouched */
.footer-legal-extra { margin: 0; padding: .85rem 1rem 1.1rem; text-align: center; font-family: var(--font-heading); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-teal-dark); background: inherit; position: relative; }
.footer-legal-extra a { color: inherit; text-decoration: none; cursor: pointer; padding: .25rem .1rem; }
.footer-legal-extra a:hover { text-decoration: underline; }

/* ---------- Cookie banner ---------- */
.ylnas-cookie {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 2500; width: min(26rem, calc(100vw - 2rem));
  background: var(--color-white); color: var(--color-text); border-top: .3rem solid var(--color-yellow);
  box-shadow: 0 .5rem 2rem rgba(0,0,0,.25); padding: 1.1rem 1.25rem 1.15rem; font-family: var(--font-body); font-size: .85rem; line-height: 1.5;
}
.ylnas-cookie[hidden] { display: none; }
.ylnas-cookie__title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--color-teal-dark); margin: 0 0 .35rem; letter-spacing: .02em; }
.ylnas-cookie__text { margin: 0 0 .9rem; }
.ylnas-cookie__text a { color: var(--color-teal-dark); text-decoration: underline; }
.ylnas-cookie__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.ylnas-cookie .btn { margin: 0; cursor: pointer; }
.ylnas-cookie .btn-outline { color: var(--color-teal-dark); border-color: var(--color-teal-dark); background: transparent; }
.ylnas-cookie .btn-outline:hover { background: var(--color-cyan); border-color: var(--color-cyan); color: #0c3f52; }
.ylnas-cookie .btn-yellow { background: var(--color-yellow); color: var(--color-teal-dark); border: 2px solid var(--color-yellow); }
@media (max-width: 600px) { .ylnas-cookie { left: .5rem; right: .5rem; bottom: .5rem; width: auto; } }

/* ---------- "Load external content?" box ---------- */
.ylnas-gate { position: fixed; inset: 0; z-index: 3200; background: rgba(8,30,41,.78); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ylnas-gate__card { background: var(--color-white); color: var(--color-text); max-width: 30rem; padding: 1.5rem 1.5rem 1.25rem; border-top: .3rem solid var(--color-yellow); font-size: .9rem; line-height: 1.55; }
.ylnas-gate__title { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--color-teal-dark); margin: 0 0 .5rem; }
.ylnas-gate__card p { margin: 0 0 .75rem; }
.ylnas-gate__card a { color: var(--color-teal-dark); text-decoration: underline; }
.ylnas-gate__actions { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; margin-top: .5rem; }
.ylnas-gate .btn { margin: 0; cursor: pointer; }
.ylnas-gate .btn-outline { color: var(--color-teal-dark); border-color: var(--color-teal-dark); background: transparent; }
.ylnas-gate .btn-yellow { background: var(--color-yellow); color: var(--color-teal-dark); border: 2px solid var(--color-yellow); }

/* ---------- Legal pages (Terms / Privacy / Cookies) ---------- */
.legal-body { background: var(--color-white); color: var(--color-text); padding: 4rem 0 6rem; }
.legal-body .container-sm { max-width: 52rem; margin: 0 auto; padding: 0 1.5rem; }
.legal-body h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--color-teal-dark); margin: 2.5rem 0 .75rem; letter-spacing: .01em; }
.legal-body h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--color-teal-dark); margin: 1.75rem 0 .5rem; }
.legal-body p, .legal-body li { font-size: 1rem; line-height: 1.7; margin: 0 0 1rem; }
.legal-body ul { padding-left: 1.4rem; margin: 0 0 1.25rem; }
.legal-body a { color: var(--color-teal-dark); text-decoration: underline; }
.legal-body code { background: #eef3f5; padding: .1em .35em; border-radius: 3px; font-size: .9em; }
.legal-updated { font-size: .85rem !important; color: #666; margin-bottom: 2rem !important; }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: .65rem .75rem; border: 1px solid #d5dfe3; }
.legal-table th { background: var(--color-teal-dark); color: #fff; font-family: var(--font-heading); font-weight: 700; }
@media (max-width: 700px) { .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; } .legal-table thead { display: none; } .legal-table tr { margin-bottom: 1rem; border: 1px solid #d5dfe3; } .legal-table td { border: 0; border-bottom: 1px solid #eef3f5; } }
.ylnas-legal-title { font-size: clamp(1.8rem, 4.4vw, 3.4rem); }
mark.ylnas-missing { background: #fff3a3; color: #7a3d00; padding: 0 .25em; }

/* Newsletter section has a light background: status text must be dark */
.newsletter-section .form-status { color: var(--color-teal-dark); font-weight: 600; }
.newsletter-section .form-status.is-error { color: #b3261e; }

/* Credit line */
.footer-legal-extra .ylnas-credit a { text-decoration: underline; text-underline-offset: .15em; }
.newsletter-section .newsletter-note { color: var(--color-teal-dark); opacity: 1; }
.newsletter-section .newsletter-note a { color: var(--color-teal-dark); font-weight: 700; }

/* Chapter One PDF viewer */
.ylnas-pdf { position: fixed; inset: 0; z-index: 3000; background: rgba(10,40,52,.78); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.ylnas-pdf__box { background: var(--color-white); width: min(62rem, 100%); height: min(92vh, 60rem); display: flex; flex-direction: column; box-shadow: 0 1rem 3rem rgba(0,0,0,.4); }
.ylnas-pdf__bar { display: flex; align-items: center; gap: 1.25rem; padding: .7rem 1rem; background: var(--color-teal-dark); color: var(--color-white); font-family: var(--font-heading); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.ylnas-pdf__title { margin: 0 auto 0 0; font-weight: 700; font-size: .95rem; }
.ylnas-pdf__bar a { color: var(--color-yellow); text-decoration: none; }
.ylnas-pdf__bar a:hover { text-decoration: underline; }
.ylnas-pdf__close { background: none; border: 0; color: var(--color-white); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 .25rem; }
.ylnas-pdf__frame { flex: 1; width: 100%; border: 0; background: #f3f3f3; }
html.ylnas-pdf-open { overflow: hidden; }
@media (max-width: 600px) { .ylnas-pdf { padding: 0; } .ylnas-pdf__box { height: 100%; } .ylnas-pdf__bar { gap: .8rem; flex-wrap: wrap; } }

/* Strategy result matrix: a box's size must depend ONLY on its score.
   Text inside could previously push a box taller (large phone fonts, wider words),
   so a lower score could look bigger than a higher one. */
.rm-cell { box-sizing: border-box; min-width: 0; min-height: 0; contain: size; overflow: visible; }
@media (max-width: 600px) {
  .rm-cell { container-type: size; }
  .rm-cell b { font-size: max(.6rem, 18.7cqw); }
  .rm-cell span { font-size: max(.65rem, 21.1cqw); }
  .rm-cell.is-small b, .rm-cell.is-small span { font-size: .85rem; }
}
