/* ==========================================================
   CalclyWorld
   Global Styles
   Version 3.0
   Responsive Foundation
========================================================== */


/* ==========================================================
   CSS VARIABLES
========================================================== */

:root {

    --primary: #2563eb;
    --primary-hover: #1d4ed8;

    --success: #16a34a;
    --warning: #ea580c;
    --danger: #dc2626;

    --background: #f8fafc;
    --card: #ffffff;

    --text: #111827;
    --text-light: #6b7280;

    --border: #e5e7eb;

    --shadow:
        0 8px 24px rgba(0, 0, 0, 0.08);

    --radius: 16px;

    --container-width: 1200px;
    --content-width: 900px;
    --calculator-width: 760px;

}


/* ==========================================================
   DARK MODE VARIABLES
========================================================== */

[data-theme="dark"] {

    --background: #0f172a;
    --card: #1e293b;

    --text: #f8fafc;
    --text-light: #cbd5e1;

    --border: #334155;

    --shadow:
        0 10px 28px rgba(0, 0, 0, 0.35);

}


/* ==========================================================
   UNIVERSAL RESET
========================================================== */

*,
*::before,
*::after {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


/* ==========================================================
   HTML
========================================================== */

html {

    scroll-behavior: smooth;

    width: 100%;

    max-width: 100%;

    overflow-x: hidden;

}


/* ==========================================================
   BODY
========================================================== */

body {

    width: 100%;
    max-width: 100%;

    min-height: 100vh;

    margin: 0;

    padding: 0;

    background: var(--background);

    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    font-size: 18px;

    line-height: 1.8;

    overflow-x: hidden;

    transition:
        background .3s ease,
        color .3s ease;

}


/* ==========================================================
   MEDIA ELEMENTS
========================================================== */

img,
svg,
video,
canvas {

    display: block;

    max-width: 100%;

}


/* ==========================================================
   LINKS
========================================================== */

a {

    color: var(--primary);

    text-decoration: none;

    transition:
        color .2s ease;

}

a:hover {

    color: var(--primary-hover);

}

a:focus-visible {

    outline:
        3px solid var(--primary);

    outline-offset: 3px;

    border-radius: 6px;

}


/* ==========================================================
   LISTS
========================================================== */

ul,
ol {

    padding-left: 24px;

}

li {

    margin-bottom: 10px;

}


/* ==========================================================
   TEXT SELECTION
========================================================== */

::selection {

    background: #bfdbfe;

    color: #111827;

}


/* ==========================================================
   MAIN CONTAINER
========================================================== */

.container {

    width: 100%;

    max-width: var(--container-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;

}


/* ==========================================================
   CONTENT CONTAINER
========================================================== */

.content {

    width: 100%;

    max-width: var(--content-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;

}


/* ==========================================================
   CALCULATOR CONTAINER
========================================================== */

.calculator-container {

    width: 100%;

    max-width: var(--calculator-width);

    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;

}


/* ==========================================================
   SECTIONS
========================================================== */

section {

    width: 100%;

    max-width: 100%;

    padding: 70px 0;

}


/* ==========================================================
   SMALL SECTIONS
========================================================== */

.section-small {

    width: 100%;

    max-width: 100%;

    padding: 45px 0;

}


/* ==========================================================
   TYPOGRAPHY
========================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {

    color: var(--text);

    font-weight: 700;

    line-height: 1.25;

    margin-top: 0;

    margin-bottom: 20px;

}


h1 {

    font-size: 44px;

}


h2 {

    font-size: 34px;

}


h3 {

    font-size: 26px;

}


h4 {

    font-size: 22px;

}


p {

    color: var(--text);

    margin-top: 0;

    margin-bottom: 20px;

}


small {

    color: var(--text-light);

    font-size: 15px;

}


/* ==========================================================
   TEXT ALIGNMENT
========================================================== */

.text-center {

    text-align: center;

}


.text-left {

    text-align: left;

}


.text-right {

    text-align: right;

}


/* ==========================================================
   SMALL TEXT
========================================================== */

.small-text {

    font-size: .95rem;

    color: var(--text-light);

}


/* ==========================================================
   FORM ELEMENTS
========================================================== */

input,
select,
textarea,
button {

    font: inherit;

    max-width: 100%;

}


input,
select,
textarea {

    box-sizing: border-box;

}


/* ==========================================================
   BUTTON BASE
========================================================== */

button {

    cursor: pointer;

}


/* ==========================================================
   ACCESSIBILITY
========================================================== */

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.calculator-card:focus-visible,
.btn:focus-visible {

    outline:
        3px solid var(--primary);

    outline-offset: 3px;

}


/* ==========================================================
   SKIP LINK
========================================================== */

.skip-link {

    position: absolute;

    left: -9999px;

    top: 20px;

}


.skip-link:focus {

    left: 20px;

    z-index: 9999;

    background: #ffffff;

    color: #000000;

    padding: 12px 18px;

    border-radius: 10px;

}


/* ==========================================================
   PREVENT LONG CONTENT FROM BREAKING MOBILE LAYOUT
========================================================== */

p,
h1,
h2,
h3,
h4,
h5,
h6,
a,
li,
td,
th {

    overflow-wrap: break-word;

    word-wrap: break-word;

}


/* ==========================================================
   TABLE SAFETY
========================================================== */

.table-wrapper {

    width: 100%;

    max-width: 100%;

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

}


/* ==========================================================
   UNIVERSAL BOX SAFETY
========================================================== */

.content-card,
.calculator-card,
.feature-card,
.info-box,
.success-box,
.warning-box,
.formula-box {

    max-width: 100%;

}


/* ==========================================================
   MOBILE FOUNDATION
========================================================== */

@media (max-width: 768px) {

    body {

        font-size: 17px;

    }


    .container,
    .content,
    .calculator-container {

        width: 100%;

        max-width: 100%;

        padding-left: 16px;
        padding-right: 16px;

    }


    section {

        padding-top: 55px;
        padding-bottom: 55px;

    }


    .section-small {

        padding-top: 35px;
        padding-bottom: 35px;

    }


    h1 {

        font-size: 2.2rem;

    }


    h2 {

        font-size: 1.8rem;

    }


    h3 {

        font-size: 1.45rem;

    }


    h4 {

        font-size: 1.25rem;

    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 480px) {

    body {

        font-size: 16px;

    }


    .container,
    .content,
    .calculator-container {

        padding-left: 12px;
        padding-right: 12px;

    }


    section {

        padding-top: 45px;
        padding-bottom: 45px;

    }


    .section-small {

        padding-top: 30px;
        padding-bottom: 30px;

    }


    h1 {

        font-size: 2rem;

    }


    h2 {

        font-size: 1.65rem;

    }


    h3 {

        font-size: 1.35rem;

    }

}


/* ==========================================================
   VERY SMALL PHONES
========================================================== */

@media (max-width: 360px) {

    body {

        font-size: 15px;

    }


    .container,
    .content,
    .calculator-container {

        padding-left: 10px;
        padding-right: 10px;

    }


    h1 {

        font-size: 1.8rem;

    }


    h2 {

        font-size: 1.5rem;

    }

}
/* ==========================================================
   CalclyWorld
   Global Styles
   Part 2
   Header + Navigation + Main Components
========================================================== */


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

.site-header {

    width: 100%;
    max-width: 100%;

    background: var(--card);

    border-bottom: 1px solid var(--border);

    position: sticky;

    top: 0;

    z-index: 1000;

    backdrop-filter: blur(12px);

}


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

.header-container {

    width: 100%;

    max-width: var(--container-width);

    min-height: 72px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 20px;
    padding-right: 20px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


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

.logo {

    display: flex;

    align-items: center;

    flex-shrink: 0;

    gap: 12px;

    color: var(--text);

    font-size: 1.4rem;

    font-weight: 700;

    white-space: nowrap;

}


.logo:hover {

    color: var(--text);

}


.logo img {

    width: 42px;

    height: 42px;

    flex: 0 0 42px;

    object-fit: contain;

}


/* ==========================================================
   MAIN NAVIGATION
========================================================== */

.main-nav {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;

    flex-wrap: wrap;

    min-width: 0;

}


.main-nav a {

    color: var(--text);

    font-weight: 600;

    white-space: nowrap;

    transition:
        color .2s ease;

}


.main-nav a:hover {

    color: var(--primary);

}


.main-nav a[aria-current="page"] {

    color: var(--primary);

    font-weight: 700;

}


/* ==========================================================
   HEADER DARK MODE BUTTON
========================================================== */

#theme-toggle {

    flex-shrink: 0;

    white-space: nowrap;

}


/* ==========================================================
   HEADER SCROLL STATE
========================================================== */

.header-scrolled {

    box-shadow: var(--shadow);

}


/* ==========================================================
   HERO
========================================================== */

.hero {

    width: 100%;

    max-width: 100%;

    padding: 90px 0 70px;

    text-align: center;

}


.hero h1 {

    width: 100%;

    max-width: 900px;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 25px;

}


.hero p {

    width: 100%;

    max-width: 760px;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 20px;

    font-size: 1.1rem;

}


/* ==========================================================
   HERO BUTTONS
========================================================== */

.hero-buttons {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 18px;

    flex-wrap: wrap;

    margin-top: 35px;

}


/* ==========================================================
   BUTTONS
========================================================== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    max-width: 100%;

    padding: 14px 28px;

    border: none;

    border-radius: var(--radius);

    background: var(--primary);

    color: #ffffff;

    font-size: 1rem;

    font-weight: 600;

    line-height: 1.3;

    cursor: pointer;

    text-align: center;

    transition:
        background .25s ease,
        transform .20s ease,
        box-shadow .25s ease;

}


.btn:hover {

    background: var(--primary-hover);

    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 24px rgba(37, 99, 235, .25);

}


.btn:active {

    transform: translateY(0);

}


.btn:focus-visible {

    outline:
        3px solid var(--primary);

    outline-offset: 3px;

}


/* ==========================================================
   SECONDARY BUTTON
========================================================== */

.btn-secondary {

    background: transparent;

    color: var(--primary);

    border: 1px solid var(--border);

    box-shadow: none;

}


.btn-secondary:hover {

    background: rgba(37, 99, 235, .08);

    color: var(--primary);

    box-shadow: none;

}


/* ==========================================================
   CALCULATOR GRID
========================================================== */

.calculator-grid {

    width: 100%;

    max-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 24px;

    margin-top: 40px;

}


/* ==========================================================
   FEATURES GRID
========================================================== */

.features-grid {

    width: 100%;

    max-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));

    gap: 24px;

    margin-top: 40px;

}


/* ==========================================================
   FEATURE CARD
========================================================== */

.feature-card {

    width: 100%;

    max-width: 100%;

    min-width: 0;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 28px;

    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.feature-card:hover {

    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, .12);

}


.feature-card h3 {

    margin-bottom: 14px;

}


.feature-card p {

    margin-bottom: 0;

}


/* ==========================================================
   CALCULATOR CARD
========================================================== */

.calculator-card {

    width: 100%;

    max-width: 100%;

    min-width: 0;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    padding: 28px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    box-shadow: var(--shadow);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;

}


.calculator-card:hover {

    transform: translateY(-6px);

    border-color: var(--primary);

    box-shadow:
        0 18px 40px rgba(0, 0, 0, .12);

}


.calculator-card h3,
.calculator-card h4 {

    color: var(--text);

    line-height: 1.35;

}


.calculator-card h4 {

    margin-bottom: 12px;

    font-size: 1.35rem;

}


.calculator-card p {

    flex: 1;

    margin-bottom: 22px;

}


.calculator-card a {

    font-weight: 600;

    color: var(--primary);

}


.calculator-card a:hover {

    color: var(--primary-hover);

}


/* ==========================================================
   CARD ICON
========================================================== */

.card-icon {

    width: 56px;

    height: 56px;

    max-width: 100%;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(37, 99, 235, .08);

    font-size: 1.6rem;

    margin-bottom: 20px;

}


/* ==========================================================
   CONTENT SECTION TITLES
========================================================== */

.section-title {

    width: 100%;

    max-width: 760px;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 18px;

    text-align: center;

}


.section-description {

    width: 100%;

    max-width: 760px;

    margin-left: auto;
    margin-right: auto;

    margin-bottom: 50px;

    text-align: center;

}


/* ==========================================================
   CONTENT CARD
========================================================== */

.content-card {

    width: 100%;

    max-width: 100%;

    min-width: 0;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;

    padding: 35px;

    margin-bottom: 30px;

    box-shadow: var(--shadow);

}


.content-card h2 {

    margin-bottom: 18px;

}


.content-card h3 {

    margin-top: 28px;

}


/* ==========================================================
   INFORMATION BOX
========================================================== */

.info-box {

    width: 100%;

    max-width: 100%;

    padding: 25px;

    margin: 30px 0;

    border-left:
        5px solid var(--primary);

    border-radius: 14px;

    background:
        rgba(37, 99, 235, .05);

}


.info-box p:last-child {

    margin-bottom: 0;

}


/* ==========================================================
   SUCCESS BOX
========================================================== */

.success-box {

    width: 100%;

    max-width: 100%;

    padding: 25px;

    margin: 30px 0;

    border-left:
        5px solid var(--success);

    border-radius: 14px;

    background:
        rgba(22, 163, 74, .08);

}


/* ==========================================================
   WARNING BOX
========================================================== */

.warning-box {

    width: 100%;

    max-width: 100%;

    padding: 25px;

    margin: 30px 0;

    border-left:
        5px solid var(--warning);

    border-radius: 14px;

    background:
        rgba(234, 88, 12, .08);

}


/* ==========================================================
   FORMULA BOX
========================================================== */

.formula-box {

    width: 100%;

    max-width: 100%;

    margin: 35px 0;

    padding: 24px;

    text-align: center;

    border-radius: 16px;

    border: 1px solid var(--border);

    background:
        rgba(37, 99, 235, .06);

    font-weight: 700;

    font-size: 1.2rem;

    overflow-wrap: break-word;

}


/* ==========================================================
   HIGHLIGHT
========================================================== */

.highlight {

    color: var(--primary);

    font-weight: 700;

}


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

@media (max-width: 768px) {

    .site-header {

        position: relative;

    }


    .header-container {

        width: 100%;

        max-width: 100%;

        min-height: 0;

        padding:
            16px;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 16px;

    }


    .logo {

        width: auto;

        max-width: 100%;

        justify-content: center;

        font-size: 1.35rem;

    }


    .main-nav {

        width: 100%;

        max-width: 100%;

        display: flex;

        align-items: center;

        justify-content: center;

        gap: 12px 18px;

        flex-wrap: wrap;

    }


    .main-nav a {

        white-space: nowrap;

    }


    #theme-toggle {

        width: auto;

        max-width: 100%;

    }


    .hero {

        padding:
            60px 0 50px;

    }


    .hero p {

        font-size: 1rem;

    }


    .calculator-grid,
    .features-grid {

        grid-template-columns: 1fr;

        gap: 18px;

    }

}


/* ==========================================================
   SMALL MOBILE HEADER
========================================================== */

@media (max-width: 480px) {

    .header-container {

        padding:
            14px 12px;

        gap: 14px;

    }


    .logo {

        font-size: 1.2rem;

        gap: 9px;

    }


    .logo img {

        width: 40px;

        height: 40px;

        flex-basis: 40px;

    }


    .main-nav {

        gap: 10px 14px;

    }


    .main-nav a {

        font-size: .95rem;

    }


    #theme-toggle {

        width: 100%;

    }


    .hero {

        padding:
            50px 0 40px;

    }


    .content-card {

        padding: 22px;

    }


    .feature-card,
    .calculator-card {

        padding: 22px;

    }


    .info-box,
    .success-box,
    .warning-box {

        padding: 20px;

    }

}
/* ==========================================================
   CalclyWorld
   Global Styles
   Part 3
   Forms + Calculator UI + Results + Search
========================================================== */


