/* ==========================================================================
   Go Resume Go - site components
   Built on top of the Arsha template palette:
   navy #37517e, brand blue #47b2e4, hover #209dd8, light bg #f3f5fa
   ========================================================================== */

:root {
  --grg-navy: #37517e;
  --grg-blue: #47b2e4;                /* fills, borders and bars: unchanged */
  --grg-blue-dark: #17719b;           /* blue TEXT on white or a pale surface (4.5:1) */
  --grg-blue-light: #73c5eb;
  --grg-blue-on-navy: #8bceee;        /* blue text on the navy header and footer (4.6:1) */
  --grg-on-blue: #0c2340;             /* text on a light-blue fill, e.g. buttons (6.6:1) */
  --grg-blue-surface: rgba(71, 178, 228, .08);
  --grg-border: rgba(71, 178, 228, .22);
  --grg-border-strong: rgba(71, 178, 228, .45);
  --grg-text: #444444;
  --grg-text-soft: #5e5e5e;
  --grg-muted: #6e6e6e;
  --grg-bg: #f3f5fa;
  --grg-input: #f7f9fc;
  --grg-green: #11743c;
  --grg-green-surface: rgba(24, 210, 110, .12);
  --grg-red: #c6320b;
  --grg-red-surface: rgba(237, 60, 13, .08);
  --grg-yellow: #9a5504;
  --grg-yellow-surface: rgba(245, 158, 11, .10);
  --grg-radius: 10px;
  --grg-radius-sm: 6px;
  --grg-font: "Open Sans", sans-serif;
  --grg-font-heading: "Jost", sans-serif;
  --grg-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

/* ---------- generic helpers ---------- */
.grg-hint { font-size: .8rem; color: var(--grg-muted); margin: .5rem 0 0; line-height: 1.5; }
.grg-hint-inline { font-size: .75rem; color: var(--grg-muted); font-weight: 400; }
.grg-mono { font-family: "Cascadia Code", "Fira Code", Consolas, monospace; }
.grg-optional { font-size: .78rem; font-weight: 400; color: var(--grg-muted); text-transform: none; letter-spacing: 0; }

.grg-card {
  background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius);
  padding: 1.5rem; box-shadow: var(--grg-shadow); margin-bottom: 1.5rem;
}

/* ---------- hero ---------- */
/* The hero's lead sentence is a paragraph, not a heading, styled as the theme's
   hero h2 was so it looks exactly the same */
