/* Gibson County Knife Sharpening - rebuilt main stylesheet
   Home, Learn, Support, Portal/Admin shared styles
*/

/* =========================================================
   Global variables, reset, base layout
   ========================================================= */
:root {
    --primary: #EC630F;
    --primary-dark: #d45209;
    --primary-muted: #b66a10;
    --dark: #151924;
    --dark-soft: #1e2436;
    --ink: #222222;
    --text: #333333;
    --muted: #666666;
    --light: #F8F9FA;
    --cream: #faf8f4;
    --cream-border: #e5ddd0;
    --slate: #8D99AE;
    --border: #dddddd;
    --success-bg: #f0f7f4;
    --success-border: #4caf50;
    --page-max: 1200px;
    --learn-max: 1120px;
    --content-max: 900px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lift: 0 12px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding-top: 70px;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

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

main {
    width: 100%;
    max-width: var(--page-max);
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

::selection {
    background: var(--primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--primary);
    color: #ffffff;
}

/* =========================================================
   Header and navigation
   ========================================================= */
header {
    position: fixed;
    inset: 0 0 auto 0;
    width: 100%;
    height: 70px;
    z-index: 1000;
    background: var(--dark-soft);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-container {
    width: 100%;
    max-width: var(--page-max);
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 24px;
}

.brand,
.header-logo-container {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    white-space: nowrap;
    text-decoration: none;
}

.logo-placeholder {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.site-name,
.logo-main-text {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo-sub-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    font-weight: 400;
}

.main-menu-row {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
}

nav a {
    color: #ffffff;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

nav a:hover,
nav a.active {
    color: var(--primary);
}

.nav-btn,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff !important;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-btn:hover,
.btn:hover,
button:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary) !important;
}

.btn-secondary:hover {
    background: var(--primary);
    color: #ffffff !important;
}

.dropdown,
.user-menu-dropdown {
    position: relative;
}

.dropdown-content,
.user-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    right: auto;
    left: 0;
    z-index: 1001;
    min-width: 200px;
    padding: 0;
    list-style: none;
    background: var(--dark-soft);
    border-top: 3px solid var(--primary);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.dropdown-content.right-align,
.user-menu-content {
    right: 0;
    left: auto;
}

.dropdown:hover .dropdown-content,
.user-menu-dropdown:hover .user-menu-content {
    display: block;
}

.dropdown-content li,
.dropdown-content li a,
.user-menu-content a,
.user-menu-content span {
    display: block;
    width: 100%;
}

.dropdown-content li a,
.user-menu-content a,
.user-menu-content span {
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-content li a:hover {
    background: rgba(236, 99, 15, 0.15);
    color: var(--primary);
}

.user-menu-content {
    min-width: 170px;
    padding: 8px 0;
    background: #ffffff;
    border-top: 0;
    border-radius: var(--radius-sm);
}

.user-menu-content a,
.user-menu-content span {
    color: var(--text);
    border-bottom: 0;
}

.user-menu-content span {
    font-weight: 700;
    border-bottom: 1px solid #eeeeee;
}

.user-menu-content a:hover {
    background: #f4f4f4;
}

.login-link,
.portal-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
}

.user-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
}

.menu-toggle {
    display: none;
    width: 26px;
    height: 20px;
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 1002;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    border-radius: 2px;
    background: #ffffff;
    transition: all 0.3s ease;
}

/* =========================================================
   Forms and tables
   ========================================================= */
form {
    max-width: 600px;
    padding: 25px;
    background: var(--light);
    border: 1px solid var(--slate);
    border-radius: 6px;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--slate);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

button {
    padding: 10px 20px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.table-container {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
}

th,
td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--slate);
}

th {
    background: var(--light);
    color: var(--dark);
    font-weight: 700;
}

tr:hover {
    background: rgba(236, 99, 15, 0.05);
}

/* =========================================================
   Standard page utilities
   ========================================================= */
.page-container,
.content-page,
.edu-page,
.learn-page,
.knife-learn-page {
    width: 100%;
    max-width: var(--learn-max);
    margin: 0 auto;
    padding: 40px 20px;
}

.narrow-page {
    max-width: var(--content-max);
}

.page-intro,
.section-intro {
    max-width: 780px;
    color: var(--muted);
    font-size: 1.05rem;
}

.highlight-box,
.note-box,
.edu-note {
    margin: 25px 0;
    padding: 18px 20px;
    background: var(--success-bg);
    border-left: 4px solid var(--success-border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.orange-box,
.edu-note.orange-box,
.edu-tip {
    background: #fff8f2;
    border-left-color: var(--primary);
}

.edu-warning {
    background: #fff3f2;
    border-left-color: #c0392b;
}

.edu-info {
    background: #f2f7ff;
    border-left-color: #3b73c8;
}

.edu-philosophy {
    background: var(--success-bg);
    border-left-color: var(--success-border);
}

/* =========================================================
   Learn / education pages - shared structure
   Use this on all knife learning pages:
   <main class="edu-page knife-learn-page knife-care-page"> ...
   ========================================================= */
.edu-page,
.knife-learn-page {
    line-height: 1.7;
    margin-bottom: 24px;
}

.edu-page h1,
.knife-learn-page h1 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.edu-page h2,
.knife-learn-page h2,
.knife-section h2 {
    margin: 0 0 15px;
    padding-bottom: 8px;
    color: var(--dark);
    font-size: clamp(1.65rem, 3vw, 2rem);
    line-height: 1.2;
    border-bottom: 2px solid var(--border);
}

.edu-page h3,
.knife-learn-page h3,
.knife-section h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1.25;
}

.edu-page p,
.knife-learn-page p {
    margin-bottom: 15px;
}

.edu-page ul,
.knife-learn-page ul,
.legal-page ul {
    margin: 0 0 25px;
    padding-left: 25px;
    list-style: disc;
}

.edu-page li,
.knife-learn-page li,
.legal-page li {
    margin-bottom: 8px;
    padding-left: 5px;
}

.edu-eyebrow,
.learn-eyebrow,
.knife-anatomy-hero .eyebrow {
    margin-bottom: 8px;
    color: var(--primary-muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
}

.hero-subtitle,
.edu-hero-subtitle {
    margin-bottom: 15px;
    color: var(--primary-muted);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: none;
}

.edu-hero,
.knife-hero,
.knife-anatomy-hero {
    margin: 40px auto 50px;
    padding: clamp(28px, 4vw, 40px);
    background:
        radial-gradient(circle at top right, rgba(236, 99, 15, 0.16), transparent 42%),
        var(--dark);
    color: #ffffff;
    border-left: 6px solid var(--primary);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.edu-hero-split,
.edu-hero-grid,
.knife-anatomy-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 32px;
    align-items: center;
}

.edu-hero h1,
.knife-hero h1,
.knife-anatomy-hero h1 {
    margin-bottom: 12px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.edu-hero .hero-subtitle,
.knife-hero .hero-subtitle,
.knife-anatomy-hero .hero-subtitle {
    margin-bottom: 14px;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 700;
}

.edu-hero p,
.knife-hero p,
.knife-anatomy-hero p {
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
}

.edu-hero-image img,
.knife-anatomy-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.edu-hero .edu-note,
.edu-hero .highlight-box {
    margin: 20px 0 0;
    padding: 22px 24px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    border-left-color: var(--primary);
}

.edu-section,
.knife-section {
    margin: 45px 0;
}

.edu-section:first-child,
.knife-section:first-child {
    margin-top: 0;
}

.edu-card-grid,
.learn-card-grid,
.knife-term-grid,
.knife-style-grid,
.care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.edu-card,
.learn-card,


.knife-card,
.knife-term-grid > div,
.edge-grid article,
.blade-shape-grid article,
.angle-grid article,
.blade-shape-card {
    display: block;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: var(--radius-md);
    color: var(--ink);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.learn-card,
.edu-card.clickable-card {
    padding: 26px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.learn-card:hover,
.edu-card.clickable-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
    border-color: var(--primary);
}

.edu-card h3,
.learn-card h3,
.knife-card h3,
.knife-term-grid h3,
.edge-grid h3,
.blade-shape-grid h3,
.angle-grid h3 {
    color: var(--primary-muted);
}

.learn-icon {
    display: block;
    margin-bottom: 14px;
    font-size: 30px;
}

.knife-card img,
.edu-card img {
    margin-bottom: 12px;
    background: #fbfaf7;
    border-radius: 6px;
}

.knife-showcase,
.edu-image-box,
.anatomy-diagram-wrap {
    margin: 30px 0;
    padding: 15px;
    background: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-sm);
    text-align: center;
}

.knife-showcase img,
.edu-image-box img,
.anatomy-diagram-wrap img {
    margin: 0 auto;
    border-radius: 2px;
}


.knife-showcase p.caption,
.caption {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-style: italic;
}

.knife-grid-two,
.edu-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 25px 0;
}

.edge-grid,
.blade-shape-grid,
.angle-grid {
    display: grid;
    gap: 18px;
    margin-top: 25px;
}

.edge-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.blade-shape-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.blade-shape-grid-enhanced {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.angle-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.blade-shape-grid article,
.angle-grid article,
.edge-grid article,
.blade-shape-card {
    text-align: center;
}

.blade-shape-grid img,
.angle-grid img,
.edge-grid img,
.blade-shape-card img {
    margin: 0 auto 12px;
}

.blade-shape-card img {
    width: 100%;
    max-width: 260px;
}

.knife-table,
.edu-table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    font-size: 1rem;
}

.knife-table th,
.knife-table td,
.edu-table th,
.edu-table td {
    padding: 12px;
    border: 1px solid #dddddd;
    text-align: left;
    vertical-align: top;
}

.knife-table th,
.edu-table th {
    background: #f4f4f4;
    font-weight: 700;
}

.knife-table tr:nth-child(even),
.edu-table tr:nth-child(even) {
    background: #f9f9f9;
}

.bess-feature-row {
    background: #e8f5e9 !important;
}

/* Lightbox support for Learn pages */
.knife-card a,
.blade-shape-card a,
.edge-grid article a,
.angle-grid article a,
.anatomy-diagram-wrap a,
.lightbox-trigger {
    display: block;
}

.knife-card a:hover img,
.blade-shape-card a:hover img,
.edge-grid article a:hover img,
.angle-grid article a:hover img,
.anatomy-diagram-wrap a:hover img,
.lightbox-trigger:hover img {
    opacity: 0.88;
    cursor: zoom-in;
}

.lightbox,
.knife-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    padding: 40px;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
}

.lightbox.active,
.knife-lightbox-overlay.active {
    display: flex;
}

.lightbox img,
.knife-lightbox-overlay img {
    max-width: 95vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 6px;
}

.lightbox-close,
.knife-lightbox-close {
    position: fixed;
    top: 18px;
    right: 24px;
    background: transparent;
    color: #ffffff;

    font-size: 42px;
    border: 0;
    cursor: pointer;
}

.learn-hub,
.learn-footer {
    max-width: var(--page-max);
    background: var(--cream);
    border: 1px solid var(--cream-border);
    border-radius: var(--radius-lg);
}

/* Learn navigation block, usually included from learn_menu.php */
.learn-hub {
    margin: 24px auto 26px;
    padding: clamp(26px, 4vw, 38px);
}

/* CTA block, usually included from learn_footer.php */
.learn-footer {
    margin: 26px auto 48px;
    padding: clamp(30px, 4vw, 42px) 28px;
}

.learn-hub-header,
.learn-footer-header,
.learn-footer-cta {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
}

.learn-hub-header {
    margin-bottom: 34px;
}

.learn-footer-divider {
    height: 1px;
    margin: 34px 0;
    background: var(--cream-border);
}

.learn-footer-cta .learn-eyebrow {
    margin-bottom: 10px;
    color: var(--primary-muted);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: none;
}

.learn-footer-cta h2 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.learn-footer-cta p {
    max-width: 830px;
    margin: 0 auto 26px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.55;
}

.learn-cta-buttons,
.edu-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 6px;
}

.learn-cta-buttons .btn,
.edu-cta-buttons .btn {
    min-width: 190px;
    padding: 13px 24px;
    font-size: 1rem;
}

.closing-cta,
.edu-cta,
.learn-service-cta {
    margin: 40px auto;
    padding: 36px 25px;
    background: var(--dark);
    color: #ffffff;
    text-align: center;
    border-radius: var(--radius-lg);
}

.closing-cta h2,
.edu-cta h2,
.learn-service-cta h2 {
    color: #ffffff;
    border-bottom: 0;
    padding-bottom: 0;
}

.closing-cta p,
.edu-cta p,
.learn-service-cta p {
    max-width: 760px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.82);
}


