@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background: #faf7f0;
    color: #39382f;
}

/* Navigation */

header {
    background: #526b52;
    padding: 22px 7%;
    color: white;
}

.navbar {
    max-width: 1250px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

header h1,
footer h2 {
    font-family: 'Playfair Display', serif;
    margin: 0;
}

header h1 {
    font-size: 30px;
}

nav {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    text-decoration: underline;
}

/* Hero */

.hero {
    max-width: 1250px;
    margin: 55px auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 45px;
}

.hero-content {
    padding: 30px 0;
}

.eyebrow {
    color: #8b795d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.hero h2,
.section-heading h2 {
    font-family: 'Playfair Display', serif;
    color: #526b52;
}

.hero h2 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.15;
    margin: 20px 0;
}

.hero-content > p:not(.eyebrow) {
    color: #777366;
    line-height: 1.8;
    font-size: 16px;
}

.hero-button {
    display: inline-block;
    background: #526b52;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.2s;
}

.hero-button:hover {
    background: #3f563f;
}

.hero-image {
    min-height: 390px;
    border-radius: 12px;
    background-image: url('https://images.unsplash.com/photo-1600210492486-724fe5c67fb0?w=1200');
    background-size: cover;
    background-position: center;
}

/* Section headings */

.categories,
.featured {
    max-width: 1250px;
    margin: 100px auto;
    padding: 0 30px;
}

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 36px;
    margin-top: 10px;
}

/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.category-card {
    background: #fffefa;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #eee9dd;
    transition: transform 0.2s;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-card span {
    font-size: 35px;
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    color: #526b52;
}

.category-card p {
    color: #777366;
    font-size: 14px;
    line-height: 1.6;
}

.category-card {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* Guide cards */

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

.guide-card {
    background: #fffefa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eee9dd;
    transition: transform 0.2s;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.guide-info {
    padding: 22px;
}

.guide-info span {
    color: #8b795d;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.guide-info h3 {
    font-family: 'Playfair Display', serif;
    color: #526b52;
    font-size: 21px;
}

.guide-info p {
    color: #777366;
    font-size: 14px;
    line-height: 1.7;
}

/* Footer */

footer {
    background: #526b52;
    color: white;
    text-align: center;
    padding: 45px 20px;
}

footer h2 {
    font-size: 28px;
}

footer p {
    font-size: 13px;
    color: #e5e9df;
}

/* Mobile layout */

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

    .hero-image {
        min-height: 300px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 500px) {
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 29px;
    }
}


/* Individual guide pages */

.guide-page {
    max-width: 850px;
    margin: 65px auto;
    padding: 0 25px;
}

.guide-page > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #526b52;
}

.guide-intro {
    color: #777366;
    font-size: 18px;
    line-height: 1.8;
}

.guide-hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin: 30px 0;
}

.guide-content {
    margin-top: 35px;
}

.guide-content h2 {
    font-family: 'Playfair Display', serif;
    color: #526b52;
    margin-top: 40px;
}

.guide-content p {
    color: #69675e;
    line-height: 1.9;
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: #526b52;
    text-decoration: none;
    font-weight: 600;
}

.guide-card {
    display: block;
    color: inherit;
    text-decoration: none;
}


/* Center category pages */

.category-page {
    max-width: 1100px;
    margin: 65px auto;
    padding: 0 30px;
}

.category-page > h2,
.category-page > p {
    text-align: center;
}

.category-page > .eyebrow {
    text-align: center;
    margin-bottom: 15px;
}

.category-page > h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #526b52;
    margin-bottom: 15px;
}

.category-page > p:not(.eyebrow) {
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.8;
    color: #777366;
}

.guide-grid {
    margin-top: 35px;
}

/* Search section */

.search-section {
    max-width: 900px;
    margin: 70px auto;
    padding: 0 25px;
    text-align: center;
}

.search-section .section-heading {
    text-align: center;
    margin-bottom: 30px;
}

.search-section .section-heading > p:not(.eyebrow) {
    color: #777366;
    margin-top: 10px;
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
}

