/* =========================================================
   NEWBIZONLINE — SITE STYLES
   Current three-column layout
   ========================================================= */

/* Brand and page variables */
:root {
    --primary-navy: #0a2540;
    --accent-cyan: #00a3c4;
    --accent-teal: #00c896;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --bg-page: #f4f8fa;
    --bg-card: #ffffff;
}

/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Page background and default text */
body {
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-page);
    background-image:
        radial-gradient(circle at 50% 0%, rgba(0, 163, 197, 0.15), transparent 70%),
        radial-gradient(rgba(0, 163, 197, 0.20) 1.5px, transparent 1.5px);
    background-size: 100% 100%, 24px 24px;
    background-repeat: no-repeat, repeat;
}

/* =========================================================
   PAGE GRID
   ========================================================= */

.container {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 240px;
    grid-template-rows: auto auto 1fr auto;
    gap: 10px;
    width: 100%;
    max-width: 1400px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 10px;
}

/* Shared white cards in the header and page columns.
   The right sidebar wrapper is intentionally not included:
   its own card styling is defined below. */
.header-logo,
.header-main,
.header-sub,
.sidebar-left,
.main-content {
    padding: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* =========================================================
   HEADER
   ========================================================= */

.header-logo {
    display: flex;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.logo-link {
    display: block;
    width: 100%;
    text-align: center;
}

.site-logo {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.header-main {
    display: flex;
    grid-column: 2 / 4;
    grid-row: 1 / 2;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    text-align: center;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.40), rgba(255, 255, 255, 0.40)),
        url("https://www.newbizonline.net/header-bg.jpg");
    background-size: cover;
    background-position: center;
}

.site-title,
.header-main h1 {
    margin: 0 0 6px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.site-tagline,
.header-main p {
    max-width: 480px;
    margin: 0;
    color: #e0f2fe;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.35;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Retained for pages that still use a third header item */
.header-sub {
    display: flex;
    grid-column: 3 / 4;
    grid-row: 1 / 2;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Optional header opt-in styles */
.header-optin {
    width: 100%;
    max-width: 240px;
    padding: 12px 14px;
    background: #ffffff;
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.header-optin-title {
    display: block;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
}

.header-hpform {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.header-hpform input[type="email"] {
    width: 100%;
    padding: 7px 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    outline: none;
    font-size: 0.82rem;
    transition: border-color 0.2s ease;
}

.header-hpform input[type="email"]:focus {
    border-color: #0066cc;
}

.btn-header-submit {
    width: 100%;
    padding: 7px 10px;
    color: #ffffff;
    background-color: #0066cc;
    border: 0;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-header-submit:hover {
    background-color: #0052a3;
}

/* =========================================================
   MAIN COLUMNS
   ========================================================= */

.sidebar-left {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.main-content {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

/* Retained in case a page uses this grid item directly */
.sidebar-right {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

/* =========================================================
   NAVIGATION BAR
   ========================================================= */

.navigation_bar {
    grid-column: 1 / 4 !important;
    grid-row: 2 / 3 !important;
    width: 100% !important;
}

.gen-nav {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-height: 52px;
    padding: 0 16px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(90deg, #1e40af, #2563eb);
    border: 1px double #1e3a8a;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

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

.gen-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gen-logo {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.gen-logo-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.gen-hamburger {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 8px;
    background: none;
    border: 0;
    cursor: pointer;
}

.gen-hamburger span {
    display: block;
    width: 22px;
    height: 3px;
    margin: 2.5px 0;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

.gen-nav > ul {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    justify-content: center;
}

.gen-nav > ul > li {
    position: relative;
}

.gen-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    height: 52px;
    padding: 0 16px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}

.gen-nav > ul > li > a:hover,
.gen-nav > ul > li:hover > a {
    color: #bfdbfe;
    background: #1d4ed8;
}

.gen-arrow {
    font-size: 0.7em;
    opacity: 0.8;
    vertical-align: middle;
}

/* Desktop dropdowns */
.gen-nav > ul > li > ul {
    position: absolute;
    z-index: 1000;
    top: 100%;
    left: 0;
    display: none;
    min-width: 170px;
    overflow: hidden;
    background: #1e3a8a;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.gen-nav > ul > li:hover > ul {
    display: block;
}

.gen-nav > ul > li > ul > li > a {
    display: block;
    padding: 10px 18px;
    color: #dbeafe;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.gen-nav > ul > li > ul > li > a:hover {
    color: #ffffff;
    background: #1d4ed8;
}

.gen-nav > ul > li > ul > li:last-child {
    overflow: hidden;
    border-radius: 0 0 6px 6px;
}

.gen-nav > ul > li > ul > li:last-child > a {
    border-radius: 0 0 6px 6px;
}

/* =========================================================
   LATEST TOOLS / REVIEW SNIPPETS
   ========================================================= */

.review-card {
    margin-bottom: 0.8rem;
}

.review-card h4 {
    margin: 0.2rem 0;
    font-size: 0.95rem;
}

.review-card h4 a {
    color: #1a1a1a;
    text-decoration: none;
}

.review-card h4 a:hover {
    color: #0066cc;
}

/* Match the right column's softer text treatment */
.review-snippet {
    margin-bottom: 0.3rem;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.review-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
}

.rating {
    color: #f39c12;
    font-weight: 700;
}

.read-more {
    color: #0066cc;
    text-decoration: none;
}

.widget-divider {
    margin: 0.6rem 0;
    border: 0;
    border-top: 1px solid #eeeeee;
}

/* Stage labels in the Latest Tools column */
.category-badge {
    display: inline-block;
    padding: 1px 5px;
    color: #ffffff;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-create {
    background-color: #8e44ad;
}

.badge-build {
    background-color: #2980b9;
}

.badge-market {
    background-color: #27ae60;
}

.badge-grow {
    background-color: #d35400;
}

.badge-manage {
    background-color: #7f8c8d;
}

/* =========================================================
   OPTIONAL OPT-IN AND PROMO WIDGETS
   ========================================================= */

.optin-widget {
    margin-bottom: 1.5rem;
    padding: 1.2rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.optin-desc {
    margin-bottom: 1rem;
    color: #555555;
    font-size: 0.85rem;
    line-height: 1.35;
}

.sidebar-form input[type="email"] {
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.55rem;
    box-sizing: border-box;
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 0.85rem;
}

.sidebar-form .btn-primary {
    width: 100%;
    padding: 0.6rem;
    color: #ffffff;
    background-color: #0066cc;
    border: 0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.sidebar-form .btn-primary:hover {
    background-color: #0052a3;
}

.promo-widget {
    padding: 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    text-align: center;
}

.promo-label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 3px 8px;
    color: #844212;
    background-color: #fef3c7;
    border: 1px solid #fbd38d;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
}

.promo-widget h4 {
    margin: 0.3rem 0;
    font-size: 1.05rem;
}

.promo-desc {
    margin-bottom: 1rem;
    color: #666666;
    font-size: 0.82rem;
    line-height: 1.35;
}

.promo-banner-link {
    text-decoration: none;
}

.banner-placeholder {
    padding: 1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #0066cc, #004080);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.banner-placeholder:hover {
    opacity: 0.9;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    color: #ffffff;
    background-color: #0b2545;
    border-radius: 4px;
    font-size: 0.85rem;
    text-align: center;
}

.affiliate-disclaimer {
    max-width: 800px;
    margin: 0 auto 1rem;
    color: #b0c4de;
    font-size: 0.78rem;
    line-height: 1.4;
}

.copyright {
    margin: 0;
    color: #88a0c0;
    font-size: 0.75rem;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.footer-menu li a {
    color: #ffffff;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-menu li a:hover {
    color: #64b5f6;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social-link:hover {
    opacity: 0.75;
    text-decoration: underline;
}

.social-icon {
    display: block;
    flex-shrink: 0;
}

/* =========================================================
   STAGE HUBS AND CATEGORY PAGES
   ========================================================= */

.stage-header {
    margin-bottom: 1.5rem;
}

.lead-text {
    margin-bottom: 1rem;
    color: #4a5568;
    font-size: 1.1rem;
    line-height: 1.6;
}

.quick-nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pill-link {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    color: #1e293b;
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.pill-link:hover {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
}

.section-divider {
    height: 1px;
    margin: 2rem 0;
    background: #e2e8f0;
    border: 0;
}

/* Retained tool-card actions and button */
.pick-actions {
    margin-top: 1rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #ffffff;
    background-color: #2563eb;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.category-block {
    margin-bottom: 2.5rem;
}

.category-block h2 {
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    font-size: 1.25rem;
}

.tool-summary-card {
    margin-top: 1rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    transition: box-shadow 0.2s ease;
}

.tool-summary-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tool-summary-card h3 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-size: 1.05rem;
}

.review-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #2563eb;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.review-link:hover {
    text-decoration: underline;
}

.back-to-top {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    text-align: right;
}

.back-to-top a {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-to-top a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* =========================================================
   SIDEBAR CARDS AND RESOURCES
   ========================================================= */

.sticky-sidebar-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.sidebar-card {
    padding: 1.15rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.sidebar-card h3 {
    margin: 0.4rem 0 0.35rem;
    color: #0f172a;
    font-size: 1.1rem;
}

.sidebar-card p {
    margin-bottom: 0.85rem;
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.45;
}

.badge-gold,
.badge-stage,
.badge-sponsor,
.badge-resource {
    display: inline-block;
    padding: 0.2rem 0.55rem;
    color: #ffffff;
    border-radius: 3px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.badge-gold {
    background-color: #d97706;
}

.badge-stage {
    background-color: #2563eb;
}

.badge-sponsor {
    background-color: #475569;
}

.badge-resource {
    background-color: #059669;
}

.btn-sidebar-primary,
.btn-sidebar-secondary,
.btn-sidebar-sponsor {
    display: block;
    padding: 0.45rem 0.75rem;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-sidebar-primary {
    background-color: #2563eb;
}

.btn-sidebar-primary:hover {
    background-color: #1d4ed8;
}

.btn-sidebar-secondary {
    background-color: #0f172a;
}

.btn-sidebar-secondary:hover {
    background-color: #1e293b;
}

.btn-sidebar-sponsor {
    background-color: #64748b;
}

.btn-sidebar-sponsor:hover {
    background-color: #475569;
}

/* Reading and resource card styles */
.resource-cover-wrapper {
    margin: 0.75rem 0 0.5rem;
}

.resource-img {
    display: block;
    max-width: 130px;
    height: auto;
    margin: 0 auto;
}

.resource-tagline {
    margin-bottom: 0.4rem !important;
    color: #0f172a;
    font-size: 0.88rem !important;
}

.resource-desc {
    color: #64748b !important;
    font-size: 0.8rem !important;
}

.btn-reading {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    background-color: #008060;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.btn-reading:hover {
    background-color: #004c3f;
}

a.btn-reading,
a.btn-reading:visited {
    color: #ffffff !important;
}

.sidebar-link-list {
    margin: 0.5rem 0 0;
    padding: 0;
    list-style: none;
}

.sidebar-link-list li {
    padding: 0.45rem 0;
    border-bottom: 1px dashed #e2e8f0;
    font-size: 0.88rem;
}

.sidebar-link-list li:last-child {
    border-bottom: 0;
}

.sidebar-link-list a {
    display: block;
    color: #334155;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.sidebar-link-list a:hover {
    padding-left: 2px;
    color: #2563eb;
}

.review-soon {
    color: #8e44ad;
    text-decoration: none;
}

/* =========================================================
   RIGHT COLUMN — TOOLS WE CURRENTLY USE
   ========================================================= */

.right-column {
    width: 100%;
    text-align: left;
}

.tools-currently-used {
    width: 100%;
    padding: 16px 14px;
    background: #ffffff;
    border: 1px solid #d5dfe6;
    border-radius: 5px;
    text-align: left;
}

/* Override the centered default applied to general sidebar cards */
.sidebar-card.tools-currently-used,
.sidebar-card.tools-currently-used h2,
.sidebar-card.tools-currently-used h3,
.sidebar-card.tools-currently-used p {
    text-align: left;
}

.tools-currently-used h2 {
    margin: 0 0 14px;
    padding-bottom: 10px;
    color: #123a68;
    border-bottom: 1px solid #dce4e9;
    font-size: 18px;
    line-height: 1.25;
}

.tools-currently-used h3 {
    margin: 18px 0 7px;
    color: #123a68;
    font-size: 13px;
    line-height: 1.3;
}

.tools-currently-used h3:first-of-type {
    margin-top: 0;
    font-size: 14px;
}

.tools-currently-used p {
    margin: 0 0 10px;
    color: #36516d;
    font-size: 12px;
    line-height: 1.5;
}

.tools-currently-used strong {
    color: #123a68;
}

.tools-currently-used .sidebar-note {
    margin-top: 18px;
    padding-top: 12px;
    color: #526b82;
    border-top: 1px solid #dce4e9;
    font-size: 11px;
    font-style: italic;
    line-height: 1.5;
}

/* Softer tool links */
.tools-currently-used a {
    color: #36516d;
    font-weight: 600;
    text-decoration: none;
}

.tools-currently-used a:hover,
.tools-currently-used a:focus-visible {
    color: #0a2540;
    text-decoration: underline;
}

.tools-currently-used a:focus-visible {
    outline: 2px solid #00a3c4;
    outline-offset: 2px;
}

/* =========================================================
   HOMEPAGE INTRODUCTION
   ========================================================= */

.intro-block h2 {
    margin: 0 0 0.75rem;
    color: #123a68;
    font-size: 1.5rem;
}

.intro-block p,
.intro-block li {
    color: #526b82;
    font-size: 0.92rem;
    line-height: 1.6;
}

.intro-block p {
    margin: 0 0 0.8rem;
}

.intro-block ul {
    margin: 0 0 0.8rem;
    padding-left: 24px;
}

.intro-block li {
    margin-bottom: 0.35rem;
}

.intro-block p:last-child {
    margin-bottom: 0;
}

.intro-block a {
    color: #36516d;
    font-weight: 600;
    text-decoration: none;
}

.intro-block a:hover,
.intro-block a:focus-visible {
    color: #0a2540;
    text-decoration: underline;
}

.intro-block a:focus-visible {
    outline: 2px solid #00a3c4;
    outline-offset: 2px;
}

.intro-block .pick-actions a.btn-primary,
.intro-block .pick-actions a.btn-primary:visited,
.intro-block .pick-actions a.btn-primary:hover,
.intro-block .pick-actions a.btn-primary:focus {
  color: #fff;
}
/* =========================================================
   STAGE BUTTONS AND EXPLORE HEADING
   ========================================================= */

.main-create-button,
.main-build-button,
.main-market-button,
.main-grow-button,
.main-manage-button {
    display: inline-block;
    padding: 0.2em 0.45em;
    margin-right: 0.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    vertical-align: middle;
    white-space: nowrap;
}

.explore-heading {
    margin: 0 0 15px;
    color: #526b82;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
}

/* General paragraph spacing */
p {
    margin: 0 0 8px;
}

.bold-text {
    font-weight: 700;
}

/* Indented explanatory lists */
.indented-list {
    margin: 0 0 36px;
    padding-left: 60px;
    list-style-type: disc;
}

.indented-list li {
    margin-bottom: 6px;
}

/* =========================================================
   RESPONSIVE LAYOUT
   ========================================================= */

@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .header-logo,
    .header-main,
    .header-sub,
    .nav-bar,
    .sidebar-left,
    .main-content,
    .sidebar-right,
    .footer-area {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .navigation_bar {
        grid-column: 1 / -1 !important;
        grid-row: auto !important;
    }
}

@media (max-width: 768px) {
    .site-title,
    .header-main h1 {
        font-size: 1.7rem;
    }

    .site-tagline,
    .header-main p {
        font-size: 0.85rem;
    }

    .gen-hamburger {
        display: flex;
        margin-left: 0;
    }

    .gen-nav {
        display: flex;
        flex-wrap: wrap;
    }

    .gen-logo {
        order: -1;
        justify-self: unset;
        margin-right: auto;
        margin-left: 0;
    }

    .gen-nav > ul {
        position: absolute;
        z-index: 9999;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        padding: 8px 0;
        overflow: hidden;
        background: linear-gradient(90deg, #1e40af, #2563eb);
        border-radius: 0 0 8px 8px;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    }

    .gen-nav > ul.open {
        display: flex;
    }

    .gen-nav.mobile-open {
        border-radius: 8px 8px 0 0;
    }

    .gen-nav > ul > li > a {
        height: auto;
        padding: 14px 20px;
    }

    .gen-nav > ul > li:last-child,
    .gen-nav > ul > li:last-child > a {
        overflow: visible;
        border-radius: 0;
    }

    .gen-nav > ul > li > ul {
        position: static;
        display: none;
        min-width: 0;
        overflow: visible;
        background: rgba(0, 0, 0, 0.15);
        border-radius: 0;
        box-shadow: none;
    }

    .gen-nav > ul > li > ul.sub-open {
        display: block;
    }

    .gen-nav > ul > li.has-sub > a .gen-arrow {
        display: inline-block;
    }

    .gen-nav > ul > li > ul > li:last-child,
    .gen-nav > ul > li > ul > li:last-child > a {
        overflow: visible;
        border-radius: 0;
    }

    .gen-nav > ul > li > ul > li > a {
        padding: 10px 32px;
    }

    .gen-nav.mobile-open .gen-hamburger span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .gen-nav.mobile-open .gen-hamburger span:nth-child(2) {
        opacity: 0;
    }

    .gen-nav.mobile-open .gen-hamburger span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

.ad-marker {
    margin-left: 4px;
    font-size: 0.75em;
    font-weight: 600;
    color: #526b82;
}

/* Affiliate disclosure beneath the navigation */
.top-affiliate-disclaimer {
    width: 100%;
    padding: 8px 12px;
    color: #123a68;
    font-size: 0.9rem;
    line-height: 1.45;
    text-align: center;
}

.top-affiliate-disclaimer a:link,
.top-affiliate-disclaimer a:visited {
    color: #36516d;
    font-weight: 600;
    text-decoration: none;
}

.top-affiliate-disclaimer a:hover,
.top-affiliate-disclaimer a:focus-visible {
    color: #0a2540;
    text-decoration: underline;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.page-title-row h1 {
  margin: 0;
}

.page-title-row .category-badge {
    margin-right: 0;
}

.stage-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.stage-title .category-badge {
    font-size: inherit;
    margin-right: 0;
}

/* Softer section headings within page introductions */
.intro-block h2.intro-heading {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  color: #36516d;
  margin: 1.4rem 0 0.5rem;
}

/* Listing controls with a thumbnail alongside */
.tool-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.tool-card-controls {
  flex: 1 1 12rem;
  min-width: 0;
}

.tool-summary-card .tool-card-controls p {
  margin: 0 0 0.5rem;
}

.tool-card-controls .pick-actions {
  margin-top: 0;
}

.tool-thumbnail {
  display: block;
  flex: 0 0 128px;
  margin-left: auto;
}

.tool-thumbnail img {
  display: block;
  width: 128px;
  height: 80px;
  object-fit: cover;
  box-sizing: border-box;
  border: 1px solid #dce4e9;
  border-radius: 6px;
}

.tool-card-preview {
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.left-column {
  grid-column: 1 / 2;
  grid-row: 3 / 4;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

@media (max-width: 900px) {
  .left-column {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

/* Position the menu search on the right */
@media (min-width: 769px) {
    .gen-nav > #gen-menu {
        align-items: center;
    }

    .gen-nav > #gen-menu > .nav-search-item {
        display: flex;
        align-items: center;
        flex: 0 0 auto;
        margin-left: auto;
        padding-left: 24px;
    }
}

/* Give the search breathing space in the mobile menu */
@media (max-width: 768px) {
    .gen-nav > #gen-menu > .nav-search-item {
        margin-left: 0;
        padding: 12px 20px;
    }
}