body {
	position: relative;
}
body::before {
    content: "";
    background: linear-gradient(360deg, rgba(249, 240, 191, 0) 0%, rgb(201 223 255 / 16%) 100%);
    width: 100%;
    height: 20%;
    position: absolute;
    top: 0;
    z-index: -1;
}
.page-last-updated {
	font-size: .8rem;
}
.sec-hero-section {
    text-align: center;
    max-width: 850px;
    margin: 0 auto var(--space-2xl) auto;
    padding: 0 var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.sec-hero-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0;
}

.sec-hero-excerpt {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    max-width: 65ch;
}

/* --- Responsive Scaling for Tablet & Desktop --- */
@media (min-width: 768px) {
    .sec-hero-section {
        margin-bottom: var(--space-3xl);
    }

    .sec-hero-title {
        font-size: 3rem;
    }

    .sec-hero-excerpt {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   SuperEasyCalc - Global Calculator Components
   ========================================================================== */

/* Base Widget Container */
.sec-widget {
    background-color: var(--color-background);
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #000;
    border-radius: var(--radius-lg);
}

.sec-widget-inner {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

/* Form Elements & Labels */
.sec-form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sec-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.sec-input-row {
    display: flex;
    gap: var(--space-xs);
}

@media screen and (max-width: 575px) {
    .sec-input-row {
        flex-direction: column;
    }
}

.sec-input {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--space-xs);
    padding: 16px var(--space-md);
    font-size: 1.05rem;
    color: var(--color-text-primary);
    transition: all var(--transition-fast);
    outline: none;
    font-family: inherit;
}

.sec-input:focus,
.sec-input:focus-within {
    background-color: var(--color-background);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input.sec-input {
    flex: 1.5;
    min-width: 0;
}

input.sec-input::placeholder {
    color: var(--color-muted);
}

/* ==========================================================================
   SuperEasyCalc - Global Hybrid Unit Select Component
   ========================================================================== */

.sec-unit-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-surface, #F8FAFC);
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: var(--space-xs, 8px);
    padding: 16px var(--space-md, 16px);
    cursor: pointer;
    flex: 1;
    min-width: 90px;
    transition: all var(--transition-fast, 150ms);
}

.sec-unit-wrapper:focus-within {
    background-color: var(--color-background, #FFFFFF);
    border-color: var(--color-primary, #2563EB);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.sec-unit-display {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-primary, #020617);
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sec-unit-select-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    font-size: 16px;
    /* FIXED: appearance: none has been completely removed to restore native OS spacing */
}

.sec-chevron {
    pointer-events: none;
    color: var(--color-text-secondary, #64748B);
    flex-shrink: 0;
    margin-left: 8px;
}

/* Global Result Header Label */
.sec-result-header-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary, #64748B);
    margin-bottom: var(--space-lg, 24px);
    text-align: center;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
    padding-bottom: 12px;
}

/* Full-Width Select Component */
.sec-select-container {
    position: relative;
}

.sec-select-full {
    width: 100%;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 40px;
    font-weight: 500;
}

/* Active/Calculated States */
.sec-hidden {
    display: none !important;
}

.sec-is-calculated {
    border-color: var(--color-primary) !important;
    background-color: var(--color-highlight-bg) !important;
}

.sec-is-calculated input,
.sec-is-calculated .sec-unit-display {
    color: var(--color-primary) !important;
    font-weight: 700 !important;
}

/* Result Card Component */
#sec-overview-section {
    animation: secFadeIn 0.4s ease-in-out;
}

@keyframes secFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes secUpdatePop {
    0% {
        opacity: 0.6;
        transform: scale(0.98) translateY(2px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.sec-animate-update {
    animation: secUpdatePop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sec-result-card {
    background-color: var(--color-highlight-bg);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    text-align: center;
    transform-origin: center;
}

.sec-result-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.sec-result-value {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--color-text-primary);
    line-height: 1.1;
    display: block;
    word-break: break-word;
    margin-bottom: 12px;
}

.sec-result-formula {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

/*-- Result Box */

  .sec-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg, 24px);
    text-align: center;
  }

  .sec-result-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .sec-result-subtext {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary, #64748B);
  }

  .sec-reference-links {
    max-width: 650px;
    margin: var(--space-md, 16px) auto 0 auto;
    font-size: 0.875rem;
    color: var(--color-text-secondary, #64748B);
    text-align: center;
  }

  .sec-reference-links a {
    color: var(--color-primary, #2563EB);
    text-decoration: none;
  }

  .sec-reference-links a:hover {
    text-decoration: underline;
  }
/* Educational Breakdown Components */
.sec-details-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-top: var(--space-xs);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-xl);
}

.sec-is-dummy {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.sec-step-box {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-xl);
}

.sec-step-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md) 0;
}

.sec-step-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sec-step-list li {
    margin-bottom: var(--space-sm);
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.sec-step-list li:last-child {
    margin-bottom: 0;
}

.sec-step-num {
    color: var(--color-text-primary);
    font-weight: 700;
    margin-right: 8px;
}

.sec-final-score {
    color: var(--color-text-primary);
    font-weight: 700;
}

.sec-disclaimer {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
    padding: 0 var(--space-sm);
}

/* Grid Layout */
.sec-page-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--space-2xl);
    align-items: start;
}

@media (max-width: 992px) {
    .sec-page-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

/* ==========================================================================
   SuperEasyCalc - Sidebar Components
   ========================================================================== */

.sec-sidebar-widget {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
    position: sticky;
    top: 100px;
    z-index: 10;
}

.sec-widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sec-related-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sec-related-links a {
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.sec-related-links a:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

/* Blog Code Start Here */
.tool-page-wrapper {
    margin: 0 auto;
    padding-top: 26px;
}

.tool-hero {
    margin-bottom: 30px;
}
.tool-title {
	color: var(--color-primary);
}
@media (min-width: 768px) {
    .tool-title {
        font-size: 2rem;
    }
}

.directory-hero {
    padding: var(--space-2xl) 0 var(--space-xl) 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.breadcrumb-list {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 8px;
    margin: 0;
}
.breadcrumb-list li:last-child {
	display: block;
	text-overflow: ellipsis;
	word-wrap: break-word;
	overflow: hidden;
	white-space: nowrap;
}
.breadcrumb-list a {
	color: #000;
}
/* ================= DYNAMIC CONTENT STYLING (the_content) ================= */
.blog-content {
    margin: 0 auto;
    background-color: var(--color-background, #FFFFFF);
    line-height: 1.8;
    color: var(--color-text-primary);
    font-size: 1.05rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    color: var(--color-text-primary, #020617);
    font-weight: 700;
    margin-top: 2em;
    margin-bottom: .75em;
    line-height: 1.3;
}

.blog-content h2 {
    font-size: 1.6rem;
    margin-top: 0;
}

.blog-content h3 {
    font-size: 1.3rem;
}

.blog-content h4 {
    font-size: 1.15rem;
}

.blog-content p {
    margin-bottom: 1.5em;
}

.blog-content strong {
    color: var(--color-text-primary, #020617);
    font-weight: 600;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5em;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: .5em;
}

.blog-content .wp-block-image {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Callouts & Info Boxes */
.blue-box {
    background-color: rgb(4 104 255 / 25%);
    border: 1px solid #000;
    border-radius: 10px;
    padding: 24px;
    margin: 2em 0;
}

.blue-box p {
    margin-bottom: 0;
}

.blue-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-primary, #2563EB);
}

.blue-box ul:last-child {
    margin-bottom: 0;
}

.box-formula,
.wp-block-math {
    background-color: var(--color-card-bg, #F8FAFC);
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-primary, #020617);
    margin: 1.5em 0;
}

.example-box {
    border-left: 4px solid var(--color-danger, #E11D48);
    padding-left: 40px !important;
    margin: 2em 0;
}

.example-box p:last-child,
.example-box ol:last-child {
    margin-bottom: 0;
}

.yellow-box {
    background-color: #FEF3C7;
    border: 1px solid #000;
    border-radius: 8px;
    padding: 24px;
    margin: 2em 0;
}

.yellow-box p {
    margin-bottom: 14px;
}

.yellow-box p:last-child {
    margin-bottom: 0;
}

.yellow-box h3,
.orange-box h4 {
    margin-top: 0;
    color: #B45309;
}

.yellow-box ul {
    margin-bottom: 0;
}

/* Data Tables */
.wp-block-table {
	margin-bottom: 1.5rem;
}
/* Rank Math Integrations */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 2em 0;
}

.blog-content .rank-math-list-item {
    border: 1px solid var(--color-border, #E2E8F0);
    background: var(--color-background, #FFFFFF);
}

.blog-content .rank-math-list-item:first-child {
    border-radius: 10px 10px 0 0;
}

.blog-content .rank-math-list-item:last-child {
    border-radius: 0 0 10px 10px;
}

.blog-content .rank-math-question {
    margin: 0;
    padding: 13px 17px;
    font-weight: 600;
    color: var(--color-text-primary, #020617);
    cursor: pointer;
    list-style: none;
    position: relative;
    background-color: var(--color-card-bg, #F8FAFC);
    font-size: 1.2rem;
}

.blog-content .rank-math-question::-webkit-details-marker {
    display: none;
}

.blog-content .rank-math-question::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--color-text-primary, #020617);
}

.blog-content .rank-math-question[open] .rank-math-question::after {
    content: '−';
}

.rank-math-answer {
    padding: 10px 20px;
    border-top: 1px solid var(--color-border, #E2E8F0);
}

.rank-math-answer p:last-child {
    margin-bottom: 0;
}

/* Utilities */
.text-center {
    text-align: center;
}

.italic-conclusion {
    font-style: italic;
    text-align: center;
    margin: 3em 0;
    font-size: 1.05rem;
}

@media (max-width: 600px) {
    .blog-content h2 {
        font-size: 1.5rem;
    }
}

/* Rank Math Table of Contents */
.wp-block-rank-math-toc-block {
    background-color: var(--color-background, #FFFFFF);
    border: 1px solid var(--color-border, #E2E8F0);
    border-radius: 8px;
    padding: 24px;
    margin: 2em 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.wp-block-rank-math-toc-block h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.25rem;
    color: var(--color-text-primary, #020617);
    font-weight: 700;
    border-bottom: 1px solid var(--color-border, #E2E8F0);
    padding-bottom: 12px;
}

.wp-block-rank-math-toc-block nav>ul {
    padding: 0;
    list-style-type: none;
    margin: 0;
}

.wp-block-rank-math-toc-block nav a {
    color: var(--color-text-secondary, #64748B);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.wp-block-rank-math-toc-block nav a:hover {
    color: var(--color-primary, #2563EB);
    transform: translateX(4px);
}

/* Rank Math How-To Steps */
.rank-math-step-title {
    font-size: 1.2rem !important;
    margin-top: 0 !important;
    color: var(--color-text-primary, #020617);
}

.rank-math-step-content p {
    margin: 0;
    line-height: 1.5;
}

.rank-math-steps {
    margin-top: 1rem;
}

.rank-math-step {
    border-bottom: 1px solid var(--color-border, #E2E8F0);
    padding: 1rem 0;
}

.rank-math-step:last-child {
    border-bottom: none;
}


/* tool Meta Start */
  .tool-hero,
.share-wrapper {
	position: relative;
}

.tool-hero {
	overflow: visible;
}

.tool-hero-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}

.tool-meta,
.tool-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.tool-meta {
	flex-wrap: wrap;
}

.tool-author {
	display: inline-block;
}

.author-byline {
	margin: 0;
	color: #666;
	font-size: 14px;
}

.author-byline a {
	color: var(--color-text-primary);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px dotted var(--color-text-primary);
}

.author-tooltip {
	position: absolute;
	z-index: 10;
	left: 8%;
	width: 280px;
	height: auto;
	padding: 14px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 8px 25px rgba(0,0,0,.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(5px);
	transition: .2s ease;
}

.tool-author:hover .author-tooltip,
.tool-author:focus-within .author-tooltip {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.author-tooltip p {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #555;
}

.author-tooltip a {
	font-size: 13px;
	font-weight: 600;
	color: var(--color-primary);
}

.tool-action-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 11px;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
	color: #444;
	font-size: 13px;
	text-decoration: none;
	cursor: pointer;
}

.tool-action-btn svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tool-action-btn:hover,
.like-btn[aria-pressed="true"] {
	color: var(--color-primary);
	border-color: var(--color-primary);
}

.share-menu {
	position: absolute;
	z-index: 20;
	right: 0;
	top: calc(100% + 7px);
	width: 170px;
	padding: 6px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 7px;
	box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.share-menu {
	position: absolute;
	z-index: 20;
	top: calc(100% + 7px);
	right: 0;
	width: 180px;
	padding: 6px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 7px;
	box-shadow: 0 8px 25px rgba(0,0,0,.12);
}

.share-menu a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 5px;
	color: #444;
	font-size: 13px;
	text-decoration: none;
}

.share-menu a:hover {
	background: #f5f5f5;
	color: var(--color-primary);
}

.share-menu svg {
	width: 17px;
	height: 17px;
	flex: 0 0 17px;
	fill: currentColor;
}

.share-menu a:nth-child(2) svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

.share-menu a:nth-child(4) svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

@media (max-width: 767px) {
	.tool-actions { flex-wrap: wrap; }
}
/* tool Meta End */
