/* ==========================================================================
   Noony Modern v3.0 — Faithful Original Toddlers Look on Modern CSS Grid
   Uses original noonytheme illustrated assets with crisp modern fallbacks.
   ========================================================================== */

:root {
    --sky-top: #62d8fa;
    --sky-mid: #b6ecfc;
    --sky-bg: #f1fafb;
    --sky-deep: #176188;
    --sky-accent: #3fbde4;

    --orange: #f78113;
    --orange-hover: #e06d05;
    --orange-dark: #a6431c;
    --nav-text: #c36800;
    --nav-hover: #7f4300;

    --cream: #fff8e5;
    --cream-border: #e4dbba;

    --earth: #381b0b;
    --ink: #2c353d;
    --ink-muted: #5b6974;
    --surface: #ffffff;
    --border: #e5eff2;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    --shadow-card: 0 6px 24px rgba(23, 97, 136, 0.08);
    --shadow-soft: 0 3px 12px rgba(23, 97, 136, 0.06);

    --font-base: 'Alef', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --max-width: 1170px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--sky-bg);
    background-image:
        url('../img/bg-blue.png'),
        linear-gradient(180deg, #62d8fa 0%, #b6ecfc 380px, #f1fafb 950px, #f1fafb 100%);
    background-repeat: repeat-x, no-repeat;
    background-position: top center, top center;
    background-size: auto 1110px, 100% 1110px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

iframe {
    max-width: 100%;
}

a {
    color: var(--sky-deep);
    text-decoration: none;
    transition: color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

a:hover, a:focus-visible {
    color: var(--orange);
}

:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 2px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 9999;
    width: auto;
    height: auto;
    clip: auto;
    background: var(--sky-deep);
    color: #fff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
}

/* ---------- Original Sky Clouds (.heavens) ---------- */
.heavens {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    height: 320px;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.cloudwrap {
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
    height: 100%;
}

.clouds {
    position: absolute;
    top: 0;
    background-repeat: no-repeat;
    background-size: contain;
}

.clouds-left {
    left: -360px;
    width: 492px;
    height: 256px;
    background-image: url('../img/clouds-left.png');
}

.clouds-right {
    right: -320px;
    width: 421px;
    height: 263px;
    background-image: url('../img/clouds-right.png');
}

/* ---------- Mobile Topbar & Drawer ---------- */
.mobile-topbar {
    display: none;
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--sky-mid);
    padding: 10px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 2px 12px rgba(23, 97, 136, 0.1);
}

.mobile-menu-toggle {
    background: var(--sky-bg);
    border: 1px solid var(--sky-mid);
    border-radius: var(--radius-sm);
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 20px;
}

.hamburger span {
    display: block;
    height: 2.5px;
    background: var(--sky-deep);
    border-radius: 2px;
}

.mobile-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--sky-deep);
}

.mobile-cta-btn {
    background: var(--orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    padding: 7px 14px;
    border-radius: 999px;
}

.mobile-drawer {
    background: #fff;
    border-bottom: 3px solid var(--sky-accent);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    padding: 16px;
    position: relative;
    z-index: 890;
}

.mobile-nav-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mobile-nav-list a {
    display: block;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--sky-bg);
    color: var(--sky-deep);
    font-weight: 700;
}

/* ---------- Main Container & Original Header ---------- */
.site-shell {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 14px 15px 40px;
}

.site-header {
    position: relative;
    text-align: center;
    padding-bottom: 42px;
    margin-bottom: 18px;
}

.sunrays {
    background-image: url('../img/rays-new2.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 92% 100%;
}

.desktop-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 6px;
    position: relative;
    z-index: 3;
}

.top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.top-menu a {
    display: inline-block;
    background: rgba(255, 255, 255, 0.88);
    color: var(--sky-deep);
    font-size: 0.92rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
}

.top-menu a:hover {
    background: var(--orange);
    color: #fff;
}

