* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
    color: #172033;
    background: #f7f9fc;
    line-height: 1.6;
}

a {
    color: inherit;
}

.site-header {
    min-height: 72px;
    background: #fff;
    border-bottom: 1px solid #e5e9f0;
    display: flex;
    align-items: center;
}

.header-inner {
    width: min(1180px, calc(100% - 40px));
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -.03em;
}

.nav {
    display: flex;
    gap: 26px;
    font-size: 14px;
}

.nav a {
    text-decoration: none;
    color: #536075;
}

.nav a:hover {
    color: #111827;
}

.breadcrumb {
    width: min(900px, calc(100% - 40px));
    margin: 25px auto 0;
    font-size: 13px;
    color: #667085;
}

.breadcrumb a {
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.hero {
    padding: 58px 20px 42px;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #087f6d;
}

/* Utility label styling for tool pages using <div class="tool-eyebrow">.
   Matches the visual weight of the standard .eyebrow label. */

.tool-eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #087f6d;
}

h1 {
    margin: 0 auto 16px;
    max-width: 800px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.05;
    letter-spacing: -.045em;
    color: #101828;
}

.hero p {
    max-width: 680px;
    margin: 0 auto;
    color: #667085;
    font-size: 17px;
}

.tool-wrapper {
    width: min(900px, calc(100% - 40px));
    margin: 15px auto 70px;
}

.tool-card {
    background: #fff;
    border: 1px solid #e1e6ee;
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 12px 40px rgba(16, 24, 40, .06);
}

.field {
    margin-bottom: 19px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: #344054;
}

.required {
    color: #d92d20;
}

input {
    width: 100%;
    height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 13px;
    font-size: 15px;
    color: #101828;
    background: #fff;
    outline: none;
}

input:focus {
    border-color: #087f6d;
    box-shadow: 0 0 0 3px rgba(8, 127, 109, .12);
}

.field-help {
    margin-top: 5px;
    color: #98a2b3;
    font-size: 12px;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

button {
    border: 0;
    border-radius: 8px;
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.primary {
    background: #087f6d;
    color: #fff;
}

.primary:hover {
    background: #066b5c;
}

.secondary {
    background: #eef2f6;
    color: #344054;
}

.result {
    display: none;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #eaecf0;
}

.result.show {
    display: block;
}

.result-label {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
    color: #344054;
}

.result-box {
    display: flex;
    gap: 8px;
}

.result-url {
    flex: 1;
    min-height: 48px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-all;
    color: #344054;
}

.copy-button {
    flex: 0 0 auto;
    background: #172033;
    color: #fff;
}

.message {
    display: none;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 13px;
}

.message.error {
    display: block;
    color: #b42318;
    background: #fef3f2;
}

.message.success {
    display: block;
    color: #027a48;
    background: #ecfdf3;
}

.content {
    background: #fff;
    border-top: 1px solid #e5e9f0;
    padding: 70px 20px;
}

.content-inner {
    width: min(900px, 100%);
    margin: auto;
}

.content h2 {
    margin: 0 0 18px;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: #101828;
}

.content h3 {
    margin: 35px 0 10px;
    font-size: 21px;
    color: #101828;
}

.content p {
    color: #667085;
}

.parameter-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 14px;
}

.parameter-table th,
.parameter-table td {
    text-align: left;
    padding: 13px;
    border-bottom: 1px solid #eaecf0;
}

.parameter-table th {
    color: #344054;
    background: #f8fafc;
}

.parameter-table td {
    color: #667085;
}

.related-tools {
    margin-top: 55px;
    padding-top: 35px;
    border-top: 1px solid #eaecf0;
}

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

.related-card {
    padding: 16px;
    border: 1px solid #e1e6ee;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
}

.related-card strong {
    display: block;
    margin-bottom: 4px;
    color: #101828;
}

.related-card span {
    color: #667085;
    font-size: 12px;
}

.faq {
    margin-top: 45px;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid #eaecf0;
}

.faq-item strong {
    display: block;
    margin-bottom: 7px;
    color: #101828;
}

.faq-item p {
    margin: 0;
}

.ad-slot {
    width: min(900px, calc(100% - 40px));
    min-height: 90px;
    margin: 25px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
    font-size: 11px;
}

footer {
    background: #fff;
    border-top: 1px solid #e5e9f0;
    padding: 30px 20px;
    text-align: center;
    color: #98a2b3;
    font-size: 12px;
}

footer a {
    text-decoration: none;
    margin: 0 8px;
}

@media (max-width: 650px) {
    .hero {
        padding-top: 45px;
    }

    .tool-card {
        padding: 20px;
    }

    .button-row {
        flex-direction: column;
    }

    .result-box {
        flex-direction: column;
    }

    .copy-button {
        width: 100%;
    }

    .nav {
        gap: 12px;
    }

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

/* =========================================================
   GLOBAL TOOL LAYOUT
   ========================================================= */

.container {
    width: min(1180px, calc(100% - 40px));
    margin-left: auto;
    margin-right: auto;
}

.tool-page {
    padding: 0 20px 70px;
}

.tool-page > .container {
    width: min(900px, calc(100% - 40px));
}

.tool-header {
    padding: 45px 0 30px;
    text-align: center;
}

.tool-header h1 {
    margin-bottom: 14px;
}

.tool-header p:not(.eyebrow) {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    color: #667085;
    font-size: 17px;
}

.tool-page .tool-card {
    width: 100%;
}

.parameters-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0 20px;
}

.parameters-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    line-height: 1.25;
    color: #101828;
}

