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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fafafa;
    color: #1a1a2e;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* .site-header, not a bare `header` tag selector - the article template
   also has its own semantic <header class="guide__head"> nested inside
   <article> (perfectly valid HTML5), and a tag-name selector here was
   matching THAT too: every guide page had its kicker/H1/lead/byline
   block picking up position:sticky/top:0/z-index:100 meant for the site
   nav, pinning it to the top of the viewport and painting over scrolled
   content underneath it. Caught this on a real mobile-viewport screenshot
   during testing, confirmed via getComputedStyle (position: "sticky" on
   .guide__head) - not a rendering-tool artifact. Also dropped the
   backdrop-filter blur this bar used to have - purely decorative, and one
   less expensive paint operation on every scroll frame (see the mobile
   perf pass in the README). */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeef2;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-link {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-link:hover {
    color: #0066cc;
}

.tg-btn {
    background: linear-gradient(135deg, #0088cc, #006699);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0, 136, 204, 0.3);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(0, 136, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 136, 204, 0); }
}

.tg-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 136, 204, 0.4);
}

main {
    max-width: 1080px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

.container {
    background: white;
    border-radius: 28px;
    padding: 2rem 2rem 3rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02), 0 1px 2px rgba(0, 0, 0, 0.03);
}

h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #0a0a1a;
}

.article-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-img:hover {
    transform: scale(1.01);
}

h2 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #eef2f7;
}

.attr {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c7a8e;
    background: #f5f7fa;
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    display: inline-block;
    margin-left: 0.5rem;
    vertical-align: middle;
}

p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #2c3e50;
}

.hot-link, .liked-link, .new-link {
    margin: 2rem 0;
    padding: 0.8rem 1.2rem;
    background: #fef9e6;
    border-left: 5px solid #ff6b35;
    border-radius: 16px;
}

.hot-article, .top-liked, .new-article {
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.2s;
    display: inline-block;
}

.hot-article {
    color: #d43f1d;
}

.top-liked {
    color: #e6b800;
}

.new-article {
    color: #2c7da0;
}

.hot-article:hover, .top-liked:hover, .new-article:hover {
    transform: translateX(5px);
    text-decoration: underline;
}

h3, h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.3rem;
}

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #eef2f7;
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.comments-header h3 {
    margin: 0;
    font-size: 1.6rem;
}

.comment-count {
    color: #6c7a8e;
    font-size: 0.9rem;
    background: #f0f2f5;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
}

.comment-card {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eef2f7;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    margin-bottom: 0.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: baseline;
}

.comment-author {
    font-weight: 700;
    color: #1a1a2e;
}

.comment-date {
    font-size: 0.8rem;
    color: #8a99ae;
}

.comment-text {
    margin-bottom: 0.7rem;
    font-size: 0.98rem;
}

.comment-footer {
    display: flex;
    gap: 1rem;
}

.like-btn, .reply-btn {
    background: none;
    border: none;
    color: #6c7a8e;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 30px;
    transition: all 0.2s;
}

.like-btn:hover, .reply-btn:hover {
    background: #f0f2f5;
    color: #0066cc;
}