/* Search Form */
.noony-search-form {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid rgba(63, 189, 228, 0.4);
    border-radius: 999px;
    padding: 2px 5px;
    box-shadow: var(--shadow-soft);
    max-width: 280px;
    width: 100%;
}

.noony-search-input {
    border: 0;
    background: transparent;
    padding: 6px 12px;
    font-family: inherit;
    font-size: 0.94rem;
    color: var(--ink);
    width: 100%;
    outline: none;
}

.noony-search-submit {
    border: 0;
    background: var(--orange);
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

/* Logo */
.site-branding {
    position: relative;
    z-index: 3;
    margin: 6px auto 16px;
}

.site-logo img,
.site-logo-fallback img {
    display: block;
    margin: 0 auto;
    max-height: 106px;
    width: auto;
}

/* Original Wooden-Orange & Sunny-Yellow Navigation Bar (.navcontainer) */
.navcontainer {
    position: relative;
    z-index: 10;
    background: #e57a1c url('../img/navcontainbg.png') center/100% 100% no-repeat;
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: 0 4px 0 #943804, 0 10px 18px rgba(56, 27, 11, 0.16);
}

.navcontainer .primary-nav {
    background: #ffe082 url('../img/navyellowbg.png') center/100% 100% no-repeat;
    min-height: 68px;
    border-radius: 7px;
    box-shadow: 0 3px 0 #cc8822;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2px;
}

.main-menu > li {
    position: relative;
}

.main-menu > li > a {
    display: inline-block;
    padding: 10px 13px;
    font-size: 18px;
    font-weight: 700;
    color: var(--nav-text);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
    border-radius: 8px;
}

.main-menu > li > a:hover,
.main-menu > li.current-menu-item > a {
    color: var(--nav-hover);
    background-image: url('../img/navbuttonhover.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    background-position: center center;
}

.main-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    min-width: 210px;
    list-style: none;
    margin: 4px 0 0;
    padding: 8px;
    background: #fff8e5;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border: 2px solid #e4c787;
    z-index: 200;
    text-align: start;
}

.main-menu > li:hover > .sub-menu,
.main-menu > li:focus-within > .sub-menu {
    display: block;
}

.main-menu .sub-menu a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 0.95rem;
}

.main-menu .sub-menu a:hover {
    background: #fceac4;
}

/* Original Flanking Header Illustrations & Grass Strip */
.headimg-left,
.headimg-right {
    position: absolute;
    bottom: 68px;
    height: 145px;
    width: 280px;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

.headimg-left {
    left: 0;
    background-position: left bottom;
    background-image: url('../img/headimg-left.png');
}

.headimg-right {
    right: 0;
    background-position: right bottom;
    background-image: url('../img/headimg-right.png');
}

.grass {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 76px;
    background-image: url('../img/grass.png');
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: 92% auto;
    pointer-events: none;
    z-index: 1;
}

/* ---------- 2-Column Content + Sidebar Grid ---------- */
.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
    position: relative;
    z-index: 2;
}

.entry-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 32px 34px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    margin-bottom: 24px;
}

.noony-breadcrumbs {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 14px;
}

.noony-breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.noony-breadcrumbs a {
    color: var(--sky-deep);
    font-weight: 700;
}

.entry-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.cat-pill {
    display: inline-block;
    background: #e7f6fb;
    color: var(--sky-deep);
    font-size: 0.86rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
}

.cat-pill:hover {
    background: var(--sky-accent);
    color: #fff;
}

.entry-title, .archive-title {
    margin: 0 0 14px;
    font-size: 26px;
    line-height: 1.32;
    color: var(--sky-deep);
    font-weight: 700;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin-bottom: 18px;
}

