/* DrawGuides × Blocksy: point Blocksy's palette and type at the spec tokens, so the
   theme's header, footer, links and buttons follow light and dark with the rest. */

:root:root {
	--theme-palette-color-1: var(--blue);
	--theme-palette-color-2: var(--blue);
	--theme-palette-color-3: var(--ink);
	--theme-palette-color-4: var(--ink);
	--theme-palette-color-5: var(--line);
	--theme-palette-color-6: var(--wash);
	--theme-palette-color-7: var(--wash);
	--theme-palette-color-8: var(--paper);
	--theme-font-stack-default: var(--body);
}

html body { --theme-font-family: var(--body); --theme-text-color: var(--ink); background: var(--paper); }
html body :is(h1, h2, h3, h4, h5, h6) { --theme-font-family: var(--disp); --theme-font-weight: 800; --theme-letter-spacing: -.03em; --theme-line-height: 1.02; --theme-headings-color: var(--ink); }
html body .entry-content :is(p, li) { color: var(--ink); }
html body .entry-content a:not(.dg-btn):not(.dg-card):not(.dg-cat):not(.dg-path):not(.dgp-card) { color: var(--blue); }

/* header: sticky, translucent, hairline */
@media (max-width: 999px) {
    html body header#header.ct-header {
        position: sticky;
        top: 0;
        z-index: 60;
        background: var(--paper);
    }
    html body header#header [data-device="mobile"] .ct-header-trigger {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        flex-shrink: 0;
        border: 1px solid var(--line);
        border-radius: 50%;
        background-color: var(--wash) !important;
        color: var(--ink);
        --theme-icon-color: var(--ink);
        --theme-icon-hover-color: var(--ink);
    }
    html body header#header [data-device="mobile"] .ct-header-trigger .ct-icon {
        flex: none;
        fill: currentColor;
    }
    html body header#header [data-device="mobile"] .ct-header-trigger:focus-visible {
        outline: 2px solid var(--blue);
        outline-offset: 3px;
    }
}
@media (min-width: 601px) and (max-width: 999px) {
    html body.admin-bar header#header.ct-header {
        top: var(--wp-admin--admin-bar--height, 46px);
    }
}
html body [data-header*="type-1"] .ct-header [data-row*="middle"] { --height: 70px; background: var(--navbg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
html body[data-header] .ct-header [data-id="menu"] > ul > li > a { --theme-text-transform: none; --theme-font-size: 15.5px; --theme-font-weight: 500; --theme-link-initial-color: var(--ink); --theme-link-hover-color: var(--ink); }
html body[data-header] .ct-header [data-id="menu"] > ul > li > a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
html body .ct-header .site-title { --theme-font-family: var(--disp); --theme-font-weight: 800; --theme-font-size: 22px; --theme-letter-spacing: -.04em; --theme-link-initial-color: var(--ink); --theme-link-hover-color: var(--ink); }
html body .ct-header .site-title a, .dg-logo { display: inline-flex; align-items: center; gap: 9px; }
html body .ct-header .site-title a::before, .dg-logo i { content: ''; display: block; width: 15px; height: 15px; border-radius: 50%; background: var(--blue); box-shadow: 7px 0 0 var(--lime); margin-right: 7px; flex: none; }
html body .ct-header .dg-menu-extra { display: flex; align-items: center; margin-left: 10px; }
html body .ct-header .dg-menu-cta > a.dg-btn { color: var(--btn-fg); padding: 11px 22px; min-height: 44px; font-size: 15px; }
html body .ct-header .dg-menu-cta > a.dg-btn:hover { color: #fff; }
html body .ct-header :is(.ct-header-search, .ct-header-trigger) { --theme-icon-color: var(--ink); }

/* pages whose block has its own H1 */
.dg-no-title .hero-section { display: none; }
.dg-no-title [data-vertical-spacing] { --theme-content-vertical-spacing: 0px; }
.dg-no-title .entry-content > .dg-home, .dg-no-title .entry-content > .dgp { margin-top: 0; }

/* footer columns above Blocksy's bottom bar */
.dg-footer { background: var(--wash); padding: 58px 0 10px; font-size: 15px; }
.dg-footer__grid { max-width: 1180px; margin: 0 auto; padding: 0 28px; display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.dg-footer .dg-logo { font: 800 22px var(--disp); letter-spacing: -.04em; color: var(--ink); text-decoration: none; }
.dg-footer__brand p { color: var(--mute); margin-top: 14px; max-width: 30ch; }
.dg-footer h4 { font: 700 14px var(--disp); letter-spacing: -.01em; margin: 0 0 14px; color: var(--ink); }
.dg-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.dg-footer ul a { color: var(--mute); text-decoration: none; }
.dg-footer ul a:hover { color: var(--ink); }
html body .ct-footer { --theme-link-initial-color: var(--mute); }
html body .ct-footer [data-row*="bottom"] { background: var(--wash); border-top: 1px solid var(--line); }

@media (max-width: 999px) {
	.dg-footer__grid { grid-template-columns: 1fr 1fr; }
	html body .ct-header .dg-menu-extra { display: none; }
}

/* homepage newsletter */
.dg-newsletter { max-width: 1180px; margin: 0 auto 78px; border: 1.5px solid var(--ink); border-radius: 26px; padding: clamp(28px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.dg-newsletter h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
.dg-newsletter h2 em { font-style: normal; color: var(--blue); }
.dg-newsletter p { color: var(--mute); margin: 14px 0 0; font-size: 17px; }
.dg-newsletter__form :is(h3, .ct-newsletter-subscribe-title, .ct-newsletter-subscribe-description) { display: none; }
.dg-newsletter__form input[type="email"], .dg-newsletter__form input[type="text"] { border: 1.5px solid var(--line); border-radius: 999px; min-height: 52px; padding: 0 20px; background: var(--surface); color: var(--ink); font: 500 16px var(--body); }
.dg-newsletter__form input:focus { border-color: var(--ink); outline: none; }
.dg-newsletter__form button, .dg-newsletter__form [type="submit"] { border-radius: 999px; min-height: 52px; padding: 0 26px; background: var(--btn-bg); color: var(--btn-fg); font: 600 15.5px var(--body); border: 0; cursor: pointer; }
.dg-newsletter__form button:hover, .dg-newsletter__form [type="submit"]:hover { background: var(--blue); color: #fff; }
@media (max-width: 940px) { .dg-newsletter { grid-template-columns: minmax(0, 1fr); margin: 0 16px 56px; } }

/* Blocksy "Trending now" strip: the site has no blog posts to trend */
.ct-trending-block { display: none !important; }

/* guides: no author/date line under the title (the method note carries "Updated") */
.single-drawing .hero-section .entry-meta { display: none; }


/* Site navigation and information pages. */
html body .ct-header .dg-nav-free > a,
html body .mobile-menu .dg-nav-free > a {
    --theme-link-initial-color: #13150b;
    --theme-link-hover-color: #13150b;
    background: #d8ff3e;
    border-radius: 999px;
    color: #13150b;
    font-weight: 750;
    min-height: 40px;
    padding-inline: 16px;
}
html body .mobile-menu .dg-nav-free { margin-block: 8px; }
.dg-free-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px 26px;
    flex-wrap: wrap;
    margin-block: 0 clamp(28px, 5vw, 60px);
    padding: clamp(20px, 3vw, 36px);
    border-radius: 24px;
    border: 1px solid var(--line);
    background: var(--wash);
}
.dg-free-banner h2 { margin: 0 0 8px; font-size: clamp(25px, 3vw, 37px); }
.dg-free-banner p { margin: 0; color: var(--ink); }
.dg-free-banner .dg-btn { background: #d8ff3e; color: #13150b; }
.dg-free-banner .dg-btn:hover, .dg-free-banner .dg-btn:focus-visible { background: var(--ink); color: var(--paper); }
.dg-info { max-width: 70rem; margin-inline: auto; }
.dg-info__intro { max-width: 66ch; font-size: clamp(19px, 2.3vw, 25px); }
.dg-info__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(18px, 3vw, 32px); }
.dg-info__grid > section, .dg-info__panel { border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 30px); background: var(--wash); }
.dg-info :is(h2, p) { margin-top: 0; }
.dg-info :is(section, .dg-shop__copy) > p:last-child { margin-bottom: 0; }
.dg-info__panel, .dg-info__actions { margin-top: 24px; }
.dg-info__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dg-shop-wrap { padding-block: clamp(30px, 6vw, 74px); }
.dg-shop-wrap > h1 { margin: 0 auto 24px; max-width: 70rem; }
.dg-shop__feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 68px); align-items: center; border: 1px solid var(--line); border-radius: 26px; padding: clamp(22px, 5vw, 64px); background: var(--wash); }
.dg-shop__art { display: grid; place-items: center; background: #d9e6ff; color: #1d2049; border-radius: 20px; padding: 26px; }
.dg-shop__book { max-width: 265px; width: 100%; aspect-ratio: 4/5; display: flex; flex-direction: column; justify-content: center; gap: 16px; text-align: center; padding: 18px; border-radius: 6px 18px 18px 6px; background: linear-gradient(150deg,#bceafc,#fce0ed); box-shadow: inset 7px 0 #27305b26, 6px 9px 0 #25325826; }
.dg-shop__book span { font-weight: 750; }
.dg-shop__book strong { font: 850 clamp(19px, 3.5vw, 34px)/1.03 var(--disp); }
.dg-shop__book b { display: block; color: #a22e30; font-size: 1.85em; }
@media (max-width: 680px) {
    .dg-shop__feature { grid-template-columns: minmax(0, 1fr); }
    .dg-shop__art { padding: 20px; }
}
body.tax-drawing_cat .hero-section .page-description {
    display: block !important;
    width: min(100%, 70ch);
    max-width: none;
    margin-inline: auto;
    color: var(--ink);
}
body.tax-drawing_cat .hero-section .page-description p { max-width: none; }
body.tax-drawing_cat .dg-hub { width: 100%; margin-block: clamp(28px,5vw,64px); gap: clamp(30px,5vw,64px); }
body.tax-drawing_cat .dg-hub__tips { gap: clamp(16px,3vw,30px); grid-template-columns: repeat(auto-fit,minmax(min(100%, 16rem),1fr)); }
body.tax-drawing_cat .dg-hub__tips li, body.tax-drawing_cat .dg-hub__faq details { min-width: 0; padding: clamp(16px,3vw,26px); border: 1px solid var(--line); background: var(--wash); border-radius: 18px; }
body.tax-drawing_cat .dg-hub__tips p { margin: 0; }
body.tax-drawing_cat .dg-hub__faq details { margin-block: 12px; }
body.tax-drawing_cat .dg-hub__faq summary { cursor: pointer; font-weight: 750; }
body.tax-drawing_cat .dg-hub__faq details p { max-width: 75ch; margin: 12px 0 0; }

.dgp-toolbar #dgp-tool-title { flex: 1; min-width: min(100%, 220px); font-size: clamp(28px, 3.4vw, 40px); margin: 0; }
@media (max-width: 760px) { .dgp-toolbar #dgp-tool-title { order: 3; flex-basis: 100%; } }


html body .ct-header [data-id="menu"] > ul > li.dg-nav-free { display: flex; align-items: center; }
html body .ct-header [data-id="menu"] > ul > li.dg-nav-free > a {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    align-self: center;
}
html body .entry-content .dg-shop__copy .dg-eyebrow { color: #13150b; }
.dg-shop-wrap .entry-content > .dg-shop { margin-block: 0; }


/* Square drawing previews stay on the same baseline within each category row. */
body.tax-drawing_cat .entries > article > .ct-media-container {
    order: -1;
    aspect-ratio: 1;
    margin-top: 0;
    background: #fff;
}
body.tax-drawing_cat .entries > article > .ct-media-container > img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 !important;
    object-fit: contain;
}
[data-dgp="tool"] { scroll-margin-top: 84px; }
.dgp-stage { min-width: 0; }

.dgp-stage.dgp-color[data-raster-practice] > [data-dgp="guide"] { opacity: 0; }
.dgp-stage.dgp-color[data-raster-practice] > canvas { pointer-events: auto; cursor: pointer; }


/* Current navigation state is visible beyond hover and keyboard focus. */
.ct-header .dg-nav-current > a, .mobile-menu .dg-nav-current > a {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 7px;
}
#get-in-touch { scroll-margin-top: 105px; }

.dgp .dgp-seg {
    background: var(--wash);
    border: 1px solid var(--line);
    gap: 4px;
}
.dgp .dgp-seg button {
    color: var(--ink);
    font-weight: 700;
    min-inline-size: 82px;
}
.dgp .dgp-seg button[aria-pressed="true"] {
    color: #13150b;
    background: #d8ff3e;
}
.dgp .dgp-seg button:focus-visible, .dgp-tools button:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.dgp .dgp-tools {
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--wash);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.dgp .dgp-tools button {
    margin: 0;
    min-height: 43px;
    padding-inline: 9px;
}
.dgp .dgp-tools button[hidden] { display: none; }
.dgp .dgp-tools [data-dgp="next"] { grid-column: 1 / -1; justify-content: center; }
.dgp .dgp-tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.dgp .dgp-tools button:disabled { opacity: .5; cursor: default; }
.dgp .dgp-panel .dgp-guide { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 760px) {
    .dgp .dgp-work { gap: 12px; }
    .dgp .dgp-side { display: contents; }
    .dgp .dgp-tools {
        grid-row: 1;
        margin: 0;
        grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
    }
    .dgp .dgp-tools [data-dgp="next"] { grid-column: auto; }
    .dgp .dgp-main { grid-row: 2; }
}


.dg-guide-answer { max-width: 70ch; font-size: clamp(17px, 1.8vw, 21px); line-height: 1.55; }
.dg-print-book {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-basis: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: var(--wash);
    color: var(--ink);
    margin-block: 16px;
}
.dg-print-book > img { width: clamp(100px, 16vw, 156px); height: auto; flex: 0 0 clamp(100px, 16vw, 156px); border-radius: 4px; }
.dg-print-book strong { font-size: clamp(17px, 2.2vw, 26px); }
.dg-print-book p { margin: 4px 0; font-size: 14px; }
.dg-print-book__cover { flex: 0 0 clamp(96px, 16vw, 156px); }
.dg-print-book__cover img { display: block; width: 100%; height: auto; border-radius: 6px; }
.dg-print-book__link { display: inline-block; margin-top: 6px; font-size: 15px; font-weight: 700; }


body .dg-book-cover { width: 100%; height: auto; aspect-ratio: 2550 / 3299 !important; object-fit: contain; }


.dg-print-resources {
    display: grid;
    gap: 12px;
    flex-basis: 100%;
    width: 100%;
}
.dg-print-resources .dg-print-book { margin: 0; gap: clamp(12px, 2vw, 22px); }
.dg-print-book__cover--worksheet { background: white; border-radius: 6px; overflow: hidden; aspect-ratio: 0.77; }
.dg-print-book__cover--worksheet img { height: 100%; object-fit: cover; object-position: top; }
.dg-print-book__link { text-decoration: underline; text-underline-offset: 3px; }


.dg-look-inside { margin-block: 36px; }
.dg-look-inside__pages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 16px; margin-block: 20px; }
.dg-look-inside__pages figure { margin: 0; min-width: 0; }
.dg-look-inside__pages a { display: block; border: 1px solid var(--theme-border-color, #ccc); border-radius: 12px; overflow: hidden; background: white; }
.dg-look-inside__pages img { display: block; width: 100%; height: auto; }
.dg-look-inside__pages figcaption { margin-top: 6px; font-weight: 600; }

.dg-look-inside a.dg-look-inside__buy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border-radius: 8px;
    background: #858bff;
    color: #14142a !important;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
}
.dg-look-inside a.dg-look-inside__buy:hover {
    background: #a4a8ff;
    color: #14142a !important;
}
.dg-look-inside a.dg-look-inside__buy:focus-visible {
    outline: 2px solid #6c72e6;
    outline-offset: 3px;
}