.parameters-header p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.parameters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.parameter-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 10px;
}

.parameter-row .field {
    margin-bottom: 0;
}

.remove-parameter {
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    background: #fff;
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.remove-parameter:hover {
    background: #fef3f2;
}

.tool-page .result {
    width: 100%;
}

.tool-page .copy-button {
    margin-top: 10px;
}

.tool-page + .content {
    margin-top: 0;
}

@media (max-width: 700px) {

    .container {
        width: min(100% - 30px, 1180px);
    }

    .tool-page {
        padding-left: 15px;
        padding-right: 15px;
    }

    .tool-page > .container {
        width: 100%;
    }

    .parameters-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .parameters-header button {
        width: 100%;
    }

    .parameter-row {
        grid-template-columns: 1fr;
    }

    .remove-parameter {
        width: 100%;
    }
}


.tool-page {
    padding-bottom: 30px;
}

.tool-header {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 35px;
    text-align: center;
}

.tool-header h1 {
    margin-bottom: 16px;
}

.tool-header p:not(.eyebrow) {
    max-width: 680px;
    margin: 0 auto;
    color: #667085;
    font-size: 17px;
}

.parameters {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.parameter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #eaecf0;
    border-radius: 8px;
}

.parameter-row strong {
    color: #344054;
    font-size: 13px;
}

.parameter-row span {
    color: #667085;
    font-size: 13px;
    text-align: right;
    word-break: break-word;
}

.result-label-spaced {
    margin-top: 20px;
}

@media (max-width: 650px) {

    .tool-header {
        padding-top: 10px;
    }

    .parameter-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .parameter-row span {
        text-align: left;
    }

}

.result-label-spaced {
    margin-top: 20px;
}


.result-label-spaced {
    margin-top: 20px;
}


/* Textareas used by online tools */

.tool-textarea {
    width: 100%;
    min-height: 180px;
    padding: 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: #101828;
    background: #fff;
    outline: none;
    resize: vertical;
}

.tool-textarea:focus {
    border-color: #087f6d;
    box-shadow: 0 0 0 3px rgba(8, 127, 109, .12);
}

.result-textarea {
    min-height: 180px;
}

.result-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 10px;
}

.result-count {
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 650px) {

    .result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .result-actions .copy-button {
        width: 100%;
    }

}


/* =========================================================
   TIMESHEET SELECT INPUTS
   ========================================================= */

.timesheet-row select {
    width: 100%;
    height: 46px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    padding: 0 13px;
    font-family: inherit;
    font-size: 15px;
    color: #101828;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.timesheet-row select:focus {
    border-color: #087f6d;
    box-shadow: 0 0 0 3px rgba(8, 127, 109, .12);
}

.timesheet-row .field {
    min-width: 0;
}

@media (max-width: 700px) {

    .timesheet-row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .timesheet-row select {
        width: 100%;
    }

}



/* =========================================================
   HOURS CALCULATOR SELECT INPUTS
   ========================================================= */

.hours-calculator-page select {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    color: #101828;
    background: #fff;
    outline: none;
    cursor: pointer;
    box-sizing: border-box;
}

.hours-calculator-page select:focus {
    border-color: #087f6d;
    box-shadow: 0 0 0 3px rgba(8, 127, 109, .12);
}

@media (max-width: 700px) {

    .hours-calculator-page select {
        width: 100%;
    }

}


/* =========================================================
   PASSWORD GENERATOR
   ========================================================= */

.password-generator-page select,
.password-generator-page input[type="text"] {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.2;
    color: #101828;
    background: #fff;
    outline: none;
    box-sizing: border-box;
}

.password-generator-page select {
    cursor: pointer;
}

.password-generator-page select:focus,
.password-generator-page input[type="text"]:focus {
    border-color: #087f6d;
    box-shadow: 0 0 0 3px rgba(8, 127, 109, .12);
}

.password-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14px;
    color: #344054;
    cursor: pointer;
}

.checkbox-option input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #087f6d;
    cursor: pointer;
}

.password-result {
    margin-top: 20px;
}

.password-result > label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #344054;
}

.password-output-row {
    width: 100%;
}

.password-output-row input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    letter-spacing: .4px;
}

.password-strength {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eaecf0;
    font-size: 13px;
}

.strength-label {
    color: #667085;
}

.password-strength strong {
    color: #087f6d;
}

.password-generator-page .message {
    display: none;
}

.password-generator-page .message.show {
    display: block;
}

.password-generator-page .message.error {
    color: #b42318;
    background: #fef3f2;
}

@media (max-width: 700px) {

    .password-options {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   RANDOM COLOR GENERATOR
   ========================================================= */

.random-color-generator-page .random-color-preview {
    width: 100%;
    min-height: 240px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .35);
    box-sizing: border-box;
}

.random-color-generator-page .random-color-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.random-color-generator-page .copy-field {
    display: flex;
    gap: 10px;
}

.random-color-generator-page .copy-field input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #101828;
    background: #fff;
    box-sizing: border-box;
}

.random-color-generator-page .copy-field button {
    flex: 0 0 auto;
    min-width: 76px;
}

.random-color-generator-page .button-row {
    margin-top: 4px;
}

@media (max-width: 700px) {

    .random-color-generator-page .random-color-values {
        grid-template-columns: 1fr;
    }

    .random-color-generator-page .random-color-preview {
        min-height: 190px;
    }

    .random-color-generator-page .copy-field {
        flex-direction: column;
    }

    .random-color-generator-page .copy-field button {
        width: 100%;
    }

}