.entry-featured {
    margin: 0 0 22px;
    padding: 8px;
    background: linear-gradient(135deg, #e7f7fd 0%, #fff8e6 100%);
    border: 2px solid #d7eef7;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.entry-featured img {
    display: block;
    width: 100%;
    border-radius: 8px;
}

.entry-content h2 {
    font-size: 22px;
    color: var(--sky-deep);
    margin: 26px 0 12px;
}

.entry-content h3 {
    font-size: 19px;
    color: var(--orange-dark);
    margin: 22px 0 10px;
}

.entry-content p {
    margin: 0 0 16px;
}

.entry-content ul, .entry-content ol {
    margin: 0 0 18px;
    padding-inline-start: 24px;
}

.entry-content blockquote {
    margin: 22px 0;
    padding: 16px 22px;
    background: var(--cream);
    border-inline-start: 4px solid var(--orange);
    border-radius: var(--radius-sm);
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.entry-content th, .entry-content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: start;
}

.entry-content th {
    background: var(--sky-bg);
    color: var(--sky-deep);
}

/* Forms & Pregnancy Calculator */
.entry-content select,
.entry-content input[type="text"],
.entry-content input[type="number"],
.entry-content input[type="date"],
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    padding: 10px 14px;
    border: 1.5px solid #cde2ea;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    background: #fbfdfe;
    color: var(--ink);
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 textarea,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
}

.entry-content input[type="submit"],
.entry-content button[type="submit"],
.wpcf7 input[type="submit"],
.comment-form .submit,
.noony-btn {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 10px 24px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(247, 129, 19, 0.25);
}

.entry-content input[type="submit"]:hover,
.entry-content button[type="submit"]:hover,
.wpcf7 input[type="submit"]:hover,
.comment-form .submit:hover,
.noony-btn:hover {
    background: var(--orange-hover);
    color: #fff;
}

/* Tags, Nav, Archive Cards, Related */
.entry-tags {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.tag-pill {
    font-size: 0.86rem;
    background: var(--sky-bg);
    color: var(--sky-deep);
    padding: 4px 10px;
    border-radius: 999px;
}

.post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 26px;
}

.post-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
}

.post-card__thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
}