/* ==========================================================
   CALCULATOR FORM
========================================================== */

.calculator-form {

    width: 100%;

    max-width: 100%;

    display: flex;

    flex-direction: column;

    gap: 12px;

}


/* ==========================================================
   FORM LABELS
========================================================== */

.calculator-form label {

    display: block;

    width: 100%;

    margin-top: 8px;

    color: var(--text);

    font-weight: 600;

    line-height: 1.4;

}


/* ==========================================================
   FORM INPUTS
========================================================== */

.calculator-form input,
.calculator-form select,
.calculator-form textarea {

    width: 100%;

    max-width: 100%;

    min-width: 0;

    padding: 14px 16px;

    border: 1px solid var(--border);

    border-radius: 12px;

    background: var(--card);

    color: var(--text);

    font-size: 1rem;

    line-height: 1.4;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;

}


.calculator-form input::placeholder,
.calculator-form textarea::placeholder {

    color: var(--text-light);

    opacity: .8;

}


.calculator-form input:focus,
.calculator-form select:focus,
.calculator-form textarea:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .12);

}


/* ==========================================================
   NUMBER INPUT
========================================================== */

.calculator-form input[type="number"] {

    appearance: textfield;

}


.calculator-form input[type="number"]::-webkit-inner-spin-button,
.calculator-form input[type="number"]::-webkit-outer-spin-button {

    opacity: 1;

}