#hero .grg-hero-lead {
  font-family: var(--grg-font-heading); font-weight: 500; line-height: 1.2; margin: 0 0 50px;
  color: rgba(255, 255, 255, .75); font-size: 24px;
}
@media (max-width: 768px) { #hero .grg-hero-lead { font-size: 18px; line-height: 24px; margin-bottom: 30px; } }
#hero .btn-get-started { font-size: 18px; padding: 13px 38px 14px; letter-spacing: 1.2px; }
@media (max-width: 575px) { #hero .btn-get-started { font-size: 17px; padding: 12px 32px 13px; } }
.grg-hero-note { color: rgba(255, 255, 255, .7); font-size: .95rem; margin: 1.1rem 0 0; }
.grg-hero-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Links that sit inside a sentence carry an underline, so they are not told apart by colour alone.
   Standalone links (menus, cards, tags, buttons) are not affected. */
.grg-privacy a, .grg-footer-about p a, .section-title p a, .grg-checklist a, .grg-hint a {
  text-decoration: underline; text-underline-offset: 2px;
}
.grg-hero-note a:hover { color: #fff; }
@media (max-width: 991px) { .grg-hero-note { text-align: center; } }

/* ---------- 3-step strip ---------- */
.grg-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 2rem; }
@media (max-width: 768px) { .grg-steps { grid-template-columns: 1fr; } }
.grg-step {
  display: flex; align-items: flex-start; gap: .75rem;
  background: var(--grg-blue-surface); border: 1px solid var(--grg-border);
  border-radius: var(--grg-radius-sm); padding: .9rem 1rem;
}
.grg-step-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--grg-blue); color: var(--grg-on-blue); display: flex; align-items: center; justify-content: center;
  font-family: var(--grg-font-heading); font-weight: 700; font-size: .85rem;
}
.grg-step-body { font-size: .84rem; color: var(--grg-text-soft); line-height: 1.45; }
.grg-step-body strong { display: block; color: var(--grg-navy); font-family: var(--grg-font-heading); font-size: .95rem; margin-bottom: .1rem; }
/* Compact variant used in the scanner so the whole section fits one screen */
.grg-steps-compact { margin-bottom: 1.1rem; }
.grg-steps-compact .grg-step { padding: .55rem .8rem; align-items: center; }
.grg-steps-compact .grg-step-num { width: 24px; height: 24px; font-size: .78rem; }
.grg-steps-compact .grg-step-body { font-size: .8rem; line-height: 1.35; }
.grg-steps-compact .grg-step-body strong { display: inline; font-size: .86rem; margin: 0; }
.grg-scanner { padding-top: 16px; padding-bottom: 40px; }
.grg-scanner .section-title { padding-bottom: 12px; }
.grg-scanner .section-title h2 { margin-bottom: 10px; padding-bottom: 16px; }
.grg-scanner .grg-label { font-size: 1.05rem; margin-bottom: .3rem; }
/* ---------- scanner form ---------- */
.grg-field { margin-bottom: .9rem; }
.grg-label {
  display: block; font-family: var(--grg-font-heading); font-weight: 600; font-size: 1.15rem;
  color: var(--grg-navy); margin-bottom: .4rem;
}.grg-input, .grg-textarea {
  font-family: var(--grg-font); font-size: 14px; color: var(--grg-text);
  border: 1px solid #ced4da; border-radius: var(--grg-radius-sm); background: #fff;
  box-shadow: none; transition: border-color .2s, box-shadow .2s;
}
.grg-input:focus, .grg-textarea:focus {
  border-color: var(--grg-blue); box-shadow: 0 0 0 3px rgba(71, 178, 228, .18); outline: none;
}
.grg-textarea { min-height: 150px; line-height: 1.6; resize: vertical; }
.grg-textarea-missing { background: var(--grg-input); resize: none; }
/* The missing keywords box: a textarea's look, with headed, colour-coded groups */
.grg-missing-box { overflow-y: auto; padding: .6rem .8rem; }
.grg-missing-placeholder { margin: 0; color: #6c757d; }
.grg-mk-block { margin: 0 0 .85rem; padding-left: .65rem; border-left: 3px solid var(--grg-border-strong); }
.grg-mk-block:last-child { margin-bottom: 0; }
.grg-mk-head { font-weight: 700; color: var(--grg-navy); margin-bottom: .15rem; }
.grg-mk-count { font-weight: 400; color: var(--grg-muted); }
.grg-mk-list { list-style: none; padding: 0; margin: 0; }
/* The scanner sits in the theme's .about section, whose list items are indented and spaced for icons */
.about .content .grg-mk-list li { padding: 0; margin: 0; line-height: 1.55; }
.grg-mk-note { color: var(--grg-muted); font-size: .92em; }
.grg-mk-required { border-left-color: var(--grg-red); }
.grg-mk-required .grg-mk-head { color: var(--grg-red); }
.grg-mk-partial { border-left-color: #d98a04; }
.grg-mk-partial .grg-mk-head { color: var(--grg-yellow); }
.grg-mk-preferred { border-left-color: var(--grg-blue); }
.grg-mk-preferred .grg-mk-head { color: var(--grg-blue-dark); }
.grg-mk-other { border-left-color: #b8c2d0; }
.grg-mk-other .grg-mk-head { color: var(--grg-text-soft); }
.grg-mk-reworded { border-left-color: var(--grg-navy); }
.grg-mk-covered { border-left-color: var(--grg-green); }
.grg-mk-covered .grg-mk-head { color: var(--grg-green); }
/* Right column of the scanner: the missing-keywords box grows to the height of
   the left column (resume + job description) on desktop. */
@media (min-width: 992px) {
  .grg-col-stretch { display: flex; flex-direction: column; }
  .grg-col-stretch .grg-field-missing { flex: 1; display: flex; flex-direction: column; margin-bottom: 0; }
  .grg-col-stretch .grg-textarea-missing { flex: 1; min-height: 0; }
  /* Basis 0: a long list scrolls inside the box instead of making the row taller */
  .grg-col-stretch .grg-missing-box { flex: 1 1 0; min-height: 220px; }
}
@media (max-width: 991px) { .grg-textarea-missing { min-height: 220px; } .grg-missing-box { max-height: 420px; } }
/* On desktop the resume and job description boxes share whatever height the
   screen has left, so the whole scanner (title to the note under the buttons)
   fits in one view on laptops and large monitors alike. */
@media (min-width: 992px) {
  .grg-scanner .grg-textarea:not(.grg-textarea-missing) { height: clamp(110px, calc((100vh - 540px) / 2), 290px); min-height: 110px; }
}
.grg-textarea.grg-invalid { border-color: var(--grg-red); box-shadow: 0 0 0 3px var(--grg-red-surface); }

/* Highlight overlay: after a scan the same text is shown over the box with the
   keywords marked. Clicking it hands control back to the real textarea. */
.grg-textarea-wrap { position: relative; }
.grg-textarea-overlay {
  position: absolute; inset: 0; background: #fff; border: 1px solid var(--grg-border-strong);
  border-radius: var(--grg-radius-sm); padding: .375rem .75rem; font-family: var(--grg-font);
  font-size: 14px; line-height: 1.6; color: var(--grg-text); white-space: pre-wrap; word-wrap: break-word;
  overflow-y: auto; cursor: text;
}
.grg-textarea-overlay mark { background: rgba(71, 178, 228, .2); color: var(--grg-blue-dark); padding: 1px 3px; border-radius: 3px; border-bottom: 2px solid var(--grg-blue); }
.grg-textarea-overlay mark.miss { background: rgba(237, 60, 13, .12); color: var(--grg-red); border-bottom-color: var(--grg-red); }
.grg-overlay-hint {
  position: sticky; top: 0; float: right; font-size: .68rem; font-weight: 600; color: var(--grg-muted);
  background: #fff; border: 1px solid var(--grg-border); padding: .15rem .55rem; border-radius: 999px;
  pointer-events: none; margin: 0 0 .25rem .5rem; user-select: none;
}
/* Drawn as generated content so selecting and copying the text never picks it up */
.grg-overlay-hint::before { content: "\270E  Click to edit"; }
.grg-input-legend { margin: .5rem 0 0; gap: 1rem; align-items: center; }
.grg-btn-scan {
  font-family: var(--grg-font-heading); font-weight: 500; font-size: 16px; letter-spacing: 1px;
  display: inline-block; width: 312px; max-width: 100%; height: 59px; padding: 10px 28px 11px;
  border: 0; border-radius: 50px; transition: .5s; margin: 10px 4px 0; color: var(--grg-on-blue); background: var(--grg-blue);
  cursor: pointer;
}
.grg-btn-scan:hover { background: var(--grg-blue-light); color: var(--grg-on-blue); }
.grg-btn-scan[disabled] { opacity: .7; cursor: wait; }
.grg-btn-secondary, .grg-btn-ghost {
  font-family: var(--grg-font-heading); font-weight: 500; font-size: 15px; letter-spacing: .5px;
  display: inline-block; padding: 10px 22px; border-radius: 50px; margin: 10px 4px 0;
  cursor: pointer; transition: all .25s; background: #fff; border: 1px solid var(--grg-border-strong); color: var(--grg-navy);
}
.grg-btn-secondary:hover { border-color: var(--grg-blue); color: var(--grg-blue-dark); background: var(--grg-blue-surface); }
.grg-btn-ghost { border-color: transparent; color: var(--grg-text-soft); }
.grg-btn-ghost:hover { color: var(--grg-navy); background: var(--grg-blue-surface); }
.grg-btn-small { font-size: 13px; padding: 6px 16px; }


.grg-noscript-result { text-align: left; max-width: 760px; margin: 1.25rem auto 0; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius); font-size: .92rem; }
.grg-noscript-result ul { padding-left: 1.2rem; margin: .5rem 0; }
.grg-error {
  background: var(--grg-red-surface); border: 1px solid rgba(237, 60, 13, .35); color: var(--grg-red);
  border-radius: var(--grg-radius-sm); padding: .75rem 1rem; margin: .5rem auto; max-width: 720px; font-size: .9rem; font-weight: 600;
}
.grg-privacy { font-size: .78rem; color: var(--grg-muted); margin: .8rem auto 0; max-width: 720px; }

/* ---------- score details ---------- */
/* circle.css floats the circle left; centre it under the heading instead */
.score .c100 { float: none; margin: 1rem auto .5rem; }
.score .content p.grg-score-note { font-size: .82rem; color: var(--grg-muted); margin: -.25rem 0 0; }
.grg-score-empty { clear: both; padding-top: .5rem; }
.grg-score-details { margin-top: 1.25rem; clear: both; }
.grg-verdict {
  border-radius: var(--grg-radius-sm); padding: 1rem 1.25rem; margin: 0 0 1.25rem;
  font-size: .95rem; font-weight: 600; border: 1px solid transparent; line-height: 1.5;
}
.grg-verdict .grg-v-sub { display: block; margin-top: .4rem; font-size: .78rem; font-weight: 500; color: var(--grg-muted); }
.grg-verdict.v-strong { background: var(--grg-green-surface); border-color: rgba(24, 169, 87, .35); color: var(--grg-green); }
.grg-verdict.v-good { background: var(--grg-blue-surface); border-color: var(--grg-border-strong); color: var(--grg-blue-dark); }
.grg-verdict.v-risk { background: var(--grg-yellow-surface); border-color: rgba(217, 119, 6, .35); color: var(--grg-yellow); }
.grg-verdict.v-fail { background: var(--grg-red-surface); border-color: rgba(237, 60, 13, .35); color: var(--grg-red); }

.grg-knock-banner {
  background: var(--grg-red-surface); border: 1px solid rgba(237, 60, 13, .35); border-radius: var(--grg-radius-sm);
  padding: 1rem 1.25rem; margin-bottom: 1.25rem; color: var(--grg-red); font-size: .9rem; font-weight: 600;
}
.grg-knock-banner .grg-sub { color: var(--grg-text-soft); font-weight: 400; font-size: .84rem; margin-top: .25rem; }

.grg-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .8rem; margin-bottom: 1.25rem; }
.grg-tile {
  background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm);
  padding: 1rem .75rem; text-align: center; transition: all .25s;
}
.grg-tile:hover { border-color: var(--grg-border-strong); transform: translateY(-2px); }
.grg-tile-value { font-family: var(--grg-font-heading); font-size: 1.9rem; font-weight: 700; line-height: 1; margin-bottom: .3rem; }
.grg-tile-label { font-size: .72rem; color: var(--grg-muted); text-transform: uppercase; letter-spacing: .5px; }
.grg-tile-value.excellent { color: var(--grg-green); }
.grg-tile-value.good { color: var(--grg-blue-dark); }
.grg-tile-value.fair { color: var(--grg-yellow); }
.grg-tile-value.poor { color: var(--grg-red); }
.grg-tile-value.neutral { color: var(--grg-navy); }

