/* Grammar Reading child theme */
:root {
	--gr-ink: #111827;
	--gr-muted: #4b5563;
	--gr-soft: #6b7280;
	--gr-line: #e5e7eb;
	--gr-bg: #ffffff;
	--gr-tint: #f5f6fb;
	--gr-brand: #3f37c9;
	--gr-brand-2: #5b54e8;
	--gr-brand-50: #eef0ff;
	--gr-accent: #f5a524;
	--gr-ok: #047857;
	--gr-ok-50: #e7f7ef;
	--gr-bad: #c81e1e;
	--gr-bad-50: #fdecec;
	--gr-warn-50: #fff6e0;
	--gr-check: #3f37c9;
	--gr-learn: #047857;
	--gr-convert: #b45309;
	--gr-radius: 14px;
	--gr-shadow: 0 1px 2px rgba(17, 24, 39, .05), 0 8px 24px rgba(17, 24, 39, .06);
	--gr-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

.gr-page { color: var(--gr-ink); }
.gr-page *, .gr-page *::before, .gr-page *::after { box-sizing: border-box; }
.gr-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.gr-narrow { max-width: 820px; }
.gr-center { text-align: center; margin-top: 28px; }
.gr-ico { flex: none; vertical-align: -0.2em; }

.gr-page h1, .gr-page h2, .gr-shead h2, .gr-posttools__title { font-family: var(--gr-serif); letter-spacing: -0.01em; color: var(--gr-ink); }
.gr-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gr-brand); }
.gr-lead { font-size: 1.125rem; line-height: 1.65; color: var(--gr-muted); margin: 0 0 1.25rem; max-width: 46rem; }

/* Buttons */
.gr-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.gr-btn:active { transform: translateY(1px); }
.gr-btn--lg { padding: 13px 20px; font-size: 16px; }
.gr-btn--primary { background: var(--gr-brand); color: #fff; }
.gr-btn--primary:hover, .gr-btn--primary:focus-visible { background: var(--gr-brand-2); color: #fff; }
.gr-btn--soft { background: var(--gr-brand-50); color: var(--gr-brand); }
.gr-btn--soft:hover { background: #e0e3ff; color: var(--gr-brand); }
.gr-btn--ghost { background: transparent; color: var(--gr-muted); border-color: var(--gr-line); }
.gr-btn--ghost:hover { color: var(--gr-ink); border-color: #cbd0d8; background: #fafafa; }
.gr-btn--sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.gr-btn--light { background: #fff; color: var(--gr-brand); }
.gr-btn--light:hover { background: var(--gr-brand-50); color: var(--gr-brand); }
.gr-btn--outline { border-color: rgba(255, 255, 255, .6); color: #fff; background: transparent; }
.gr-btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.gr-btn.is-on { background: var(--gr-brand); color: #fff; border-color: var(--gr-brand); }
.gr-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--gr-brand); text-decoration: none; }
.gr-link:hover { text-decoration: underline; }

/* Hero */
.gr-hero { position: relative; padding: 56px 0 28px; background:
	radial-gradient(900px 400px at 85% -10%, rgba(91, 84, 232, .14), transparent 60%),
	radial-gradient(700px 300px at -10% 10%, rgba(245, 165, 36, .12), transparent 60%),
	var(--gr-bg); }
.gr-hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.gr-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; }
.gr-hero h1 span { color: var(--gr-brand); }
.gr-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.gr-search { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--gr-line); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: var(--gr-shadow); max-width: 600px; }
.gr-search > .gr-ico { color: var(--gr-soft); }
.gr-search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; padding: 10px 0; box-shadow: none; color: var(--gr-ink); }
.gr-search:focus-within { border-color: var(--gr-brand-2); box-shadow: 0 0 0 4px rgba(91, 84, 232, .15); }
.gr-search__sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--gr-line); border-radius: 12px; box-shadow: var(--gr-shadow); }
.gr-search__sugg a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--gr-ink); text-decoration: none; }
.gr-search__sugg a small { display: block; color: var(--gr-soft); font-size: 13px; }
.gr-search__sugg a:hover, .gr-search__sugg a.is-active { background: var(--gr-brand-50); }

.gr-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: var(--gr-soft); }
.gr-chip { padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--gr-line); color: var(--gr-ink); text-decoration: none; font-weight: 500; }
.gr-chip:hover { border-color: var(--gr-brand-2); color: var(--gr-brand); }