/* ==========================================================
   SELECT
========================================================== */

.calculator-form select {

    cursor: pointer;

}


/* ==========================================================
   CHECKBOX / RADIO SAFETY
========================================================== */

.calculator-form input[type="checkbox"],
.calculator-form input[type="radio"] {

    width: auto;

    max-width: none;

    min-width: auto;

    padding: 0;

    box-shadow: none;

}


/* ==========================================================
   FORM GROUP
========================================================== */

.form-group {

    width: 100%;

    max-width: 100%;

    min-width: 0;

}


/* ==========================================================
   TWO COLUMN FORM
========================================================== */

.form-row {

    width: 100%;

    max-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

}


/* ==========================================================
   THREE COLUMN FORM
========================================================== */

.form-row-three {

    width: 100%;

    max-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;

}


/* ==========================================================
   CALCULATOR ACTIONS
========================================================== */

.calculator-actions {

    width: 100%;

    max-width: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 14px;

    flex-wrap: wrap;

    margin-top: 20px;

}


/* ==========================================================
   CALCULATOR ACTION BUTTON SAFETY
========================================================== */

.calculator-actions .btn {

    flex: 0 1 auto;

    max-width: 100%;

}


/* ==========================================================
   ERROR MESSAGE
========================================================== */

.error-message {

    width: 100%;

    max-width: 100%;

    padding: 14px 16px;

    margin-top: 8px;

    border: 1px solid rgba(220, 38, 38, .35);

    border-left:
        5px solid var(--danger);

    border-radius: 12px;

    background:
        rgba(220, 38, 38, .08);

    color: var(--danger);

    font-size: .95rem;

    line-height: 1.5;

    overflow-wrap: break-word;

}