.grg-breakdown {
  background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm);
  padding: 1.1rem 1.25rem; margin-bottom: 1.25rem;
}
.grg-breakdown h4 { font-size: .95rem; margin-bottom: .6rem; color: var(--grg-navy); font-family: var(--grg-font-heading); }
.grg-bd-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid #eef2f7; font-size: .85rem; }
.grg-bd-row:last-of-type { border-bottom: none; }
.grg-bd-row .grg-name { color: var(--grg-text-soft); }
.grg-bd-row .grg-calc { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.grg-bd-row.penalty .grg-calc { color: var(--grg-red); }
.grg-bd-row.total { font-weight: 700; color: var(--grg-navy); }
.grg-bd-note { font-size: .76rem; color: var(--grg-muted); margin-top: .5rem; }

/* ---------- advanced analysis ---------- */
.analysis .section-title { padding-bottom: 20px; }
.grg-tabs {
  display: flex; gap: .25rem; padding: .3rem; background: #fff; border: 1px solid var(--grg-border);
  border-radius: var(--grg-radius-sm); margin-bottom: 1.5rem; overflow-x: auto;
}
.grg-tab {
  padding: .6rem 1.1rem; border: none; background: transparent; color: var(--grg-text-soft);
  font-family: var(--grg-font-heading); font-size: .9rem; font-weight: 500; border-radius: var(--grg-radius-sm);
  cursor: pointer; white-space: nowrap; transition: all .2s;
}
.grg-tab:hover { color: var(--grg-navy); }
.grg-tab.active { background: var(--grg-blue-surface); color: var(--grg-blue-dark); font-weight: 600; }
.grg-panel { display: none; }
.grg-panel.active { display: block; animation: grgFade .3s ease; }
@keyframes grgFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.grg-tier {
  background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm);
  padding: 1.25rem; margin-bottom: 1rem;
}
.grg-tier-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-weight: 700; font-size: .95rem; flex-wrap: wrap; }
.grg-tier-tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .5px; padding: .15rem .6rem; border-radius: 20px; font-weight: 700; }
.grg-tier-tag.req { background: var(--grg-red-surface); color: var(--grg-red); }
.grg-tier-tag.pref { background: var(--grg-yellow-surface); color: var(--grg-yellow); }
.grg-tier-tag.gen { background: var(--grg-blue-surface); color: var(--grg-blue-dark); }
.grg-tier-head .grg-count { color: var(--grg-muted); font-weight: 500; font-size: .82rem; }
.grg-chip-sub { font-size: .76rem; color: var(--grg-muted); margin: .6rem 0 .4rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; display: flex; align-items: center; gap: .6rem; }
.grg-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.grg-chip {
  padding: .32rem .75rem; border-radius: 20px; font-size: .8rem; font-weight: 500;
  border: 1px solid transparent; display: inline-flex; align-items: center; gap: .35rem;
}
.grg-chip.matched { background: var(--grg-green-surface); color: var(--grg-green); border-color: rgba(24, 169, 87, .25); }
.grg-chip.missing { background: var(--grg-red-surface); color: var(--grg-red); border-color: rgba(237, 60, 13, .2); }
.grg-chip.partial { background: var(--grg-yellow-surface); color: #a64d08; border-color: rgba(217, 119, 6, .35); }
.grg-chip.optional { background: #f4f6f9; color: var(--grg-text-soft); border: 1px dashed #aab4c3; }
.grg-alt-list { list-style: none; padding: 0; margin: 0 0 .4rem; font-size: .84rem; color: var(--grg-text-soft); }
.grg-alt-list li { padding: .3rem 0 .3rem 1.4rem; position: relative; line-height: 1.5; }
.grg-alt-list li::before { position: absolute; left: 0; font-weight: 800; }
.grg-alt-list li.ok::before { content: "\2713"; color: var(--grg-green); }
.grg-alt-list li.gap::before { content: "\2717"; color: var(--grg-red); }
.grg-alt-list strong { color: var(--grg-navy); font-weight: 600; }
.grg-chip .grg-how { font-size: .6rem; text-transform: uppercase; letter-spacing: .4px; background: rgba(255, 255, 255, .55); border-radius: 8px; padding: 0 .35rem; }
.grg-chip .grg-cnt { font-size: .68rem; }
.grg-copy-btn {
  background: var(--grg-blue-surface); border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm);
  color: var(--grg-blue-dark); font-size: .72rem; font-weight: 600; font-family: var(--grg-font);
  padding: .15rem .6rem; cursor: pointer; transition: all .2s; text-transform: none; letter-spacing: 0;
}
.grg-copy-btn:hover { border-color: var(--grg-blue); background: rgba(71, 178, 228, .18); }
.grg-tier-hint {
  font-size: .78rem; color: var(--grg-muted); margin-top: .6rem; padding: .6rem .8rem;
  background: var(--grg-input); border-left: 3px solid var(--grg-blue); border-radius: var(--grg-radius-sm); line-height: 1.5;
}

.grg-advisory {
  background: var(--grg-yellow-surface); border: 1px solid rgba(217, 119, 6, .3); border-radius: var(--grg-radius-sm);
  padding: .9rem 1.1rem; margin-bottom: 1rem; font-size: .84rem; color: var(--grg-text-soft);
}
.grg-advisory strong { color: var(--grg-yellow); }

.grg-knock-list { display: flex; flex-direction: column; gap: .75rem; }
.grg-knock-item { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm); }
.grg-k-icon { width: 30px; height: 30px; min-width: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .9rem; }
.grg-k-icon.pass { background: var(--grg-green-surface); color: var(--grg-green); }
.grg-k-icon.risk { background: var(--grg-red-surface); color: var(--grg-red); }
.grg-k-icon.info { background: var(--grg-yellow-surface); color: var(--grg-yellow); }
.grg-k-label { font-weight: 600; font-size: .9rem; color: var(--grg-navy); }
.grg-k-note { font-size: .84rem; color: var(--grg-text-soft); }
.grg-k-badge { display: inline-block; font-size: .68rem; font-weight: 700; border-radius: 10px; padding: .05rem .5rem; margin-left: .35rem; vertical-align: 1px; }
.grg-k-badge.pass { background: var(--grg-green-surface); color: var(--grg-green); }
.grg-k-badge.risk { background: var(--grg-red-surface); color: var(--grg-red); }
.grg-k-badge.info { background: var(--grg-yellow-surface); color: var(--grg-yellow); }

