:root {
    --dg-bg: #050b16;
    --dg-bg-2: #081120;
    --dg-surface: rgba(12, 22, 38, 0.78);
    --dg-surface-strong: rgba(15, 28, 48, 0.92);
    --dg-surface-soft: rgba(255, 255, 255, 0.055);
    --dg-text: #eef6ff;
    --dg-text-soft: #b3c1d8;
    --dg-muted: #7f8ea7;
    --dg-border: rgba(143, 173, 220, 0.18);
    --dg-border-strong: rgba(43, 205, 255, 0.32);
    --dg-accent: #23d7ff;
    --dg-accent-2: #8b5cff;
    --dg-accent-3: #47f5b5;
    --dg-accent-dark: #0bb3e8;
    --dg-code-bg: #050913;
    --dg-code-text: #dff3ff;
    --dg-radius: 24px;
    --dg-radius-sm: 16px;
    --dg-shadow: 0 22px 70px rgba(0, 0, 0, 0.35);
    --dg-glow: 0 0 0 1px rgba(35, 215, 255, 0.14), 0 18px 70px rgba(35, 215, 255, 0.10);
    --dg-container: 1180px;
    --dg-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --dg-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--dg-text);
    background:
        radial-gradient(circle at 12% 8%, rgba(35, 215, 255, 0.20), transparent 28vw),
        radial-gradient(circle at 84% 12%, rgba(139, 92, 255, 0.20), transparent 30vw),
        radial-gradient(circle at 50% 100%, rgba(71, 245, 181, 0.10), transparent 34vw),
        linear-gradient(180deg, var(--dg-bg) 0%, var(--dg-bg-2) 100%);
    background-attachment: fixed;
    font-family: var(--dg-font);
    font-size: 16px;
    line-height: 1.65;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent 82%);
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,0.035) 45%, transparent 60%);
    transform: translateX(-35%);
    animation: dg-scan 11s linear infinite;
    opacity: 0.55;
}

@keyframes dg-scan {
    0% { transform: translateX(-55%); }
    100% { transform: translateX(55%); }
}
@keyframes dg-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}
@keyframes dg-glow-pulse {
    0%, 100% { box-shadow: var(--dg-glow); }
    50% { box-shadow: 0 0 0 1px rgba(35, 215, 255, 0.24), 0 22px 90px rgba(35, 215, 255, 0.18); }
}
@keyframes dg-reveal {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

a { color: var(--dg-accent); text-decoration: none; }
a:hover, a:focus { color: #8eeaff; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.screen-reader-text,
.skip-link {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
.skip-link:focus {
    clip: auto !important;
    clip-path: none;
    display: block;
    height: auto;
    left: 12px;
    top: 12px;
    width: auto;
    z-index: 100000;
    background: #ffffff;
    color: #000000;
    padding: 10px 14px;
    border-radius: 999px;
}

.dg-container { width: min(100% - 32px, var(--dg-container)); margin-inline: auto; }

.dg-site-header {
    position: sticky;
    top: 0;
    z-index: 99;
    background: rgba(5, 11, 22, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(143, 173, 220, 0.16);
}
.admin-bar .dg-site-header { top: 32px; }
.dg-header-grid {
    min-height: 70px;
    display: grid;
    grid-template-columns: minmax(170px, 260px) 1fr auto;
    align-items: center;
    gap: 22px;
}
.dg-brand { display: flex; flex-direction: column; gap: 0; }
.dg-logo img { max-height: 44px; width: auto; }
.dg-site-title {
    color: var(--dg-text);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.035em;
    text-decoration: none;
}
.dg-site-title:hover { text-decoration: none; color: var(--dg-text); }
.dg-site-description { margin: 0; color: var(--dg-muted); font-size: 13px; line-height: 1.25; }

.dg-primary-nav { justify-self: center; }
.dg-menu, .dg-menu ul { list-style: none; margin: 0; padding: 0; }
.dg-menu { display: flex; align-items: center; gap: 6px; }
.dg-menu li { position: relative; }
.dg-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--dg-text-soft);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
    transition: 0.22s ease;
}
.dg-menu a:hover,
.dg-menu .current-menu-item > a,
.dg-menu .current_page_item > a {
    color: var(--dg-text);
    background: rgba(255,255,255,0.075);
    border-color: rgba(35,215,255,0.22);
    text-decoration: none;
}
.dg-menu .sub-menu,
.dg-menu .children {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 230px;
    padding: 9px;
    border: 1px solid var(--dg-border);
    border-radius: 18px;
    background: rgba(8, 17, 32, 0.96);
    box-shadow: var(--dg-shadow);
}
.dg-menu li:hover > .sub-menu,
.dg-menu li:hover > .children,
.dg-menu li:focus-within > .sub-menu,
.dg-menu li:focus-within > .children { display: block; }
.dg-menu .sub-menu a,
.dg-menu .children a { width: 100%; justify-content: flex-start; }

.dg-header-actions { justify-self: end; }
.dg-btn,
.dg-search-form button,
.dg-toolbox button,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 999px;
    padding: 12px 18px;
    color: #06101d !important;
    background: linear-gradient(135deg, var(--dg-accent), var(--dg-accent-3));
    font-weight: 900;
    line-height: 1.1;
    cursor: pointer;
    box-shadow: 0 12px 34px rgba(35, 215, 255, 0.24);
    text-decoration: none !important;
    transition: transform 0.22s ease, filter 0.22s ease, box-shadow 0.22s ease;
}
.dg-btn:hover,
.dg-btn:focus,
.dg-search-form button:hover,
.dg-toolbox button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    color: #06101d !important;
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow: 0 16px 46px rgba(35, 215, 255, 0.34);
    text-decoration: none;
}
.dg-btn--small { min-height: 40px; padding: 10px 16px; font-size: 14px; }