/* ==========================================================
   CALCULATOR RESULTS
========================================================== */

.calculator-results-grid {

    width: 100%;

    max-width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;

    margin: 25px 0 30px;

}


/* ==========================================================
   RESULT CARD
========================================================== */

.result-card {

    width: 100%;

    max-width: 100%;

    min-width: 0;

    padding: 22px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 16px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .05);

}


.result-card h3 {

    margin-bottom: 10px;

    font-size: 1.05rem;

    line-height: 1.4;

}


.result-value {

    margin: 0;

    color: var(--primary);

    font-size: 1.7rem;

    font-weight: 700;

    line-height: 1.3;

    overflow-wrap: anywhere;

}


/* ==========================================================
   RESULT CONTENT
========================================================== */

#currency-result-content,
#inflation-result-content {

    width: 100%;

    max-width: 100%;

    min-width: 0;

}


/* ==========================================================
   RESULT SECTION SAFETY
========================================================== */

#currency-result,
#inflation-result {

    width: 100%;

    max-width: 100%;

    min-width: 0;

    overflow: hidden;

}


/* ==========================================================
   SEARCH AREA
========================================================== */

.hero-search {

    position: relative;

    width: 100%;

    max-width: 760px;

    margin:
        25px auto 30px;

}


/* ==========================================================
   CALCULATOR SEARCH INPUT
========================================================== */