.edu-divider {
    height: 1px;
    margin: 45px 0;
    background: var(--border);
    border: 0;
}

.edu-faq {
    margin-top: 25px;
    margin-bottom: 22px;
}

.edu-faq-item,
.edu-faq .faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.edu-faq-item:last-child,
.edu-faq .faq-item:last-child {
    border-bottom: 0;
}

.edu-faq-item h3,
.edu-faq .faq-item h3 {
    color: var(--primary-muted);
}

.edu-faq-item p:last-child,
.edu-faq .faq-item p:last-child {
    margin-bottom: 0;
}

/* =========================================================
   Login page
   ========================================================= */
.login-page-wrapper {
    min-height: 70vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: var(--dark-soft);
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
    background: #ffffff;
    border-radius: var(--radius-md);
    color: var(--text);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.8rem;
    text-align: center;
}

.login-subtitle {
    margin-bottom: 30px;
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.login-form input {
    padding: 12px;
    border: 1px solid #cccccc;
}

.login-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.login-submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px;
}

.login-error-box {
    margin-bottom: 20px;
    padding: 12px;
    background: #fce4e4;
    border: 1px solid #f6b0b0;
    border-radius: var(--radius-sm);
    color: #cc0000;
    font-size: 0.9rem;
    text-align: center;
}

.login-card-footer {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #eeeeee;
    text-align: center;
}

.forgot-password-link {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* =========================================================
   Dashboard / admin
   ========================================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.tile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--light);
    border: 1px solid #dddddd;
    border-radius: var(--radius-md);
    color: var(--text);
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tile:hover {
    transform: translateY(-2px);
    background: #e9ecef;
    border-color: var(--primary);
}

.admin-page-container {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 30px;
    width: 95%;
    max-width: 1400px;
    margin: 40px auto;
}

.admin-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.admin-dashboard-page {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 40px;
    background: #ffffff;
    border-top: 5px solid var(--primary-dark);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.admin-welcome {
    margin-bottom: 5px;
    color: #2c3e50;
    font-size: 2rem;
}

.admin-subtext {
    margin-bottom: 30px;
    color: var(--muted);
    font-style: italic;
}

.search-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
}

.search-stack .tile {
    justify-content: space-between;
    padding: 20px;
}

.tile form {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
}

.tile form input,
.tile input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.tile form button,
.your-btn-class {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--primary-dark);
    color: #ffffff;
    border: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
}

.tile form button:hover,
.your-btn-class:hover {
    background: #a04000;
}

.user-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.user-table th,
.user-table td {
    padding: 12px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
}

.user-table tr:hover {
    background: #f9f9f9;
}

/* =========================================================
   Footer
   ========================================================= */
footer,
.site-footer {
    margin-top: auto;
    padding: 50px 20px 20px;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns:
        minmax(300px, 1.35fr)
        minmax(150px, 0.65fr)
        minmax(340px, 1.45fr);
    gap: 40px;
    max-width: var(--page-max);
    margin: 0 auto;
    padding-bottom: 40px;
}

/* Keep the long About link on one line when the footer has room. */
@media (min-width: 700px) {
    .footer-column:last-child a {
        white-space: nowrap;
    }
}

.footer-column h3 {
    margin: 0 0 5px;
    color: #ffffff;
    font-size: 1.3rem;
    line-height: 1.2;
}

.footer-column .owner-name {
    margin: 0 0 15px;
    color: var(--primary);
    font-size: 0.95rem;
}

.footer-column h4 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
}

.footer-address {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    font-style: normal;
    line-height: 1.6;
}