.post-card__body {
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card__title {
    margin: 10px 0 8px;
    font-size: 1.18rem;
    line-height: 1.35;
}

.post-card__excerpt {
    font-size: 0.95rem;
    color: var(--ink-muted);
    margin-bottom: 14px;
    flex: 1;
}

.post-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.86rem;
    color: var(--ink-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.post-card__more {
    font-weight: 700;
    color: var(--orange-dark);
}

.related-posts {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.related-posts__title {
    margin: 0 0 16px;
    font-size: 1.25rem;
    color: var(--sky-deep);
}

.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-card__thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 8px;
    display: block;
}

.related-card__title {
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.4;
}

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-weight: 700;
}

.pagination .page-numbers.current {
    background: var(--orange);
    color: #fff;
    border-color: var(--orange);
}

/* ---------- Original Sidebar (Warm Cream Pinned-Note Cards) ---------- */
.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.noony-widget {
    position: relative;
    background: linear-gradient(180deg, #fff8e5 0%, #fceac4 100%);
    border: 1px solid var(--cream-border);
    border-radius: 10px;
    padding: 30px 26px;
    box-shadow: 0 5px 18px rgba(148, 56, 4, 0.08);
}

.widget-pins {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 10px;
    inset-inline: 12px;
    pointer-events: none;
}

.widget-pins::before,
.widget-pins::after {
    content: "";
    width: 10px;
    height: 10px;
    background: url('../img/bluenail.png') center/contain no-repeat;
}

.widget-pins--bottom {
    top: auto;
    bottom: 10px;
}

.noony-widget .widget-title {
    margin: 4px 0 14px;
    font-size: 21px;
    color: var(--orange-dark);
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(228, 219, 186, 0.85);
}

.noony-widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.noony-widget li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(228, 219, 186, 0.75);
}

.noony-widget li:last-child {
    border-bottom: 0;
}

.noony-widget a {
    color: var(--orange-dark);
    font-weight: 700;
    font-size: 0.98rem;
}

.noony-widget a:hover {
    color: #cb6b1d;
}

/* ---------- Original Bottom Landscape & Dirt Footer ---------- */
.newlandscape {
    width: 100%;
    display: flex;
    background-image: url('../img/grasscut.png');
    background-position: bottom;
    background-repeat: repeat-x;
    margin-top: 10px;
    min-height: 290px;
    overflow: hidden;
}

.newlandscape .onleft,
.newlandscape .onright {
    width: 50%;
    height: 310px;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
}

.newlandscape .onleft {
    background-position: left bottom;
    background-image: url('../img/onleft.png');
}

.newlandscape .onright {
    background-position: right bottom;
    background-image: url('../img/onright.png');
}

.billboard {
    position: absolute;
    bottom: 8px;
    right: 8%;
    width: 403px;
    max-width: 92%;
    height: 242px;
    background: url('../img/billboard.png') center bottom/contain no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 46px 76px;
}

.billboard-content p {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    color: #5b3212;
    line-height: 1.35;
}

.footer-wrap {
    background-image: url('../img/footer-dirt.jpg');
    background-repeat: repeat-x;
    background-color: var(--earth);
    color: #f4e6d8;
    padding: 34px 20px 36px;
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-menu a {
    color: #ffe2bd;
    font-size: 0.95rem;
}

.footer-menu a:hover {
    color: #fff;
    text-decoration: underline;
}

.back-to-top {
    position: fixed;
    bottom: 22px;
    inset-inline-end: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: var(--sky-deep);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(23, 97, 136, 0.3);
    z-index: 800;
}

.back-to-top:hover {
    background: var(--orange);
}

.error-404 {
    text-align: center;
}

.error-404__code {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .headimg-left,
    .headimg-right {
        width: 170px;
        height: 105px;
    }

    .posts-grid,
    .related-posts__grid {
        grid-template-columns: 1fr;
    }

    .newlandscape .onleft {
        display: none;
    }

    .newlandscape .onright {
        width: 100%;
        height: 220px;
        background-size: cover;
    }
}

@media (max-width: 768px) {
    .mobile-topbar {
        display: flex;
    }

    .desktop-topbar,
    .navcontainer,
    .heavens,
    .headimg-left,
    .headimg-right,
    .grass {
        display: none;
    }

    .site-header {
        padding-bottom: 10px;
    }

    .site-shell {
        padding: 12px 14px 32px;
    }

    .entry-card {
        padding: 22px 18px;
    }

    .post-navigation .nav-links {
        grid-template-columns: 1fr;
    }
}


/* ---------- Built-in Accessibility Toolbar & Modes ---------- */
.noony-a11y {
    position: fixed;
    bottom: 22px;
    inset-inline-start: 22px;
    z-index: 950;
}

.noony-a11y__toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #176188;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.noony-a11y__toggle:hover {
    background: #0f4866;
}

.noony-a11y__panel {
    position: absolute;
    bottom: 58px;
    inset-inline-start: 0;
    width: 280px;
    background: #ffffff;
    color: #1f2933;
    border: 2px solid #176188;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    padding: 14px;
}

.noony-a11y__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid #e3eef2;
    font-size: 1.05rem;
}

.noony-a11y__close {
    background: transparent;
    border: 0;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #1f2933;
}

.noony-a11y__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.noony-a11y__grid button {
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 700;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid #cde2ea;
    background: #f4fafc;
    color: #176188;
    cursor: pointer;
}

.noony-a11y__grid button[aria-pressed="true"] {
    background: #176188;
    color: #fff;
    border-color: #176188;
}

.noony-a11y__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e3eef2;
    font-size: 0.88rem;
}

.noony-a11y__reset {
    background: #fff1e6;
    color: #a6431c;
    border: 1px solid #f0cba8;
    border-radius: 6px;
    padding: 5px 10px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
}