.calculator-search {

    display: block;

    width: 100%;

    max-width: 100%;

    min-width: 0;

    padding:
        15px 18px;

    border:
        1px solid var(--border);

    border-radius: 14px;

    background: var(--card);

    color: var(--text);

    font-size: 1rem;

    line-height: 1.4;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, .05);

    outline: none;

}


.calculator-search::placeholder {

    color: var(--text-light);

}


.calculator-search:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, .12);

}


/* ==========================================================
   SEARCH RESULTS
========================================================== */

.search-results {

    position: absolute;

    left: 0;

    right: 0;

    top: calc(100% + 8px);

    width: 100%;

    max-width: 100%;

    max-height: 360px;

    overflow-y: auto;

    overflow-x: hidden;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: 14px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .12);

    z-index: 100;

}


/* ==========================================================
   SEARCH RESULT ITEM
========================================================== */

.search-result-item {

    display: block;

    width: 100%;

    max-width: 100%;

    padding:
        13px 16px;

    border-bottom:
        1px solid var(--border);

    color: var(--text);

    text-align: left;

    overflow-wrap: break-word;

}


.search-result-item:last-child {

    border-bottom: none;

}


.search-result-item:hover {

    background:
        rgba(37, 99, 235, .06);

}


/* ==========================================================
   SEARCH RESULT CATEGORY
========================================================== */

