/* --- GLOBAL RESET & BASELINE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    background: #fff;
    color: #1a1a1a;
    font-family: system-ui, 'Inter', 'Roboto', -apple-system, sans-serif;
    line-height: 1.8;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- TOP BAR --- */
.cg-topbar {
    width: 100%;
    background: #8f6d99;
    padding: 14px 16px;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
}
.cg-topbar span { font-weight: 500; }
.cg-top-close {
    position: absolute;
    right: 16px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    background: transparent;
    border: none;
    line-height: 1;
    transition: background 0.15s ease;
}
.cg-top-close:hover { background: rgba(255, 255, 255, 0.2); }

/* --- HEADER & NAV --- */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 40px;
    margin-bottom: 0;
    border-bottom: 1px solid #ffbd59;
}
.logo {
    height: 56px;
    width: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 8px;
    font-size: 0.75rem;
    color: #999;
    font-weight: 600;
}
.logo img { height: 56px; width: auto; display: block; }

.cg-menu-wrap {
    background: transparent;
    display: inline-flex;
    gap: 40px;
    align-items: center;
    padding: 10px 0;
    flex-wrap: wrap;
    justify-content: center;
}
.cg-menu-wrap a {
    color: #444;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 0px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-size: 1.1rem;
}
.cg-menu-wrap a:hover {
    color: #cb6ce6;
    text-decoration: underline;
    text-decoration-color: #cb6ce6;
    background: rgba(255, 189, 89, 0.18);
    padding: 8px 12px;
    margin: 0 -12px;
}
.cg-menu-wrap a[aria-current="page"] {
    font-weight: bold;
    border-bottom: 2px solid #cb6ce6;
    text-decoration: none;
    border-radius: 0;
    padding-bottom: 6px;
    color: #444;
}

/* --- PAGE LAYOUT --- */
.cg-page { max-width: 1080px; margin: 0 auto; padding: 0 24px 24px; }
.cg-container { max-width: 720px; margin: 0 auto; }