.grg-category-list { display: flex; flex-direction: column; gap: .75rem; }
.grg-cat-row { display: flex; align-items: center; gap: .75rem; }
.grg-cat-name { width: 130px; font-size: .82rem; color: var(--grg-text-soft); font-weight: 600; }
.grg-cat-bar { flex: 1; height: 8px; background: #e8edf5; border-radius: 4px; overflow: hidden; }
.grg-cat-fill { height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--grg-navy), var(--grg-blue)); transition: width 1s ease; }
.grg-cat-stat { width: 50px; text-align: right; font-size: .8rem; font-weight: 600; color: var(--grg-text-soft); }

.grg-quality-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.grg-quality-card { background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm); padding: 1.25rem; }
.grg-quality-card h4 { font-size: .95rem; margin-bottom: .75rem; color: var(--grg-navy); font-family: var(--grg-font-heading); }
.grg-q-item { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid #eef2f7; font-size: .85rem; }
.grg-q-item:last-child { border-bottom: none; }
.grg-q-item .grg-q-label { color: var(--grg-text-soft); }
.grg-q-hint { display: block; font-size: .74rem; color: var(--grg-muted); line-height: 1.4; margin-top: .1rem; }
.grg-q-item .grg-q-value { font-weight: 700; white-space: nowrap; }
.grg-q-value.pass { color: var(--grg-green); }
.grg-q-value.warn { color: var(--grg-yellow); }
.grg-q-value.fail { color: var(--grg-red); }
.grg-badge-manual { font-size: .62rem; text-transform: uppercase; letter-spacing: .4px; background: var(--grg-yellow-surface); color: var(--grg-yellow); border-radius: 8px; padding: .05rem .4rem; margin-left: .4rem; }

.grg-suggestion-list { display: flex; flex-direction: column; gap: .75rem; }
.grg-suggestion { display: flex; gap: .75rem; padding: 1rem; background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm); }
.grg-s-icon { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 800; }
.grg-s-icon.high { background: var(--grg-red-surface); color: var(--grg-red); }
.grg-s-icon.med { background: var(--grg-yellow-surface); color: var(--grg-yellow); }
.grg-s-icon.low { background: var(--grg-green-surface); color: var(--grg-green); }
.grg-s-text { font-size: .88rem; color: var(--grg-text-soft); line-height: 1.5; }
.grg-s-text strong { color: var(--grg-navy); }

