/* Shared layout: header, footer, base variables - used on guide pages */
:root {
    --ink: #1c1a18;
    --ink-muted: #4a4846;
    --paper: #f6f4f0;
    --accent: #b85a34;
    --accent-hover: #9a4a28;
    --border: #e8e6e2;
}
[data-theme="dark"] {
    --ink: #f8f7f4;
    --ink-muted: #c8c6c2;
    --paper: #0f0f10;
    --accent: #e07a54;
    --accent-hover: #f08e68;
    --border: #2a2a2c;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 10001;
    padding: 0.75rem 1.25rem;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 1rem; outline: 2px solid var(--accent); outline-offset: 2px; }

.floating-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 254, 249, 0.75);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(139, 90, 60, 0.12);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, opacity 0.3s ease;
}
[data-theme="dark"] .floating-header {
    background: rgba(15, 15, 16, 0.8);
    border-bottom-color: rgba(255,255,255,0.08);
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.floating-header.visible { transform: translateY(0); opacity: 1; }
.floating-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    min-height: 2.75rem;
}
.floating-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.floating-logo .logo-img { height: 1.45em; width: auto; vertical-align: middle; }
.floating-logo:hover { color: var(--accent); }
.header-spacer { width: 40px; flex-shrink: 0; }
.floating-header .burger-btn { flex-shrink: 0; }
.burger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 8px;
}
.burger-btn:hover { background: rgba(196,92,56,0.08); }
.burger-line { width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: all 0.2s; }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(2) { opacity: 0; }
.burger-btn[aria-expanded="true"] .burger-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.burger-menu {
    display: none;
    flex-direction: column;
    padding: 0 1rem 1rem;
    border-top: 1px solid var(--border);
    max-width: 680px;
    margin: 0 auto;
}
.burger-menu.open { display: flex; }
.burger-menu .burger-link {
    padding: 0.75rem 0;
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
}
.burger-menu .burger-link:hover { color: var(--accent); }
.burger-section-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ink-muted);
    margin: 0.75rem 0 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}
.burger-section-label:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

/* Site footer */
.site-footer {
    margin-top: 2.5rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
}
.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
    margin-bottom: 0.75rem;
}
.site-footer-links a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-underline-offset: 3px;
    font-size: 0.9rem;
}
.site-footer-links a:hover { color: var(--accent); }
.site-footer-copyright {
    font-size: 0.85rem;
    color: var(--ink-muted);
}

/* Guide article images - fit text width, 16:9 */
.guide-article-img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin: 0 0 1.25rem;
    display: block;
}