.search-result-category {

    display: block;

    margin-top: 3px;

    color: var(--text-light);

    font-size: .85rem;

}


/* ==========================================================
   BREADCRUMB
========================================================== */

.breadcrumb {

    width: 100%;

    max-width: 100%;

    padding:
        14px 0;

    border-bottom:
        1px solid var(--border);

    background: var(--background);

}


.breadcrumb .content {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 8px;

    font-size: .9rem;

}


.breadcrumb a {

    color: var(--primary);

}


.breadcrumb span {

    color: var(--text-light);

}


/* ==========================================================
   TABLES
========================================================== */

.table-wrapper {

    width: 100%;

    max-width: 100%;

    margin: 35px 0;

    overflow-x: auto;

    overflow-y: hidden;

    -webkit-overflow-scrolling: touch;

}


.table-wrapper table {

    width: 100%;

    min-width: 620px;

}


/* ==========================================================
   TABLE
========================================================== */

table {

    border-collapse: separate;

    border-spacing: 0;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: 16px;

    overflow: hidden;

}


th {

    background: var(--primary);

    color: #ffffff;

    text-align: left;

    padding: 16px;

    font-weight: 600;

    white-space: nowrap;

}


td {

    padding: 16px;

    border-top:
        1px solid var(--border);

    color: var(--text);

}


tbody tr:nth-child(even) {

    background:
        rgba(0, 0, 0, .025);

}


[data-theme="dark"]
tbody tr:nth-child(even) {

    background:
        rgba(255, 255, 255, .03);

}


/* ==========================================================
   FAQ
========================================================== */

.faq {

    width: 100%;

    max-width: 100%;

    margin-top: 30px;

}


.faq-item {

    width: 100%;

    max-width: 100%;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: 16px;

    margin-bottom: 18px;

    overflow: hidden;

}


.faq-question {

    width: 100%;

    padding:
        20px 24px;

    color: var(--text);

    font-weight: 700;

    line-height: 1.5;

}


.faq-answer {

    width: 100%;

    padding:
        0 24px 24px;

}


.faq-answer p:last-child {

    margin-bottom: 0;

}


/* ==========================================================
   TABLE OF CONTENTS
========================================================== */

.toc {

    width: 100%;

    max-width: 100%;

    background: var(--card);

    border:
        1px solid var(--border);

    border-radius: 16px;

    padding: 25px;

    margin: 35px 0;

}


.toc ul {

    margin-top: 15px;

}


.toc li {

    margin-bottom: 12px;

}