.location-note {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.footer-column ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-column a:hover,
.agency-attribution a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--page-max);
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.agency-attribution a {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 992px) {
    body {
        padding-top: 70px;
    }

    .menu-toggle {
        display: flex;
    }

    #nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--dark-soft);
        z-index: 1000;
    }

    #nav-menu.active {
        display: block;
    }

    .main-menu-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px;
    }

    .main-menu-row li,
    .main-menu-row li a {
        width: 100%;
    }

    .main-menu-row li a {
        display: block;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .dropdown-content,
    .user-menu-content {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .menu-toggle.open .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.open .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .admin-page-container {
        flex-direction: column;
    }

    .admin-sidebar {
        width: 100%;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 780px) {
    .edu-hero-split,
    .edu-hero-grid,
    .knife-anatomy-hero {
        grid-template-columns: 1fr;
    }

    .edu-hero,
    .knife-hero,
    .knife-anatomy-hero {
        padding: 26px;
    }

    .edu-hero h1,
    .knife-hero h1,
    .knife-anatomy-hero h1 {
        font-size: 2rem;
    }

    .page-container,
    .content-page,
    .edu-page,
    .learn-page,
    .knife-learn-page,
    .knife-anatomy-page {
        padding: 28px 15px;
    }
}

@media (max-width: 600px) {
    main {
        margin: 25px auto;
        padding: 0 15px;
    }

    .header-container {
        padding: 0 15px;
    }

    .logo-sub-text {
        display: none;
    }

    .knife-grid-two,
    .edu-grid-two {
        grid-template-columns: 1fr;
    }

    .tile form {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .learn-hub,
    .learn-footer {
        margin-left: 15px;
        margin-right: 15px;
        padding: 26px 20px;
    }


    .learn-cta-buttons .btn,
    .edu-cta-buttons .btn {
        width: 100%;
        min-width: 0;
    }
}

.edu-note-hero {
    margin-top: 22px;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary);
    color: rgba(255, 255, 255, 0.9);
}

.learn-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    align-items: stretch;
}

.learn-card {
    min-height: 220px;
}

.learn-card-label {
    display: inline-flex;
    margin-bottom: 22px;
    padding: 6px 10px;
    background: #fff8f2;
    border: 1px solid rgba(236, 99, 15, 0.25);
    border-radius: 999px;
    color: var(--primary-muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.learn-card h3 {
    margin-bottom: 10px;
}

.learn-card p {
    font-size: 1rem;
    line-height: 1.55;
}

/* =========================================================
   Support / Legal pages
   ========================================================= */

.support-page {
    width: 100%;
    max-width: 1060px;
    margin: 40px auto;
    padding: 0 20px 50px;
}

.support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 42px;
    padding: clamp(28px, 4vw, 42px);
    background: #f7f3ed;
    border: 1px solid var(--cream-border);
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.support-eyebrow {
    margin-bottom: 8px;
    color: var(--primary-muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: none;
}

.support-hero h1 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.support-hero p {
    max-width: 720px;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.65;
}

.support-hero-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    background: var(--dark);
    color: #ffffff;
    border-left: 6px solid var(--primary);
    border-radius: 12px;
    font-size: 1.05rem;
    line-height: 1.55;
}

.support-hero-note strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.25rem;
}

.support-section {
    margin: 44px 0;
}

.support-section h2,
.support-notice h2,
.support-cta h2 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.2;
}

.support-section p,
.support-section li {
    line-height: 1.65;
}

.support-section ul {
    margin: 0 0 22px;
    padding-left: 25px;
}

.support-notice {
    margin: 36px 0;
    padding: 28px;
    background: #fff8f2;
    border-left: 5px solid var(--primary);
    border-radius: 0 12px 12px 0;
}

.support-notice p {
    margin-bottom: 14px;
    line-height: 1.65;
}

.support-notice p:last-child {
    margin-bottom: 0;
}

.support-cta {
    margin: 48px auto 0;
    padding: 36px 28px;
    background: var(--dark);
    color: #ffffff;
    border-radius: 16px;
    text-align: center;
}

.support-cta h2 {
    color: #ffffff;
}

.support-cta p {
    max-width: 720px;
    margin: 0 auto 24px;
    color: rgba(255,255,255,0.82);
    font-size: 1.05rem;
    line-height: 1.6;
}

.support-step-list {
    display: grid;
    gap: 18px;
}

.support-step {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 18px;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.support-step-number {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff8f2;
    border: 1px solid rgba(236, 99, 15, 0.28);
    border-radius: 999px;
    color: var(--primary);
    font-weight: 800;
}

.support-step h3 {
    margin-bottom: 8px;
    color: var(--primary-muted);

    font-size: 1.15rem;
}

.support-step p {
    margin: 0;
}

.legal-page .support-section {


    max-width: 850px;
}

@media (max-width: 780px) {
    .support-hero {
        grid-template-columns: 1fr;
    }

    .support-step {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Home page
   ========================================================= */

.home-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-hero {
    padding: clamp(60px, 8vw, 95px) 20px;
    background: linear-gradient(135deg, #f7f3ed 0%, #ffffff 100%);
    border-bottom: 1px solid var(--cream-border);
    text-align: center;
}

.home-hero-inner {
    max-width: 880px;
    margin: 0 auto;
}

.home-hero h1 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.home-hero p {
    max-width: 760px;
    margin: 0 auto 30px;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.65;
}

.home-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn-secondary-dark {
    background: var(--dark);
    border: 1px solid var(--dark);
    color: #ffffff !important;
}

.btn-secondary-dark:hover {
    background: var(--dark-soft);
}

.home-section {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: clamp(48px, 7vw, 70px) 20px;
}

.home-section-header {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.home-section-header h2,
.home-feature h2,
.home-learn-callout h2 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.12;
}

.home-section-header p {
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.home-card-grid,
.home-step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.home-card,
.home-step {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.home-card h3,
.home-step h3 {
    margin-bottom: 10px;
    color: var(--primary-muted);
    font-size: 1.2rem;
}

.home-card p,
.home-step p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.home-feature {
    padding: clamp(44px, 7vw, 64px) 20px;
    background: var(--dark);
    color: #ffffff;
    text-align: center;
}

.home-feature-inner {
    max-width: 820px;
    margin: 0 auto;
}

.home-feature h2 {
    color: #ffffff;
}

.home-feature p {
    margin: 0 auto 20px;
    color: rgba(255,255,255,0.82);
    font-size: 1.08rem;
    line-height: 1.65;
}

.home-feature-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
}

.home-step {
    text-align: center;
}

.home-step-number {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    background: #fff8f2;
    border: 1px solid rgba(236, 99, 15, 0.28);
    border-radius: 999px;
    color: var(--primary);
    font-size: 1.25rem;
    font-weight: 800;
}

.home-section-action {
    margin-top: 34px;
    text-align: center;
}

.home-learn-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto 70px;
    padding: 34px;
    background: #f7f3ed;
    border: 1px solid var(--cream-border);
    border-radius: 16px;
}

.home-eyebrow {
    margin-bottom: 8px;
    color: var(--primary-muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.home-learn-callout p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

@media (max-width: 780px) {
    .home-learn-callout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-learn-callout .btn {
        justify-self: center;
    }
}

/* =========================================================
   Learn index page enhancements
   ========================================================= */

.learn-index-page .edu-hero {
    margin-bottom: 46px;
}

.learn-index-page .edu-eyebrow {
    color: var(--primary);
}

.learn-index-header {
    max-width: 780px;
    margin: 0 auto 28px;
    text-align: center;
}

.learn-index-header p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.learn-index-grid {
    align-items: stretch;
}

.learn-index-page .edu-note .btn {
    margin-top: 10px;
}

.learn-index-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: -16px auto 42px;
}

.learn-index-stat {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.learn-index-stat strong {
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 1.8rem;
    line-height: 1;
}

.learn-index-stat span {
    color: var(--muted);
    font-size: 0.95rem;
}

/* keep the Learn index card CTA tidy */
.learn-index-page .orange-box {
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

@media (max-width: 780px) {
    .learn-index-stats {
        grid-template-columns: 1fr;
        margin-top: 0;
    }
}

/* =========================================================
   About page
   ========================================================= */

.about-page {
    width: 100%;
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.about-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 48px;
    padding: clamp(32px, 5vw, 52px);
    background: var(--dark);
    color: #ffffff;
    border-left: 6px solid var(--primary);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.about-eyebrow {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.about-hero h1 {
    max-width: 760px;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.about-hero p {
    max-width: 760px;
    color: rgba(255,255,255,0.84);
    font-size: 1.12rem;
    line-height: 1.7;
}

.about-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    background: rgba(255,255,255,0.08);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-hero-card strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.25rem;
}

.about-section {
    margin: 48px 0;
}

.about-section h2 {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.15;
}

.about-section p {
    margin-bottom: 16px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.about-note {
    padding: 26px;
    background: #f7f3ed;
    border: 1px solid var(--cream-border);
    border-left: 5px solid var(--primary);
    border-radius: 0 14px 14px 0;
}

.about-note.orange {
    background: #fff8f2;
}

.about-note h3 {
    margin-bottom: 10px;
    color: var(--primary-muted);
    font-size: 1.2rem;
}

.about-note p {
    margin: 0;
}

.about-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
}

.about-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.about-card h3 {
    margin-bottom: 10px;
    color: var(--primary-muted);
    font-size: 1.2rem;
}

.about-card p {
    margin: 0;
}

.about-cta {
    margin-top: 56px;
    padding: 38px 28px;
    background: #f7f3ed;
    border: 1px solid var(--cream-border);
    border-radius: 16px;
    text-align: center;
}

.about-cta h2 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.about-cta p {
    max-width: 680px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.about-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

@media (max-width: 780px) {
    .about-hero,
    .about-split {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Pricing page
   ========================================================= */

.pricing-page {
    width: 100%;
    max-width: 1060px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.pricing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 44px;
    padding: clamp(30px, 5vw, 48px);
    background: var(--dark);
    color: #ffffff;
    border-left: 6px solid var(--primary);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.pricing-eyebrow {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.pricing-hero h1 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.pricing-hero p {
    color: rgba(255,255,255,0.84);
    font-size: 1.12rem;
    line-height: 1.7;
}

.pricing-hero-note {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    background: rgba(255,255,255,0.08);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    color: rgba(255,255,255,0.9);
    font-size: 1.05rem;
    line-height: 1.6;
}

.pricing-hero-note strong {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 1.25rem;
}

.pricing-section {
    margin: 48px 0;
}

.pricing-section h2 {
    margin-bottom: 20px;
    color: var(--dark);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.pricing-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.pricing-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.pricing-card.featured {
    border-top: 5px solid var(--primary);
}

.pricing-card h2 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: 1.55rem;
}

.price {
    margin: 12px 0 8px;
    color: var(--primary);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
}

.price span {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
}

.price-example,
.price-extra {
    margin-bottom: 18px;
    color: var(--muted);
    font-weight: 700;
}

.pricing-card p {
    line-height: 1.65;
}

.pricing-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pricing-detail {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.pricing-detail h3 {
    margin-bottom: 10px;
    color: var(--primary-muted);
    font-size: 1.2rem;
}

.pricing-detail p {
    margin: 0;
    line-height: 1.65;
}

.pricing-notice {
    margin: 46px 0;
    padding: 28px;
    background: #fff8f2;
    border-left: 5px solid var(--primary);
    border-radius: 0 14px 14px 0;
}

.pricing-notice h2 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.6rem;
}

.pricing-notice p {
    margin: 0;
    line-height: 1.65;
}

.pricing-cta {
    margin-top: 52px;
    padding: 38px 28px;
    background: #f7f3ed;
    border: 1px solid var(--cream-border);
    border-radius: 16px;
    text-align: center;
}

.pricing-cta h2 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: clamp(1.7rem, 3vw, 2.25rem);
}

.pricing-cta p {
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

@media (max-width: 780px) {
    .pricing-hero,
    .pricing-card-grid,
    .pricing-detail-grid {
        grid-template-columns: 1fr;
    }
}

.footer-brand h3 {
    margin-bottom: 12px;
}

.footer-tagline {
    max-width: 260px;
    margin: 0 0 16px;
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
}

.footer-appointment-note {
    margin: 14px 0 10px;
    color: var(--primary);
    font-weight: 700;
}

.footer-phone {
    margin: 0;
}

.footer-phone a {
    color: rgba(255,255,255,0.9);
    font-weight: 700;
}

.footer-phone a:hover {
    color: var(--primary);
}

/* =========================================================
   Contact page
   ========================================================= */

.contact-page {
    width: 100%;
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.contact-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: stretch;
    margin-bottom: 46px;
    padding: clamp(30px, 5vw, 48px);
    background: var(--dark);
    color: #ffffff;
    border-left: 6px solid var(--primary);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.contact-eyebrow {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.contact-hero h1 {
    margin-bottom: 16px;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.contact-hero p {
    color: rgba(255,255,255,0.84);
    font-size: 1.12rem;
    line-height: 1.7;
}

.contact-hero-card {
    padding: 26px;
    background: rgba(255,255,255,0.08);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
}

.contact-hero-card h2 {
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 1.35rem;
}

.contact-hero-card p {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-hero-card a {
    color: #ffffff;
    font-weight: 700;
}

.contact-small-note {
    margin-top: 16px;
    color: rgba(255,255,255,0.75) !important;
    font-size: 0.95rem !important;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: start;
}

.contact-info-panel,
.contact-form-section {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.contact-info-panel h2,
.contact-form-section h2 {
    margin-bottom: 14px;
    color: var(--dark);
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.contact-info-panel ul {
    margin: 18px 0 24px;
    padding-left: 22px;
    line-height: 1.7;
}

.contact-note {
    padding: 18px;
    background: #fff8f2;
    border-left: 4px solid var(--primary);
    border-radius: 0 10px 10px 0;
    line-height: 1.6;
}

.contact-form-section p {
    margin-bottom: 24px;
    color: var(--muted);
    line-height: 1.65;
}

.contact-form {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
}

.turnstile-group {
    margin: 20px 0;
}

.legal-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 20px 0;
}

.legal-check input {
    width: auto;
    margin-top: 5px;
    cursor: pointer;
}

.legal-check label {
    font-weight: 400;
    font-size: 0.95rem;
    line-height: 1.45;
    cursor: pointer;
}

.legal-check a {
    text-decoration: underline;
}

@media (max-width: 780px) {
    .contact-hero,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Thank You page
   ========================================================= */

.thankyou-page {
    max-width: 760px;
    margin: 60px auto;
    padding: 0 20px;
}

.thankyou-card {
    padding: 44px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.thankyou-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef9f0;
    border: 2px solid #7ac68a;
    border-radius: 50%;
    color: #2e7d32;
    font-size: 2rem;
    font-weight: 700;
}

.thankyou-eyebrow {
    margin-bottom: 8px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.thankyou-card h1 {
    margin-bottom: 16px;
    color: var(--dark);
    font-size: clamp(2rem, 5vw, 3rem);
}

.thankyou-intro {
    max-width: 560px;
    margin: 0 auto 36px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.thankyou-steps {
    margin: 40px 0;
    text-align: left;
}

.thankyou-steps h2 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark);
}

.thankyou-step-list {
    display: grid;
    gap: 16px;
}

.thankyou-step {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 12px;
}

.thankyou-step span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
}

.thankyou-step p {
    margin: 0;
    line-height: 1.6;
}

.thankyou-note {
    margin-top: 40px;
    padding: 22px;
    background: #fff8f2;
    border-left: 5px solid var(--primary);
    border-radius: 0 12px 12px 0;
    text-align: left;
}

.thankyou-note strong {
    display: block;
    margin-bottom: 10px;
}

.thankyou-note p {
    margin: 0;
    line-height: 1.65;
}

.thankyou-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

/* =========================================================
   Portal dashboards
   ========================================================= */

.portal-page-container {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    width: 95%;
    max-width: 1320px;
    margin: 40px auto;
}

.portal-dashboard-page {
    flex: 1 1 auto;
    min-width: 0;
    padding: clamp(28px, 4vw, 42px);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
}

.portal-welcome {
    margin-bottom: 32px;
}

.portal-eyebrow,
.portal-card-label {
    margin-bottom: 8px;
    color: var(--primary-muted);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.portal-welcome h1 {
    margin-bottom: 12px;
    color: var(--dark);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
}

.portal-welcome p {
    max-width: 780px;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.portal-status-card,
.portal-help-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    margin-bottom: 30px;
    padding: 28px;
    background: #f7f3ed;
    border: 1px solid var(--cream-border);
    border-left: 5px solid var(--primary);
    border-radius: 0 16px 16px 0;
}

.portal-status-card h2,
.portal-help-card h2 {
    margin-bottom: 8px;
    color: var(--dark);
    font-size: 1.6rem;
}

.portal-status-card p,
.portal-help-card p {
    max-width: 760px;





    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.portal-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin: 32px 0;
}

.portal-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.portal-card h2 {
    margin-bottom: 10px;
    color: var(--primary-muted);
    font-size: 1.35rem;
}

.portal-card p {
    flex: 1 1 auto;
    margin-bottom: 22px;
    color: var(--text);
    line-height: 1.65;
}

.portal-card .btn {
    align-self: flex-start;
}

.portal-help-card {
    margin-top: 34px;
    margin-bottom: 0;
    background: var(--dark);
    color: #ffffff;
    border-left-color: var(--primary);
}

.portal-help-card h2 {
    color: #ffffff;
}

.portal-help-card p {
    color: rgba(255,255,255,0.82);
}

.portal-help-card a:not(.btn) {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 900px) {
    .portal-page-container {
        flex-direction: column;
    }

    .portal-status-card,
    .portal-help-card {
        grid-template-columns: 1fr;
    }
}

.portal-message {
    margin-bottom: 24px;
    padding: 16px 18px;
    border-radius: 10px;
    font-weight: 700;
}

.portal-message.success {
    background: #eef9f0;
    border: 1px solid #8ed49a;
    color: #1f6b2b;
}

.portal-message.error {
    background: #fdecec;
    border: 1px solid #f3a6a6;
    color: #8a1f1f;
}

.portal-form-card {
    padding: 30px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.portal-form-card h2 {
    margin-bottom: 18px;
    color: var(--dark);
    font-size: 1.45rem;
}

.portal-profile-form {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
}

.portal-form-grid {
    display: grid;
    gap: 18px;
}

.portal-form-grid.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-form-grid.address-grid {
    grid-template-columns: 2fr 1fr 1fr;
}

.portal-form-divider {
    height: 1px;
    margin: 30px 0;
    background: var(--border);
    border: 0;
}

.portal-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

@media (max-width: 780px) {
    .portal-form-grid.two-column,
    .portal-form-grid.address-grid {
        grid-template-columns: 1fr;
    }
}

.portal-message.notice {
    background: #fff8e5;
    border: 1px solid #f3d58a;
    color: #7a5200;
}

.portal-request-list {
    display: grid;
    gap: 26px;
}

.portal-intake-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.portal-intake-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 26px;
    background: #f7f3ed;
    border-bottom: 1px solid var(--cream-border);
}

.portal-intake-header h2 {
    margin: 0 0 6px;
    color: var(--dark);
    font-size: 1.6rem;
}

.portal-intake-header p {
    margin: 0;
    color: var(--muted);
}

.portal-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    min-width: 650px;
    margin: 0;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    padding: 14px;
    border-bottom: 1px solid #eeeeee;
    text-align: left;
    vertical-align: top;
}

.portal-table th {
    background: #fafafa;
    color: var(--dark);
    font-weight: 700;
}



.portal-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

.portal-status.finished {
    background: #eef9f0;
    color: #1f6b2b;
}

.portal-status.pending {
    background: #fff8f2;
    color: var(--primary-muted);
}

.portal-intake-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    background: #fcfcfc;
}

.portal-intake-summary div {
    padding: 18px;
    text-align: center;
    border-right: 1px solid #eeeeee;
}

.portal-intake-summary div:last-child {
    border-right: 0;
}

.portal-intake-summary span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.9rem;
}

.portal-intake-summary strong {
    color: var(--dark);
    font-size: 1.2rem;
}

.portal-intake-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
}

.portal-balance-due {
    width: 100%;
    color: #d35400;
    font-weight: 800;
}

.portal-payment-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.portal-paypal-btn {
    background: #0070ba;
}

.portal-paypal-btn:hover {
    background: #005c99;
}

.portal-card-btn {
    background: #635bff;
}

.portal-card-btn:hover {
    background: #4f46e5;
}

.portal-paid-message {
    color: #1f6b2b;
    font-weight: 800;
}

@media (max-width: 780px) {
    .portal-intake-header,
    .portal-intake-summary {
        grid-template-columns: 1fr;
    }

    .portal-intake-summary div {
        border-right: 0;
        border-bottom: 1px solid #eeeeee;
    }

    .portal-intake-summary div:last-child {
        border-bottom: 0;
    }

    .portal-intake-actions {
        align-items: stretch;
    }

    .portal-intake-actions .btn,
    .portal-payment-buttons,
    .portal-payment-buttons .btn {
        width: 100%;
    }
}

.portal-detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-bottom: 28px;
}

.portal-back-link {
    color: var(--primary-muted);
    font-weight: 700;
}

.portal-notice {
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 0 14px 14px 0;
    border-left: 5px solid var(--primary);
}

.portal-notice h2 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.35rem;
}

.portal-notice p:last-child {
    margin-bottom: 0;
}

.portal-notice.info {
    background: #f2f7ff;
    border-left-color: #3b73c8;
}

.portal-notice.warning {
    background: #fff8e5;
    border-left-color: #d99a00;
}

.portal-knife-detail-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.portal-knife-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 26px;
    background: #f7f3ed;
    border-bottom: 1px solid var(--cream-border);
}

.portal-knife-header h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.65rem;
}

.portal-knife-price {
    text-align: right;
}

.portal-knife-price span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.portal-knife-price strong {
    color: var(--primary-muted);
    font-size: 1.45rem;
}

.portal-service-notes,
.portal-bess-section {
    padding: 24px 26px;
    border-bottom: 1px solid #eeeeee;
}

.portal-service-notes h3,
.portal-bess-section h3,
.portal-photo-group h3 {
    margin-bottom: 12px;
    color: var(--primary-muted);
    font-size: 1.15rem;
}

.portal-service-notes p {
    margin: 0;
    line-height: 1.65;
}

.portal-photo-sections {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    border-bottom: 1px solid #eeeeee;
}

.portal-photo-group {
    padding: 24px;
    border-right: 1px solid #eeeeee;
}

.portal-photo-group:last-child {
    border-right: 0;
}

.portal-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 10px;
}

.portal-photo-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 10px;
}

.portal-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.portal-photo-thumb:hover img {
    opacity: 0.88;
    transform: scale(1.03);
    cursor: zoom-in;
}

.portal-empty-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    font-style: italic;
}

.portal-bess-table {
    max-width: 520px;
    min-width: 420px;
    text-align: center;
}

.portal-bess-table th,
.portal-bess-table td {
    text-align: center;
}

.portal-grand-total {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding: 22px 26px;
    background: #eef9f0;
    border: 1px solid #8ed49a;
    border-left: 5px solid #2e7d32;
    border-radius: 0 14px 14px 0;
}

.portal-grand-total span {
    color: #1f6b2b;
    font-weight: 700;
}

.portal-grand-total strong {
    color: #1f6b2b;
    font-size: 1.45rem;
}

@media (max-width: 900px) {
    .portal-photo-sections {
        grid-template-columns: 1fr;
    }

    .portal-photo-group {
        border-right: 0;
        border-bottom: 1px solid #eeeeee;
    }

    .portal-photo-group:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 600px) {
    .portal-detail-actions,
    .portal-knife-header,
    .portal-grand-total {
        flex-direction: column;
        display: flex;
        align-items: stretch;
        text-align: left;
    }

    .portal-knife-price {
        text-align: left;
    }

    .portal-detail-actions .btn {
        width: 100%;
    }
}

/* Admin portal cleanup */

.admin-search-card,
.admin-results-card {
    margin-bottom: 28px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-search-form {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
}

.admin-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.admin-results-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

.admin-results-header h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.55rem;
}

.admin-results-header p {
    margin: 0;
    color: var(--muted);
}

.admin-user-table a {
    font-weight: 700;
}

.admin-action-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-action-links a {
    display: inline-flex;
    padding: 6px 9px;
    background: #fff8f2;
    border: 1px solid rgba(236, 99, 15, 0.25);
    border-radius: 999px;
    color: var(--primary-muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.admin-action-links a:hover {
    background: var(--primary);
    color: #ffffff;
}

@media (max-width: 780px) {
    .admin-search-grid,
    .admin-results-header {
        grid-template-columns: 1fr;
        display: grid;
    }
}

.admin-edit-user-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.admin-edit-user-header h2 {
    margin: 0;
    color: var(--dark);
    font-size: 1.7rem;
}

.admin-user-id {
    padding: 8px 12px;
    background: #fff8f2;
    border: 1px solid rgba(236, 99, 15, 0.25);
    border-radius: 999px;
    color: var(--primary-muted);
    font-weight: 700;
}

.portal-form-section {
    margin: 0;

}

.portal-form-grid.three-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-checkbox-wrap {
    display: flex;
    align-items: end;
    padding-bottom: 10px;
}

.admin-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
}

.admin-checkbox-label input {
    width: auto;
}

@media (max-width: 780px) {
    .admin-edit-user-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .portal-form-grid.three-column {
        grid-template-columns: 1fr;
    }

    .admin-checkbox-wrap {
        align-items: flex-start;
        padding-bottom: 0;
    }
}

.admin-intake-table {
    min-width: 0;
    table-layout: auto;
}

.admin-intake-table th,
.admin-intake-table td {
    white-space: normal;
}

.admin-intake-table .admin-action-links {
    gap: 6px;
}

.admin-intake-table .admin-action-links a {
    padding: 5px 8px;
    font-size: 0.82rem;
}

.portal-status.partial {
    background: #fff8e5;
    color: #9a6500;
}

.portal-status.unpaid {
    background: #fdecec;
    color: #8a1f1f;
}

.portal-status.neutral {
    background: #eeeeee;
    color: #666666;
}


/* =========================================================
   Intake form rebuild: stacked uploads and cleaner knife cards
   ========================================================= */

.admin-intake-form {
    max-width: none;
    padding: 0;
    background: transparent;
    border: 0;
}

.intake-email-note {
    margin: 18px 0 24px;
}

.intake-knives-card {
    margin-top: 28px;
}

.intake-knife-container {
    display: grid;
    gap: 24px;
}

.portal-knife-entry {
    padding: clamp(22px, 3vw, 32px);
    background: #fcfcfc;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
}

.portal-knife-entry-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.portal-knife-entry-header h3 {
    margin: 0;
    color: var(--dark);
    font-size: 1.45rem;
}

.single-price-grid {
    max-width: 260px;
}

.btn-danger-small {
    min-height: 34px;
    padding: 7px 12px;
    background: #c0392b;
    font-size: 0.9rem;
}

.btn-danger-small:hover {
    background: #a93226;
}

.portal-bess-entry {
    margin: 28px 0;
}

.portal-bess-entry h4,
.portal-stacked-uploads h4 {
    margin-bottom: 14px;
    color: var(--primary-muted);
    font-size: 1.15rem;
}

.admin-intake-form .portal-bess-table {
    max-width: 700px;
    min-width: 520px;
}

.admin-intake-form .portal-bess-table input {
    width: 90px;
    padding: 7px;
    text-align: center;
}

.portal-stacked-uploads {
    display: grid;
    gap: 14px;
    margin: 28px 0;
    padding: 22px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
}

.portal-stacked-uploads .form-group {
    margin-bottom: 0;
}

.admin-file-upload {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 760px;
}

.admin-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-file-button {
    min-height: 38px;
    padding: 8px 14px;
    white-space: nowrap;
}

.admin-file-label {
    min-width: 0;
    color: var(--muted);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-knife-entry textarea {
    min-height: 120px;
}

@media (max-width: 780px) {
    .admin-intake-form .portal-bess-table {
        min-width: 480px;
    }

    .admin-file-upload {
        grid-template-columns: 1fr;
    }

    .admin-file-button {
        width: 100%;
    }

    .admin-file-label {
        white-space: normal;
        overflow-wrap: anywhere;
    }
    }

@media (max-width: 600px) {
    .portal-knife-entry-header {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-danger-small {
        width: 100%;
    }
}


/* =========================================================
   Admin open intakes
   ========================================================= */

.admin-open-intake-list {
    display: grid;
    gap: 26px;
}

.admin-open-intake-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.admin-open-intake-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 26px;
    background: #f7f3ed;
    border-bottom: 1px solid var(--cream-border);
}

.admin-open-intake-header h2 {
    margin: 0 0 6px;
    color: var(--dark);
    font-size: 1.55rem;
}

.admin-open-intake-meta {
    margin: 0;
    color: var(--muted);
}

.admin-last-bill {
    margin: 8px 0 0;
    color: #8a1f1f;
    font-size: 0.95rem;
    font-weight: 700;
}

.admin-open-intake-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 12px;
}

.admin-open-intake-summary div {
    padding: 16px;
    background: #ffffff;
    border: 1px solid var(--cream-border);
    border-radius: 12px;
    text-align: center;
}

.admin-open-intake-summary span {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.admin-open-intake-summary strong {
    color: var(--dark);
    font-size: 1.2rem;
}

.admin-open-intake-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding: 20px 26px;
    border-bottom: 1px solid #eeeeee;
}

.admin-send-bill-btn {
    background: #2e7d32;
}

.admin-send-bill-btn:hover {
    background: #256728;
}

.admin-close-link {
    border-color: #c0392b;
    color: #c0392b !important;
}

.admin-close-link:hover {
    background: #c0392b;
    color: #ffffff !important;
}

.admin-open-knife-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.admin-open-knife-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 14px 26px;
    border-bottom: 1px solid #f0f0f0;
}

.admin-open-knife-list li:last-child {
    border-bottom: 0;
}

.admin-open-knife-list li > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-knife-status-dot {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 800;
}

.admin-open-knife-list li.finished .admin-knife-status-dot {
    background: #eef9f0;
    color: #1f6b2b;
}

.admin-open-knife-list li.pending .admin-knife-status-dot {
    background: #fff8f2;
    color: var(--primary-muted);
}

.admin-open-knife-list strong {
    color: var(--dark);
}

.admin-open-knife-list strong.needs-price {
    color: #c0392b;
}

@media (max-width: 780px) {
    .admin-open-intake-header {
        grid-template-columns: 1fr;
    }

    .admin-open-intake-summary {
        grid-template-columns: 1fr 1fr;
    }

    .admin-open-intake-actions .btn {
        width: 100%;
    }
}

.login-message-box {
    margin-bottom: 20px;
    padding: 14px;
    border-radius: 6px;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.login-message-box.success {
    background: #eef9f0;
    border: 1px solid #8ed49a;
    color: #1f6b2b;
}

.login-message-box.error {

    background: #fdecec;
    border: 1px solid #f3a6a6;
    color: #8a1f1f;
}

.error-page {
    max-width: 760px;
    margin: 70px auto;
    padding: 0 20px;
}

.error-card {
    padding: 48px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.error-code {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

.error-card h1 {
    margin-bottom: 16px;
    color: var(--dark);
}

.error-card p {
    max-width: 520px;
    margin: 0 auto 28px;
    color: var(--muted);
    line-height: 1.7;
}

.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

.nav-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    color: inherit;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-icon-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--primary);
}

.search-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: block;
}

.nav-icon-btn svg {
    display: block;
    flex-shrink: 0;
}

.nav-icon-btn:hover svg {
    stroke: var(--primary);
}

.site-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.site-search-modal.active {
    display: block;
}

.site-search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 32, 0.72);
    backdrop-filter: blur(4px);
}

.site-search-modal-card {
    position: relative;
    max-width: 680px;
    margin: 12vh auto 0;
    padding: 36px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(0,0,0,0.3);
}

.site-search-modal-card h2 {
    margin-bottom: 20px;
}

.site-search-modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    background: none;
    border: 0;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--muted);
}

.site-search-modal-form {
    display: flex;
    gap: 12px;
}

.site-search-modal-form input {
    flex: 1;
    padding: 15px 16px;
    border: 1px solid var(--slate);
    border-radius: 10px;
    font-size: 1rem;
}

/* Search results page */
.site-search-page {
    max-width: 980px;
    margin: 50px auto;
    padding: 0 20px;
}

.site-search-hero {
    padding: 40px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}

.site-search-form {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.site-search-form input {
    flex: 1;
    padding: 14px 16px;
    border: 1px solid var(--slate);
    border-radius: 10px;
    font-size: 1rem;
}

.site-search-results {
    margin-top: 36px;
}

.site-search-summary {
    margin-bottom: 20px;
}

.site-search-result-grid {
    display: grid;
    gap: 18px;
}

.site-search-result-card {
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.site-search-result-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.site-search-result-meta span {
    padding: 4px 10px;
    background: #fff3e8;
    color: var(--primary);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.site-search-result-card h3 {
    margin: 0 0 10px;
}

.site-search-result-card h3 a {
    color: var(--dark);
    text-decoration: none;
}

.site-search-result-card h3 a:hover {
    color: var(--primary);
}

.site-search-result-card p {
    margin-bottom: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.search-empty-state {
    padding: 28px;
    background: #fff8f2;
    border-left: 5px solid var(--primary);
    border-radius: 0 14px 14px 0;
}

@media (max-width: 700px) {
    .site-search-modal-card {
        margin: 8vh 18px 0;
        padding: 28px;
    }

    .site-search-modal-form,
    .site-search-form {
        flex-direction: column;
    }
}

.main-menu-row li:has(.nav-icon-btn) {
    margin-left: 12px;
}

.main-menu-row li:has(.portal-link) {
    margin-left: 4px;
}

.popular-searches {
    margin-top: 22px;
}

.popular-searches p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 700;
}

.popular-search-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.popular-search-chip-list a {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    background: #fff3e8;
    color: var(--primary);
    border: 1px solid #f1d4bd;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.popular-search-chip-list a:hover {
    background: var(--primary);
    color: #ffffff;
}


/* Learn article shared components */

.learn-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    font-size: .95rem;
    color: rgba(255,255,255,.70);
}

.learn-article-meta > .learn-article-meta-item {
    display: inline-flex;
    align-items: center;
}

.learn-article-meta > .learn-article-meta-item:not(:last-child)::after {
    content: "•";
    margin-left: 10px;
    color: #d7822b;
}

.learn-article-cta {
    text-align: left;
}

.learn-article-cta h2 {
    margin-top: 0;
}

.learn-related-section h2 {
    margin-bottom: 18px;
}

.learn-related-grid {
    margin-top: 18px;
}

@media (max-width: 700px) {
    .learn-article-meta {
        gap: 6px;
        font-size: 0.9rem;
    }

    .learn-article-meta > .learn-article-meta-item:not(:last-child)::after {
        margin-left: 6px;
    }
}

/* Learn FAQ component */

.learn-faq-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.learn-faq-item {
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.learn-faq-item summary {
    cursor: pointer;
    padding: 18px 20px;
    font-weight: 700;
    color: #142033;
}

.learn-faq-item summary::marker {
    color: #d7822b;
}

.learn-faq-item div {
    padding: 0 20px 18px;
}

.learn-faq-item p {
    margin: 0;
}

/* Learning Center topic browser */

.learn-topic-browser {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.learn-topic-browser-card {
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.learn-topic-browser-card h3 {
    margin-top: 0;
    margin-bottom: 14px;
}

.learn-topic-browser-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 14px;
}

.learn-topic-browser-heading h3 {
    margin: 0;
}

.learn-topic-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0.3rem 0.65rem;
    background: rgba(236, 99, 15, 0.1);
    border: 1px solid rgba(236, 99, 15, 0.3);
    border-radius: 999px;
    color: var(--primary-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.learn-topic-browser-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.learn-topic-browser-card li + li {
    margin-top: 10px;
}

.learn-topic-browser-card a {
    font-weight: 700;
    color: #b35410;
    text-decoration: none;
}

.learn-topic-browser-card a:hover {
    text-decoration: underline;
}

.learn-coming-soon {
    color: #687386;
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .learn-topic-browser {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   Learning Center sidebar menu
   ========================================================= */

.learning-center-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 44px;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 40px;
}

.learning-center-content {
    min-width: 0;
}

.learning-center-content .edu-hero {
    max-width: none;
}

.learning-center-content .edu-section {
    max-width: 1080px;
}

.learning-center-menu {
    align-self: start;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(35, 49, 66, 0.32) transparent;
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.learning-center-menu::-webkit-scrollbar {
    width: 8px;
}

.learning-center-menu::-webkit-scrollbar-track {
    background: transparent;
}

.learning-center-menu::-webkit-scrollbar-thumb {
    background: rgba(35, 49, 66, 0.28);
    border-radius: 999px;
}

.learning-center-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(35, 49, 66, 0.45);
}

.learning-center-menu__mobile-shell {
    display: block;
    width: 100%;
}

.learning-center-menu__mobile-summary {
    display: none;
}

.learning-center-menu__content {
    display: block;
    min-width: 0;
}

.learning-center-menu__header {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #edf0f4;
}

.learning-center-menu__title {
    display: inline-block;
    font-weight: 800;
    color: #c25b12;
    text-decoration: none;
}

.learning-center-menu__header p {
    margin: 8px 0 0;
    font-size: 0.95rem;
    color: #5f6875;
}

.learning-center-menu__group {
    border-top: 1px solid #e2e5ea;
    padding-top: 14px;
    margin-top: 14px;
}

.learning-center-menu__group summary {
    cursor: pointer;
    list-style: none;
    font-weight: 800;
    color: #142033;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.learning-center-menu__group summary::-webkit-details-marker {
    display: none;
}

.learning-center-menu__group summary::after {
    content: "+";
    color: #c25b12;
    font-weight: 800;
}

.learning-center-menu__group[open] summary::after {
    content: "−";
}

.learning-center-menu__group ul {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
}

.learning-center-menu__group li + li {
    margin-top: 6px;
}

.learning-center-menu__group a {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: #374151;
    text-decoration: none;
    font-size: 0.95rem;
    line-height: 1.35;
}

.learning-center-menu__group a:hover,
.learning-center-menu__group a.is-current {
    background: #fff4ea;
    color: #b35410;
}

@media (max-width: 900px) {
    .learning-center-layout {
        display: block;
        padding: 0;
    }

    .learning-center-content {
        width: 100%;
        min-width: 0;
    }

    .learning-center-menu {
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
        margin: 0 0 28px;
        padding: 0;
    }

    .learning-center-menu__mobile-shell {
        width: 100%;
    }

    .learning-center-menu__mobile-summary {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 54px;
        padding: 14px 18px;
        background: #ffffff;
        border-radius: 15px;
        color: #142033;
        cursor: pointer;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 800;
        line-height: 1.2;
        list-style: none;
        text-align: left;
    }

    .learning-center-menu__mobile-summary::-webkit-details-marker {
        display: none;
    }

    .learning-center-menu__mobile-summary::marker {
        content: "";
    }

    .learning-center-menu__mobile-summary:hover {
        background: #fff8f2;
        color: #142033;
    }

    .learning-center-menu__mobile-summary:focus-visible {
        outline: 3px solid rgba(236, 99, 15, 0.35);
        outline-offset: -3px;
    }

    .learning-center-menu__mobile-icon {
        display: inline-flex;
        flex: 0 0 22px;
        width: 22px;
        height: 18px;
        flex-direction: column;
        justify-content: space-between;
    }

    .learning-center-menu__mobile-icon span {
        display: block;
        width: 100%;
        height: 2px;
        background: #c25b12;
        border-radius: 999px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .learning-center-menu__mobile-label {
        flex: 1 1 auto;
        min-width: 0;
    }

    .learning-center-menu__mobile-arrow {
        width: 10px;
        height: 10px;
        flex: 0 0 10px;
        border-right: 2px solid #c25b12;
        border-bottom: 2px solid #c25b12;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.2s ease;
    }

    .learning-center-menu__content {
        padding: 0 22px 22px;
        border-top: 1px solid #edf0f4;
    }

    .learning-center-menu__mobile-shell[open]
        .learning-center-menu__mobile-arrow {
        transform: rotate(225deg) translate(-2px, -2px);
    }

    .learning-center-menu__mobile-shell[open]
        .learning-center-menu__mobile-icon span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .learning-center-menu__mobile-shell[open]
        .learning-center-menu__mobile-icon span:nth-child(2) {
        opacity: 0;
    }

    .learning-center-menu__mobile-shell[open]
        .learning-center-menu__mobile-icon span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .learning-center-menu__header {
        padding-top: 20px;
    }
}

main.professional-sharpening-page,
main.knife-learn-page {
    max-width: none;
}

/* Quiet article continue navigation */

.article-continue-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1080px;
    margin: 48px 0 0;
    padding-top: 28px;
    border-top: 1px solid #e2e5ea;
}

.article-continue-card {
    display: block;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    color: var(--dark);
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

.article-continue-card:hover {
    border-color: var(--primary);
    color: var(--primary-muted);
}

.article-continue-card span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.article-continue-card-next {
    text-align: right;
}

@media (max-width: 700px) {
    .article-continue-nav {
        grid-template-columns: 1fr;
    }

    .article-continue-card-next {
        text-align: left;
    }
}

/* Learning Center landing page menu */

.learn-index-menu-wrap .learning-center-menu {
    position: static;
    max-width: 760px;
    max-height: none;
    overflow: visible;
    margin: 0 auto;
}

.learn-index-menu-wrap .learning-center-menu__group[open] ul {
    display: block;
}


.learn-article-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
}

.learn-article-meta-icon {
    width: 1rem;
    height: 1rem;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.8;
}

@media (max-width: 480px) {
    .learn-topic-browser-heading {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.learn-article-category {
    color: inherit;
    font-weight: 600;
}

.learn-article-separator {
    color: rgba(255,255,255,.25);
    margin: 0 .25rem;
}

.learn-article-meta span:not(.learn-article-category):not(.learn-article-separator) {
    color: rgba(255,255,255,.72);
}

/* =========================================================
   Learning Center Article Navigation
   ========================================================= */


/* =========================================================
   Learning Center hero previous / next navigation
   ========================================================= */

/*
 * The include is located inside the hero text column, but the navigation
 * is positioned relative to the complete hero. This allows the divider
 * and links to span beneath both the text and hero image.
 */

.edu-hero-split {
    position: relative;
    padding-bottom: 145px;
}

.article-hero-nav {
    position: absolute;
    right: clamp(28px, 4vw, 40px);
    bottom: clamp(28px, 4vw, 40px);
    left: clamp(28px, 4vw, 40px);

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2rem;

    width: auto;
    margin: 0;
    padding-top: 1.15rem;

    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.article-hero-nav__side {
    min-width: 0;
}

.article-hero-nav__side--previous {
    text-align: left;
}

.article-hero-nav__side--next {
    text-align: right;
}

.article-hero-nav__link {
    display: inline-flex;
    flex-direction: column;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.article-hero-nav__direction {
    display: block;
    margin-bottom: 0.25rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.01em;
}

.article-hero-nav__title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.article-hero-nav__side--next .article-hero-nav__link {
    align-items: flex-end;
    margin-left: auto;
}

.article-hero-nav__link:hover .article-hero-nav__direction,
.article-hero-nav__link:focus-visible .article-hero-nav__direction {
    color: var(--primary);
}

.article-hero-nav__link:hover .article-hero-nav__title,
.article-hero-nav__link:focus-visible .article-hero-nav__title {
    color: #ffffff;
}

.article-hero-nav__link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 5px;
    border-radius: 2px;
}


/*
 * Larger previous/next cards displayed at the bottom.
 */
.article-continue-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    width: 100%;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dfe3e8;
}

.article-continue-card,
.article-continue-card-placeholder {
    min-width: 0;
}

.article-continue-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 124px;
    padding: 1.35rem 1.5rem;
    overflow: hidden;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
    background: #ffffff;
    color: #171b26;
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.article-continue-card:hover {
    border-color: rgba(255, 106, 0, 0.55);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.article-continue-card:focus-visible {
    outline: 3px solid rgba(255, 106, 0, 0.35);
    outline-offset: 3px;
}

.article-continue-card-next {
    text-align: right;
    align-items: flex-end;
}

.article-continue-label {
    display: block;
    margin-bottom: 0.55rem;
    color: #626975;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.25;
}

.article-continue-title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: #171b26;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}


/* =========================================================
   Learning Center References
   ========================================================= */

.learn-article-references {
    padding-top: 2rem;
    border-top: 1px solid #dfe3e8;
}

.learn-article-references__header {
    margin-bottom: 1.35rem;
}

.learn-article-references__header h2 {
    margin-bottom: 0.45rem;
}

.learn-article-references__header p {
    max-width: 760px;
    margin: 0;
    color: #5f6670;
}

.learn-article-references__list {
    display: grid;
    gap: 0.9rem;
    margin: 0;
    padding-left: 1.4rem;
}

.learn-article-reference {
    padding-left: 0.25rem;
}

.learn-article-reference__citation {
    line-height: 1.5;
}

.learn-article-reference__citation a,
.learn-article-reference__title {
    font-weight: 700;
}

.learn-article-reference__citation a {
    color: #243b63;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.learn-article-reference__citation a:hover {
    color: #d95700;
}

.learn-article-reference__publisher {
    display: block;
    margin-top: 0.1rem;
    color: #69717d;
    font-size: 0.9rem;
}

.learn-article-reference__note {
    margin: 0.3rem 0 0;
    color: #555d68;
    font-size: 0.92rem;
    line-height: 1.55;
}


/* =========================================================
   Responsive Article Navigation
   ========================================================= */
@media (max-width: 700px) {
    .edu-hero-split {
        padding-bottom: 165px;
    }

    .article-hero-nav {
        right: 26px;
        bottom: 26px;
        left: 26px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .article-hero-nav__side--next {
        text-align: right;
    }

    .article-hero-nav__side--next .article-hero-nav__link {
        align-items: flex-end;
    }

    .article-hero-nav__side:empty {
        visibility: hidden;
    }

    .article-hero-nav__title {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
}

/* =========================================================
   Learning Center References
   ========================================================= */

.article-references {
    margin-top: 3rem;
    padding-top: 0;
}

.article-references__header {
    margin-bottom: 1.5rem;
}

.article-references__header h2 {
    margin-bottom: 0.65rem;
}

.article-references__header p {
    margin: 0;
    color: #4f5b6b;
}

.article-references__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.article-reference-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid #dfe4ea;
    border-left: 4px solid #f26a21;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(10, 28, 50, 0.06);
}

.article-reference-card__content {
    min-width: 0;
}

.article-reference-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    line-height: 1.35;
    color: #0b1d35;
}

.article-reference-card__publisher {
    margin: 0 0 0.3rem;
    font-weight: 600;
    color: #26384d;
}

.article-reference-card__domain {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7684;
    overflow-wrap: anywhere;
}

.article-reference-card__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    margin-top: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    color: #e85d0f;
}

.article-reference-card__link:hover,

.article-reference-card__link:focus-visible {
    text-decoration: underline;
}

@media (max-width: 1000px) {
    .article-references__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .article-references {
        margin-top: 2.25rem;
    }

    .article-references__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .article-reference-card {
        padding: 1rem;
    }
}

/* =========================================================
   Learning Center previous / next article navigation
   ========================================================= */

.article-continue-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 48px 0 0;
    padding-top: 28px;
    border-top: 1px solid #e2e5ea;
}

.article-continue-card,
.article-continue-card-spacer {
    min-width: 0;
}

.article-continue-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 104px;
    padding: 20px 22px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    color: var(--dark);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.article-continue-card:hover {
    border-color: var(--primary);
    color: var(--dark);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.article-continue-card:focus-visible {
    outline: 3px solid rgba(236, 99, 15, 0.28);
    outline-offset: 3px;
}

.article-continue-card__label {
    display: block;
    margin: 0 0 7px;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
}

.article-continue-card__title {
    display: block;
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--dark);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.article-continue-card-next {
    text-align: right;
}

@media (max-width: 700px) {
    .article-continue-nav {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        margin-top: 36px;
        padding-top: 22px;
    }

    .article-continue-card-spacer {
        display: none;
    }

    .article-continue-card {
        width: 100%;
        min-height: 86px;
        padding: 16px 18px;
    }

    .article-continue-card-next {
        text-align: left;
    }

    .article-continue-card__title {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow-wrap: normal;
    }
}

.search-admin-page-heading h1 {
    margin: 0 0 6px;
    color: #1f2f3f;
    font-size: 2rem;
    line-height: 1.2;
}

.search-admin-page-heading p {
    margin: 0;
    color: #66717d;
    line-height: 1.55;
}

/* =========================================================
   Cutting-board material comparison cards
   Used by /learn/cutting_board_edge_life/
   ========================================================= */

.board-material-list {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.board-material-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d9e0e5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.board-material-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    background: var(--dark-soft);
    color: #ffffff;
}

.board-material-card__heading h3 {
    margin: 0;
    color: #ffffff;
    font-size: 1.25rem;
    line-height: 1.2;
}

.board-material-rating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 5px 11px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--dark);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.board-material-rating--excellent {
    color: #8c3c08;
}

.board-material-rating--good {
    color: #315269;
}

.board-material-rating--fair {
    color: #675720;
}

.board-material-rating--avoid {
    color: #7b241c;
}

.board-material-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.board-material-card__grid > div {
    min-width: 0;
    padding: 20px;
    border-right: 1px solid #d9e0e5;
}

.board-material-card__grid > div:last-child {
    border-right: 0;
}

.board-material-card__grid h4 {
    margin: 0 0 8px;
    color: var(--primary-muted);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    line-height: 1.2;
    text-transform: uppercase;
}

.board-material-card__grid p {
    margin: 0;
    color: var(--text);
    line-height: 1.65;
}

.board-material-card--recommended {
    border-top: 4px solid var(--primary);
}

.board-material-card--recommended .board-material-card__heading {
    padding-top: 14px;
}

.board-material-card--avoid {
    background: #fff8f4;
    border-color: #e7c8bc;
}

.board-material-card--avoid .board-material-card__heading {
    background: #6c3028;
}

.board-material-card--avoid .board-material-card__grid > div {
    border-right-color: #e7c8bc;
}

.board-material-note {
    margin: 18px 0 0;
    padding: 15px 17px;
    background: #f6f8f9;
    border: 1px solid #dde3e7;
    border-radius: var(--radius-md);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.video-credit {
    margin-top: 2rem;
    padding: 1.25rem 1.4rem;
    background: #f4f7f9;
    border-left: 5px solid var(--primary);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.video-credit h2 {
    margin: 0 0 0.55rem;
    padding: 0;
    border-bottom: 0;
    font-size: 1.25rem;
}

.video-credit p {
    margin: 0;
}

.video-credit a {
    font-weight: 700;
}

@media (max-width: 780px) {
    .board-material-card__grid {
        grid-template-columns: 1fr;
    }

    .board-material-card__grid > div {
        border-right: 0;
        border-bottom: 1px solid #d9e0e5;
    }

    .board-material-card__grid > div:last-child {
        border-bottom: 0;
    }

    .board-material-card--avoid .board-material-card__grid > div {
        border-bottom-color: #e7c8bc;
    }
}

@media (max-width: 520px) {
    .board-material-card__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .board-material-rating {
        white-space: normal;
    }

    .board-material-card__grid > div {
        padding: 17px;
    }
}


/* =========================================================
   Before & After overview and comparison pages
   ========================================================= */

.before-after-page {
    width: 100%;
    max-width: 1120px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.before-after-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
    gap: 30px;
    align-items: stretch;
    margin-bottom: 48px;
    padding: clamp(30px, 5vw, 52px);
    overflow: hidden;
    background: var(--dark);
    color: #ffffff;
    border-left: 6px solid var(--primary);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.before-after-eyebrow {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.before-after-hero h1 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    line-height: 1.07;
    letter-spacing: -0.035em;
}

.before-after-hero-text > p:last-child {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.1rem;
    line-height: 1.7;
}

.before-after-hero-text {
    align-self: center;
}

.before-after-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 26px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;
    backdrop-filter: blur(2px);
}

.before-after-hero-card h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.2;
}

.before-after-hero-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.before-after-intro {
    max-width: 860px;
    margin: 0 auto 48px;
    text-align: center;
}

.before-after-intro h2,
.before-after-examples-header h2,
.before-after-cta h2 {
    margin: 0 0 16px;
    color: var(--dark);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.before-after-intro p {
    margin: 0 auto 15px;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
}

.before-after-reality {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 52px;
}

.before-after-reality-card {
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
}

.before-after-reality-card.can-do {
    border-top: 5px solid #3f7d4d;
}

.before-after-reality-card.cannot-do {
    border-top: 5px solid var(--primary);
}

.before-after-reality-card h2,
.before-after-honesty h2 {
    margin: 0 0 16px;
    color: var(--dark);
    font-size: 1.4rem;
    line-height: 1.2;
}

.before-after-reality-card ul {
    margin: 0;
    padding-left: 22px;
}

.before-after-reality-card li {
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.6;
}

.before-after-reality-card li:last-child,
.before-after-honesty p:last-child {
    margin-bottom: 0;
}

.before-after-honesty {
    margin: 0 0 54px;
    padding: 26px 28px;
    background: #fff8f2;
    border-left: 5px solid var(--primary);
    border-radius: 0 12px 12px 0;
}

.before-after-honesty p {
    margin: 0 0 13px;
    line-height: 1.7;
}

.before-after-examples-header {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.before-after-examples-header p {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

.before-after-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e4e4e4;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.before-after-card:hover {
    transform: translateY(-4px);
    border-color: rgba(236, 99, 15, 0.55);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}

.before-after-card:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(236, 99, 15, 0.16), 0 12px 28px rgba(0, 0, 0, 0.1);
}

.before-after-card-images,
.before-after-comparison-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.before-after-card-images {
    height: 210px;
    overflow: hidden;
    background: #eeeeee;
}

.before-after-preview {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #111111;
}

.before-after-preview:first-child {
    border-right: 2px solid #ffffff;
}

.before-after-preview img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.before-after-card:hover .before-after-preview img {
    transform: scale(1.025);
}

.before-after-preview-label {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 5px 9px;
    background: rgba(21, 25, 36, 0.9);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.before-after-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 25px;
}

.before-after-card-label {
    margin-bottom: 9px;
    color: var(--primary-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.before-after-card h3 {
    margin: 0 0 11px;
    color: var(--dark);
    font-size: 1.4rem;
    line-height: 1.2;
}

.before-after-card p {
    margin: 0 0 22px;
    color: var(--text);
    line-height: 1.65;
}

.before-after-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

.before-after-coming-soon {
    border-style: dashed;
    box-shadow: none;
}

.before-after-coming-soon:hover {
    transform: none;
    border-color: #d7d7d7;
    box-shadow: none;
}

.before-after-coming-soon-box {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background:
        repeating-linear-gradient(
            -45deg,
            #f8f8f8,
            #f8f8f8 12px,
            #f3f3f3 12px,
            #f3f3f3 24px
        );
    color: var(--muted);
    text-align: center;
}

.before-after-coming-soon-box strong {
    display: block;
    margin-bottom: 5px;
    color: var(--dark);
    font-size: 1.1rem;
}

.before-after-cta {
    margin: 58px 0 0;
    padding: 36px 28px;
    background: var(--dark);
    color: #ffffff;
    border-radius: 16px;
    text-align: center;
}

.before-after-cta h2 {
    color: #ffffff;
}

.before-after-cta p {
    max-width: 740px;
    margin: 0 auto 24px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    line-height: 1.65;
}

/* Individual before-and-after scenario pages */
.before-after-detail-intro {
    max-width: 850px;
    margin: 0 auto 36px;
}

.before-after-comparison-list {
    display: grid;
    gap: 30px;
    margin: 34px 0;
}

.before-after-comparison-row {
    gap: 20px;
    align-items: stretch;
}

.before-after-comparison-panel {
    min-width: 0;
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
}

.before-after-comparison-panel h2,
.before-after-comparison-panel h3 {
    margin: 0 0 12px;
    color: var(--dark);
}

.before-after-image-button {
    width: 100%;
    padding: 0;
    overflow: hidden;
    background: #111111;
    border: 0;
    border-radius: 10px;
    cursor: zoom-in;
}

.before-after-image-button:hover {
    background: #111111;
}

.before-after-image-button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

.before-after-image-button img {
    width: 100%;
    height: auto;
    max-height: 520px;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s ease, transform 0.25s ease;
}

.before-after-image-button:hover img,
.before-after-image-button:focus-visible img {
    opacity: 0.94;
    transform: scale(1.01);
}

.before-after-caption {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* Enhanced before-and-after image viewer */
.before-after-viewer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(8, 10, 16, 0.96);
    color: #ffffff;
}

.before-after-viewer.is-open {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.before-after-viewer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 18px;
    background: rgba(21, 25, 36, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.before-after-viewer-title {
    min-width: 0;
    overflow: hidden;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.before-after-viewer-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.before-after-viewer button {
    width: 42px;
    height: 42px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    font-size: 1.35rem;
    line-height: 1;
}

.before-after-viewer button:hover,
.before-after-viewer button:focus-visible {
    background: var(--primary);
}

.before-after-viewer button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.before-after-viewer-stage {
    min-width: 0;
    min-height: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 24px 72px;
    cursor: grab;
    touch-action: none;
}

.before-after-viewer-stage.is-dragging {
    cursor: grabbing;
}

.before-after-viewer-image {
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.before-after-viewer-prev,
.before-after-viewer-next {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
}

.before-after-viewer-prev {
    left: 16px;
}

.before-after-viewer-next {
    right: 16px;
}

.before-after-viewer-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 18px;
    background: rgba(21, 25, 36, 0.96);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

.before-after-viewer-caption {
    min-width: 0;
}

.before-after-viewer-counter {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
}

body.before-after-viewer-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .before-after-hero,
    .before-after-reality,
    .before-after-comparison-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .before-after-page {
        margin-top: 28px;
        padding-right: 15px;
        padding-left: 15px;
    }

    .before-after-hero {
        padding: 28px 24px;
    }

    .before-after-card-images {
        height: 180px;
    }

    .before-after-viewer-stage {
        padding: 16px 50px;
    }

    .before-after-viewer-toolbar,
    .before-after-viewer-footer {
        padding-right: 10px;
        padding-left: 10px;
    }

    .before-after-viewer-title {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .before-after-card,
    .before-after-preview img,
    .before-after-image-button img {
        transition: none;
    }

    .before-after-card:hover,
    .before-after-card:hover .before-after-preview img,
    .before-after-image-button:hover img,
    .before-after-image-button:focus-visible img {
        transform: none;
    }
}
/* Tip-repair card: show the entire close-up instead of cropping it */
.before-after-preview-contain {
    background: #f3eee6;
}

.before-after-preview-contain img {
    object-fit: contain;
    object-position: center;
}

/* Give the close-up a little more vertical room on larger screens */
.tip-repair-card .before-after-card-images {
    height: 250px;
}

@media (max-width: 600px) {
    .tip-repair-card .before-after-card-images {
        height: 210px;
    }
}
/* =========================================================
   Footer social, Google review, and testimonial buttons
   ========================================================= */

.site-footer .footer-social {
    margin-top: 18px;
}

.site-footer .footer-review-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-top: 12px;
}

/*
 * Give all three footer pills the same compact dimensions and typography.
 * max-width keeps them responsive on narrow screens.
 */
.site-footer .footer-social a,
.site-footer .footer-review-links a {
    box-sizing: border-box;
    width: 320px;
    max-width: 100%;
    min-height: 56px;

    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    padding: 10px 20px;

    background: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 999px;

    color: var(--dark) !important;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    text-decoration: none;

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

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.site-footer .footer-social a:visited,
.site-footer .footer-review-links a:visited {
    color: var(--dark) !important;
}

.site-footer .footer-social a:hover,
.site-footer .footer-social a:focus-visible,
.site-footer .footer-review-links a:hover,
.site-footer .footer-review-links a:focus-visible {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff !important;

    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.28);
}

.site-footer .footer-social a:focus-visible,
.site-footer .footer-review-links a:focus-visible {
    outline: 3px solid rgba(236, 99, 15, 0.38);
    outline-offset: 3px;
}

.site-footer .footer-social a:active,
.site-footer .footer-review-links a:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
}

.site-footer .footer-facebook-icon,
.site-footer .footer-review-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    transition: color 0.2s ease;
}

.site-footer .footer-facebook-icon {
    color: #1877f2;
}

.site-footer .footer-google-review-link .footer-review-icon {
    color: #4285f4;
}

.site-footer .footer-testimonial-link .footer-review-icon {
    color: var(--primary);
}

.site-footer .footer-social a:hover .footer-facebook-icon,
.site-footer .footer-social a:focus-visible .footer-facebook-icon,
.site-footer .footer-review-links a:hover .footer-review-icon,
.site-footer .footer-review-links a:focus-visible .footer-review-icon {
    color: #ffffff;
}

/* =========================================================
   Mobile Footer
   ========================================================= */

.footer-contact-mobile {
    display: none;
}

@media (max-width: 768px) {

    /* Hide desktop-only footer content */

    .site-footer .footer-column:not(.footer-brand),
    .site-footer .footer-tagline,
    .site-footer .footer-address,
    .site-footer .footer-appointment-note,
    .site-footer .agency-attribution {
        display: none;
    }

    .site-footer .footer-container {
        display: block;
        text-align: center;
        padding: 32px 20px;
    }

    .site-footer .footer-brand {
        max-width: none;
        width: 100%;
    }

    .site-footer .footer-brand h3 {
        margin-bottom: 20px;
        font-size: 1.7rem;
    }

    .site-footer .footer-phone {
        margin: 22px 0;
        font-size: 1.2rem;
        font-weight: 700;
    }

    .site-footer .footer-phone a {
        color: #ffffff;
        text-decoration: none;
    }

    .site-footer .footer-social {
        width: 100%;
        max-width: 320px;
        margin: 20px auto 12px;
    }

    .site-footer .footer-review-links {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        align-items: stretch;
    }

    .site-footer .footer-social a,
    .site-footer .footer-review-links a {
        width: 100%;
        justify-content: flex-start;
        font-size: 0.95rem;
    }

    .site-footer .footer-contact-mobile {
        display: inline-block;
        margin-top: 18px;
        padding: 12px 28px;

        background: #c96d1d;     /* Your dark orange */
        color: #ffffff;
        text-decoration: none;
        font-weight: 700;

        border-radius: 999px;

        transition:
            background-color .2s ease,
            transform .2s ease;
    }

    .site-footer .footer-contact-mobile:hover,
    .site-footer .footer-contact-mobile:focus-visible {
        background: #b45f18;
        color: #ffffff;
        transform: translateY(-2px);
    }

    .site-footer .footer-bottom {
        margin-top: 26px;
        text-align: center;
    }

    .site-footer .footer-bottom p {
        margin: 8px 0;
        font-size: .88rem;
    }
}

.price-flat {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin: 24px 0 20px;
    color: #17324d;
    line-height: 1;
}

.price-flat span {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.price-flat strong {
    color: #e87722;
    font-size: clamp(2.35rem, 4vw, 3.15rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

.price-flat small {
    color: #687580;
    font-size: 0.95rem;
    font-weight: 700;
}