/*
 * Gradeway Tools: grids, cards, related sections, page layout and homepage.
 * Every selector starts with :is(html,#gwt-scope) — it always matches, but carries ID-level
 * specificity so themes that style content with ID selectors (e.g. #kubio a) can't override it.
 */

/* ---------- Tool mount ---------- */
:is(html,#gwt-scope) .gw-tool-mount { margin: 1.5rem 0 2.5rem; min-height: 320px; max-width: 100%; }
:is(html,#gwt-scope) .gw-tool-loading { height: 320px; border-radius: 14px; border: 1px solid #e2e8f0; background: linear-gradient(90deg, #f8fafc 25%, #eef2ff 50%, #f8fafc 75%); background-size: 200% 100%; animation: gwt-shimmer 1.4s infinite linear; }
@keyframes gwt-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { :is(html,#gwt-scope) .gw-tool-loading { animation: none; } }

/* ---------- Tool grid + cards ---------- */
:is(html,#gwt-scope) ul.gwt-grid { list-style: none; margin: 1.25rem 0 2.5rem; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: none; width: 100%; }
@media (max-width: 1100px) { :is(html,#gwt-scope) ul.gwt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { :is(html,#gwt-scope) ul.gwt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 520px) { :is(html,#gwt-scope) ul.gwt-grid { grid-template-columns: 1fr; } }
:is(html,#gwt-scope) ul.gwt-grid > li { margin: 0; padding: 0; list-style: none; }
:is(html,#gwt-scope) ul.gwt-grid > li::before, :is(html,#gwt-scope) ul.gwt-grid > li::marker { content: none; }

:is(html,#gwt-scope) a.gwt-card { position: relative; display: flex; flex-direction: column; gap: 6px; height: 100%; box-sizing: border-box; padding: 64px 20px 20px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; text-decoration: none; color: #0f172a; box-shadow: 0 1px 2px rgb(15 23 42 / .04); transition: border-color .18s, box-shadow .18s, transform .18s; }
:is(html,#gwt-scope) a.gwt-card:hover, :is(html,#gwt-scope) a.gwt-card:focus-visible { border-color: color-mix(in srgb, var(--gwt-c, #4f46e5) 45%, #fff); box-shadow: 0 12px 28px -8px color-mix(in srgb, var(--gwt-c, #4f46e5) 35%, transparent); transform: translateY(-2px); text-decoration: none; }
:is(html,#gwt-scope) a.gwt-card:focus-visible { outline: 2px solid var(--gwt-c, #4f46e5); outline-offset: 2px; }
:is(html,#gwt-scope) a.gwt-card span { text-decoration: none; }
:is(html,#gwt-scope) .gwt-card-title { font-weight: 650; font-size: 16px; line-height: 1.35; color: #0f172a; letter-spacing: -.01em; }
:is(html,#gwt-scope) .gwt-card-text { font-size: 14px; line-height: 1.5; color: #64748b; }
:is(html,#gwt-scope) a.gwt-card:hover .gwt-card-title { color: var(--gwt-c, #4f46e5); }
:is(html,#gwt-scope) .gwt-card-icon { position: absolute; top: 20px; left: 20px; width: 34px; height: 34px; border-radius: 10px; background: color-mix(in srgb, var(--gwt-c, #4f46e5) 12%, #fff); }
:is(html,#gwt-scope) .gwt-card-icon::after { content: ""; position: absolute; inset: 8px; background: var(--gwt-c, #4f46e5); -webkit-mask: var(--gwt-i) center / contain no-repeat; mask: var(--gwt-i) center / contain no-repeat; }

:is(html,#gwt-scope) .gwt-card { --gwt-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M8 6h8M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01M16 18h.01M8 10h8'/%3E%3C/svg%3E"); }
:is(html,#gwt-scope) .gwt-cat-grade-calculators { --gwt-c: #4f46e5; }
:is(html,#gwt-scope) .gwt-cat-gpa-calculators { --gwt-c: #0891b2; --gwt-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 10 12 5 2 10l10 5 10-5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E"); }
:is(html,#gwt-scope) .gwt-cat-writing-tools { --gwt-c: #db2777; --gwt-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E"); }
:is(html,#gwt-scope) .gwt-cat-study-tools { --gwt-c: #16a34a; --gwt-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 4h7a3 3 0 0 1 3 3v13a2 2 0 0 0-2-2H2zM22 4h-7a3 3 0 0 0-3 3v13a2 2 0 0 1 2-2h8z'/%3E%3C/svg%3E"); }
:is(html,#gwt-scope) .gwt-cat-productivity-tools { --gwt-c: #ea580c; --gwt-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M9 16l2 2 4-4'/%3E%3C/svg%3E"); }
:is(html,#gwt-scope) .gwt-cat-guide { --gwt-c: #7c3aed; --gwt-i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6M16 13H8M16 17H8M10 9H8'/%3E%3C/svg%3E"); }

/* ---------- Related sections under a tool ---------- */
:is(html,#gwt-scope) .gwt-related { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid #e2e8f0; max-width: none; width: 100%; }
:is(html,#gwt-scope) .gwt-related > h2 { margin: 0 0 .25rem; }
:is(html,#gwt-scope) .gwt-more { margin: -1rem 0 0; }
:is(html,#gwt-scope) .gwt-more a { font-weight: 600; color: #4f46e5; text-decoration: none; }
:is(html,#gwt-scope) .gwt-more a:hover { text-decoration: underline; }

/* ---------- Tool & hub pages: wide tool, readable text, calmer headings ---------- */
:is(html,#gwt-scope) body.gwt-page .entry-content > * { max-width: 860px; margin-left: 0; margin-right: 0; }
:is(html,#gwt-scope) body.gwt-page .entry-content > .gw-tool,
:is(html,#gwt-scope) body.gwt-page .entry-content > .gwt-related,
:is(html,#gwt-scope) body.gwt-page .entry-content > .gwt-grid,
:is(html,#gwt-scope) body.gwt-page .entry-content > .gwt-section { max-width: none; width: 100%; }
:is(html,#gwt-scope) body.gwt-page .entry-content h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -.02em; margin: 2.75rem 0 1rem; }
:is(html,#gwt-scope) body.gwt-page .entry-content h3 { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.3; margin: 1.75rem 0 .5rem; }
:is(html,#gwt-scope) body.gwt-page .entry-content p, :is(html,#gwt-scope) body.gwt-page .entry-content li { font-size: 17px; line-height: 1.7; }
:is(html,#gwt-scope) body.gwt-page .entry-content > p:first-child { font-size: 19px; line-height: 1.6; color: #334155; }
:is(html,#gwt-scope) body.gwt-page .entry-content ol:not([class*="gwt-"]), :is(html,#gwt-scope) body.gwt-page .entry-content ul:not([class*="gwt-"]):not(.wp-block-latest-posts) { padding-left: 1.4em; }
:is(html,#gwt-scope) body.gwt-page .entry-content :is(ol, ul):not([class*="gwt-"]):not(.wp-block-latest-posts) > li + li { margin-top: .4em; }
:is(html,#gwt-scope) body.gwt-page .entry-content code { font-size: .9em; background: #f1f5f9; border-radius: 6px; padding: .15em .45em; }

/* ---------- Homepage sections ---------- */
:is(html,#gwt-scope) .gwt-section, :is(html,#gwt-scope) .gwt-section > .wp-block-group__inner-container { max-width: none; width: 100%; margin: 0; padding: 0; }
:is(html,#gwt-scope) .gwt-section > *, :is(html,#gwt-scope) .gwt-section > .wp-block-group__inner-container > * { max-width: none; margin-left: 0; margin-right: 0; }
:is(html,#gwt-scope) .gwt-section h2 { font-size: clamp(26px, 2.8vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 3.5rem 0 .25rem; }
:is(html,#gwt-scope) .gwt-section h2 + p { margin: 0 0 .5rem; color: #64748b; font-size: 17px; }
:is(html,#gwt-scope) .gwt-section > .wp-block-group__inner-container > h2:first-child { margin-top: 1rem; }

/* Homepage hero (used when the theme has no hero of its own) */
:is(html,#gwt-scope) .gwt-hero { position: relative; overflow: hidden; margin: 0 0 3rem; padding: clamp(56px, 9vw, 112px) 20px clamp(48px, 7vw, 88px); color: #fff; text-align: center; background: radial-gradient(60% 90% at 15% 10%, rgb(129 140 248 / .55), transparent 60%), radial-gradient(50% 80% at 90% 20%, rgb(236 72 153 / .35), transparent 60%), linear-gradient(135deg, #312e81 0%, #4338ca 45%, #6d28d9 100%); }
:is(html,#gwt-scope) .gwt-hero-inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
:is(html,#gwt-scope) .gwt-hero h1 { color: #fff; font-size: clamp(36px, 6vw, 64px); line-height: 1.05; letter-spacing: -.03em; margin: .3em 0 .35em; font-weight: 800; }
:is(html,#gwt-scope) .gwt-eyebrow { display: inline-block; margin: 0; padding: 6px 14px; border: 1px solid rgb(255 255 255 / .3); border-radius: 999px; background: rgb(255 255 255 / .1); font-size: 13px; font-weight: 600; color: #e0e7ff; }
:is(html,#gwt-scope) .gwt-lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: #e0e7ff; max-width: 680px; margin: 0 auto 1.8em; }
:is(html,#gwt-scope) .gwt-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 2.2em; }
:is(html,#gwt-scope) .gwt-btn { display: inline-flex; align-items: center; height: 50px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; }
:is(html,#gwt-scope) .gwt-btn-primary { background: #fff; color: #3730a3; }
:is(html,#gwt-scope) .gwt-btn-ghost { color: #fff; border: 1px solid rgb(255 255 255 / .45); }
:is(html,#gwt-scope) ul.gwt-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; list-style: none; margin: 0; padding: 0; color: #c7d2fe; font-size: 14px; }
:is(html,#gwt-scope) ul.gwt-stats strong { display: block; color: #fff; font-size: 26px; font-weight: 800; line-height: 1.1; }

/* Trust strip under the theme's hero */
:is(html,#gwt-scope) ul.gwt-trust { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0 0 1rem; padding: 0; max-width: none; }
@media (max-width: 820px) { :is(html,#gwt-scope) ul.gwt-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
:is(html,#gwt-scope) ul.gwt-trust > li { margin: 0; padding: 18px 20px; border-radius: 14px; background: #f5f7ff; border: 1px solid #e0e7ff; font-size: 14.5px; line-height: 1.45; color: #475569; }
:is(html,#gwt-scope) ul.gwt-trust strong { display: block; font-size: 22px; line-height: 1.2; color: #312e81; font-weight: 750; margin-bottom: 2px; }

/* Latest guides grid */
:is(html,#gwt-scope) .gwt-posts.wp-block-latest-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 1.25rem 0 0; max-width: none; }
@media (max-width: 900px) { :is(html,#gwt-scope) .gwt-posts.wp-block-latest-posts { grid-template-columns: 1fr; } }
:is(html,#gwt-scope) .gwt-posts.wp-block-latest-posts li { width: auto; margin: 0; list-style: none; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 22px; box-shadow: 0 1px 2px rgb(15 23 42 / .04); transition: border-color .18s, box-shadow .18s; }
:is(html,#gwt-scope) .gwt-posts.wp-block-latest-posts li:hover { border-color: #c7d2fe; box-shadow: 0 12px 28px -10px rgb(79 70 229 / .3); }
:is(html,#gwt-scope) .gwt-posts.wp-block-latest-posts li > a { display: block; font-weight: 700; font-size: 18px; line-height: 1.35; color: #0f172a; text-decoration: none; }
:is(html,#gwt-scope) .gwt-posts.wp-block-latest-posts li > a:hover { color: #4f46e5; }
:is(html,#gwt-scope) .gwt-posts .wp-block-latest-posts__post-date { display: block; font-size: 13px; color: #64748b; margin: 8px 0; }
:is(html,#gwt-scope) .gwt-posts .wp-block-latest-posts__post-excerpt { font-size: 15px; line-height: 1.55; color: #475569; margin: 0; }

/* ---------- Header: keep it in the page flow (not sticky) ---------- */
:is(html,#gwt-scope) body.gwt-no-sticky .h-navigation_sticky { position: relative !important; top: auto !important; }

/* Themes that force underlines on every content link (e.g. Kubio: text-decoration: underline !important) */
:is(html,#gwt-scope) a.gwt-card, :is(html,#gwt-scope) a.gwt-card *, :is(html,#gwt-scope) .gwt-posts li > a,
:is(html,#gwt-scope) .gwt-btn, :is(html,#gwt-scope) .gwt-more a, :is(html,#gwt-scope) .gwt-footer a { text-decoration: none !important; }
:is(html,#gwt-scope) .gwt-more a:hover, :is(html,#gwt-scope) .gwt-footer a:hover { text-decoration: underline !important; }

/* Less empty space between the theme hero and the page content */
:is(html,#gwt-scope) body.gwt-page .h-section-global-spacing:has(.kubio-post-content) { padding-top: 56px; padding-bottom: 80px; }
@media (max-width: 767px) { :is(html,#gwt-scope) body.gwt-page .h-section-global-spacing:has(.kubio-post-content) { padding-top: 32px; padding-bottom: 48px; } }

/* Footer line */
:is(html,#gwt-scope) .gwt-footer { margin: 0; font-size: 14.5px; line-height: 1.7; text-align: center; }
:is(html,#gwt-scope) .gwt-footer a { color: inherit; font-weight: 600; }
:is(html,#gwt-scope) .gwt-footer .gwt-footer-links { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; justify-content: center; margin-left: 18px; }
@media (max-width: 767px) { :is(html,#gwt-scope) .gwt-footer .gwt-footer-links { display: flex; margin: 6px 0 0; } }

/* ---------- Brand palette for Kubio-based themes (Atelier etc.): indigo / violet instead of the default browns ---------- */
:is(html,#gwt-scope) {
  --kubio-color-1: 79,70,229; --kubio-color-1-variant-1: 148,163,184; --kubio-color-1-variant-2: 129,140,248; --kubio-color-1-variant-3: 99,102,241; --kubio-color-1-variant-4: 79,70,229; --kubio-color-1-variant-5: 49,46,129;
  --kubio-color-2: 124,58,237; --kubio-color-2-variant-1: 196,181,253; --kubio-color-2-variant-2: 124,58,237; --kubio-color-2-variant-3: 109,40,217; --kubio-color-2-variant-4: 76,29,149; --kubio-color-2-variant-5: 30,16,60;
  --kubio-color-3: 238,242,255; --kubio-color-3-variant-1: 238,242,255; --kubio-color-3-variant-2: 199,210,254; --kubio-color-3-variant-3: 148,163,184; --kubio-color-3-variant-4: 129,140,248; --kubio-color-3-variant-5: 51,65,85;
  --wp--preset--color--kubio-color-1: rgb(79,70,229); --wp--preset--color--kubio-color-2: rgb(124,58,237); --wp--preset--color--kubio-color-3: rgb(238,242,255);
}

/* Blog cards: show featured images at their real 1200×630 ratio instead of a cropped 4:3 box */
:is(html,#gwt-scope) .wp-block-kubio-post-featured-image__container:has(img[src*="gradeway-guide"]) { padding-top: 52.5% !important; }

/* =====================================================================================
   DARK THEME (body.gwt-dark): near-black surfaces, lime accent, grid-pattern panels.
   Everything below the theme's hero; the hero itself is left untouched.
   ===================================================================================== */
:is(html,#gwt-scope) body.gwt-dark {
  --gw-bg: #070908; --gw-bg-2: #0b0e0c; --gw-card: #101311; --gw-card-2: #141815; --gw-line: #1f2421; --gw-line-2: #2c332e;
  --gw-text: #f3f5f3; --gw-text-2: #b3bab4; --gw-text-3: #7b847d; --gw-accent: #b8f53d; --gw-accent-2: #a2e52a; --gw-accent-ink: #0a1003;
  --gw-grid: linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background: var(--gw-bg); color: var(--gw-text-2);
}
:is(html,#gwt-scope) body.gwt-dark .site, :is(html,#gwt-scope) body.gwt-dark .content,
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-section__outer:not(.wp-block-kubio-hero__outer) { background-color: transparent; }
:is(html,#gwt-scope) body.gwt-dark ::selection { background: var(--gw-accent); color: var(--gw-accent-ink); }

/* Typography in content, blog and footer */
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content, .wp-block-kubio-query-loop, .wp-block-kubio-post-content, #footer) :is(h1,h2,h3,h4,h5,h6) { color: var(--gw-text); }
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content, .wp-block-kubio-post-content) :is(p, li, td, dd, blockquote):not([class*="gwt-"]) { color: var(--gw-text-2); }
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content, .wp-block-kubio-post-content) strong { color: var(--gw-text); }
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content, .wp-block-kubio-post-content) a:not([class*="gwt-"]):not(.wp-block-button__link) { color: var(--gw-accent); text-decoration-color: rgb(184 245 61 / .35) !important; }
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content) code { background: var(--gw-card-2); color: var(--gw-accent); border: 1px solid var(--gw-line); }
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content) :is(table, th, td) { border-color: var(--gw-line); }
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content) th { background: var(--gw-card-2); color: var(--gw-text); }
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content) blockquote { background: rgb(184 245 61 / .06); border-left: 3px solid var(--gw-accent); padding: 14px 18px; border-radius: 0 12px 12px 0; }
:is(html,#gwt-scope) body.gwt-dark :is(.kubio-post-content, .entry-content) hr { border-color: var(--gw-line); }

/* Footer */
:is(html,#gwt-scope) body.gwt-dark #footer { background: var(--gw-bg) !important; border-top: 1px solid var(--gw-line); }
:is(html,#gwt-scope) body.gwt-dark .gwt-footer { color: var(--gw-text-3); }
:is(html,#gwt-scope) body.gwt-dark .gwt-footer a { color: var(--gw-text-2); }
:is(html,#gwt-scope) body.gwt-dark .gwt-footer a:hover { color: var(--gw-accent); }

/* Dropdown menus: dark glass panel, lime hover */
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-dropdown-menu ul ul { background: rgb(12 15 13 / .97) !important; border: 1px solid var(--gw-line-2); border-radius: 14px; box-shadow: 0 24px 60px -12px rgb(0 0 0 / .7); padding: 8px; backdrop-filter: blur(12px); }
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-dropdown-menu ul ul li { border: 0 !important; background: transparent !important; }
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-dropdown-menu ul ul a { color: var(--gw-text-2) !important; background: transparent !important; border-radius: 8px; padding: 9px 12px !important; font-size: 14.5px; line-height: 1.3; }
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-dropdown-menu ul ul a:hover, :is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-dropdown-menu ul ul .current-menu-item > a { color: var(--gw-accent) !important; background: rgb(184 245 61 / .07) !important; }
/* Long dropdowns become two columns instead of one tall list */
@media (min-width: 1024px) {
  :is(html,#gwt-scope) .wp-block-kubio-dropdown-menu ul ul:has(> li:nth-child(8)) { display: grid !important; grid-template-columns: repeat(2, minmax(220px, 1fr)); width: 500px !important; column-gap: 4px; }
}

/* ---------- Content section rhythm ---------- */
:is(html,#gwt-scope) body.gwt-dark.home .h-section-global-spacing:has(.kubio-post-content) { padding-top: 0; }
:is(html,#gwt-scope) .gwt-home { color: var(--gw-text-2); }
:is(html,#gwt-scope) .gwt-head { margin: 96px 0 28px; max-width: 760px; }
:is(html,#gwt-scope) .gwt-head--center { margin-left: auto !important; margin-right: auto !important; text-align: center; }
:is(html,#gwt-scope) .gwt-kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gw-accent, #4f46e5); }
:is(html,#gwt-scope) .gwt-head h2, :is(html,#gwt-scope) .gwt-cta h2 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; color: var(--gw-text, #0f172a); }
:is(html,#gwt-scope) .gwt-intro { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--gw-text-3, #64748b); }

/* Feature row (like a spec strip) */
:is(html,#gwt-scope) ul.gwt-features { list-style: none; margin: 0; padding: 40px 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 28px; border-bottom: 1px solid var(--gw-line, #e2e8f0); }
@media (max-width: 900px) { :is(html,#gwt-scope) ul.gwt-features { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { :is(html,#gwt-scope) ul.gwt-features { grid-template-columns: 1fr; gap: 20px; } }
:is(html,#gwt-scope) ul.gwt-features > li { display: flex; gap: 14px; margin: 0; padding: 0; font-size: 14.5px; line-height: 1.55; color: var(--gw-text-3, #64748b); }
:is(html,#gwt-scope) ul.gwt-features strong { display: block; margin-bottom: 2px; font-size: 16px; font-weight: 650; color: var(--gw-text, #0f172a); }
:is(html,#gwt-scope) .gwt-feat-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--gw-line-2, #e2e8f0); background: var(--gw-card, #fff); color: var(--gw-accent, #4f46e5); }

/* Grid-pattern panel around the live calculator */
:is(html,#gwt-scope) .gwt-panel { position: relative; padding: clamp(14px, 2.4vw, 32px); border-radius: 22px; border: 1px solid var(--gw-line, #e2e8f0); background-color: var(--gw-bg-2, #f8fafc); background-image: var(--gw-grid, none); background-size: 32px 32px; overflow: hidden; }
:is(html,#gwt-scope) .gwt-panel::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgb(184 245 61 / .16), transparent); pointer-events: none; }
:is(html,#gwt-scope) .gwt-panel .gw-tool { position: relative; margin: 0 !important; }

/* Category labels: "GRADE CALCULATORS. 11" */
:is(html,#gwt-scope) .gwt-label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 44px 0 0; }
:is(html,#gwt-scope) .gwt-label h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gw-text-2, #334155); }
:is(html,#gwt-scope) .gwt-count { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: var(--gwt-c); background: color-mix(in srgb, var(--gwt-c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--gwt-c) 30%, transparent); }
:is(html,#gwt-scope) .gwt-label p { flex-basis: 100%; margin: 4px 0 0; font-size: 15px; color: var(--gw-text-3, #64748b); }

/* Compact "chip" tool tiles */
:is(html,#gwt-scope) ul.gwt-grid--chips { gap: 12px; margin-top: 16px; }
:is(html,#gwt-scope) ul.gwt-grid--chips a.gwt-card { padding: 14px 16px 14px 64px; min-height: 76px; justify-content: center; gap: 2px; border-radius: 14px; }
:is(html,#gwt-scope) ul.gwt-grid--chips .gwt-card-icon { top: 50%; left: 14px; transform: translateY(-50%); width: 36px; height: 36px; }
:is(html,#gwt-scope) ul.gwt-grid--chips .gwt-card-title { font-size: 15px; }
:is(html,#gwt-scope) ul.gwt-grid--chips .gwt-card-text { font-size: 13px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cards & chips in dark mode */
:is(html,#gwt-scope) body.gwt-dark a.gwt-card { background: linear-gradient(180deg, var(--gw-card-2), var(--gw-card)); border-color: var(--gw-line); color: var(--gw-text); box-shadow: inset 0 1px 0 rgb(255 255 255 / .03); }
:is(html,#gwt-scope) body.gwt-dark a.gwt-card:hover, :is(html,#gwt-scope) body.gwt-dark a.gwt-card:focus-visible { border-color: color-mix(in srgb, var(--gwt-c) 55%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--gwt-c) 25%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--gwt-c) 55%, transparent); }
:is(html,#gwt-scope) body.gwt-dark .gwt-card-title { color: var(--gw-text); }
:is(html,#gwt-scope) body.gwt-dark .gwt-card-text { color: var(--gw-text-3); }
:is(html,#gwt-scope) body.gwt-dark .gwt-card-icon { background: color-mix(in srgb, var(--gwt-c) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gwt-c) 28%, transparent); }
:is(html,#gwt-scope) body.gwt-dark .gwt-cat-grade-calculators { --gwt-c: #b8f53d; }
:is(html,#gwt-scope) body.gwt-dark .gwt-cat-gpa-calculators { --gwt-c: #38bdf8; }
:is(html,#gwt-scope) body.gwt-dark .gwt-cat-writing-tools { --gwt-c: #f472b6; }
:is(html,#gwt-scope) body.gwt-dark .gwt-cat-study-tools { --gwt-c: #facc15; }
:is(html,#gwt-scope) body.gwt-dark .gwt-cat-productivity-tools { --gwt-c: #fb923c; }
:is(html,#gwt-scope) body.gwt-dark .gwt-cat-guide { --gwt-c: #a78bfa; }
:is(html,#gwt-scope) body.gwt-dark .gwt-related { border-top-color: var(--gw-line); }
:is(html,#gwt-scope) body.gwt-dark .gwt-more a { color: var(--gw-accent); }

/* How it works */
:is(html,#gwt-scope) ol.gwt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 1000px) { :is(html,#gwt-scope) ol.gwt-steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { :is(html,#gwt-scope) ol.gwt-steps { grid-template-columns: 1fr; } }
:is(html,#gwt-scope) ol.gwt-steps > li { position: relative; margin: 0 !important; padding: 22px 22px 24px; border-radius: 16px; border: 1px solid var(--gw-line, #e2e8f0); background: var(--gw-card, #fff); overflow: hidden; list-style: none; }
:is(html,#gwt-scope) ol.gwt-steps > li::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: linear-gradient(90deg, var(--gw-accent, #4f46e5), transparent); opacity: .7; }
:is(html,#gwt-scope) .gwt-step-n { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--gw-accent, #4f46e5); }
:is(html,#gwt-scope) ol.gwt-steps h3 { margin: 14px 0 6px; font-size: 18px; letter-spacing: -.01em; color: var(--gw-text, #0f172a); }
:is(html,#gwt-scope) ol.gwt-steps p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--gw-text-3, #64748b); }

/* Latest guides */
:is(html,#gwt-scope) .gwt-posts.wp-block-latest-posts li { padding: 0 0 20px; overflow: hidden; }
:is(html,#gwt-scope) .gwt-posts .wp-block-latest-posts__featured-image { margin: 0 0 16px; }
:is(html,#gwt-scope) .gwt-posts .wp-block-latest-posts__featured-image img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 0; }
:is(html,#gwt-scope) .gwt-posts li > :not(.wp-block-latest-posts__featured-image) { padding-left: 20px; padding-right: 20px; }
:is(html,#gwt-scope) body.gwt-dark .gwt-posts.wp-block-latest-posts li { background: var(--gw-card); border-color: var(--gw-line); }
:is(html,#gwt-scope) body.gwt-dark .gwt-posts.wp-block-latest-posts li > a { color: var(--gw-text); }
:is(html,#gwt-scope) body.gwt-dark .gwt-posts.wp-block-latest-posts li > a:hover { color: var(--gw-accent); }
:is(html,#gwt-scope) body.gwt-dark .gwt-posts.wp-block-latest-posts li:hover { border-color: rgb(184 245 61 / .4); box-shadow: 0 18px 40px -20px rgb(184 245 61 / .35); }
:is(html,#gwt-scope) body.gwt-dark .gwt-posts .wp-block-latest-posts__post-date { color: var(--gw-text-3); }
:is(html,#gwt-scope) body.gwt-dark .gwt-posts .wp-block-latest-posts__post-excerpt { color: var(--gw-text-2); }

/* CTA band */
:is(html,#gwt-scope) .gwt-cta { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; margin: 96px 0 24px; padding: clamp(28px, 4vw, 56px); border-radius: 24px; border: 1px solid var(--gw-line-2, #c7d2fe); background-color: var(--gw-bg-2, #eef2ff); background-image: radial-gradient(60% 120% at 100% 0%, rgb(184 245 61 / .18), transparent 60%), var(--gw-grid, none); background-size: auto, 32px 32px; overflow: hidden; }
:is(html,#gwt-scope) .gwt-cta > div { max-width: 620px; }
:is(html,#gwt-scope) .gwt-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
:is(html,#gwt-scope) .gwt-btn-accent { gap: 10px; background: var(--gw-accent, #4f46e5); color: var(--gw-accent-ink, #fff) !important; box-shadow: 0 0 0 1px rgb(184 245 61 / .3), 0 12px 32px -10px rgb(184 245 61 / .6); transition: transform .15s, background .15s; }
:is(html,#gwt-scope) .gwt-btn-accent:hover { background: var(--gw-accent-2, #4338ca); transform: translateY(-1px); }
:is(html,#gwt-scope) .gwt-btn-line { color: var(--gw-text, #0f172a) !important; border: 1px solid var(--gw-line-2, #cbd5e1); background: rgb(255 255 255 / .02); }
:is(html,#gwt-scope) .gwt-btn-line:hover { border-color: var(--gw-accent, #4f46e5); color: var(--gw-accent, #4f46e5) !important; }

/* ---------- Calculators in dark mode: remap the tool design tokens ---------- */
:is(html,#gwt-scope) body.gwt-dark .gw-tool {
  --color-page: #0b0e0c; --color-canvas: #111412; --color-subtle: #181c19; --color-muted: #181c19; --color-line: #252b27; --color-line-strong: #343c36;
  --color-ink: #f3f5f3; --color-ink-2: #c3cac4; --color-ink-3: #8c948e; --color-ink-4: #5f6761;
  --color-brand-50: #141c08; --color-brand-100: #1d2a0b; --color-brand-200: #3a5512; --color-brand-500: #c6f75e; --color-brand-600: #b8f53d; --color-brand-700: #a2e52a; --color-brand-900: #e2fbb0;
  --color-ai-50: #141c08; --color-ai-100: #1d2a0b; --color-ai-500: #b8f53d; --color-ai-600: #a2e52a; --color-c1: #b8f53d;
  --color-good-50: #0d2214; --color-good-600: #4ade80; --color-good-700: #22c55e;
  --color-warn-50: #261b06; --color-warn-600: #fbbf24; --color-warn-700: #f59e0b;
  --color-bad-50: #2a0f10; --color-bad-600: #f87171;
  --shadow-xs: none; --shadow-card: 0 1px 0 rgb(255 255 255 / .03) inset; --shadow-pop: 0 24px 60px -12px rgb(0 0 0 / .8); --shadow-ring: 0 0 0 3px rgb(184 245 61 / .25);
  color-scheme: dark;
}
:is(html,#gwt-scope) body.gwt-dark .gw-tool :is(.btn-primary, .btn-ai, .bg-brand-600) { color: #0a1003 !important; }
:is(html,#gwt-scope) body.gwt-dark .gw-tool .btn-dark { background: #2a312c !important; color: #f3f5f3 !important; }
:is(html,#gwt-scope) body.gwt-dark .gw-tool select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%238c948e' stroke-width='1.6'%3E%3Cpath d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); }
:is(html,#gwt-scope) body.gwt-dark .gw-tool [stroke="#F1F5F9"] { stroke: #1d221f; }
:is(html,#gwt-scope) body.gwt-dark .gw-tool [stroke="#4F46E5"] { stroke: #b8f53d; }
:is(html,#gwt-scope) body.gwt-dark .gw-tool [fill="#4F46E5"] { fill: #b8f53d; }
:is(html,#gwt-scope) body.gwt-dark .gw-tool circle[fill="#fff"] { fill: #111412; }
:is(html,#gwt-scope) body.gwt-dark .gw-tool [style*="rgb(79, 70, 229)"] { background-color: #b8f53d !important; }
:is(html,#gwt-scope) body.gwt-dark .gw-tool [style*="rgb(226, 232, 240)"] { background-color: #2a312c !important; }
:is(html,#gwt-scope) body.gwt-dark #gw-toaster.gw-tool { --color-ink: #1b201c; }
:is(html,#gwt-scope) body.gwt-dark .gw-tool-loading { border-color: var(--gw-line); background: linear-gradient(90deg, #0f1210 25%, #161b17 50%, #0f1210 75%); background-size: 200% 100%; }

/* Last menu item's dropdown opens to the left so it never runs off-screen */
@media (min-width: 1024px) {
  :is(html,#gwt-scope) .wp-block-kubio-dropdown-menu ul.menu > li:last-child > ul, :is(html,#gwt-scope) .wp-block-kubio-dropdown-menu > div > ul > li:last-child > ul { left: auto !important; right: 0 !important; }
}
:is(html,#gwt-scope) body.gwt-dark .gwt-kicker { color: var(--gw-accent) !important; }

/* ---------- Blog list cards (Kubio query loop) ---------- */
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-query-loop-item__inner { background: linear-gradient(180deg, var(--gw-card-2), var(--gw-card)) !important; border: 1px solid var(--gw-line); box-shadow: none !important; transition: border-color .18s, box-shadow .18s, transform .18s; }
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-query-loop-item__inner:hover { border-color: rgb(184 245 61 / .45); box-shadow: 0 20px 44px -22px rgb(184 245 61 / .45) !important; transform: translateY(-2px); }
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-post-featured-image__container { background-color: var(--gw-card-2) !important; }
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-post-meta__metaDataContainer { background: rgb(255 255 255 / .03) !important; border-top: 1px solid var(--gw-line); border-bottom: 1px solid var(--gw-line); }
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-post-meta__metaDataContainer :is(span, a, svg) { color: var(--gw-text-3) !important; fill: currentColor; }
:is(html,#gwt-scope) body.gwt-dark a.wp-block-kubio-post-title__link { color: var(--gw-text) !important; text-decoration: none !important; }
:is(html,#gwt-scope) body.gwt-dark a.wp-block-kubio-post-title__link:hover { color: var(--gw-accent) !important; }
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-post-excerpt__text { color: var(--gw-text-2) !important; }
:is(html,#gwt-scope) body.gwt-dark a.wp-block-kubio-read-more-button__link, :is(html,#gwt-scope) body.gwt-dark a.wp-block-kubio-read-more-button__link * { color: var(--gw-accent) !important; text-decoration: none !important; font-weight: 600; }
:is(html,#gwt-scope) body.gwt-dark a.wp-block-kubio-read-more-button__link:hover { text-decoration: underline !important; }
:is(html,#gwt-scope) body.gwt-dark :is(.page-numbers, .nav-links a, .wp-block-kubio-query-pagination a) { color: var(--gw-text-2) !important; border-color: var(--gw-line) !important; background: var(--gw-card) !important; }
:is(html,#gwt-scope) body.gwt-dark .page-numbers.current { color: var(--gw-accent-ink) !important; background: var(--gw-accent) !important; }

/* ---------- Single article: readable column and calmer type ---------- */
:is(html,#gwt-scope) body.gwt-dark.single .kubio-post-content { max-width: 760px; margin-left: auto !important; margin-right: auto !important; }
:is(html,#gwt-scope) body.gwt-dark.single .kubio-post-content :is(p, li) { font-size: 18px !important; line-height: 1.75 !important; color: var(--gw-text-2); }
:is(html,#gwt-scope) body.gwt-dark.single .kubio-post-content h2 { font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.2 !important; letter-spacing: -.02em; margin: 2.6em 0 .7em !important; }
:is(html,#gwt-scope) body.gwt-dark.single .kubio-post-content h3 { font-size: clamp(19px, 1.8vw, 22px) !important; line-height: 1.35 !important; margin: 1.8em 0 .5em !important; }
:is(html,#gwt-scope) body.gwt-dark.single .kubio-post-content :is(ul, ol) { padding-left: 1.4em; }
:is(html,#gwt-scope) body.gwt-dark.single .kubio-post-content li + li { margin-top: .35em; }
:is(html,#gwt-scope) body.gwt-dark .kubio-post-content blockquote.gw-tip { margin: 1.6em 0; padding: 16px 20px; border-left: 3px solid var(--gw-accent); border-radius: 0 14px 14px 0; background: rgb(184 245 61 / .06); }
:is(html,#gwt-scope) body.gwt-dark .kubio-post-content blockquote.gw-tip p { margin: 0; color: var(--gw-text) !important; }
:is(html,#gwt-scope) body.gwt-dark .kubio-post-content p.gw-cta { margin: 2em 0; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--gw-line-2); background-color: var(--gw-bg-2); background-image: var(--gw-grid); background-size: 28px 28px; color: var(--gw-text) !important; }
:is(html,#gwt-scope) body.gwt-dark .kubio-post-content figure.wp-block-table { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--gw-line); border-radius: 14px; }
:is(html,#gwt-scope) body.gwt-dark .kubio-post-content figure.wp-block-table table { width: 100%; border-collapse: collapse; margin: 0; }
:is(html,#gwt-scope) body.gwt-dark .kubio-post-content figure.wp-block-table :is(th, td) { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--gw-line); font-size: 15.5px; text-align: left; }
:is(html,#gwt-scope) body.gwt-dark .kubio-post-content figure.wp-block-table th { background: var(--gw-card-2); color: var(--gw-text); }
:is(html,#gwt-scope) body.gwt-dark.single .wp-block-kubio-post-featured-image__container { border-radius: 20px; overflow: hidden; }

/* ---------- Blog list: same cards as the homepage "Latest guides" (3-col grid, image on top, lime title, date, excerpt) ---------- */
:is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-query-loop__inner:has(> .post-list-item) { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; height: auto !important; margin: 0 !important; }
@media (max-width: 1000px) { :is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-query-loop__inner:has(> .post-list-item) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { :is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-query-loop__inner:has(> .post-list-item) { grid-template-columns: 1fr; } }
:is(html,#gwt-scope) body.gwt-dark .post-list-item { position: static !important; left: auto !important; top: auto !important; transform: none !important; width: auto !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-query-loop-item__inner { height: 100%; border-radius: 16px !important; overflow: hidden; padding: 0 !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-query-loop-item__align { display: flex !important; flex-direction: column; padding: 0 0 22px !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-featured-image__container { order: 0; margin: 0 0 18px !important; border-radius: 0 !important; padding-top: 52.5% !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-featured-image__container img { border-radius: 0 !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item a.wp-block-kubio-post-title__link { order: 1; padding: 0 22px; margin: 0 !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-title { margin: 0 !important; font-size: 19px !important; line-height: 1.35 !important; font-weight: 600 !important; letter-spacing: -.01em; color: var(--gw-accent) !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item a.wp-block-kubio-post-title__link:hover .wp-block-kubio-post-title { color: #d4fb85 !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-meta__metaDataContainer { order: 2; margin: 12px 0 0 !important; padding: 0 22px !important; background: none !important; border: 0 !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-meta__metaDataContainer > .metadata-item:first-child,
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-meta__metaDataContainer > .metadata-separator,
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-meta__metaDataContainer .h-svg-icon { display: none !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-meta__metaDataContainer :is(span, a) { font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--gw-text-3) !important; padding: 0 !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-excerpt__text { order: 3; margin: 12px 0 0 !important; padding: 0 22px !important; font-size: 15.5px !important; line-height: 1.6 !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-read-more-button__spacing { display: none !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-query-loop-item__inner:hover { border-color: rgb(184 245 61 / .55); box-shadow: 0 0 0 1px rgb(184 245 61 / .2), 0 22px 48px -22px rgb(184 245 61 / .5) !important; }
/* Homepage cards: lime titles like the reference */
:is(html,#gwt-scope) body.gwt-dark .gwt-posts.wp-block-latest-posts li > a { color: var(--gw-accent); }
:is(html,#gwt-scope) body.gwt-dark .gwt-posts.wp-block-latest-posts li > a:hover { color: #d4fb85; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item .wp-block-kubio-post-title { padding: 0 !important; font-family: inherit !important; text-align: left !important; }
:is(html,#gwt-scope) body.gwt-dark .post-list-item a.wp-block-kubio-post-title__link { font-family: inherit; }

/* Header menu: larger, clearer category links */
@media (min-width: 1024px) {
  :is(html,#gwt-scope) .wp-block-kubio-dropdown-menu ul.menu > li > a { font-size: 17px !important; font-weight: 600 !important; letter-spacing: -.005em !important; }
  :is(html,#gwt-scope) .wp-block-kubio-dropdown-menu ul.menu > li > a svg { width: 12px; height: 12px; }
  :is(html,#gwt-scope) body.gwt-dark .wp-block-kubio-dropdown-menu ul ul a { font-size: 15.5px !important; }
}

/* ---------- Long-form SEO copy on the homepage + category intros ---------- */
:is(html,#gwt-scope) .gwt-article { max-width: 860px !important; margin: 48px 0 0 !important; }
:is(html,#gwt-scope) .gwt-article h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.02em; margin: 2.4em 0 .6em; color: var(--gw-text, #0f172a); }
:is(html,#gwt-scope) .gwt-article h3 { font-size: 19px; margin: 1.6em 0 .4em; color: var(--gw-text, #0f172a); }
:is(html,#gwt-scope) .gwt-article :is(p, li) { font-size: 17px; line-height: 1.75; color: var(--gw-text-2, #475569); }
:is(html,#gwt-scope) .gwt-article :is(ol, ul) { padding-left: 1.4em; }
:is(html,#gwt-scope) .gwt-article li + li { margin-top: .35em; }
:is(html,#gwt-scope) .gwt-article a:not([class*="gwt-"]) { color: var(--gw-accent, #4f46e5); }
:is(html,#gwt-scope) .gwt-article code { font-size: .9em; padding: .15em .45em; border-radius: 6px; background: var(--gw-card-2, #f1f5f9); color: var(--gw-accent, #4f46e5); border: 1px solid var(--gw-line, #e2e8f0); }
:is(html,#gwt-scope) .gwt-article figure.wp-block-table, :is(html,#gwt-scope) body.gwt-page .entry-content figure.wp-block-table { margin: 1.4em 0; overflow-x: auto; border: 1px solid var(--gw-line, #e2e8f0); border-radius: 14px; }
:is(html,#gwt-scope) :is(.gwt-article, body.gwt-page .entry-content) figure.wp-block-table table { width: 100%; border-collapse: collapse; margin: 0; }
:is(html,#gwt-scope) :is(.gwt-article, body.gwt-page .entry-content) figure.wp-block-table :is(th, td) { padding: 10px 14px; border: 0; border-bottom: 1px solid var(--gw-line, #e2e8f0); font-size: 15px; text-align: left; color: var(--gw-text-2, #334155); }
:is(html,#gwt-scope) :is(.gwt-article, body.gwt-page .entry-content) figure.wp-block-table th { background: var(--gw-card-2, #f8fafc); color: var(--gw-text, #0f172a); font-weight: 650; }
:is(html,#gwt-scope) .gwt-faq h3 { padding-top: 1em; border-top: 1px solid var(--gw-line, #e2e8f0); }
:is(html,#gwt-scope) .gwt-cat-intro { max-width: 860px; margin: 0 0 32px; padding: 18px 22px; border-radius: 16px; border: 1px solid var(--gw-line, #e2e8f0); background: var(--gw-card, #fff); }
:is(html,#gwt-scope) .gwt-cat-intro p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--gw-text-2, #475569); }
:is(html,#gwt-scope) .gwt-anchor { display: block; position: relative; top: -24px; visibility: hidden; }

/* Category intro inside the (masonry) query grid: full-width first row, never absolutely positioned */
:is(html,#gwt-scope) .wp-block-kubio-query-loop__inner > .gwt-cat-intro { position: static !important; left: auto !important; top: auto !important; transform: none !important; grid-column: 1 / -1; width: auto !important; max-width: 860px; margin: 0 0 8px !important; }