/* ==========================================================
   RESPONSIVE FORM LAYOUTS
========================================================== */

@media (max-width: 768px) {

    .form-row {

        grid-template-columns: 1fr;

        gap: 12px;

    }


    .form-row-three {

        grid-template-columns: 1fr;

        gap: 12px;

    }


    .calculator-results-grid {

        grid-template-columns: 1fr;

        gap: 14px;

    }


    .calculator-actions {

        flex-direction: column;

        align-items: stretch;

    }


    .calculator-actions .btn {

        width: 100%;

    }


    .search-results {

        max-height: 300px;

    }


    .faq-question {

        padding:
            18px 20px;

    }


    .faq-answer {

        padding:
            0 20px 20px;

    }

}


/* ==========================================================
   SMALL MOBILE FORM LAYOUT
========================================================== */

@media (max-width: 480px) {

    .calculator-form {

        gap: 10px;

    }


    .calculator-form input,
    .calculator-form select,
    .calculator-form textarea {

        padding:
            13px 14px;

        font-size: 16px;

    }


    .calculator-actions {

        margin-top: 16px;

    }


    .calculator-actions .btn {

        width: 100%;

        min-height: 46px;

        padding:
            13px 18px;

    }


    .calculator-results-grid {

        margin-top: 20px;

    }


    .result-card {

        padding: 18px;

    }


    .result-value {

        font-size: 1.45rem;

    }


    .hero-search {

        margin-top: 20px;

    }


    .calculator-search {

        padding:
            13px 14px;

        font-size: 16px;

    }


    .search-results {

        max-height: 260px;

    }


    .info-box,
    .success-box,
    .warning-box {

        overflow-wrap: anywhere;

    }


    .formula-box {

        font-size: 1rem;

        overflow-x: auto;

    }

}


/* ==========================================================
   VERY SMALL PHONES
========================================================== */

@media (max-width: 360px) {

    .calculator-form input,
    .calculator-form select,
    .calculator-form textarea {

        padding:
            12px;

    }


    .result-card {

        padding: 16px;

    }


    .result-value {

        font-size: 1.3rem;

    }


    .faq-question {

        padding:
            16px;

    }


    .faq-answer {

        padding:
            0 16px 18px;

    }

}
/* ==========================================================
   CalclyWorld
   Global Styles
   Part 4
   Footer + Dark Mode + Final Responsive Protection
========================================================== */


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

.site-footer {

    width: 100%;

    max-width: 100%;

    margin-top: 60px;

    background: var(--card);

    border-top:
        1px solid var(--border);

}


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

.footer-grid {

    width: 100%;

    max-width: var(--container-width);

    margin-left: auto;
    margin-right: auto;

    padding-top: 55px;
    padding-bottom: 45px;

    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1.2fr
        1fr;

    gap: 40px;

}


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

.footer-column {

    min-width: 0;

}


.footer-column h3 {

    margin-bottom: 18px;

    font-size: 1.15rem;

}


.footer-column p {

    color: var(--text-light);

    font-size: .95rem;

    line-height: 1.7;

}


.footer-column ul {

    list-style: none;

    padding: 0;

    margin: 0;

}


.footer-column li {

    margin-bottom: 10px;

}


.footer-column li:last-child {

    margin-bottom: 0;

}


.footer-column a {

    color: var(--text-light);

    font-size: .95rem;

}


.footer-column a:hover {

    color: var(--primary);

}


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

.footer-bottom {

    width: 100%;

    max-width: 100%;

    border-top:
        1px solid var(--border);

    padding:
        22px 20px;

    text-align: center;

}


.footer-bottom p {

    margin: 0;

    color: var(--text-light);

    font-size: .9rem;

}


/* ==========================================================
   DARK MODE
========================================================== */

[data-theme="dark"] {

    color-scheme: dark;

}


[data-theme="dark"] .site-header,
[data-theme="dark"] .site-footer,
[data-theme="dark"] .content-card,
[data-theme="dark"] .calculator-card,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .result-card,
[data-theme="dark"] .faq-item,
[data-theme="dark"] .toc {

    background: var(--card);

}