.noony-a11y__statement {
    font-weight: 700;
    text-decoration: underline;
    color: #176188;
}

/* Accessibility visual modes */
html.a11y-grayscale {
    filter: grayscale(100%);
}

html.a11y-invert {
    filter: invert(100%) hue-rotate(180deg);
}

html.a11y-invert img,
html.a11y-invert video {
    filter: invert(100%) hue-rotate(180deg);
}

body.a11y-high-contrast,
body.a11y-high-contrast .entry-card,
body.a11y-high-contrast .noony-widget,
body.a11y-high-contrast .post-card,
body.a11y-high-contrast .related-posts {
    background: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.a11y-high-contrast a,
body.a11y-high-contrast h1,
body.a11y-high-contrast h2,
body.a11y-high-contrast h3 {
    color: #ffff00 !important;
}

body.a11y-links a {
    text-decoration: underline !important;
    outline: 2px solid #f78113 !important;
    outline-offset: 2px;
}

body.a11y-readable-font,
body.a11y-readable-font * {
    font-family: Arial, Helvetica, sans-serif !important;
    letter-spacing: 0.02em;
}

body.a11y-stop-anim *,
body.a11y-stop-anim *::before,
body.a11y-stop-anim *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
}


/* ==========================================================================
   v3.1.0 Root-Cause Layout & Responsive Fixes
   ========================================================================== */

/* 1. Mobile sticky topbar + fixed drawer so menu opens at ANY scroll position */
@media (max-width: 768px) {
    .mobile-topbar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 62px;
        z-index: 950;
    }

    body {
        padding-top: 62px;
    }

    body.admin-bar .mobile-topbar {
        top: 46px;
    }

    .mobile-drawer {
        position: fixed;
        top: 62px;
        left: 0;
        right: 0;
        max-height: calc(100vh - 62px);
        overflow-y: auto;
        z-index: 940;
    }

    body.admin-bar .mobile-drawer {
        top: 108px;
        max-height: calc(100vh - 108px);
    }
}

/* 2. Instant clean switch when resizing between mobile and desktop */
@media (min-width: 769px) {
    .mobile-topbar,
    .mobile-drawer {
        display: none !important;
    }
}

/* 3. Desktop header: dinosaur, teddy bear & grass cleanly ABOVE .navcontainer */
.site-header {
    padding-bottom: 0;
    margin-bottom: 24px;
}

.site-branding {
    margin: 8px auto 46px;
}

.headimg-left,
.headimg-right {
    bottom: 84px;
    height: 145px;
    width: 270px;
    z-index: 2;
}

.grass {
    bottom: 56px;
    height: 80px;
    background-size: 94% auto;
    z-index: 1;
}

.navcontainer {
    position: relative;
    z-index: 10;
}

@media (max-width: 1120px) and (min-width: 769px) {
    .headimg-left,
    .headimg-right {
        width: 190px;
        height: 110px;
        bottom: 86px;
    }

    .main-menu > li > a {
        font-size: 16px;
        padding: 8px 9px;
    }
}

/* 4. Bottom landscape (rainbow + forest + billboard) in true physical LTR order */
.newlandscape {
    direction: ltr;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 360px;
    margin-top: -10px;
    background-size: auto 360px;
}

.newlandscape .onleft,
.newlandscape .onright {
    width: 50%;
    height: 360px;
    background-size: contain;
    background-repeat: no-repeat;
}

.newlandscape .onleft {
    background-position: left bottom;
}

.newlandscape .onright {
    background-position: right bottom;
}

.billboard {
    direction: rtl;
    right: 4%;
    bottom: 6px;
}

@media (max-width: 991px) {
    .newlandscape {
        min-height: 220px;
        background-size: auto 220px;
    }

    .newlandscape .onleft {
        display: none;
    }

    .newlandscape .onright {
        width: 100%;
        height: 220px;
        background-position: center bottom;
        background-size: contain;
    }
}