/* Hero mini game */
.gr-play { background: #fff; border: 1px solid var(--gr-line); border-radius: 20px; padding: 26px; box-shadow: 0 30px 60px -30px rgba(63, 55, 201, .35), var(--gr-shadow); }
.gr-play__head { display: flex; justify-content: space-between; align-items: center; }
.gr-play__head .gr-eyebrow { margin: 0; }
.gr-play__count { font-size: 13px; color: var(--gr-soft); }
.gr-play__task { font-family: var(--gr-serif); font-size: 1.6rem; font-weight: 700; margin: 14px 0 2px; }
.gr-play__hint { margin: 0 0 14px; font-size: 14px; color: var(--gr-soft); }
.gr-play__sentence { display: flex; flex-wrap: wrap; gap: 6px; font-size: 1.25rem; line-height: 1.5; padding: 16px; margin: 0; background: var(--gr-tint); border-radius: 12px; }
.gr-word { border: 1px solid transparent; background: #fff; border-radius: 8px; padding: 2px 8px; font: inherit; color: var(--gr-ink); cursor: pointer; }
.gr-word:hover { border-color: var(--gr-brand-2); }
.gr-word.is-right { background: var(--gr-ok-50); border-color: var(--gr-ok); color: var(--gr-ok); font-weight: 700; }
.gr-word.is-wrong { background: var(--gr-bad-50); border-color: var(--gr-bad); color: var(--gr-bad); text-decoration: line-through; }
.gr-play__why { min-height: 3em; margin: 12px 0; color: var(--gr-muted); font-size: 15px; }
.gr-play__foot { display: flex; justify-content: space-between; align-items: center; }
.gr-play__score { font-size: 14px; color: var(--gr-muted); }

.gr-stats { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gr-stats li { background: rgba(255, 255, 255, .7); border: 1px solid var(--gr-line); border-radius: var(--gr-radius); padding: 16px 18px; }
.gr-stats b { display: block; font-family: var(--gr-serif); font-size: 1.9rem; color: var(--gr-brand); line-height: 1.1; }
.gr-stats span { font-size: 14px; color: var(--gr-muted); }

/* Sections */
.gr-sec { padding: 64px 0; }
.gr-sec--tight { padding: 28px 0; }
.gr-sec--tint { background: var(--gr-tint); }
.gr-shead { margin-bottom: 28px; }
.gr-shead h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); line-height: 1.15; margin: 0 0 10px; }
.gr-shead .gr-lead { font-size: 1.05rem; margin: 0; }
.gr-grouptitle { font-size: 1.4rem; margin: 0 0 16px; }

.gr-grid { display: grid; gap: 18px; }
.gr-grid--3 { grid-template-columns: repeat(3, 1fr); }
.gr-grid--topics { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.gr-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gr-tabs button { border: 1px solid var(--gr-line); background: #fff; color: var(--gr-muted); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gr-tabs button.is-on { background: var(--gr-ink); border-color: var(--gr-ink); color: #fff; }

/* Badges + cards */
.gr-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; border-radius: 11px; font-weight: 800; font-size: 15px; background: var(--gr-brand-50); color: var(--gr-brand); }
.gr-badge--check { background: #eceaff; color: var(--gr-check); }
.gr-badge--learn { background: var(--gr-ok-50); color: var(--gr-learn); }
.gr-badge--convert { background: #fff1dc; color: var(--gr-convert); }

.gr-tcard { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--gr-line); border-radius: var(--gr-radius); padding: 20px; color: var(--gr-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.gr-tcard:hover { border-color: #c9cdf8; box-shadow: var(--gr-shadow); transform: translateY(-2px); color: var(--gr-ink); }
.gr-tcard__title { font-family: inherit !important; font-size: 1.08rem; margin: 6px 0 0; line-height: 1.3; }
.gr-tcard p { margin: 0; color: var(--gr-muted); font-size: 15px; line-height: 1.55; flex: 1; }
.gr-tcard__meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--gr-soft); margin-top: 6px; }
.gr-tcard:hover .gr-tcard__meta .gr-ico { color: var(--gr-brand); transform: translateX(3px); transition: transform .15s; }
.gr-tcard[hidden] { display: none; }

.gr-topic { background: #fff; border: 1px solid var(--gr-line); border-radius: var(--gr-radius); padding: 20px; }
.gr-topic__head { display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--gr-ink); }
.gr-topic__head h3 { margin: 0; font-size: 1.1rem; }
.gr-topic__head small { color: var(--gr-soft); font-size: 13px; }
.gr-topic__head:hover h3 { color: var(--gr-brand); }
.gr-topic p { margin: 12px 0; color: var(--gr-muted); font-size: 15px; line-height: 1.5; }
.gr-topic ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.gr-topic li a { display: block; padding: 6px 0 6px 16px; position: relative; font-size: 14px; color: var(--gr-ink); text-decoration: none; border-top: 1px dashed var(--gr-line); }
.gr-topic li a::before { content: ""; position: absolute; left: 2px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--gr-accent); }
.gr-topic li a:hover { color: var(--gr-brand); }

/* FAQ */
.gr-faq { display: grid; gap: 10px; }
.gr-faq__item { background: #fff; border: 1px solid var(--gr-line); border-radius: 12px; }
.gr-faq__item summary { list-style: none; cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 650; position: relative; }
.gr-faq__item summary::-webkit-details-marker { display: none; }
.gr-faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; line-height: 1; color: var(--gr-brand); }
.gr-faq__item[open] summary::after { content: "\2212"; }
.gr-faq__a { padding: 0 18px 16px; color: var(--gr-muted); }
.gr-faq__a p { margin: 0; }

.gr-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }

/* Quiz */
.gr-quizbox { background: linear-gradient(160deg, #23206e, var(--gr-brand)); color: #fff; border-radius: 20px; padding: 28px; position: sticky; top: 100px; }
.gr-quizbox h2 { color: #fff; font-size: 1.7rem; margin: 0 0 6px; }
.gr-quizbox > p { color: rgba(255, 255, 255, .8); margin: 0 0 16px; }
.gr-quizbox .gr-eyebrow { color: var(--gr-accent); }
.gr-quiz { background: #fff; color: var(--gr-ink); border-radius: 14px; padding: 20px; }
.gr-quiz__top { display: flex; justify-content: space-between; font-size: 13px; color: var(--gr-soft); margin-bottom: 10px; }
.gr-quiz__streak { color: var(--gr-convert); font-weight: 700; }
.gr-quiz__q { font-weight: 700; font-size: 1.1rem; margin: 0 0 12px; }
.gr-quiz__opts { display: grid; gap: 8px; }
.gr-quiz__opt { text-align: left; border: 1px solid var(--gr-line); background: #fff; border-radius: 10px; padding: 10px 14px; font: inherit; cursor: pointer; color: var(--gr-ink); }
.gr-quiz__opt:hover:not(:disabled) { border-color: var(--gr-brand-2); background: var(--gr-brand-50); }
.gr-quiz__opt.is-right { border-color: var(--gr-ok); background: var(--gr-ok-50); color: var(--gr-ok); font-weight: 700; }
.gr-quiz__opt.is-wrong { border-color: var(--gr-bad); background: var(--gr-bad-50); color: var(--gr-bad); }
.gr-quiz__why { font-size: 14px; color: var(--gr-muted); margin: 12px 0 0; }
.gr-quiz__next { margin-top: 12px; }
.gr-quiz__result { text-align: center; }
.gr-quiz__result b { display: block; font-family: var(--gr-serif); font-size: 2.6rem; color: var(--gr-brand); }

/* Latest posts */
.gr-post { background: #fff; border: 1px solid var(--gr-line); border-radius: var(--gr-radius); overflow: hidden; display: flex; flex-direction: column; }
.gr-post__img { display: block; text-decoration: none; aspect-ratio: 16 / 9; background: var(--gr-brand-50); overflow: hidden; }
.gr-post__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.gr-post:hover .gr-post__img img { transform: scale(1.04); }
.gr-post__ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; font-family: var(--gr-serif); font-size: 3rem; color: var(--gr-brand); opacity: .5; }
.gr-post__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gr-post__cat { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gr-brand); text-decoration: none; }
.gr-post h3 { margin: 0; font-size: 1.1rem; line-height: 1.35; }
.gr-post h3 a { color: var(--gr-ink); text-decoration: none; }
.gr-post h3 a:hover { color: var(--gr-brand); }
.gr-post p { margin: 0; color: var(--gr-muted); font-size: 15px; flex: 1; }
.gr-post__meta { font-size: 13px; color: var(--gr-soft); display: inline-flex; gap: 6px; align-items: center; }

.gr-feature { padding: 22px; border-radius: var(--gr-radius); border: 1px solid var(--gr-line); }
.gr-feature .gr-ico { color: var(--gr-brand); }
.gr-feature h3 { margin: 10px 0 6px; font-size: 1.1rem; }
.gr-feature p { margin: 0; color: var(--gr-muted); }

.gr-cta { background: linear-gradient(120deg, #23206e, var(--gr-brand) 60%, var(--gr-brand-2)); color: #fff; padding: 64px 0; text-align: center; }
.gr-cta h2 { color: #fff; font-family: var(--gr-serif); font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 10px; }
.gr-cta p { color: rgba(255, 255, 255, .85); margin: 0; font-size: 1.1rem; }
.gr-cta .gr-hero__cta { justify-content: center; }

/* Tool pages */
.gr-toolhero { padding: 40px 0 24px; background: radial-gradient(800px 300px at 90% -20%, rgba(91, 84, 232, .12), transparent 60%), var(--gr-tint); }
.gr-toolhero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; margin: 8px 0 12px; }
.gr-crumbs { font-size: 14px; color: var(--gr-soft); }
.gr-crumbs a { color: var(--gr-muted); text-decoration: none; }
.gr-crumbs a:hover { color: var(--gr-brand); }
.gr-crumbs span { margin: 0 4px; }
.gr-pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.gr-pills li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--gr-line); border-radius: 999px; padding: 6px 12px; color: var(--gr-ok); }

.gr-tool { margin: 24px 0 8px; background: #fff; border: 1px solid var(--gr-line); border-radius: 18px; box-shadow: var(--gr-shadow); padding: 18px; }
.gr-tool__field { width: 100%; border: 1px solid var(--gr-line); border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 16px; line-height: 1.6; color: var(--gr-ink); background: #fcfcfd; resize: vertical; }
input.gr-tool__field { font-size: 18px; }
.gr-tool__field:focus { outline: 0; border-color: var(--gr-brand-2); box-shadow: 0 0 0 4px rgba(91, 84, 232, .15); background: #fff; }
.gr-tool__bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.gr-tool__extra { display: contents; }
.gr-tool__bar [data-act="example"] { margin-left: auto; }
.gr-tool__out:not(:empty) { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gr-line); }
.gr-tool__note { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: var(--gr-soft); }
.gr-prose .gr-tool { box-shadow: none; }

.gr-statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gr-stat { background: var(--gr-tint); border-radius: 12px; padding: 12px 14px; }
.gr-stat b { display: block; font-size: 1.5rem; line-height: 1.2; color: var(--gr-ink); }
.gr-stat span { font-size: 13px; color: var(--gr-soft); }
.gr-stat--hl { background: var(--gr-brand-50); }
.gr-stat--hl b { color: var(--gr-brand); }

.gr-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 4px 0; }
.gr-table th, .gr-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gr-line); vertical-align: top; }
.gr-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gr-soft); background: var(--gr-tint); }
.gr-table td b { color: var(--gr-brand); }
.gr-tablewrap { overflow-x: auto; }

.gr-answer { display: flex; gap: 16px; align-items: center; background: var(--gr-brand-50); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; }
.gr-answer__big { font-family: var(--gr-serif); font-size: 1.9rem; font-weight: 700; color: var(--gr-brand); white-space: nowrap; }
.gr-answer p { margin: 0; color: var(--gr-muted); }

.gr-marked { white-space: pre-wrap; line-height: 1.9; font-size: 16px; padding: 14px 16px; background: #fcfcfd; border: 1px solid var(--gr-line); border-radius: 12px; }
.gr-mark { background: var(--gr-bad-50); border-bottom: 2px solid var(--gr-bad); border-radius: 3px; padding: 0 2px; cursor: help; }
.gr-mark--warn { background: var(--gr-warn-50); border-bottom-color: var(--gr-accent); }
.gr-mark--info { background: var(--gr-brand-50); border-bottom-color: var(--gr-brand-2); }
.gr-mark--ok { background: var(--gr-ok-50); border-bottom-color: var(--gr-ok); }
.gr-issues { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.gr-issue { display: flex; gap: 12px; align-items: center; justify-content: space-between; border: 1px solid var(--gr-line); border-left: 4px solid var(--gr-bad); border-radius: 10px; padding: 10px 12px; }
.gr-issue--warn { border-left-color: var(--gr-accent); }
.gr-issue--info { border-left-color: var(--gr-brand-2); }
.gr-issue p { margin: 0; font-size: 15px; }
.gr-issue small { display: block; color: var(--gr-soft); }
.gr-issue s { color: var(--gr-bad); }
.gr-issue ins { color: var(--gr-ok); text-decoration: none; font-weight: 700; }
.gr-out-head { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.gr-out-head h3 { margin: 0; font-size: 1.1rem; }
.gr-good { display: flex; gap: 10px; align-items: center; color: var(--gr-ok); background: var(--gr-ok-50); border-radius: 12px; padding: 14px 16px; font-weight: 600; }
.gr-meter { height: 10px; border-radius: 99px; background: var(--gr-line); overflow: hidden; margin: 6px 0 2px; }
.gr-meter span { display: block; height: 100%; border-radius: 99px; background: var(--gr-brand); }
.gr-kv { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-tag { display: inline-block; padding: 3px 9px; border-radius: 99px; background: var(--gr-tint); font-size: 13px; color: var(--gr-muted); }
.gr-result { width: 100%; min-height: 160px; }

.gr-toolbody { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; padding-top: 32px; padding-bottom: 56px; }
.gr-prose { font-size: 17px; line-height: 1.75; }
.gr-prose h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.gr-prose h2:first-child { margin-top: 0; }
.gr-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.gr-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 54px; background: var(--gr-tint); border-radius: 12px; }
.gr-steps li::before { content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--gr-brand); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.gr-side__box { position: sticky; top: 100px; border: 1px solid var(--gr-line); border-radius: var(--gr-radius); padding: 18px; }
.gr-side__box h2 { font-size: 1.1rem; margin: 0 0 10px; font-family: inherit; }
.gr-side__box ul { list-style: none; margin: 0; padding: 0; }
.gr-side__box a { display: flex; gap: 10px; align-items: center; padding: 6px; border-radius: 10px; color: var(--gr-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.gr-side__box .gr-badge { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.gr-side__box a:hover, .gr-side__box .is-current a { background: var(--gr-tint); color: var(--gr-brand); }

/* Single posts */
.gr-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 9999; pointer-events: none; }
.gr-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gr-brand), var(--gr-accent)); }
.gr-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; }
.gr-meta > * { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--gr-muted); background: var(--gr-tint); border-radius: 99px; padding: 6px 12px; border: 0; line-height: 1.2; }
.gr-listen { cursor: pointer; font: inherit; font-size: 14px !important; color: var(--gr-brand) !important; font-weight: 600; }
.gr-listen:hover, .gr-listen.is-on { background: var(--gr-brand-50) !important; }
.gr-toc { margin: 0 0 2rem; border: 1px solid var(--gr-line); border-radius: var(--gr-radius); background: #fff; }
.gr-toc summary { cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.gr-toc ol { margin: 0; padding: 0 18px 16px 40px; }
.gr-toc li { margin: 4px 0; }
.gr-toc .gr-toc__l3 { margin-left: 18px; list-style: circle; font-size: .95em; }
.gr-toc a { text-decoration: none; }
.gr-toc a:hover { text-decoration: underline; }
.gr-posttools { margin: 2.5rem 0 0; padding: 24px; border-radius: 18px; background: var(--gr-tint); }
.gr-posttools__title { font-size: 1.4rem !important; margin: 0 0 16px !important; }
.gr-posttools .gr-grid--3 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.entry-content h2[id], .entry-content h3[id] { scroll-margin-top: 90px; }

/* Responsive */
@media (max-width: 1024px) {
	.gr-hero__grid, .gr-split { grid-template-columns: 1fr; }
	.gr-quizbox { position: static; }
	.gr-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.gr-toolbody { grid-template-columns: 1fr; }
	.gr-side__box { position: static; }
	.gr-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.gr-wrap { padding: 0 16px; }
	.gr-hero { padding-top: 32px; }
	.gr-grid--3 { grid-template-columns: 1fr; }
	.gr-sec { padding: 44px 0; }
	.gr-search { flex-wrap: wrap; padding: 8px; }
	.gr-search input[type="search"] { flex-basis: calc(100% - 40px); }
	.gr-search .gr-btn { width: 100%; }
	.gr-tool__bar [data-act="example"] { margin-left: 0; }
	.gr-play { padding: 18px; }
	.gr-answer { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	.gr-page *, .gr-progress span { transition: none !important; }
}

/* ------------------------------------------------------------------
   Site chrome (v1.1): header, footer and Kadence polish
   ------------------------------------------------------------------ */
:root {
	--global-palette1: var(--gr-brand);
	--global-palette2: var(--gr-brand-2);
	--global-palette3: var(--gr-ink);
	--global-palette4: #1f2937;
	--global-palette5: var(--gr-muted);
	--global-palette6: var(--gr-soft);
	--global-palette7: #eceef6;
	--global-palette8: var(--gr-tint);
	--global-palette9: #ffffff;
	--gr-header-h: 68px;
}
.gr-theme #masthead, .gr-theme #colophon, .gr-theme #mobile-drawer, .gr-theme .skip-link { display: none !important; }
.gr-skip:focus { position: fixed !important; top: 8px; left: 8px; z-index: 10001; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; color: var(--gr-brand); border-radius: 8px; box-shadow: var(--gr-shadow); }

/* Header */
.gr-header { position: sticky; top: 0; z-index: 1000; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: saturate(180%) blur(12px); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.admin-bar .gr-header { top: 32px; }
.gr-header.is-scrolled { border-bottom-color: var(--gr-line); box-shadow: 0 6px 20px -12px rgba(17, 24, 39, .18); }
.gr-header *, .gr-footer * { box-sizing: border-box; }
.gr-header__bar { display: flex; align-items: center; gap: 28px; min-height: var(--gr-header-h); }
.gr-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--gr-ink); flex: none; }
.gr-logo__mark { display: block; flex: none; width: 38px; height: 38px; }
.gr-logo__name { font-family: var(--gr-serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.015em; }
.gr-logo:hover { color: var(--gr-brand); }

.gr-nav { flex: 1; display: flex; align-items: center; }
.gr-nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.gr-nav__list > li { position: relative; display: flex; align-items: center; }
.gr-nav__list > li > a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--gr-muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.gr-nav__list > li > a:hover, .gr-nav__list > li.is-current > a, .gr-nav__list > li.current-menu-item > a { color: var(--gr-brand); background: var(--gr-brand-50); }
.gr-nav__more { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-left: -8px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--gr-soft); cursor: pointer; }
.gr-nav__more svg { transition: transform .2s; }
.gr-nav__more[aria-expanded="true"] svg { transform: rotate(180deg); }
.gr-nav__cta { display: none; }

.gr-mega { position: absolute; top: calc(100% + 10px); left: -16px; width: min(760px, calc(100vw - 40px)); padding: 20px; background: #fff; border: 1px solid var(--gr-line); border-radius: 18px; box-shadow: 0 24px 60px -20px rgba(35, 32, 110, .35), var(--gr-shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.gr-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.gr-nav__drop:hover .gr-mega, .gr-nav__drop:focus-within .gr-mega, .gr-mega.is-open { opacity: 1; visibility: visible; transform: none; }
.gr-mega__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gr-mega__title { margin: 0 0 8px; padding: 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--gr-soft); }
.gr-mega ul { list-style: none; margin: 0; padding: 0; }
.gr-mega li a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; color: var(--gr-ink); font-size: 14px; font-weight: 500; line-height: 1.3; text-decoration: none; }
.gr-mega li a:hover { background: var(--gr-tint); color: var(--gr-brand); }
.gr-mega .gr-badge { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.gr-mega__all { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 14px; padding: 11px; border-radius: 12px; background: var(--gr-tint); color: var(--gr-brand); font-weight: 600; font-size: 14px; text-decoration: none; }
.gr-mega__all:hover { background: var(--gr-brand-50); color: var(--gr-brand); }

.gr-header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.gr-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--gr-line); border-radius: 11px; background: #fff; color: var(--gr-ink); cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.gr-iconbtn:hover, .gr-iconbtn[aria-expanded="true"] { border-color: #c9cdf8; color: var(--gr-brand); background: var(--gr-brand-50); }
.gr-header__cta { padding: 10px 16px; font-size: 14px; }
.gr-menu-toggle { display: none; }
.gr-burger { position: relative; width: 18px; height: 12px; }
.gr-burger i { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s, top .2s; }
.gr-burger i:nth-child(1) { top: 0; }
.gr-burger i:nth-child(2) { top: 5px; }
.gr-burger i:nth-child(3) { top: 10px; }
.gr-menu-toggle[aria-expanded="true"] .gr-burger i:nth-child(1) { top: 5px; transform: rotate(45deg); }
.gr-menu-toggle[aria-expanded="true"] .gr-burger i:nth-child(2) { opacity: 0; }
.gr-menu-toggle[aria-expanded="true"] .gr-burger i:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.gr-searchpanel { padding: 4px 0 18px; }
.gr-searchpanel .gr-search { max-width: 720px; margin: 0 auto; }

/* Footer */
.gr-footer { margin-top: 0; background: #16143f; color: rgba(255, 255, 255, .72); font-size: 15px; }
.gr-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.gr-footer .gr-logo { color: #fff; }
.gr-footer .gr-logo:hover { color: #fff; opacity: .9; }
.gr-footer__brand p { margin: 16px 0 18px; line-height: 1.65; max-width: 30rem; }
.gr-footer__pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.gr-footer__pills li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 13px; font-weight: 600; }
.gr-footer__pills .gr-ico { color: var(--gr-accent); }
.gr-footer h2 { margin: 6px 0 14px; color: #fff; font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.gr-footer nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.gr-footer nav a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.gr-footer nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gr-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.gr-footer__bottom p { margin: 0; }
.gr-totop { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; text-decoration: none; }
.gr-totop:hover { color: var(--gr-accent); }

/* Kadence pages, posts and archives in the same look */
.gr-theme { color: var(--gr-ink); }
.gr-theme .entry-title, .gr-theme .page-title, .gr-theme .archive-title,
.gr-theme .entry-content h2, .gr-theme .entry-content h3, .gr-theme .entry-related-title, .gr-theme .widget-title { font-family: var(--gr-serif); letter-spacing: -.01em; color: var(--gr-ink); }
.gr-theme .entry-hero .entry-title, .single-post .entry-header .entry-title { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; }
.gr-theme .entry-taxonomies a, .gr-theme .entry-meta a { color: var(--gr-brand); }
.gr-theme .content-bg, .gr-theme .entry.single-entry { border-radius: 20px; }
.gr-theme .entry.single-entry { box-shadow: var(--gr-shadow); }
.gr-theme .post-thumbnail img, .gr-theme .article-post-thumbnail img { border-radius: 18px; }

.single-post .entry-content { font-size: 18px; line-height: 1.78; }
.single-post .entry-content > p:first-of-type { font-size: 1.1em; color: #1f2937; }
.gr-theme .entry-content a:not(.gr-btn):not(.gr-tcard):not(.gr-chip) { color: var(--gr-brand); text-decoration: underline; text-decoration-color: rgba(63, 55, 201, .35); text-underline-offset: 3px; }
.gr-theme .entry-content a:not(.gr-btn):not(.gr-tcard):not(.gr-chip):hover { text-decoration-color: currentColor; }
.gr-theme .entry-content h2 { font-size: 1.75rem; line-height: 1.2; margin: 2.4rem 0 .9rem; }
.gr-theme .entry-content h3 { font-size: 1.3rem; line-height: 1.3; margin: 1.8rem 0 .6rem; }
.gr-theme .entry-content blockquote { margin: 1.6rem 0; padding: 16px 20px; border: 0; border-left: 4px solid var(--gr-accent); border-radius: 0 14px 14px 0; background: var(--gr-warn-50); font-style: normal; }
.gr-theme .entry-content blockquote p:last-child { margin-bottom: 0; }
.gr-theme .entry-content table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 1.5rem 0; }
.gr-theme .entry-content th, .gr-theme .entry-content td { padding: 10px 12px; border: 0; border-bottom: 1px solid var(--gr-line); text-align: left; vertical-align: top; }
.gr-theme .entry-content th { background: var(--gr-tint); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--gr-soft); }
.gr-theme .entry-content ul li::marker, .gr-theme .entry-content ol li::marker { color: var(--gr-brand); font-weight: 700; }
.gr-theme .entry-content img { border-radius: 14px; }
.gr-theme .entry-content mark { background: var(--gr-warn-50); padding: 0 3px; border-radius: 3px; }

.gr-crumbs--post { margin: 0 0 14px; }
.gr-author { display: flex; gap: 18px; align-items: flex-start; margin: 2.5rem 0 0; padding: 22px; border: 1px solid var(--gr-line); border-radius: 18px; background: #fff; }
.gr-author__img { flex: none; border-radius: 50%; }
.gr-author .gr-eyebrow { margin: 0 0 2px; }
.gr-author__name { margin: 0 0 6px; font-family: var(--gr-serif); font-size: 1.25rem; font-weight: 700; }
.gr-author__bio { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--gr-muted); }
.gr-author__links { margin: 0; font-size: 14px; font-weight: 600; }

.gr-theme .loop-entry { border: 1px solid var(--gr-line); border-radius: 18px; overflow: hidden; box-shadow: none; transition: box-shadow .2s, transform .2s, border-color .2s; }
.gr-theme .loop-entry:hover { border-color: #c9cdf8; box-shadow: var(--gr-shadow); transform: translateY(-2px); }
.gr-theme .loop-entry .entry-title { font-size: 1.2rem; line-height: 1.3; }
.gr-theme .loop-entry .entry-title a { color: var(--gr-ink); text-decoration: none; }
.gr-theme .loop-entry .entry-title a:hover { color: var(--gr-brand); }
.gr-theme .post-more-link { color: var(--gr-brand); font-weight: 600; }
.gr-theme .archive .entry-hero-container-inner, .gr-theme .entry-hero-container-inner { background: var(--gr-tint); }
.gr-theme .post-navigation a { border-radius: 14px; }
.gr-theme .post-navigation .post-title { color: var(--gr-ink); font-weight: 600; }
.gr-theme .entry-related { background: var(--gr-tint); }
.gr-theme .widget { border-radius: 16px; }
.gr-theme .pagination .page-numbers { border-radius: 10px; }
.gr-theme .pagination .page-numbers.current { background: var(--gr-brand); border-color: var(--gr-brand); color: #fff; }
.gr-theme .search-form input[type="search"], .gr-theme input[type="email"], .gr-theme input[type="text"], .gr-theme textarea { border-radius: 10px; }
.gr-theme ::selection { background: rgba(91, 84, 232, .2); }

@media (max-width: 1100px) {
	.gr-header__cta { display: none; }
}
@media (max-width: 960px) {
	.gr-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
	.gr-menu-toggle { display: inline-flex; }
	.gr-nav { position: fixed; left: 0; right: 0; top: var(--gr-header-h); bottom: 0; z-index: 999; display: block; padding: 12px 16px 32px; background: #fff; border-top: 1px solid var(--gr-line); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s; }
	.admin-bar .gr-nav { top: calc(var(--gr-header-h) + 46px); }
	.gr-nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.gr-menu-open { overflow: hidden; }
	.gr-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.gr-nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--gr-line); }
	.gr-nav__list > li > a { flex: 1; padding: 15px 4px; font-size: 17px; color: var(--gr-ink); background: none !important; }
	.gr-nav__more { width: 44px; height: 44px; margin: 0; border: 1px solid var(--gr-line); border-radius: 11px; }
	.gr-mega { position: static; width: 100%; padding: 0 0 14px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.gr-nav__drop:hover .gr-mega, .gr-nav__drop:focus-within .gr-mega { display: none; }
	.gr-mega.is-open, .gr-nav__drop .gr-mega.is-open { display: block; }
	.gr-mega__cols { grid-template-columns: 1fr; gap: 12px; }
	.gr-nav__cta { display: flex; width: 100%; margin-top: 20px; padding: 14px; font-size: 16px; }
	.gr-footer__grid { grid-template-columns: 1fr 1fr; }
	.gr-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 782px) {
	.admin-bar .gr-header { top: 0; }
}
@media (max-width: 640px) {
	:root { --gr-header-h: 62px; }
	.gr-header__bar { gap: 12px; }
	.gr-logo__mark { width: 34px; height: 34px; }
	.gr-logo__name { font-size: 1.15rem; }
	.gr-iconbtn { width: 40px; height: 40px; }
	.gr-footer__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; }
	.gr-author { flex-direction: column; }
	.single-post .entry-content { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.gr-header, .gr-mega, .gr-nav, .gr-burger i, .gr-theme .loop-entry { transition: none !important; }
}

/* Post sidebar (v1.3.0) */
.single-post .primary-sidebar { font-size: 15px; }
.single-post .primary-sidebar .sidebar-inner-wrap { display: flex; flex-direction: column; gap: 20px; }
.gr-side { padding: 20px; border: 1px solid var(--gr-line); border-radius: var(--gr-radius); background: #fff; }
.gr-side p { margin: 0 0 14px; color: var(--gr-muted); line-height: 1.55; }
.gr-side__title { margin: 0 0 12px !important; font-family: var(--gr-serif); font-size: 1.15rem !important; line-height: 1.3; color: var(--gr-ink); }
.gr-side--cta { border: 0; background: linear-gradient(150deg, var(--gr-brand-2), #23206e); color: #fff; }
.gr-side--cta .gr-eyebrow { color: var(--gr-accent); }
.gr-side--cta .gr-side__title { color: #fff; }
.gr-side--cta p { color: rgba(255, 255, 255, .8); }
.gr-side--cta .gr-btn { width: 100%; background: #fff; color: var(--gr-brand); }
.gr-side--cta .gr-btn:hover { background: var(--gr-brand-50); color: var(--gr-brand); }
.gr-side__tools, .gr-side__posts { list-style: none; margin: 0; padding: 0; }
.gr-side__tools li + li { margin-top: 4px; }
.gr-side__tools a { display: flex; align-items: center; gap: 10px; padding: 7px 8px; margin: 0 -8px; border-radius: 9px; color: var(--gr-ink); font-weight: 600; text-decoration: none; }
.gr-side__tools a:hover { background: var(--gr-brand-50); color: var(--gr-brand); }
.gr-side__tools .gr-badge { flex: none; }
.gr-side__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 600; text-decoration: none; }
.gr-side__posts li + li { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--gr-line); }
.gr-side__posts a { display: flex; align-items: center; gap: 12px; color: var(--gr-ink); font-weight: 600; line-height: 1.35; text-decoration: none; }
.gr-side__posts a:hover { color: var(--gr-brand); }
.gr-side__thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
.gr-side__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gr-side__chips .gr-chip { font-size: 14px; padding: 5px 11px; }
.gr-side--quiz { background: var(--gr-tint); border-color: transparent; }
@media (min-width: 1025px) {
	.single-post .gr-side--quiz { position: sticky; top: calc(var(--gr-header-h, 68px) + 20px); }
}
.gr-side__tools .gr-badge { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; }