[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {

    background: #0f172a;

    color: var(--text);

}


[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {

    color: #94a3b8;

}


[data-theme="dark"] .btn-secondary {

    color: #93c5fd;

    border-color: var(--border);

}


[data-theme="dark"] .btn-secondary:hover {

    background:
        rgba(147, 197, 253, .08);

}


[data-theme="dark"] .breadcrumb {

    background: var(--background);

}


/* ==========================================================
   DARK MODE TABLE
========================================================== */

[data-theme="dark"] table {

    background: var(--card);

}


[data-theme="dark"] th {

    background: #1d4ed8;

}


/* ==========================================================
   DARK MODE SEARCH
========================================================== */

[data-theme="dark"] .search-results {

    background: var(--card);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .4);

}


/* ==========================================================
   DARK MODE INFORMATION BOXES
========================================================== */

[data-theme="dark"] .info-box {

    background:
        rgba(37, 99, 235, .12);

}


[data-theme="dark"] .success-box {

    background:
        rgba(22, 163, 74, .12);

}


[data-theme="dark"] .warning-box {

    background:
        rgba(234, 88, 12, .12);

}


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

@media (max-width: 900px) {

    .footer-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 30px;

    }

}


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

@media (max-width: 600px) {

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 30px;

        padding-top: 40px;
        padding-bottom: 35px;

    }


    .footer-column {

        width: 100%;

    }


    .footer-bottom {

        padding:
            18px 12px;

    }

}


/* ==========================================================
   MOBILE HERO
========================================================== */

@media (max-width: 480px) {

    .hero h1 {

        max-width: 100%;

        font-size: 2rem;

    }


    .hero p {

        max-width: 100%;

        font-size: 1rem;

    }


    .hero-buttons {

        width: 100%;

        flex-direction: column;

        gap: 12px;

    }


    .hero-buttons .btn {

        width: 100%;

    }

}


/* ==========================================================
   MOBILE CONTENT SAFETY
========================================================== */

@media (max-width: 768px) {

    .content-card {

        overflow-wrap: anywhere;

    }


    .content-card img,
    .calculator-card img,
    .feature-card img {

        height: auto;

        max-width: 100%;

    }


    pre {

        max-width: 100%;

        overflow-x: auto;

        -webkit-overflow-scrolling: touch;

    }


    code {

        overflow-wrap: anywhere;

        word-break: break-word;

    }

}


/* ==========================================================
   VERY SMALL SCREEN PROTECTION
========================================================== */

@media (max-width: 360px) {

    .header-container {

        padding-left: 10px;
        padding-right: 10px;

    }


    .main-nav {

        gap: 8px 10px;

    }


    .main-nav a {

        font-size: .9rem;

    }


    .logo {

        font-size: 1.1rem;

    }


    #theme-toggle {

        font-size: .9rem;

        padding:
            11px 16px;

    }


    .footer-grid {

        padding-left: 10px;
        padding-right: 10px;

    }

}


/* ==========================================================
   FINAL GLOBAL OVERFLOW PROTECTION
========================================================== */

html,
body {

    width: 100%;

    max-width: 100%;

    overflow-x: hidden;

}


/*
   Prevent accidental viewport overflow from common
   flex/grid children.
*/

.container,
.content,
.calculator-container,
.header-container,
.footer-grid,
.calculator-grid,
.features-grid,
.calculator-form,
.calculator-results-grid {

    min-width: 0;

}


/* ==========================================================
   FLEX CHILD SAFETY
========================================================== */

.header-container > *,
.calculator-actions > *,
.hero-buttons > *,
.footer-grid > * {

    min-width: 0;

}


/* ==========================================================
   MOBILE BUTTON SAFETY
========================================================== */

@media (max-width: 480px) {

    .btn {

        max-width: 100%;

        white-space: normal;

        overflow-wrap: break-word;

    }

}


/* ==========================================================
   ACCESSIBILITY - REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;

    }


    *,
    *::before,
    *::after {

        transition-duration: .01ms !important;

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

    }

}


/* ==========================================================
   END OF CALCLYWORLD GLOBAL STYLES
========================================================== */