#guide-search {
    width: 100%;
    padding: 17px 22px;
    border: 1px solid #ded9cc;
    border-radius: 10px;
    background: #fffdf8;
    font-family: inherit;
    font-size: 16px;
    color: #526b52;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

#guide-search:focus {
    border-color: #526b52;
    box-shadow: 0 0 0 3px rgba(82, 107, 82, 0.12);
}

#guide-search::placeholder {
    color: #aaa596;
}

.show-more-button,
.show-less-button {
    padding: 12px 24px;
    margin: 10px 8px 10px 0;
    border: none;
    border-radius: 6px;
    background: #526b52;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.show-more-button:hover,
.show-less-button:hover {
    background: #3e563e;
}

.search-result-count {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Search results */

#search-results {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.search-result {
    display: block;
    padding: 20px 24px;
    background: #fffdf8;
    border: 1px solid #e8e2d6;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.search-result h3 {
    color: #526b52;
    margin: 0 0 8px;
    font-family: 'Playfair Display', serif;
}

.search-result p {
    color: #777366;
    margin: 0;
    line-height: 1.6;
}
.related-guides {
    margin-top: 65px;
    padding-top: 35px;
    border-top: 1px solid #e8e2d6;
}

.related-guides > h2 {
    font-family: 'Playfair Display', serif;
    color: #526b52;
    font-size: 28px;
    margin-bottom: 25px;
}

.related-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.related-guide-card {
    display: block;
    padding: 22px;
    background: #fffdf8;
    border: 1px solid #e8e2d6;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.related-guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

.related-guide-card h3 {
    font-family: 'Playfair Display', serif;
    color: #526b52;
    margin: 0 0 10px;
}

.related-guide-card p {
    color: #777366;
    line-height: 1.6;
    margin: 0;
}

.search-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-button {
    padding: 10px 18px;
    border: 1px solid #ded9cc;
    border-radius: 25px;
    background: #fffdf8;
    color: #526b52;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.filter-button:hover,
.filter-button.active {
    background: #526b52;
    color: white;
    border-color: #526b52;
}

/* Mobile and tablet adjustments */

@media (max-width: 768px) {

    /* Header */
    header {
        padding: 20px;
        flex-direction: column;
        gap: 15px;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    /* Main headings */
    .hero h1 {
        font-size: 38px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    /* Category and guide cards */
    .category-grid,
    .guide-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

    /* Guide pages */
    .guide-page {
        margin: 40px auto;
        padding: 0 20px;
    }

    .guide-page > h2 {
        font-size: 34px;
    }

    .guide-hero-image {
        height: 280px;
    }

    /* Category pages */
    .category-page {
        margin: 40px auto;
        padding: 0 20px;
    }

    .category-page > h2 {
        font-size: 34px;
    }
}

/* Small phones */
@media (max-width: 480px) {

    .category-grid,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 32px;
    }

    .search-filters {
        gap: 8px;
    }

    .filter-button {
        padding: 9px 14px;
        font-size: 13px;
    }

    .guide-hero-image {
        height: 220px;
    }

    .related-guide-grid {
        grid-template-columns: 1fr;
    }
}
.table-of-contents {
    background: #f0eee5;
    border: 1px solid #ded9cc;
    border-radius: 10px;
    padding: 25px 30px;
    margin: 30px 0;
}

.table-of-contents h3 {
    font-family: 'Playfair Display', serif;
    color: #526b52;
    font-size: 23px;
    margin: 0 0 15px;
}

.table-of-contents ul {
    padding-left: 22px;
    margin: 0;
}

.table-of-contents li {
    margin: 10px 0;
    color: #526b52;
}

.table-of-contents a {
    color: #526b52;
    text-decoration: none;
    font-weight: 500;
}

.table-of-contents a:hover {
    color: #344b34;
    text-decoration: underline;
}
#back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: #526b52;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: #3e563e;
}

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

/* Theme toggle button */

.theme-toggle {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    border-radius: 8px;
    padding: 7px 11px;
    font-size: 19px;
    cursor: pointer;
    transition: background 0.2s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Main colors */

html[data-theme="dark"] {
    color-scheme: dark;
}

html[data-theme="dark"] body {
    background: #202a24;
    color: #e8e8dc;
}

/* Header and footer */

html[data-theme="dark"] header,
html[data-theme="dark"] footer {
    background: #293b30;
}

/* Hero */

html[data-theme="dark"] .eyebrow {
    color: #c3b18b;
}

html[data-theme="dark"] .hero h2,
html[data-theme="dark"] .section-heading h2 {
    color: #d4e2d0;
}

html[data-theme="dark"] .hero-content > p:not(.eyebrow) {
    color: #c0c7bc;
}

html[data-theme="dark"] .hero-button,
html[data-theme="dark"] .show-more-button,
html[data-theme="dark"] .show-less-button {
    background: #607e63;
}

html[data-theme="dark"] .hero-button:hover,
html[data-theme="dark"] .show-more-button:hover,
html[data-theme="dark"] .show-less-button:hover {
    background: #759477;
}

/* Category and guide cards */

html[data-theme="dark"] .category-card,
html[data-theme="dark"] .guide-card {
    background: #2b382f;
    border-color: #435447;
}

html[data-theme="dark"] .category-card h3,
html[data-theme="dark"] .guide-info h3 {
    color: #d4e2d0;
}

html[data-theme="dark"] .category-card p,
html[data-theme="dark"] .guide-info p {
    color: #bdc6ba;
}

/* Guide pages */

html[data-theme="dark"] .guide-page > h2,
html[data-theme="dark"] .guide-content h2,
html[data-theme="dark"] .category-page > h2 {
    color: #d4e2d0;
}

html[data-theme="dark"] .guide-intro,
html[data-theme="dark"] .guide-content p,
html[data-theme="dark"] .category-page > p:not(.eyebrow) {
    color: #c0c7bc;
}

html[data-theme="dark"] .back-link {
    color: #b7d0ad;
}

/* Search */

html[data-theme="dark"] #guide-search,
html[data-theme="dark"] .search-result {
    background: #2b382f;
    border-color: #435447;
    color: #e8e8dc;
}

html[data-theme="dark"] #guide-search {
    color: #e8e8dc;
}

html[data-theme="dark"] #guide-search::placeholder {
    color: #9ca99b;
}

html[data-theme="dark"] #guide-search:focus {
    border-color: #8eae8d;
    box-shadow: 0 0 0 3px rgba(142, 174, 141, 0.15);
}

html[data-theme="dark"] .search-result h3,
html[data-theme="dark"] .related-guide-card h3 {
    color: #d4e2d0;
}

html[data-theme="dark"] .search-result p,
html[data-theme="dark"] .related-guide-card p,
html[data-theme="dark"] .search-section .section-heading > p:not(.eyebrow) {
    color: #bdc6ba;
}

html[data-theme="dark"] .search-result-count {
    color: #bdc6ba;
}

/* Search filters */

html[data-theme="dark"] .filter-button {
    background: #2b382f;
    border-color: #526655;
    color: #d4e2d0;
}

html[data-theme="dark"] .filter-button:hover,
html[data-theme="dark"] .filter-button.active {
    background: #607e63;
    border-color: #607e63;
    color: white;
}

/* Related guides */

html[data-theme="dark"] .related-guides {
    border-color: #435447;
}

html[data-theme="dark"] .related-guide-card {
    background: #2b382f;
    border-color: #435447;
}

/* Table of contents */

html[data-theme="dark"] .table-of-contents {
    background: #2b382f;
    border-color: #435447;
}

html[data-theme="dark"] .table-of-contents h3,
html[data-theme="dark"] .table-of-contents li,
html[data-theme="dark"] .table-of-contents a {
    color: #d4e2d0;
}

html[data-theme="dark"] .table-of-contents a:hover {
    color: #b7d0ad;
}

/* Footer */

html[data-theme="dark"] footer p {
    color: #c7d2c5;
}

/* Back to top */

html[data-theme="dark"] #back-to-top {
    background: #607e63;
}