.comment-form {
    margin-top: 2rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border 0.2s;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.submit-comment {
    margin-top: 0.8rem;
    background: #1a1a2e;
    color: white;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.submit-comment:hover {
    background: #0066cc;
    transform: translateY(-2px);
}

footer {
    background: white;
    border-top: 1px solid #eaeef2;
    margin-top: 3rem;
    padding: 2rem 1.5rem;
}

.footer-content {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-nav {
    display: flex;
    gap: 1.2rem;
    order: -1;
    width: 100%;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.footer-nav a {
    color: #8a99ae;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-nav a:hover {
    color: #0066cc;
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .footer-nav a {
        color: #7a8699;
    }
    .footer-nav a:hover {
        color: #66aaff;
    }
}

.copyright {
    color: #6c7a8e;
    font-size: 0.85rem;
}

.top-btn {
    background: #f0f2f5;
    border: none;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    color: #1a1a2e;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
}

.top-btn:hover {
    background: #e2e8f0;
    transform: translateY(-3px);
}

@media (max-width: 640px) {
    main {
        padding: 0 1rem;
    }
    
    .container {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .attr {
        display: inline-block;
        margin-top: 0.3rem;
        margin-left: 0;
        font-size: 0.75rem;
    }
    
    nav {
        gap: 1rem;
        justify-content: center;
    }
    
    .comment-card {
        gap: 0.7rem;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: #121212;
        color: #e0e0e0;
    }
    
    .site-header, footer, .container {
        background: #1e1e2a;
        border-color: #2d2d3a;
    }
    
    .container {
        background: #1e1e2a;
    }
    
    h1, h2, h3, h4, .comment-author {
        color: #f0f0f0;
    }
    
    p, .comment-text {
        color: #c0c0d0;
    }
    
    .attr, .comment-count {
        background: #2d2d3a;
        color: #a0a0b0;
    }
    
    .hot-link {
        background: #2a1f0e;
        border-left-color: #ff8c42;
    }
    
    .comment-form textarea {
        background: #2a2a35;
        border-color: #3a3a45;
        color: #e0e0e0;
    }
    
    .like-btn, .reply-btn {
        color: #a0a0b0;
    }
    
    .like-btn:hover, .reply-btn:hover {
        background: #2d2d3a;
    }
    
    .top-btn {
        background: #2d2d3a;
        color: #f0f0f0;
    }
    
    .top-btn:hover {
        background: #3a3a45;
    }
}

nav {
    justify-content: center;
}

.floating-tg-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e53935, #c62828);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.5);
    z-index: 999;
    transition: transform 0.3s ease;
    text-decoration: none;
    animation: tgBlink 1.4s infinite;
}

.floating-tg-btn:hover {
    transform: scale(1.1);
}

@keyframes tgBlink {
    0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(229, 57, 53, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0); }
}

@media (max-width: 640px) {
    .floating-tg-btn {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .floating-tg-btn svg {
        width: 22px;
        height: 22px;
    }
}

/* Deliberately understated: these are real, followed, descriptive-anchor-text
   internal links (exactly what search engines use to find/rank deeper pages)
   - they just don't need to visually compete with the article content for a
   human reader's attention. Nothing here is hidden from crawlers - same
   markup either way, only the presentation is quieter. */
.related-links-block {
    margin: 1.8rem 0 1.4rem;
    padding: 0.6rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.9rem;
    border-top: 1px solid #eef2f7;
    font-size: 0.78rem;
}

.related-link {
    color: #93a0b3;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.related-link:hover {
    color: #0066cc;
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .related-links-block {
        border-color: #3a3a45;
    }
    .related-link {
        color: #6f7a8c;
    }
    .related-link:hover {
        color: #66aaff;
    }
}

.breadcrumbs {
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0;
    margin: 0;
    color: #8a99ae;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.4rem;
    color: #c0c8d4;
}

.breadcrumbs a {
    color: #6c7a8e;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #0066cc;
    text-decoration: underline;
}

@media (prefers-color-scheme: dark) {
    .breadcrumbs ol {
        color: #a0a0b0;
    }
    .breadcrumbs a {
        color: #a0b0c0;
    }
}

.faq-section {
    margin: 2.5rem 0 2rem;
}

.faq-section h2 {
    border-bottom: none;
    margin-bottom: 1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.faq-item {
    background: #f8f9fc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 0.9rem 1.3rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    color: #1a1a2e;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.3rem;
    font-weight: 400;
    color: #8a99ae;
    transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
    content: "\2212"; /* minus sign, reads as "hide" once expanded */
    transform: rotate(180deg);
}

.faq-answer {
    margin-top: 0.7rem;
    color: #4a5a72;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (prefers-color-scheme: dark) {
    .faq-item {
        background: #2a2a35;
        border-color: #3a3a45;
    }
    .faq-item summary {
        color: #f0f0f0;
    }
    .faq-answer {
        color: #b0bcd0;
    }
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 1.5rem 0;
}

.pagination a, .pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.2rem;
    height: 2.2rem;
    padding: 0 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
}

.pagination a {
    color: #4a5a72;
    background: #f5f7fa;
}

.pagination a:hover {
    background: #e2e8f0;
}

.pagination strong {
    background: #1a1a2e;
    color: #fff;
}

@media (max-width: 640px) {
    nav {
        gap: 0.6rem 1rem;
    }
}

/* --- Skip link (accessibility) --- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    background: #fff;
    color: #1a1a2e;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    border: 2px solid #1a1a2e;
}

/* --- Guide article: kicker, lead, byline --- */
.guide__head {
    margin-bottom: 1.5rem;
}

.guide__kicker {
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0066cc;
    margin-bottom: 0.4rem;
}

.guide__lead {
    font-size: 1.1rem;
    color: #4a5a72;
    margin-top: 0.5rem;
}

.byline {
    font-size: 0.85rem;
    color: #8a99ae;
    margin-top: 0.6rem;
}

/* --- Hero figure (replaces the old plain image-wrapper div) --- */
.guide-hero {
    margin: 1.75rem 0;
    border-radius: 20px;
    overflow: hidden;
    background: #f0f2f5;
}

.guide-hero figcaption {
    font-size: 0.85rem;
    color: #8a99ae;
    padding: 0.6rem 0.2rem 0;
}

/* --- Two-column layout: body + sidebar --- */
.guide__layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 860px) {
    .guide__layout {
        grid-template-columns: 1fr;
    }
    /* Without this, the sidebar (currency/language/season + related guides)
       sits after the DOM source order - meaning after the entire article
       body, checklist, FAQ and comments - so a mobile reader has to scroll
       past all of that before ever seeing it. Moving it up here is a pure
       visual reorder (grid `order`, not a DOM change), so the HTML/crawl
       order search engines see is untouched. */
    .guide__aside {
        order: -1;
    }
}

.guide-section {
    margin-bottom: 0.5rem;
}

.guide__aside {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.fact-box, .related-box {
    background: #f8f9fc;
    border: 1px solid #eef2f7;
    border-radius: 16px;
    padding: 1.1rem 1.3rem;
}

.fact-box h2, .related-box h2 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #8a99ae;
    border-bottom: none;
    margin: 0 0 0.8rem;
    padding: 0;
}

.fact-box dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1rem;
    font-size: 0.92rem;
}

.fact-box dt {
    color: #8a99ae;
}

.fact-box dd {
    margin: 0;
    font-weight: 500;
    text-align: right;
}

.related-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.related-box a {
    color: #4a5a72;
    text-decoration: none;
}

.related-box a:hover {
    color: #0066cc;
    text-decoration: underline;
}

/* --- Tables (for any future tabular content in generated copy) --- */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

th, td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #eef2f7;
}

th {
    background: #f8f9fc;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .guide__kicker { color: #66aaff; }
    .guide__lead { color: #b0bcd0; }
    .byline { color: #7a8699; }
    .guide-hero { background: #2a2a35; }
    .guide-hero figcaption { color: #7a8699; }
    .fact-box, .related-box { background: #2a2a35; border-color: #3a3a45; }
    .fact-box h2, .related-box h2 { color: #7a8699; }
    .fact-box dt { color: #7a8699; }
    .related-box a { color: #b0bcd0; }
    .related-box a:hover { color: #66aaff; }
    th { background: #2a2a35; }
    th, td { border-color: #3a3a45; }
}

@media (max-width: 640px) {
    .guide__lead {
        font-size: 1rem;
    }
    .fact-box dd {
        text-align: left;
    }
}

/* --- Quick-check callout + checklist (guide-section ordered list) --- */
.callout {
    background: #f8f9fc;
    border-left: 4px solid #0066cc;
    padding: 1rem 1.25rem;
    border-radius: 0 16px 16px 0;
    margin: 0 0 1.75rem;
}

.callout p {
    margin: 0;
}

.guide-section ol,
.guide-section ul:not(.related-links-block):not(.faq-list) {
    margin: 0 0 1.2rem 1.25rem;
    padding: 0;
}

.guide-section li {
    margin-bottom: 0.5rem;
}

@media (prefers-color-scheme: dark) {
    .callout {
        background: #2a2a35;
        border-left-color: #66aaff;
    }
}