.grg-section-map { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.25rem; }
.grg-section-map h4 { font-size: .9rem; color: var(--grg-navy); font-family: var(--grg-font-heading); margin-bottom: .25rem; }
.grg-sec-item { background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm); padding: .8rem 1rem; }
.grg-sec-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.grg-sec-name { font-weight: 600; font-size: .88rem; color: var(--grg-navy); }
.grg-sec-pct { font-size: .85rem; font-weight: 700; color: var(--grg-blue-dark); }
.grg-sec-bar { height: 6px; background: #e8edf5; border-radius: 3px; overflow: hidden; }
.grg-sec-fill { height: 100%; background: linear-gradient(90deg, var(--grg-navy), var(--grg-blue)); border-radius: 3px; transition: width 1s ease; }

.grg-legend { display: flex; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.grg-legend-item { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--grg-text-soft); font-weight: 600; }
.grg-swatch { width: 14px; height: 14px; border-radius: 4px; border-bottom: 2px solid; }
.grg-swatch.match { background: rgba(71, 178, 228, .2); border-color: var(--grg-blue); }
.grg-swatch.miss { background: rgba(237, 60, 13, .15); border-color: var(--grg-red); }
.grg-swatch.alt { background: #eef1f5; border-color: #aab4c3; border-bottom-style: dashed; }
.grg-hl-title { margin: 1.25rem 0 .4rem; font-size: .95rem; color: var(--grg-navy); font-family: var(--grg-font-heading); display: flex; align-items: baseline; gap: .5rem; }
.grg-hl-count { font-size: .76rem; font-weight: 600; color: var(--grg-muted); }
.grg-rendered {
  background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm); padding: 1.25rem;
  white-space: pre-wrap; word-wrap: break-word; font-size: .86rem; line-height: 1.8; max-height: 520px; overflow-y: auto;
}
.grg-rendered mark { background: rgba(71, 178, 228, .2); color: var(--grg-blue-dark); padding: 1px 3px; border-radius: 3px; border-bottom: 2px solid var(--grg-blue); }
.grg-rendered mark.miss { background: rgba(237, 60, 13, .12); color: var(--grg-red); border-bottom-color: var(--grg-red); }
.grg-rendered mark.alt, .grg-textarea-overlay mark.alt { background: #eef1f5; color: var(--grg-text-soft); border-bottom: 2px dashed #aab4c3; }

.grg-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: 1.5rem; }

/* ---------- share prompt ---------- */
.grg-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(20, 30, 48, .6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.grg-modal[hidden] { display: none; }
body.grg-modal-open { overflow: hidden; }
body.grg-modal-open .back-to-top { display: none !important; }
.grg-modal-box {
  background: #fff; border-radius: var(--grg-radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); width: 100%; max-width: 560px;
  max-height: calc(100vh - 32px); overflow-y: auto; padding: 1.5rem 1.5rem 1.25rem; animation: grgFade .25s ease; outline: none;
}
.grg-share-title { font-family: var(--grg-font-heading); color: var(--grg-navy); font-size: 1.35rem; font-weight: 600; margin: 0 0 .75rem; }
.grg-share-why { font-size: .88rem; color: var(--grg-text-soft); line-height: 1.55; background: var(--grg-blue-surface); border-left: 3px solid var(--grg-blue); border-radius: var(--grg-radius-sm); padding: .75rem .9rem; margin-bottom: 1rem; }
.grg-share-why strong { color: var(--grg-navy); }
.grg-share-card { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto 1rem; border-radius: var(--grg-radius-sm); box-shadow: var(--grg-shadow); background: #0a1633; }
.grg-share-card.is-wide { max-width: 440px; }
.grg-share-label { font-size: .9rem; margin-bottom: .35rem; }
.grg-share-text { font-size: .85rem; line-height: 1.5; resize: vertical; }
.grg-share-opt { display: flex; align-items: center; gap: .45rem; font-size: .84rem; color: var(--grg-text-soft); margin: .6rem 0 .9rem; cursor: pointer; }
.grg-share-buttons { display: flex; flex-wrap: wrap; gap: .45rem; }
.grg-share-text + .grg-share-buttons { margin-top: .9rem; }   /* no score option above the buttons */
.grg-share-btn {
  display: inline-block; font-family: var(--grg-font); font-size: .82rem; font-weight: 600; padding: .45rem .9rem; border-radius: 50px;
  border: 1px solid var(--grg-border-strong); background: var(--grg-blue-surface); color: var(--grg-blue-dark); cursor: pointer; text-decoration: none;
}
.grg-share-btn:hover { background: var(--grg-blue); border-color: var(--grg-blue); color: var(--grg-on-blue); text-decoration: none; }
.grg-share-btn[data-share="linkedin"] { background: #0a66c2; border-color: #0a66c2; color: #fff; }
.grg-share-btn[data-share="linkedin"]:hover { background: #084d93; }
.grg-modal-foot { display: flex; justify-content: flex-end; margin-top: .75rem; }
.grg-modal-foot .grg-btn-ghost { border-color: var(--grg-border-strong); min-width: 120px; }
.grg-modal-foot .grg-btn-ghost[disabled] { opacity: .55; cursor: not-allowed; }
@media (max-width: 480px) { .grg-modal-box { padding: 1.1rem; } .grg-share-title { font-size: 1.15rem; } }
/* ---------- What is ATS ---------- */
.why-us .content p { color: var(--grg-text-soft); }
.grg-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 0; }
@media (max-width: 768px) { .grg-stats { grid-template-columns: 1fr; } }
.grg-stat { background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius-sm); padding: 1.1rem; }
.grg-stat-num { font-family: var(--grg-font-heading); font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--grg-blue-dark); margin-bottom: .5rem; }
.grg-stat-label { font-size: .84rem; color: var(--grg-text-soft); line-height: 1.4; }

/* ---------- Salary check ---------- */
.grg-sal-form { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) { .grg-sal-form { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .grg-sal-form { grid-template-columns: 1fr; } }
.grg-sal-form .grg-field { margin-bottom: 0; }
.grg-sal-form .grg-label { font-size: .95rem; }
.grg-sal-actions { margin-top: .5rem; }
.grg-sal-results { margin-bottom: 1.5rem; }
.grg-chart-card .grg-chart-title { font-size: 1.05rem; color: var(--grg-navy); font-family: var(--grg-font-heading); margin-bottom: .2rem; }
.grg-chart-card .grg-hint { margin: 0 0 1rem; }
.grg-chart-card svg { width: 100%; height: auto; display: block; }
.grg-disclaimer { font-size: .82rem; color: var(--grg-text-soft); line-height: 1.6; }
.grg-disclaimer h3 { font-size: 1rem; color: var(--grg-navy); font-family: var(--grg-font-heading); margin-bottom: .5rem; }
.grg-disclaimer strong { color: var(--grg-navy); }
.ch-grid { stroke: #e8edf5; stroke-width: 1; }
.ch-axis { fill: var(--grg-muted); font-size: 11px; font-family: var(--grg-font); }
.ch-line { fill: none; stroke: var(--grg-blue); stroke-width: 2.5; stroke-linejoin: round; }
.ch-area { fill: rgba(71, 178, 228, .14); }
.ch-now { stroke-dasharray: 6 5; stroke-width: 2; }
.ch-now.gain { stroke: var(--grg-green); }
.ch-now.loss { stroke: var(--grg-red); }
.ch-label { font-size: 11.5px; font-weight: 700; font-family: var(--grg-font); }
.ch-label.gain { fill: var(--grg-green); }
.ch-label.loss { fill: var(--grg-red); }
.ch-label.needed { fill: var(--grg-blue-dark); }
.ch-dot { fill: var(--grg-blue); }
.ch-bar { fill: rgba(71, 178, 228, .75); }
.ch-bar.neg { fill: var(--grg-green); opacity: .8; }

/* ---------- contact / footer ---------- */
.grg-contact { font-size: 1.25rem; }
#footer .footer-bottom { padding-top: 24px; padding-bottom: 24px; color: #fff; text-align: center; }

/* ---------- toast ---------- */
.grg-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #fff; border: 1px solid var(--grg-border-strong); border-radius: var(--grg-radius-sm);
  padding: .8rem 1.4rem; color: var(--grg-navy); font-size: .88rem; font-weight: 600;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .12); z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease; max-width: 90vw;
}
.grg-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.grg-toast.error { border-color: rgba(237, 60, 13, .5); color: var(--grg-red); }

/* ---------- print ---------- */
@media print {
  #header, #hero, .grg-actions, .back-to-top, #services, #faq, #guides, #contact, .grg-btn-scan, .grg-btn-secondary, .grg-btn-ghost { display: none !important; }
  #analysis, .grg-panel { display: block !important; }
}

/* ==========================================================================
   Multi-page layout: inner pages, navigation, home, blog and articles
   ========================================================================== */

/* Page titles use H1 with the theme's section-title look */
.section-title h1 {
  font-size: 32px; font-weight: bold; text-transform: uppercase; margin-bottom: 20px; padding-bottom: 20px;
  position: relative; color: #37517e;
}
.section-title h1::before {
  content: ''; position: absolute; display: block; width: 120px; height: 1px; background: #ddd; bottom: 1px; left: calc(50% - 60px);
}
.section-title h1::after {
  content: ''; position: absolute; display: block; width: 40px; height: 3px; background: #47b2e4; bottom: 0; left: calc(50% - 20px);
}
@media (max-width: 575px) { .section-title h1, .section-title h2 { font-size: 26px; } }

/* Pages without a breadcrumb bar sit below the fixed header */
.grg-inner-main { margin-top: 72px; }
@media (max-width: 992px) { .grg-inner-main { margin-top: 68px; } }

/* Seven menu items fit on smaller desktops */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-menu > ul > li { padding-left: 18px; }
  .nav-menu a { font-size: 14px; }
  #header .logo { font-size: 26px; letter-spacing: 1px; }
}

/* Phones and tablets: centre the site name; the menu button stays on the right */
@media (max-width: 991px) {
  #header .logo.mr-auto { margin-left: auto !important; margin-right: auto !important; text-align: center; }
}
@media (max-width: 400px) { #header .logo { font-size: 24px; } }

.breadcrumbs ol { padding-bottom: 0; }
.breadcrumbs ol a { color: #37517e; }
.breadcrumbs ol a:hover { color: var(--grg-blue-dark); }

.grg-btn-link { line-height: 39px; text-decoration: none; color: var(--grg-on-blue); }
.grg-btn-link:hover { color: var(--grg-on-blue); }
a.grg-btn-secondary, a.grg-btn-ghost { text-decoration: none; }

.grg-read-more { margin: .25rem 0 0; }
.grg-read-more a { font-weight: 600; color: var(--grg-blue-dark); display: inline-flex; align-items: center; gap: .25rem; }
.grg-read-more a:hover { color: var(--grg-navy); }
.grg-read-more i { font-size: 1.1rem; transition: transform .2s; }
.grg-read-more a:hover i { transform: translateX(3px); }
.faq .faq-list .grg-read-more { padding-top: .6rem; }
/* The theme styles every link in the FAQ list as a question toggle; undo that for the guide link */
.faq .faq-list .grg-read-more a { padding: 0; display: inline-flex; font-family: var(--grg-font); font-size: .95rem; line-height: 1.5; color: var(--grg-blue-dark); }
.faq .faq-list .grg-read-more a:hover { color: var(--grg-navy); }

/* ---------- salary page ---------- */
.grg-salary-page { padding-top: 40px; }
.grg-salary-page .section-title { padding-bottom: 22px; }
/* ---------- guide cards ---------- */
.grg-guides .section-title { padding-bottom: 24px; }
.grg-post-col { margin-bottom: 1.5rem; }
.grg-post-col[hidden] { display: none !important; }
.grg-post-card {
  position: relative; background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius);
  padding: 1.4rem 1.4rem 1.2rem; height: 100%; display: flex; flex-direction: column;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.grg-post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(55, 81, 126, .12); border-color: var(--grg-border-strong); }
.grg-post-card .grg-post-title { font-size: 1.12rem; line-height: 1.35; margin: .8rem 0 .5rem; font-weight: 600; }
.grg-post-card .grg-post-title a { color: var(--grg-navy); }
.grg-post-card:hover .grg-post-title a { color: var(--grg-blue-dark); }
.grg-post-card p { font-size: .88rem; color: var(--grg-text-soft); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.grg-stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--grg-radius); }
.grg-stretched:focus-visible::after { outline: 3px solid rgba(71, 178, 228, .5); outline-offset: 2px; }
.grg-post-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--grg-muted); padding-top: .8rem; border-top: 1px solid #eef2f7; }
.grg-post-meta i { vertical-align: -2px; }
.grg-post-link { font-weight: 600; color: var(--grg-blue-dark); display: inline-flex; align-items: center; gap: .15rem; }
.grg-tag {
  display: inline-block; align-self: flex-start; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--grg-blue-dark); background: var(--grg-blue-surface); border-radius: 20px; padding: .22rem .7rem; position: relative; z-index: 2;
}
a.grg-tag:hover { background: rgba(71, 178, 228, .18); color: var(--grg-navy); }