@media (max-width: 768px) {
    .newlandscape {
        min-height: 150px;
        background-size: auto 150px;
    }

    .newlandscape .onright {
        height: 150px;
    }
}


/* ==========================================================================
   v3.2.0 Mobile Footer & Landscape Polish
   ========================================================================== */
@media (max-width: 991px) {
    .newlandscape .onright {
        width: 100%;
        height: 220px;
        background-position: right bottom;
        background-size: auto 100%;
    }
}

@media (max-width: 768px) {
    .newlandscape {
        min-height: 165px;
        background-size: auto 165px;
    }

    .newlandscape .onright {
        height: 165px;
        background-position: right bottom;
        background-size: auto 100%;
    }

    /* Keep footer links cleanly above floating Accessibility & Back-to-Top buttons */
    .footer-wrap {
        padding-bottom: 92px;
    }

    .footer-bottom {
        justify-content: center;
        text-align: center;
    }

    .footer-menu {
        justify-content: center;
        gap: 10px 16px;
    }
}


/* ==========================================================================
   v4.0.0 Original Post Design (Stars, Cloud Frames, Underlines, Quotes)
   + Desktop Nav/Clouds Polish + Modern Calculators & Forms Styling
   ========================================================================== */

/* Desktop single-line nav & closer clouds on 1280px-1440px screens */
@media (min-width: 992px) {
    .main-menu {
        flex-wrap: nowrap;
    }

    .main-menu > li > a {
        font-size: 16.5px;
        padding: 10px 10px;
        white-space: nowrap;
    }
}

@media (min-width: 992px) and (max-width: 1140px) {
    .main-menu > li > a {
        font-size: 15px;
        padding: 9px 7px;
    }
}

.clouds-left {
    left: -240px;
}

.clouds-right {
    right: -220px;
}

/* Original playful hand-drawn wavy underline under post & page H1 titles */
.entry-title::after,
.archive-title::after {
    display: block;
    content: '';
    height: 18px;
    background: url('../img/underline.svg') center/100% 100% no-repeat;
    margin: 14px 0 18px;
}

/* Original star bullets instead of plain dots inside posts & pages */
.entry-content ul {
    list-style-image: url('../img/bullet.svg');
    padding-inline-start: 28px;
}

.entry-content ul li {
    padding: 0.35em 0;
}

.entry-content ul li ul {
    list-style-image: url('../img/bullet2.svg');
    margin-top: 6px;
}

.entry-content ul li ul li ul {
    list-style-image: url('../img/bullet3.svg');
    margin-top: 4px;
}

/* Original cloud picture frame overlay on featured images & in-post images */
.entry-featured.post-featured-image {
    position: relative;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: none;
    margin: 0 0 24px;
}

.entry-featured.post-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
}

.entry-featured.post-featured-image .overlay,
.noony-cloud-frame .overlay {
    background: url('../img/pictureframe.svg') center bottom/100% 100% no-repeat;
    position: absolute;
    inset: -1px;
    pointer-events: none;
    z-index: 2;
}

.noony-cloud-frame {
    position: relative;
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    vertical-align: middle;
    margin: 14px auto;
}

.noony-cloud-frame img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Original playful blockquote background */
.entry-content blockquote {
    background: url('../img/quotebg.svg') center/100% 100% no-repeat;
    border: 0;
    border-inline-start: 0;
    padding: 24px 9%;
    margin: 24px 0;
    font-size: 20px;
    line-height: 1.6;
    color: #366d7e;
    font-style: italic;
}

.entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/* 404 Robot */
.error-404__robot img {
    margin: 0 auto 16px;
    max-width: 220px;
}