.dg-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--dg-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.07);
    cursor: pointer;
}
.dg-menu-toggle span:not(.screen-reader-text) {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: var(--dg-text);
    border-radius: 2px;
}

.dg-site-main { padding: 30px 0 56px; }

.dg-home-intro {
    padding: 32px 0 20px;
    border-bottom: 1px solid rgba(143, 173, 220, 0.14);
}
.dg-home-intro__grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 20px;
    align-items: stretch;
}
.dg-home-intro__copy,
.dg-home-search,
.dg-page-head,
.dg-empty,
.dg-card,
.widget,
.dg-article,
.dg-toolbox,
.dg-cat-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(15, 28, 48, 0.86), rgba(10, 18, 32, 0.76));
    border: 1px solid var(--dg-border);
    border-radius: var(--dg-radius);
    box-shadow: var(--dg-shadow);
    backdrop-filter: blur(18px);
}
.dg-home-intro__copy::before,
.dg-home-search::before,
.dg-card::before,
.widget::before,
.dg-article::before,
.dg-toolbox::before,
.dg-cat-card::before,
.dg-page-head::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(35,215,255,0.13), transparent 38%, rgba(139,92,255,0.12));
    opacity: 0.7;
}
.dg-home-intro__copy > *,
.dg-home-search > *,
.dg-card > *,
.widget > *,
.dg-article > *,
.dg-toolbox > *,
.dg-cat-card > *,
.dg-page-head > * { position: relative; }
.dg-home-intro__copy { padding: 30px; animation: dg-reveal 0.45s ease both; }
.dg-home-search { padding: 24px; animation: dg-reveal 0.55s ease both; }
.dg-kicker {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid rgba(35,215,255,0.25);
    border-radius: 999px;
    background: rgba(35,215,255,0.08);
    color: var(--dg-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.dg-home-intro h1 {
    max-width: 780px;
    margin: 0 0 12px;
    font-size: clamp(34px, 4.2vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.055em;
}
.dg-home-intro p { max-width: 780px; margin: 0; color: var(--dg-text-soft); font-size: 17px; }
.dg-home-search h2 { margin: 0 0 12px; font-size: 24px; letter-spacing: -0.035em; }
.dg-home-search p { margin: 12px 0 0; color: var(--dg-muted); font-size: 14px; }

.dg-search-form { display: flex; gap: 10px; }
.dg-search-form input,
.dg-toolbox input,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="url"],
textarea,
select {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 1px solid rgba(143, 173, 220, 0.22);
    border-radius: 999px;
    padding: 13px 16px;
    color: var(--dg-text);
    background: rgba(255,255,255,0.06);
    outline: none;
    transition: 0.22s ease;
}
textarea { border-radius: 18px; }
.dg-search-form input:focus,
.dg-toolbox input:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: rgba(35,215,255,0.68);
    box-shadow: 0 0 0 4px rgba(35,215,255,0.12);
    background: rgba(255,255,255,0.085);
}
::placeholder { color: rgba(179,193,216,0.7); }

.dg-section-head { margin: 0 0 20px; }
.dg-section-head h2 { margin: 0 0 5px; font-size: 28px; letter-spacing: -0.04em; }
.dg-section-head p { margin: 0; color: var(--dg-text-soft); }
.dg-section-head--compact h2 { font-size: 24px; }
.dg-home-cats { padding: 26px 0 0; }
.dg-cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.dg-cat-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 104px;
    padding: 20px;
    text-decoration: none;
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.dg-cat-card::after {
    content: "→";
    position: absolute;
    right: 18px;
    bottom: 14px;
    color: var(--dg-accent);
    font-weight: 900;
    opacity: 0;
    transform: translateX(-8px);
    transition: 0.24s ease;
}
.dg-cat-card:hover {
    text-decoration: none;
    border-color: var(--dg-border-strong);
    transform: translateY(-4px);
    box-shadow: var(--dg-glow);
}
.dg-cat-card:hover::after { opacity: 1; transform: translateX(0); }
.dg-cat-card__name { color: var(--dg-text); font-weight: 900; font-size: 17px; }
.dg-cat-card__count { color: var(--dg-muted); font-size: 14px; }

.dg-layout {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding-top: 30px;
}
.dg-no-left-sidebar .dg-layout { grid-template-columns: minmax(0, 1fr); }
.dg-no-left-sidebar .dg-left-sidebar { display: none; }
.dg-front-layout { padding-top: 30px; }
.dg-content-area { min-width: 0; }

.dg-left-sidebar { position: sticky; top: 98px; }
.admin-bar .dg-left-sidebar { top: 130px; }
.widget { padding: 20px; margin-bottom: 16px; }
.widget-title,
.widget .wp-block-heading { margin: 0 0 13px; font-size: 18px; letter-spacing: -0.025em; color: var(--dg-text); }
.widget ul { margin: 0; padding-left: 18px; }
.widget li { margin: 8px 0; color: var(--dg-text-soft); }
.widget a { color: var(--dg-text-soft); }
.widget a:hover { color: var(--dg-accent); }
.widget_search label { display: block; color: var(--dg-text-soft); margin-bottom: 6px; }
.widget_search .wp-block-search__inside-wrapper,
.widget_search form { display: flex; gap: 8px; }
.widget_search .wp-block-search__button { border-radius: 999px; }

/* Search widget layout fix */
.dg-search-form,
.widget_search form,
.widget_search .search-form,
.wp-block-search__inside-wrapper {
    display: flex;
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.widget_search form label,
.widget_search .search-form label,
.widget_search .wp-block-search__label {
    flex: 1 1 auto;
    min-width: 0;
}

.dg-search-form input[type="search"],
.widget_search input[type="search"],
.widget_search .search-field,
.wp-block-search__input {
    flex: 1 1 auto;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.dg-search-form button,
.widget_search button,
.widget_search input[type="submit"],
.wp-block-search__button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.widget_search .search-form > label input[type="search"] {
    margin-top: 6px;
}

.dg-page-head { padding: 26px; margin-bottom: 18px; }
.dg-page-head h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.045em; }
.dg-page-head p { margin: 0; color: var(--dg-text-soft); }

.dg-post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dg-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease; }
.dg-card:hover { transform: translateY(-4px); border-color: var(--dg-border-strong); box-shadow: var(--dg-glow); }
.dg-card__thumb { display: block; aspect-ratio: 16/9; overflow: hidden; background: rgba(255,255,255,0.05); }
.dg-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.dg-card:hover .dg-card__thumb img { transform: scale(1.035); }
.dg-card__body { padding: 20px; display: flex; flex-direction: column; gap: 11px; min-height: 100%; }
.dg-card__title { margin: 0; font-size: 21px; line-height: 1.23; letter-spacing: -0.035em; }
.dg-card__title a { color: var(--dg-text); text-decoration: none; }
.dg-card__title a:hover { color: var(--dg-accent); }
.dg-card__excerpt { color: var(--dg-text-soft); font-size: 15px; }
.dg-card__excerpt p { margin: 0; }
.dg-card__more { margin-top: auto; font-weight: 900; color: var(--dg-accent); }
.dg-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--dg-muted);
    font-size: 13px;
}
.dg-post-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid rgba(143,173,220,0.14);
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
}
.dg-post-meta span:not(:last-child)::after { content: ""; }