/* ---------- blog index ---------- */
.grg-blog { padding-top: 40px; }
.grg-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0 0 2rem; }
a.grg-filter-btn { display: inline-block; text-decoration: none; }
.grg-filter-btn {
  font-family: var(--grg-font-heading); font-weight: 500; font-size: .92rem; color: var(--grg-navy); background: #fff;
  border: 1px solid var(--grg-border-strong); border-radius: 50px; padding: .45rem 1.1rem; cursor: pointer; transition: all .2s;
}
.grg-filter-btn span { font-size: .75rem; color: var(--grg-muted); margin-left: .2rem; }
.grg-filter-btn:hover { background: var(--grg-blue-surface); }
.grg-filter-btn.active { background: var(--grg-blue); border-color: var(--grg-blue); color: var(--grg-on-blue); }
.grg-filter-btn.active span { color: rgba(12, 35, 64, .85); }

.grg-source { font-size: .8rem; color: var(--grg-muted); white-space: nowrap; }

/* ---------- call to action ---------- */
.grg-cta-banner {
  background: linear-gradient(135deg, #37517e 0%, #2a4066 100%); border-radius: 12px; padding: 1.75rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin: 2rem 0;
}
.grg-cta-banner h3 { color: #fff; font-size: 1.35rem; font-weight: 600; margin: 0 0 .35rem; }
.grg-cta-banner p { color: rgba(255, 255, 255, .8); margin: 0; font-size: .95rem; max-width: 560px; }
.grg-cta-btn {
  display: inline-flex; align-items: center; gap: .35rem; background: var(--grg-blue); color: var(--grg-on-blue); border-radius: 50px;
  padding: .8rem 1.7rem; font-family: var(--grg-font-heading); font-weight: 500; letter-spacing: .5px; white-space: nowrap; transition: background .3s;
}
.grg-cta-btn:hover { background: var(--grg-blue-light); color: var(--grg-on-blue); }

/* ---------- article ---------- */
/* The theme sets overflow: hidden on every section, which disables position: sticky */
.grg-article-section { padding: 36px 0 50px; overflow: visible; }
.grg-article-header h1 { font-size: 2.25rem; color: var(--grg-navy); font-weight: 700; line-height: 1.22; margin: .8rem 0 .8rem; }
@media (max-width: 768px) { .grg-article-header h1 { font-size: 1.7rem; } }
.grg-article-lead { font-size: 1.12rem; color: var(--grg-text-soft); line-height: 1.6; margin-bottom: 1rem; }
.grg-article-meta {
  display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--grg-muted);
  padding-bottom: 1.2rem; margin-bottom: 1.5rem; border-bottom: 1px solid #e8edf5;
}
.grg-article-meta i { vertical-align: -2px; color: var(--grg-blue); }
.grg-short-answer {
  background: linear-gradient(135deg, rgba(71, 178, 228, .10), rgba(55, 81, 126, .05)); border-left: 4px solid var(--grg-blue);
  border-radius: 8px; padding: 1.1rem 1.35rem; margin-bottom: 2rem;
}
.grg-short-answer-label {
  display: flex; align-items: center; gap: .35rem; font-family: var(--grg-font-heading); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .6px; color: var(--grg-navy); margin-bottom: .35rem;
}
.grg-short-answer-label i { font-size: 1.1rem; color: var(--grg-blue-dark); }
.grg-short-answer p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: #37474f; }

.grg-article-body { font-size: 1.02rem; line-height: 1.8; color: #3d4852; }
.grg-article-body h2, .grg-takeaways h2 { scroll-margin-top: 96px; }
.grg-article-body h2 { font-size: 1.55rem; color: var(--grg-navy); font-weight: 600; margin: 2.2rem 0 .9rem; line-height: 1.3; }
.grg-article-body h3 { font-size: 1.2rem; color: var(--grg-navy); font-weight: 600; margin: 1.6rem 0 .6rem; }
.grg-article-body p { margin-bottom: 1.05rem; }
.grg-article-body a { color: var(--grg-blue-dark); text-decoration: underline; text-decoration-color: rgba(32, 157, 216, .35); text-underline-offset: 3px; }
.grg-article-body a:hover { text-decoration-color: currentColor; }
.grg-article-body ul, .grg-article-body ol { padding-left: 1.3rem; margin-bottom: 1.2rem; }
.grg-article-body li { margin-bottom: .45rem; }
.grg-article-body strong { color: #2d3a4a; }

ul.grg-checklist { list-style: none; padding-left: 0; }
ul.grg-checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
ul.grg-checklist li::before {
  content: ''; position: absolute; left: .45rem; top: .42em; width: .42rem; height: .78rem;
  border: solid var(--grg-green); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
ol.grg-numbered { list-style: none; counter-reset: grg-step; padding-left: 0; }
ol.grg-numbered > li { counter-increment: grg-step; position: relative; padding-left: 2.7rem; margin-bottom: .95rem; }
ol.grg-numbered > li::before {
  content: counter(grg-step); position: absolute; left: 0; top: .15rem; width: 1.85rem; height: 1.85rem; border-radius: 50%;
  background: var(--grg-blue); color: #fff; font-family: var(--grg-font-heading); font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}

.grg-callout { border: 1px solid; border-radius: 8px; padding: 1rem 1.2rem; margin: 1.5rem 0; font-size: .97rem; line-height: 1.65; }
.grg-callout.tip { background: var(--grg-green-surface); border-color: rgba(24, 169, 87, .3); }
.grg-callout.tip strong { color: var(--grg-green); }
.grg-callout.info { background: var(--grg-blue-surface); border-color: var(--grg-border-strong); }
.grg-callout.info strong { color: var(--grg-blue-dark); }
.grg-callout.warning { background: var(--grg-yellow-surface); border-color: rgba(217, 119, 6, .3); }
.grg-callout.warning strong { color: var(--grg-yellow); }

.grg-table-wrap { overflow-x: auto; margin: 1.25rem 0 1.6rem; border: 1px solid #e3e9f2; border-radius: 8px; }
.grg-table { width: 100%; border-collapse: collapse; font-size: .93rem; line-height: 1.5; }
.grg-table th { background: #f3f5fa; color: var(--grg-navy); font-family: var(--grg-font-heading); font-weight: 600; text-align: left; padding: .7rem .9rem; border-bottom: 1px solid #e3e9f2; white-space: nowrap; }
.grg-table td { padding: .65rem .9rem; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.grg-table tr:last-child td { border-bottom: none; }
.grg-score-pill { display: inline-block; font-weight: 700; font-size: .78rem; padding: .08rem .55rem; border-radius: 20px; white-space: nowrap; margin-right: .25rem; }
.grg-score-pill.poor { background: var(--grg-red-surface); color: var(--grg-red); }
.grg-score-pill.fair { background: var(--grg-yellow-surface); color: var(--grg-yellow); }
.grg-score-pill.good { background: var(--grg-blue-surface); color: var(--grg-blue-dark); }
.grg-score-pill.excellent { background: var(--grg-green-surface); color: var(--grg-green); }

.grg-example { display: grid; gap: .6rem; margin: 1.2rem 0 1.5rem; }
.grg-example-item { border-left: 4px solid; border-radius: 8px; padding: .85rem 1.1rem; font-size: .96rem; line-height: 1.6; }
.grg-example-item.bad { background: var(--grg-red-surface); border-color: var(--grg-red); }
.grg-example-item.good { background: var(--grg-green-surface); border-color: var(--grg-green); }
.grg-example-label { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: .25rem; }
.grg-example-item.bad .grg-example-label { color: var(--grg-red); }
.grg-example-item.good .grg-example-label { color: var(--grg-green); }
pre.grg-plain {
  background: #f3f5fa; color: #2d3a4a; border: 1px solid #e3e9f2; border-radius: 8px; padding: 1rem 1.2rem; font-size: .88rem; line-height: 1.65;
  white-space: pre-wrap; word-break: break-word; margin: .9rem 0 1.25rem; font-family: "Cascadia Code", "Fira Code", Consolas, monospace;
}

.grg-takeaways { background: #f3f5fa; border-radius: 10px; padding: 1.5rem 1.75rem 1rem; margin: 2.5rem 0 0; }
.grg-takeaways h2 { font-size: 1.3rem; color: var(--grg-navy); font-weight: 600; margin: 0 0 1rem; }
.grg-takeaways li { font-size: .98rem; line-height: 1.6; color: #3d4852; }

.grg-article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
@media (max-width: 576px) { .grg-article-nav { grid-template-columns: 1fr; } }
.grg-article-nav-link {
  display: block; border: 1px solid var(--grg-border); border-radius: var(--grg-radius); padding: .9rem 1.1rem;
  color: var(--grg-navy); font-family: var(--grg-font-heading); font-weight: 500; line-height: 1.35; transition: all .2s;
}
.grg-article-nav-link span { display: block; font-family: var(--grg-font); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--grg-muted); margin-bottom: .2rem; }
.grg-article-nav-link.next { text-align: right; }
.grg-article-nav-link:hover { border-color: var(--grg-blue); background: var(--grg-blue-surface); color: var(--grg-blue-dark); }

.grg-article-aside { margin-top: 2rem; }
@media (min-width: 992px) { .grg-article-aside { margin-top: 0; } .grg-sidebar { position: sticky; top: 96px; } }
.grg-side-card { background: #fff; border: 1px solid var(--grg-border); border-radius: var(--grg-radius); padding: 1.2rem 1.3rem; margin-bottom: 1.25rem; }
.grg-side-card h4 { font-size: .95rem; font-weight: 600; color: var(--grg-navy); text-transform: uppercase; letter-spacing: .5px; margin-bottom: .8rem; }
.grg-toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid #e8edf5; }
.grg-toc li a { display: block; padding: .3rem 0 .3rem .9rem; margin-left: -2px; border-left: 2px solid transparent; font-size: .88rem; line-height: 1.4; color: var(--grg-text-soft); }
.grg-toc li a:hover { color: var(--grg-blue-dark); }
.grg-toc li a.active { color: var(--grg-blue-dark); border-left-color: var(--grg-blue); font-weight: 600; }
.grg-side-cta { background: linear-gradient(160deg, #37517e 0%, #2a4066 100%); border: 0; text-align: center; color: #fff; }
.grg-side-cta > i { font-size: 34px; color: var(--grg-blue-light); }
.grg-side-cta h4 { color: #fff; text-transform: none; letter-spacing: 0; font-size: 1.15rem; margin: .4rem 0 .5rem; }
.grg-side-cta p { color: rgba(255, 255, 255, .8); font-size: .88rem; margin-bottom: 1rem; }
.grg-side-links { list-style: none; padding: 0; margin: 0; }
.grg-side-links li + li { border-top: 1px solid #eef2f7; }
.grg-side-links a { display: block; padding: .55rem 0; font-size: .9rem; line-height: 1.4; color: var(--grg-navy); }
.grg-side-links a:hover { color: var(--grg-blue-dark); }

/* ---------- 404 ---------- */
.grg-not-found { padding: 60px 0; }
.grg-not-found-code { font-family: var(--grg-font-heading); font-size: 6rem; font-weight: 700; line-height: 1; color: var(--grg-blue-dark); }
.grg-not-found h1 { color: var(--grg-navy); font-size: 2rem; margin: .5rem 0 .75rem; }
.grg-not-found p { color: var(--grg-text-soft); max-width: 560px; margin: 0 auto 1.5rem; }

/* ---------- footer ---------- */
.grg-footer-top { padding: 48px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.grg-footer-brand { font-family: var(--grg-font-heading); color: #fff; font-size: 1.5rem; font-weight: 500; letter-spacing: 2px; text-transform: uppercase; margin-bottom: .75rem; }
.grg-footer-about p { color: rgba(255, 255, 255, .7); font-size: .9rem; line-height: 1.6; max-width: 360px; }
.grg-footer-about a, .grg-footer-col a { color: rgba(255, 255, 255, .8); }
.grg-footer-about a:hover, .grg-footer-col a:hover { color: var(--grg-blue-on-navy); }
.grg-footer-col { margin-bottom: 1.5rem; }
.grg-footer-col h3 { color: #fff; font-size: 1rem; font-weight: 600; margin-bottom: .8rem; }
.grg-footer-col ul { list-style: none; padding: 0; margin: 0; }
.grg-footer-col li { padding: .25rem 0; font-size: .9rem; }

/* ---------- cookie choice (grg-consent.js) ---------- */
.grg-consent {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 3000; max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
  background: var(--grg-navy); color: #fff; border-radius: var(--grg-radius); padding: 1rem 1.25rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25); font-size: .88rem; line-height: 1.5;
}
.grg-consent[hidden] { display: none; }
.grg-consent-text { margin: 0; flex: 1 1 420px; }
.grg-consent-text a { color: var(--grg-blue-on-navy); text-decoration: underline; }
.grg-consent-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
/* Accept and Reject are the same size and weight: neither choice is pushed */
.grg-consent-btn {
  min-width: 110px; padding: .55rem 1.2rem; border-radius: 50px; border: 2px solid var(--grg-blue);
  background: var(--grg-blue); color: var(--grg-on-blue); font-family: var(--grg-font-heading); font-weight: 600;
  font-size: .95rem; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.grg-consent-btn:hover, .grg-consent-btn:focus-visible { background: #fff; border-color: #fff; color: var(--grg-navy); }
.grg-consent-btn:focus-visible { outline: 3px solid var(--grg-blue-on-navy); outline-offset: 2px; }
body.grg-consent-open .back-to-top { display: none !important; }
@media (max-width: 575px) {
  .grg-consent { left: .5rem; right: .5rem; bottom: .5rem; padding: .9rem 1rem; }
  .grg-consent-actions { width: 100%; }
  .grg-consent-btn { flex: 1 1 0; }
}
@media print { .grg-consent { display: none !important; } }

/* "Cookie settings" in the footer: a button that looks like the links around it */
.grg-footer-link {
  background: none; border: 0; padding: 0; font: inherit; color: rgba(255, 255, 255, .8); cursor: pointer;
}
.grg-footer-link:hover, .grg-footer-link:focus-visible { color: var(--grg-blue-on-navy); }