/* ---------- Modern Calculators & Forms UI ---------- */
.entry-content form:not(.noony-search-form) {
    background: linear-gradient(180deg, #f6fcfe 0%, #fffaf0 100%);
    border: 2px solid #d6edf5;
    border-radius: 16px;
    padding: 22px 24px;
    margin: 20px 0 26px;
    box-shadow: 0 6px 20px rgba(23, 97, 136, 0.07);
}

.entry-content form:not(.noony-search-form) label {
    font-weight: 700;
    color: var(--sky-deep);
}

.entry-content form:not(.noony-search-form) select,
.entry-content form:not(.noony-search-form) input[type="text"],
.entry-content form:not(.noony-search-form) input[type="number"],
.entry-content form:not(.noony-search-form) input[type="email"],
.entry-content form:not(.noony-search-form) input[type="tel"],
.entry-content form:not(.noony-search-form) input[type="date"],
.entry-content form:not(.noony-search-form) textarea {
    border: 1.5px solid #bfe0ec;
    border-radius: 10px;
    padding: 10px 14px;
    background: #ffffff;
    font-size: 16px;
    margin: 5px 4px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.entry-content form:not(.noony-search-form) select:focus,
.entry-content form:not(.noony-search-form) input:focus,
.entry-content form:not(.noony-search-form) textarea:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(247, 129, 19, 0.18);
    outline: none;
}

.entry-content form:not(.noony-search-form) input[type="submit"],
.entry-content form:not(.noony-search-form) button[type="submit"],
.entry-content form:not(.noony-search-form) input[type="button"] {
    background: linear-gradient(180deg, #ff962e 0%, #f78113 100%);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 11px 28px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(247, 129, 19, 0.3);
}

.entry-content form:not(.noony-search-form) input[type="submit"]:hover,
.entry-content form:not(.noony-search-form) button[type="submit"]:hover,
.entry-content form:not(.noony-search-form) input[type="button"]:hover {
    background: linear-gradient(180deg, #f78113 0%, #d96904 100%);
    transform: translateY(-1px);
}

.wpcf7-response-output {
    border-radius: 10px;
    padding: 12px 16px !important;
    font-weight: 700;
}


/* ==========================================================================
   v5.1.0 Global Responsive Tables & Mobile Grid Overflow Fix
   ========================================================================== */
html, body {
    max-width: 100%;
    overflow-x: clip;
}

.site-main,
.site-sidebar,
.entry-card,
.entry-content {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (max-width: 991px) {
    .content-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.entry-content table.alignright,
.entry-content table.alignleft,
.entry-content table.aligncenter {
    float: none;
    margin-inline: auto;
}

.noony-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border-radius: 10px;
}

.noony-table-scroll table {
    margin: 0;
    min-width: 480px;
    width: 100%;
}

@media (max-width: 768px) {
    .entry-content > table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .entry-content th,
    .entry-content td {
        padding: 8px 10px;
        font-size: 15px;
        overflow-wrap: break-word;
    }
}


/* ==========================================================================
   v6.0.0 Advanced Personalized Pregnancy Calculator & 40-Week Dashboard
   ========================================================================== */
.noony-preg-app {
    margin: 18px 0 28px;
}

.noony-preg-form {
    background: linear-gradient(135deg, #eef9fd 0%, #fff8e8 100%) !important;
    border: 2px solid #b8e3f2 !important;
    border-radius: 18px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

.noony-preg-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    margin-top: 12px;
}

.noony-preg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 110px;
}

.noony-preg-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 14px;
    margin: 18px 0 22px;
}

.noony-preg-kpi {
    background: #ffffff;
    border: 1.5px solid #d7eef7;
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 14px rgba(23, 97, 136, 0.06);
}

.noony-preg-kpi--primary {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6c2 100%);
    border-color: #f4b76e;
}

.noony-preg-kpi__label {
    font-size: 0.88rem;
    color: var(--ink-muted);
    margin-bottom: 4px;
}

.noony-preg-kpi__value {
    font-size: 1.28rem;
    font-weight: 700;
    color: var(--sky-deep);
}

.noony-preg-kpi--primary .noony-preg-kpi__value {
    color: var(--orange-dark);
}

.noony-preg-progress {
    background: #ffffff;
    border: 1.5px solid #d7eef7;
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 22px;
}

.noony-preg-progress__head {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    color: var(--sky-deep);
    margin-bottom: 8px;
}

.noony-preg-progress__bar {
    height: 14px;
    background: #e6f4fa;
    border-radius: 999px;
    overflow: hidden;
}

.noony-preg-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, #3fbde4 0%, #f78113 100%);
    border-radius: 999px;
    transition: width 0.35s ease;
}

.noony-preg-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0 22px;
}