html[data-theme="dark"] #back-to-top:hover {
    background: #759477;
}

/* Smooth theme transition */

body,
header,
footer,
.category-card,
.guide-card,
.search-result,
.related-guide-card,
.table-of-contents,
#guide-search {
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}


/* =========================
   3D DROPLET TILE TRANSITION
========================= */

body {
    isolation: isolate;
}

body > :not(.theme-tile-overlay) {
    position: relative;
    z-index: 1;
}

.theme-tile-overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    perspective: 900px;
}

.theme-tile {
    position: absolute;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.theme-tile-front,
.theme-tile-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
}

.theme-tile-front {
    transform: rotateY(0deg);
}

.theme-tile-back {
    transform: rotateY(180deg);
}

.theme-tile-overlay.animate .theme-tile {
    animation: tile-flip 600ms cubic-bezier(0.45, 0, 0.25, 1) both;
}

@keyframes tile-flip {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(180deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .theme-tile-overlay.animate .theme-tile {
        animation-duration: 1ms;
        animation-delay: 0ms !important;
    }
}

/* Category Filters */
.category-filters {
    margin: 30px 0;
}

.category-filter-title {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color, inherit);
}

.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-filter-button {
    padding: 9px 17px;
    border: 1px solid #d8d2c5;
    border-radius: 25px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.category-filter-button:hover {
    background: #e8e3d8;
}

.category-filter-button.active {
    background: #526b52;
    color: white;
    border-color: #526b52;
}

html[data-theme="dark"] .category-filter-button {
    border-color: #526b52;
}

html[data-theme="dark"] .category-filter-button:hover {
    background: #35483a;
}

html[data-theme="dark"] .category-filter-button.active {
    background: #789578;
    border-color: #789578;
    color: white;
}

/* Advanced Search Filters */

.advanced-search-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 15px;
    margin: 20px 0;
}