.dg-article { padding: clamp(24px, 4vw, 44px); }
.dg-article-head { margin-bottom: 24px; }
.dg-article-head h1 { margin: 10px 0 12px; font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -0.055em; }
.dg-article-lead { margin: 0; color: var(--dg-text-soft); font-size: 19px; }
.dg-article-thumb { margin: 0 0 24px; border-radius: var(--dg-radius); overflow: hidden; }
.dg-article-content { font-size: 18px; color: #dce8f8; }
.dg-article-content h2 { margin: 36px 0 12px; font-size: 30px; line-height: 1.18; letter-spacing: -0.035em; color: var(--dg-text); }
.dg-article-content h3 { margin: 26px 0 10px; font-size: 23px; line-height: 1.2; color: var(--dg-text); }
.dg-article-content p { margin: 0 0 18px; }
.dg-article-content ul,
.dg-article-content ol { margin: 0 0 20px; padding-left: 24px; }
.dg-article-content li { margin: 7px 0; }
.dg-article-content blockquote {
    margin: 24px 0;
    padding: 19px 22px;
    border: 1px solid rgba(35,215,255,0.28);
    border-left: 4px solid var(--dg-accent);
    border-radius: 0 22px 22px 0;
    background: rgba(35,215,255,0.08);
    color: var(--dg-text);
}
.dg-article-content code,
.dg-article-content pre,
.dg-toolbox code { font-family: var(--dg-mono); }
.dg-article-content code {
    padding: 3px 7px;
    border: 1px solid rgba(143,173,220,0.18);
    border-radius: 9px;
    color: #bdf2ff;
    background: rgba(5,9,19,0.68);
    font-size: 0.92em;
}
.dg-article-content pre {
    overflow: auto;
    padding: 20px;
    border: 1px solid rgba(143,173,220,0.18);
    border-radius: 22px;
    color: var(--dg-code-text);
    background: var(--dg-code-bg);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}
.dg-article-content pre code { padding: 0; color: inherit; background: transparent; border: 0; }
.dg-article-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    font-size: 16px;
    overflow: hidden;
    border: 1px solid var(--dg-border);
    border-radius: 20px;
}
.dg-article-content th,
.dg-article-content td { padding: 12px 14px; border-bottom: 1px solid var(--dg-border); vertical-align: top; }
.dg-article-content tr:last-child th,
.dg-article-content tr:last-child td { border-bottom: 0; }
.dg-article-content th { background: rgba(255,255,255,0.06); text-align: left; color: var(--dg-text); }
.dg-after-content { margin-top: 28px; }
.dg-tags { margin-top: 20px; color: var(--dg-muted); }