.noony-preg-btn-sec {
    background: #e8f6fc;
    color: var(--sky-deep);
    border: 1.5px solid #bfe0ec;
    border-radius: 999px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    cursor: pointer;
}

.noony-preg-btn-sec:hover {
    background: var(--sky-accent);
    color: #fff;
}

.noony-preg-milestones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin: 14px 0 26px;
}

.noony-milestone-card {
    background: #fffdf7;
    border: 1.5px solid #efe2be;
    border-radius: 12px;
    padding: 12px 14px;
}

.noony-milestone-card__title {
    font-weight: 700;
    color: var(--orange-dark);
    margin-bottom: 4px;
}

.noony-milestone-card__dates {
    font-size: 0.92rem;
    color: var(--ink-muted);
}

.noony-week-row--current {
    background: #fff4df !important;
    font-weight: 700;
}

.noony-week-badge {
    display: inline-block;
    background: var(--orange);
    color: #fff;
    font-size: 0.78rem;
    padding: 2px 8px;
    border-radius: 999px;
    margin-inline-start: 6px;
}

.noony-week-link {
    display: inline-block;
    font-weight: 700;
    color: var(--sky-deep);
    text-decoration: underline;
}

.noony-week-link:hover {
    color: var(--orange);
}

@media print {
    .site-header, .site-sidebar, .newlandscape, .footer-wrap, .noony-a11y, .back-to-top, .noony-preg-actions, .noony-preg-form {
        display: none !important;
    }
    .content-layout {
        display: block !important;
    }
}


/* ==========================================================================
   v6.1.0 Smart Calculator Validation & Post-Term Callouts
   ========================================================================== */
.noony-calc-alert {
    background: #fff3eb;
    border: 2px solid #f59c42;
    border-radius: 12px;
    padding: 14px 18px;
    margin: 14px 0;
    color: #8c340b;
    font-weight: 700;
    line-height: 1.6;
}

.noony-calc-hint {
    font-size: 0.9rem;
    color: var(--ink-muted);
    margin: 8px 0 0;
}

.noony-postterm-note {
    background: #eef8fc;
    border: 1.5px solid #9ad7ec;
    border-radius: 12px;
    padding: 12px 16px;
    margin: 12px 0 18px;
    color: var(--sky-deep);
    font-size: 0.96rem;
}


/* ==========================================================================
   v6.3.0 Intuitive Disabled Calculate Button & Live Validation Pill
   ========================================================================== */
.entry-content form input[type="submit"]:disabled,
.entry-content form button[type="submit"]:disabled,
.entry-content form input[type="button"]:disabled,
.noony-btn:disabled {
    background: #c5cfd6 !important;
    color: #5c6b75 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.72 !important;
    transform: none !important;
}

.noony-live-status {
    display: block;
    margin: 10px 0 6px;
    padding: 9px 14px;
    border-radius: 10px;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.5;
}

.noony-live-status--ok {
    background: #edf9f0;
    border: 1.5px solid #9bd8ad;
    color: #1f6b38;
}

.noony-live-status--warn {
    background: #fff3eb;
    border: 1.5px solid #f59c42;
    color: #8c340b;
}