.advanced-filter {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.advanced-filter label {
    font-size: 13px;
    font-weight: 600;
}

.advanced-filter select {
    padding: 10px 13px;
    border: 1px solid #d8d2c5;
    border-radius: 8px;
    background: #fff;
    color: #39382f;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
}

#clear-search-filters {
    padding: 10px 15px;
    border: 1px solid #d8d2c5;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.2s;
}

#clear-search-filters:hover {
    background: #e8e3d8;
}

/* Dark Mode */

html[data-theme="dark"] .advanced-filter select {
    background: #293b30;
    color: #e8e8dc;
    border-color: #526b52;
}

html[data-theme="dark"] #clear-search-filters {
    border-color: #526b52;
}

html[data-theme="dark"] #clear-search-filters:hover {
    background: #35483a;
}

/* Search Result Category */

.search-result-category {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #71866b;
    font-weight: 600;
}

.advanced-search-filters {
    justify-content: center;
    align-items: end;
}

.advanced-filter {
    text-align: left;
}

#clear-search-filters {
    align-self: end;
}

/* Expandable Category Filters */

.category-filter-toggle {
    padding: 10px 16px;
    border: 1px solid #d8d2c5;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.category-filter-toggle::after {
    content: " ▾";
    display: inline-block;
    transition: transform 0.2s;
}

.category-filter-toggle.expanded::after {
    transform: rotate(180deg);
}

.category-filter-toggle:hover {
    background: #e8e3d8;
}

.category-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.category-filter-buttons[hidden] {
    display: none;
}

/* Dark mode */

html[data-theme="dark"] .category-filter-toggle {
    border-color: #526b52;
}

html[data-theme="dark"] .category-filter-toggle:hover {
    background: #35483a;
}

.save-guide-button {
    display: inline-block;
    margin: 12px 0 24px;
    padding: 10px 18px;
    border: 1px solid #526b52;
    border-radius: 8px;
    background: transparent;
    color: #526b52;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.save-guide-button:hover {
    background: #526b52;
    color: white;
}

.save-guide-button.saved {
    background: #526b52;
    color: white;
}

body.dark-mode .save-guide-button {
    border-color: #a5bd9e;
    color: #a5bd9e;
}