.dg-toolbox { margin: 26px 0; padding: 24px; border-color: rgba(35, 215, 255, 0.34); animation: dg-glow-pulse 4s ease-in-out infinite; }
.dg-toolbox__label { color: var(--dg-accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; }
.dg-toolbox h2 { margin: 6px 0 8px; }
.dg-toolbox p { margin: 0 0 15px; color: var(--dg-text-soft); }
.dg-toolbox__form { display: flex; gap: 10px; }
.dg-toolbox__result {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid rgba(35,215,255,0.22);
    border-radius: 18px;
    background: rgba(35,215,255,0.07);
    color: var(--dg-text-soft);
}

.dg-empty { padding: 24px; }
.dg-empty h1,
.dg-empty h2 { margin-top: 0; }
.dg-pagination { margin-top: 24px; }
.dg-pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.dg-pagination a,
.dg-pagination span {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid var(--dg-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.055);
    color: var(--dg-text-soft);
}
.dg-pagination .current { background: var(--dg-accent); color: #06101d; border-color: var(--dg-accent); }

.dg-site-footer {
    margin-top: 42px;
    padding: 36px 0 22px;
    background: rgba(3, 7, 15, 0.72);
    border-top: 1px solid rgba(143,173,220,0.14);
    color: #d6e0ef;
}
.dg-site-footer a { color: #d6e0ef; }
.dg-footer-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; }
.dg-footer-about h2 { margin: 0 0 8px; }
.dg-footer-about p { margin: 0 0 14px; color: #9fb0c7; }
.dg-footer-menu { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.dg-footer-menu a { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,0.06); }
.dg-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dg-site-footer .widget { margin: 0; background: rgba(255,255,255,0.045); border-color: rgba(255,255,255,0.08); box-shadow: none; }
.dg-site-footer .widget-title { color: #ffffff; }
.dg-footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.09); color: #90a1b8; font-size: 14px; }

.comments-area { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--dg-border); }
.comment-list { padding-left: 24px; }

.dg-reveal { animation: dg-reveal 0.55s ease both; }

@media (max-width: 980px) {
    .dg-header-grid { grid-template-columns: 1fr auto auto; }
    .dg-primary-nav {
        display: none;
        grid-column: 1 / -1;
        justify-self: stretch;
        padding-bottom: 12px;
    }
    .dg-primary-nav.is-open { display: block; }
    .dg-menu { flex-direction: column; align-items: stretch; }
    .dg-menu a { width: 100%; }
    .dg-menu-toggle { display: inline-block; }
    .dg-home-intro__grid,
    .dg-layout,
    .dg-footer-grid { grid-template-columns: 1fr; }
    .dg-left-sidebar { position: static; }
    .dg-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .dg-container { width: min(100% - 24px, var(--dg-container)); }
    .dg-header-grid { gap: 10px; min-height: 64px; }
    .dg-header-actions { display: none; }
    .dg-site-main { padding-top: 18px; }
    .dg-home-intro { padding-top: 22px; }
    .dg-home-intro h1 { font-size: 32px; }
    .dg-home-intro__copy,
    .dg-home-search,
    .dg-article,
    .dg-page-head,
    .widget { padding: 18px; }
    .dg-search-form,
    .dg-toolbox__form,
    .widget_search .wp-block-search__inside-wrapper,
    .widget_search .search-form,
    .widget_search form { flex-direction: column; }
    .dg-search-form button,
    .widget_search button,
    .widget_search input[type="submit"],
    .wp-block-search__button { width: 100%; }
    .dg-cat-grid,
    .dg-post-grid,
    .dg-footer-widgets { grid-template-columns: 1fr; }
    .dg-article-content { font-size: 16px; }
    .dg-article-head h1 { font-size: 32px; }
    .dg-footer-bottom { flex-direction: column; }
    .admin-bar .dg-site-header { top: 0; }
}

/* DG 0.3.2 - WordPress block search hard fix */
.widget_search form.wp-block-search {
    display: block !important;
    width: 100% !important;
}
.widget_search form.wp-block-search .wp-block-search__label {
    display: block !important;
    width: 100% !important;
    margin: 0 0 10px !important;
    flex: none !important;
    color: var(--dg-text-soft);
}
.widget_search form.wp-block-search .wp-block-search__inside-wrapper {
    display: flex !important;
    align-items: stretch !important;
    gap: 10px !important;
    width: 100% !important;
}
.widget_search form.wp-block-search .wp-block-search__input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
}
.widget_search form.wp-block-search .wp-block-search__button {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 96px;
    margin-left: 0 !important;
}

.widget_search .search-form {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}
.widget_search .search-form > label {
    display: block;
    width: 100%;
    flex: 0 0 100%;
    margin: 0;
}
.widget_search .search-form > label input[type="search"] {
    width: 100% !important;
    margin-top: 8px;
}
.widget_search .search-form .search-submit {
    width: 100%;
}

@media (max-width: 640px) {
    .widget_search form.wp-block-search .wp-block-search__inside-wrapper {
        flex-direction: column !important;
    }
    .widget_search form.wp-block-search .wp-block-search__button {
        width: 100% !important;
    }
}