/* --- TYPOGRAPHY & HEADINGS --- */
a { color: #cb6ce6; text-decoration: underline; }
h1 {
    font-weight: 700;
    margin: 60px 0 40px 0;
    font-size: 3.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.article-h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 4.5rem;
    margin-bottom: 2rem;
    color: #000;
    border-left: 5px solid #ffbd59;
    padding-left: 0.75rem;
}
p { margin-bottom: 1.5rem; font-size: 1.1rem; color: #1a1a1a; }
.intro-text { font-size: 1.35rem; line-height: 1.7; letter-spacing: 0.01em; color: #1a1a1a; }
ul, ol { padding-left: 1.5rem; margin-bottom: 2rem; color: #1a1a1a; }
li { margin-bottom: 0.75rem; font-size: 1.1rem; }

/* --- STANDARD BOXES & LISTS --- */
.cg-box {
    background: rgba(255, 189, 89, 0.12);
    border: 1px solid rgba(255, 189, 89, 0.6);
    border-radius: 6px;
    padding: 28px;
    margin: 40px 0 48px 0;
}
.cg-box ul { list-style-type: none; padding-left: 0; margin-bottom: 0; }
.cg-box ul li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 1rem;
}
.cg-box ul li:last-child { margin-bottom: 0; }
.cg-box ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #cb6ce6;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* --- CHECKLIST BOX --- */
.checklist-container {
    margin: 40px 0 24px 0;
    padding: 28px;
    background: rgba(255, 189, 89, 0.12);
    border: 1px solid rgba(255, 189, 89, 0.6);
    border-radius: 6px;
}
.checklist-container ul { list-style-type: none; padding-left: 0; margin-bottom: 0; }
.checklist-container ul li {
    padding-left: 1.8rem;
    position: relative;
    margin-bottom: 0.75rem;
}
.checklist-container ul li:last-child { margin-bottom: 0; }
.checklist-container ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #cb6ce6;
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.5;
}
.checklist-container .checklist-result {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 189, 89, 0.5);
    text-align: right;
    font-weight: 600;
    font-size: 1.05rem;
    color: #1a1a1a;
    padding-right: 1.8rem;
}

/* --- TAKEAWAY BOX --- */
.quick-takeaway {
    background: #e4efeb;
    border-left: 4px solid #3d5a50;
    padding: 24px;
    margin: 0 0 40px 0;
    border-radius: 6px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1a1a1a;
}
.quick-takeaway strong { color: #3d5a50; }

/* --- SHARE WIDGET --- */
.share-widget-wrap {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
}
.share-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background 0.2s;
}
.share-trigger:hover { background: #f0f0f0; color: #444; }
.share-trigger svg { width: 18px; height: 18px; fill: currentColor; }
.share-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 8px 0;
    min-width: 150px;
    z-index: 100;
    margin-top: 4px;
    flex-direction: column;
}
.share-dropdown.open { display: flex; }
.share-dropdown button {
    background: transparent;
    border: none;
    text-align: left;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-dropdown button:hover { background: #f5f5f5; }

/* --- BEFORE & AFTER TABLE --- */
.ba-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 6px;
    overflow: hidden;
    margin: 40px 0;
    border: 1px solid rgba(0,0,0,0.04);
}
.ba-col { padding: 28px; }
.ba-col:first-child { background: #fce6e6; border-right: none; }
.ba-col:last-child { background: #e6f3e9; }
.ba-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #666;
    margin-bottom: 12px;
}
.ba-text { font-size: 1.2rem; line-height: 1.6; margin: 0; color: #1a1a1a; font-weight: 400; }

/* --- MINUS / PLUS BOXES --- */
.border-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 16px 20px 20px 20px;
    border-radius: 6px;
    margin: 16px 0;
}
.icon-text {
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.5;
    width: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    text-align: center;
}
.border-muted-clay { background: #f6ebe8; border-left: 4px solid #b38173; }
.border-muted-clay .icon-text { color: #b38173; }
.border-muted-sage { background: #ebf1ea; border-left: 4px solid #7f9a8e; }
.border-muted-sage .icon-text { color: #7f9a8e; }
.text-content { flex: 1; color: #333; }
.text-content p { margin: 0; font-size: 1rem; }

/* --- FEEDBACK --- */
.feedback-module {
    background: transparent;
    padding: 2.5rem 0 1rem;
    margin: 4rem 0 2rem 0;
    text-align: center;
    border: none;
    border-top: 2px solid #eee;
}
.feedback-headline {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}
.feedback-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}
.feedback-btn {
    background: transparent;
    border: 2px solid;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
}
.feedback-yes { border-color: #4caab1; color: #4caab1; }
.feedback-yes:hover { background: #4caab1; color: #ffffff; }
.feedback-no { border-color: #e88b7d; color: #e88b7d; }
.feedback-no:hover { background: #e88b7d; color: #ffffff; }
.feedback-message {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    display: none;
    margin-top: 1rem;
    padding: 0.25rem 0;
    border-top: none;
}

/* --- AUTHOR BOX --- */
.author-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 28px;
    background: #f9f9f9;
    border-radius: 6px;
    border: 1px solid #eee;
    margin: 3rem 0;
}
.author-avatar {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #dcdcdc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1;
}
.author-meta p { margin-bottom: 0.75rem; font-size: 1rem; line-height: 1.6; color: #444; }
.author-meta p:last-child { margin-bottom: 0; }
.author-meta strong { color: #1a1a1a; font-weight: 600; }
.author-meta a { color: #cb6ce6; text-decoration: underline; text-underline-offset: 2px; }

/* --- GLOBAL RESOURCES --- */
.resources-block {
    background: #f9f9f9;
    padding: 24px 24px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    margin: 64px 0 24px 0;
}
.resources-block h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    border-left: none;
    padding-left: 0;
}
.resources-block ul { list-style: none; padding-left: 0; margin-bottom: 0; }
.resources-block li {
    margin-bottom: 16px;
    font-size: 0.95rem;
    line-height: 1.6;
}
.resources-block li:last-child { margin-bottom: 0; }
.resources-block li strong {
    display: block;
    color: #1a1a1a;
    font-weight: 600;
    margin-bottom: 2px;
}
.resources-block a {
    color: #666;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
    display: inline-block;
    max-width: 100%;
    word-break: break-all;
}
.resources-block a:hover { color: #cb6ce6; }

/* --- BOTTOM CARDS --- */
.master-craft-section { max-width: 720px; margin: 4rem auto 2rem auto; }
.master-craft-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 2.5rem;
    border-left: none;
    padding-left: 0;
    letter-spacing: -0.02em;
}
.master-craft-grid { display: flex; flex-direction: column; gap: 2rem; }
.master-card {
    display: block;
    padding: 1.5rem 1.75rem;
    background: #fafafa;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    border-left: 4px solid #cb6ce6;
    transition: all 0.15s ease;
    cursor: pointer;
    text-decoration: none;
}
.master-card:hover { background: #f8f4fe; border-color: #cb6ce6; }
.master-card span {
    font-weight: 600;
    font-size: 1.6rem;
    color: #1a1a1a;
    display: block;
    border-bottom: 2px solid #cb6ce6;
    padding-bottom: 2px;
    margin-bottom: 6px;
    transition: color 0.15s ease;
}
.master-card:hover span { color: #cb6ce6; }
.master-card p { margin: 0; font-size: 1rem; color: #555; }

/* --- COMMERCIAL --- */
.commercial-block {
    background: #e4efeb;
    border: 1px solid #a9c7bc;
    border-radius: 6px;
    padding: 24px;
    margin: 24px 0;
    text-align: center;
}
.commercial-block .coming-soon-headline {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: #3d5a50;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.commercial-block p { margin: 0; font-size: 1rem; color: #1a1a1a; line-height: 1.6; }

/* --- FAQ ACCORDION --- */
.faq-item {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    margin: 0 0 1rem 0;
    padding: 0;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.faq-item:hover { border-color: #d0d0d0; background: #fafafa; }
.faq-item summary {
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    color: #1a1a1a;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-answer {
    padding: 0 24px 16px 24px;
    margin: 0;
    font-size: 1rem;
    color: #444;
    border-top: 1px solid #f0f0f0;
    padding-top: 16px;
}

/* --- FOOTER --- */
footer {
    margin-top: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid #ffbd59;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}
.footer-brand { font-size: 1rem; color: #444; font-weight: 700; letter-spacing: -.01em; }
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem 1.5rem;
    margin-top: 0.5rem;
}
.footer-nav a {
    font-size: .85rem;
    color: #444;
    border-bottom: 1px solid transparent;
    padding-bottom: .1rem;
    transition: color .15s ease, border-color .15s ease;
}
.footer-nav a:hover { color: #cb6ce6; border-bottom-color: #cb6ce6; }
.footer-location {
    font-size: .85rem;
    color: #888;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.footer-copy { font-size: .8rem; color: #999; margin-top: .5rem; }
.footer-credit {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 1rem;
    letter-spacing: 0.05em;
    font-weight: 300;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    width: 100%;
    text-align: center;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .cg-page { padding: 0 16px 16px; }
    .cg-container { max-width: 100%; }
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .share-widget-wrap { top: 0; justify-content: flex-start; margin-bottom: 16px; }
    .share-dropdown { right: auto; left: 0; }
    .feedback-btn { width: 60px; height: 60px; font-size: 1rem; }
    .master-craft-section { padding: 0; }
}
@media (max-width: 600px) {
    body { padding: 0; }
    .cg-container { padding: 1.5rem 0 3rem; }
    h1 { font-size: 2.4rem; margin: 32px 0 32px 0; }
    .intro-text { font-size: 1.2rem; }
    .article-h2 { font-size: 1.6rem; margin-top: 3.5rem; padding-left: 0.5rem; border-left-width: 4px; }
    p, li { font-size: 1rem; }
    .logo { height: 40px; width: 40px; font-size: 0.6rem; margin-top: 20px; }
    .cg-menu-wrap { flex-wrap: wrap; justify-content: center; gap: 12px; width: 100%; padding: 8px 0; }
    .cg-menu-wrap a { font-size: 0.95rem; }
    .master-card span { font-size: 1.3rem; }
}