body.dark-mode .save-guide-button:hover,
body.dark-mode .save-guide-button.saved {
    background: #526b52;
    color: white;
}

.saved-count {
    margin: 20px 0;
    color: #8b795d;
    font-size: 14px;
}

.saved-guide-card {
    display: flex;
    flex-direction: column;
}

.saved-guide-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.remove-saved-button {
    align-self: flex-start;
    margin: 0 18px 18px;
    padding: 8px 14px;
    border: 1px solid #8b795d;
    border-radius: 7px;
    background: transparent;
    color: #8b795d;
    font: inherit;
    cursor: pointer;
}

.remove-saved-button:hover {
    background: #8b795d;
    color: white;
}

.saved-empty-message {
    margin: 30px 0;
    padding: 24px;
    border-radius: 10px;
    background: #f0ece2;
    color: #526b52;
    text-align: center;
}

html[data-theme="dark"] .saved-empty-message {
    background: #293b30;
    color: #e8e8e8;
    border: 1px solid #526b52;
}

body.dark-mode .saved-count {
    color: #c4b494;
}

body.dark-mode .remove-saved-button {
    border-color: #a5bd9e;
    color: #a5bd9e;
}

body.dark-mode .remove-saved-button:hover {
    background: #526b52;
    color: white;
}
.saved-filter-button {
    border-color: #8b795d;
}

.saved-filter-button.active {
    background: #526b52;
    border-color: #526b52;
    color: white;
}

body.dark-mode .saved-filter-button {
    border-color: #a5bd9e;
}

body.dark-mode .saved-filter-button.active {
    background: #526b52;
    color: white;
}

/* Recently Viewed */

#recently-viewed-section {
    max-width: 1250px;
    margin: 80px auto;
    padding: 0 30px;
}

#recently-viewed-section .section-heading {
    text-align: center;
    margin-bottom: 35px;
}

#recently-viewed-section .guide-grid {
    margin-top: 0;
}

#clear-recently-viewed {
    padding: 8px 14px;
    border: 1px solid #8b795d;
    border-radius: 7px;
    background: transparent;
    color: #8b795d;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s ease;
}

#clear-recently-viewed:hover {
    background: #8b795d;
    color: white;
}

/* Dark mode */

html[data-theme="dark"] #clear-recently-viewed {
    border-color: #8b795d;
    color: #c5b49a;
}

html[data-theme="dark"] #clear-recently-viewed:hover {
    background: #8b795d;
    color: white;
}

/* Guide action buttons */

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.share-guide-button {
    height: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #8b795d;
    border-radius: 7px;
    background: transparent;
    color: #8b795d;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    transition: 0.2s ease;
}

.share-guide-button:hover {
    background: #8b795d;
    color: white;
}

.share-message {
    font-size: 14px;
    color: #526b52;
    margin-top: 8px;
}

html[data-theme="dark"] .share-guide-button {
    color: #c5b49a;
    border-color: #8b795d;
}

html[data-theme="dark"] .share-guide-button:hover {
    background: #8b795d;
    color: white;
}

html[data-theme="dark"] .share-message {
    color: #bdc6ba;
}

.guide-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.guide-actions .save-guide-button {
    margin: 12px 0 24px;
}

.guide-actions .share-guide-button {
    margin: 12px 0 24px;
}

/* About Page */

.about-page {
    max-width: 800px;
    margin: 75px auto;
    padding: 0 25px;
}

.about-page .eyebrow {
    text-align: center;
}

.about-page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    color: #526b52;
    text-align: center;
    margin-bottom: 30px;
}

.about-page p:not(.eyebrow) {
    color: #777366;
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 22px;
}

/* Dark Mode */

html[data-theme="dark"] .about-page h2 {
    color: #d4e2d0;
}

html[data-theme="dark"] .about-page p:not(.eyebrow) {
    color: #c0c7bc;
}

footer a {
    display: inline-block;
    color: #8b795d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin: 10px 0;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #526b52;
    text-decoration: underline;
}

html[data-theme="dark"] footer a {
    color: #c5b49a;
}

html[data-theme="dark"] footer a:hover {
    color: #d4e2d0;
}