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

html {
    scroll-behavior: smooth;
    background-color: white;
    overflow-x: hidden;
}

:root {
    /* dark blue drop shadow used on the headings and table text */
    --guide-shadow: 0 2px 3px rgba(10, 25, 50, 0.45);
}

body {
    font-family: 'Poppins', system-ui, sans-serif;
    color: #1c2b4b;
    overflow-x: hidden;
}

.size-guide-page {
    padding-bottom: clamp(48px, 7vw, 96px);
}

/* --- Hero (the picture has "Bracelet Guide" written on it) --- */
/* Shown whole (never cropped), since the words are part of the picture */
.guide-hero__img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 28px 28px;
}

/* Phones: start the picture just under the navbar so the words aren't hidden */
@media (max-width: 768px) {
    .guide-hero { padding-top: 70px; }
    .guide-hero__img { border-radius: 0 0 22px 22px; }
}

/* --- Title --- */
.guide-title {
    font-family: 'Source Serif 4', serif;
    font-weight: 900;
    font-size: clamp(3.4rem, 10vw, 6.5rem);
    letter-spacing: -2px;
    line-height: 1.05;
    text-align: center;
    color: #1c2b4b;
    margin: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px);
}
.guide-card {
    width: min(90%, 820px);
    margin: 0 auto;
    padding: clamp(16px, 2.5vw, 28px) clamp(18px, 3vw, 40px);
    border-radius: 22px;
}

.guide-card h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.2rem, 2.6vw, 1.8rem);
    text-align: center;
    margin-bottom: 10px;
    text-shadow: var(--guide-shadow);
}

.guide-card--light {
    background: #bcd9f5;
    color: #0f1d36;
}

.guide-card--light ol {
    padding-left: 1.4em;
    font-style: italic;
    font-size: clamp(0.8rem, 1.3vw, 1rem);
    line-height: 1.6;
    text-shadow: 0 1px 1.5px rgba(10, 25, 50, 0.25);
}

.guide-card--dark {
    background: #1c2b4b;
    color: #ffffff;
    margin-top: clamp(40px, 6vw, 72px);
}

.guide-card--dark p {
    font-style: italic;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    line-height: 1.6;
    color: #e5e7eb;
}

.guide-card--dark p + p {
    margin-top: 12px;
}

.guide-card--dark strong {
    color: #ffffff;
}

/* --- Size table --- */
.guide-table-wrap {
    width: min(92%, 860px);
    margin: clamp(36px, 5vw, 56px) auto 0;
    overflow-x: auto;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    color: #17375e;
    text-shadow: var(--guide-shadow);
}

.guide-table th {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(0.95rem, 2vw, 1.4rem);
    line-height: 1.1;
    padding: 0 8px 14px;
    vertical-align: bottom;
}

.guide-table td {
    font-style: italic;
    font-size: clamp(0.95rem, 2vw, 1.35rem);
    padding: 12px 8px;
    vertical-align: middle;
}

.guide-table td:last-child {
    font-size: clamp(0.78rem, 1.5vw, 1.1rem);
    line-height: 1.2;
    width: 42%;
}

.guide-table tbody tr + tr td {
    border-top: 1px solid rgba(28, 43, 75, 0.08);
}

/* keep "14–15 cm", "Medium" etc. on one line */
.guide-table td:not(:last-child) {
    white-space: nowrap;
}

@media (max-width: 480px) {
    .guide-table th,
    .guide-table td { padding-left: 4px; padding-right: 4px; }
    .guide-card h2 { font-size: 1.1rem; }
}

/* --- Dark mode --- */
html.dark-mode body {
    background-color: #0f172a;
    color: #e5e7eb;
}

html.dark-mode .guide-title,
html.dark-mode .guide-table {
    color: #e5e7eb;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

html.dark-mode .guide-table tbody tr + tr td {
    border-top-color: rgba(255, 255, 255, 0.1);
}

html.dark-mode .guide-card--dark {
    background: #16233d;
}
