/* Public views only. Keep the charcoal and frog-green theme. */
.page-loader { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }
.page-loader[hidden] { display: none; }
.page-loader-track { position: absolute; top: 0; left: 0; width: 100%; height: 3px; overflow: hidden; background: #93d45c18; }
.page-loader-track::after { content: ''; display: block; width: 35%; height: 100%; background: linear-gradient(90deg, transparent, #93d45c, #d4ffac); box-shadow: 0 0 14px #93d45c; animation: page-loader-slide 1.25s ease-in-out infinite; }
.page-loader-label { position: absolute; top: max(18px, env(safe-area-inset-top)); right: max(18px, env(safe-area-inset-right)); display: flex; align-items: center; gap: 12px; padding: 12px 17px; border: 1px solid #93d45c55; border-radius: 30px; background: #111b19; color: #e7efdf; box-shadow: 0 8px 28px #0004; font: 500 12px/1.4 system-ui, sans-serif; letter-spacing: .03em; }
.page-loader-dots { display: flex; gap: 4px; }
.page-loader-dots i { width: 5px; height: 5px; border-radius: 2px; background: #93d45c; animation: page-loader-hop .8s ease-in-out infinite alternate; }
.page-loader-dots i:nth-child(2) { animation-delay: .15s; }
.page-loader-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes page-loader-slide { from { transform: translateX(-100%); } to { transform: translateX(390%); } }
@keyframes page-loader-hop { from { transform: translateY(2px); opacity: .4; } to { transform: translateY(-3px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .page-loader-track::after { animation: none; width: 100%; }
    .page-loader-dots i { animation: none; }
}
/* Shared breadcrumb: compact surface, clear links and wrapping on small screens. */
div.ariane {
    position: sticky;
    top: var(--breadcrumb-top, var(--atelier-height, 0px));
    z-index: 990;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 20px 0 12px;
    padding: 12px 18px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--green);
    border-radius: 0 10px 10px 0;
    background: linear-gradient(110deg, #93d45c0a, transparent 70%), var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    line-height: 2;
    letter-spacing: 0;
    text-align: left;
    overflow-wrap: anywhere;
    box-shadow: none;
}
div.ariane.ariane-stuck {
    width: var(--breadcrumb-width);
    max-width: none;
    margin-left: calc(-1 * var(--breadcrumb-left));
    padding-left: max(18px, calc(var(--breadcrumb-left) + 18px));
    padding-right: max(18px, var(--breadcrumb-left));
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    border-bottom-color: #93d45c55;
    box-shadow: 0 8px 20px #0003;
}
div.ariane a {
    display: inline;
    padding: 4px 2px;
    border-radius: 3px;
    color: var(--muted);
    font-weight: 400;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color .18s ease, background-color .18s ease;
}
div.ariane a:first-child { color: var(--green); }
div.ariane a:hover {
    color: var(--green);
    text-decoration: underline;
}
div.ariane a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    background: #93d45c12;
}
@media (max-width: 600px) {
    div.ariane { margin: 14px 0 10px; padding: 10px 12px; font-size: 12px; }
}
body { background-image: radial-gradient(ellipse at 85% 0, #93d45c0a, transparent 48%); background-size: auto; }
article.article-container, .sidebar .content, .category, .site { transition: border-color .22s ease, box-shadow .22s ease; }
article.article-container:focus-within, .category:focus-within, .site:focus-within { border-color: #58734b; }
.tool-intro { padding: 28px 0 32px; max-width: 780px; }
.tool-eyebrow { color: var(--green); font-size: 11px; font-weight: 650; letter-spacing: .16em; margin: 0 0 14px; }
.tool-intro h1 { color: var(--text); font-size: clamp(30px, 4vw, 46px); font-weight: 650; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 16px; }
.tool-intro h1 span { color: var(--green); }
.tool-intro > p:last-child { color: var(--muted); margin: 0; }
.quiz-page, .password-page { padding-bottom: 24px; }
.quiz-page .category { padding: 0; max-width: 100%; overflow: hidden; }
.quiz-page .category-name { letter-spacing: 0; text-align: left; }
.quiz-page .category-name a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; color: var(--text); }
.quiz-page .category-name a::after { content: '\2197'; color: var(--green); font-size: 22px; transition: transform .2s ease; }
#quiz-container, #mdp-container { box-sizing: border-box; width: 100%; max-width: 880px; margin: 0 auto 28px; padding: clamp(20px, 4vw, 40px); background: linear-gradient(135deg, #17221e, var(--surface) 48%); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 48px #0002; color: var(--text); letter-spacing: 0; text-align: left; line-height: 1.7; }
#quiz-container h2, #mdp-container h2.mdp, #mdp-container h3 { color: var(--text); text-align: left; font-size: 24px; font-weight: 600; letter-spacing: -.025em; margin: 0 0 24px; }
#quiz-container > div > p:first-child { font-size: 20px; line-height: 1.5; }
#quiz-container img { box-sizing: border-box; max-width: 100%; margin: 12px 0 24px !important; border-radius: 8px; }
#quiz-container input[type=radio] { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
#quiz-container input[type=radio] + label { display: block; box-sizing: border-box; padding: 16px 18px 16px 50px; margin: 12px 0; background: #0c1314; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
#quiz-container input[type=radio] + label::before { left: 17px; width: 16px; height: 16px; background: transparent; border-color: #627369; }
#quiz-container input[type=radio]:checked + label { background: #1b2920; border-color: var(--green); color: var(--text); }
#quiz-container input[type=radio]:checked + label::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 4px #1b2920; }
#quiz-container input[type=radio]:focus-visible + label { outline: 2px solid var(--green); outline-offset: 3px; }
#quiz-container label + br { display: none; }
#nextButton, #checkButton { margin: 20px 0 0; padding: 13px 22px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #10180b; font: inherit; font-weight: 650; cursor: pointer; transition: background .2s, box-shadow .2s; }
#nextButton:disabled { background: #202b25; color: #a0aca5; border-color: #3b4940; cursor: not-allowed; }
#quiz-container .correct-answer, #mdp-container .valid { color: var(--green); }
#quiz-container .incorrect-answer, #mdp-container .invalid { color: #ffaaa0; }
#quiz-container > h2 ~ div { padding: 18px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
#mdp-container div.mdp { max-width: 100%; margin: 0; padding: 0; }
#mdp-container p, #mdp-container li, #mdp-container .robust { color: var(--muted); text-align: left; font-size: 14px; font-weight: 400; }
#mdp-container p.disclaimer { width: auto; margin: 18px 0; line-height: 1.8; }
.password-label { display: block; font-size: 13px; margin-bottom: 10px; color: var(--muted); }
.password-field { display: flex; align-items: stretch; gap: 8px; }
#mdp-container input.password { min-width: 0; flex: 1; width: auto; height: auto; margin: 0; padding: 14px 16px; }
#togglePassword { display: block; flex: 0 0 48px; margin: 0; padding: 10px; background: #1b2920; border: 1px solid #46534e; border-radius: 8px; cursor: pointer; }
#checkButton span { margin-left: 18px; }
#mdp-container .resultats { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 28px; }
#mdp-container .result, #mdp-container h3.explainmdp { margin-left: 0; margin-right: 0; }
#mdp-container .result li { padding: 8px 0; }
#mdp-container hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
@media (hover: hover) {
    article.article-container:hover, .sidebar .content:hover, .category:hover, .site:hover { border-color: #49603e; box-shadow: 0 12px 32px #0003; }
    .quiz-page .category-name a:hover::after { transform: translate(3px, -3px); }
    #quiz-container input[type=radio] + label:hover { border-color: #789564; color: var(--text); }
    #nextButton:not(:disabled):hover, #checkButton:hover { background: #b6ec88; box-shadow: 0 4px 22px #93d45c20; }
    .welcome-art img { transition: transform .4s ease; }
    .welcome-art:hover img { transform: translateY(-6px) rotate(-2deg); }
}
@media (prefers-reduced-motion: no-preference) {
    .tool-intro, .welcome-copy { animation: public-arrive .55s ease-out both; }
    #quiz-container > div, #mdp-container .resultats { animation: public-arrive .3s ease-out both; }
    @keyframes public-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
}
@media (max-width: 760px) {
    .tool-intro { padding-top: 16px; }
    #quiz-container, #mdp-container { border-radius: 10px; }
    .quiz-page .category-name a { padding: 18px; }
    #checkButton { width: 100%; }
}

/* Light and depth, confined to the public theme. */
body {
    background-color: #090f10;
    background-image: radial-gradient(ellipse 850px 580px at 95% 0, #93d45c10, transparent 75%),
                      radial-gradient(ellipse 650px 900px at 0 45%, #93d45c05, transparent 75%);
}
::selection { background: #93d45c; color: #10180b; }
body > header { box-shadow: inset 0 1px 0 #ffffff05; }
nav#menu { box-shadow: 0 8px 28px #0002; }
nav div.menu > ul > li > a { position: relative; }
nav div.menu > ul > li > a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px;
    height: 2px; background: #93d45c; border-radius: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
nav div.menu > ul > li > a:is(:hover, :focus-visible, .active)::after { transform: scaleX(1); }
.welcome { position: relative; }
.welcome-art { position: relative; isolation: isolate; }
.welcome-art::before, .welcome-art::after {
    content: ''; position: absolute; z-index: -1; pointer-events: none;
    width: 260px; height: 260px; border: 1px solid #93d45c20; border-radius: 50%;
}
.welcome-art::after { width: 310px; height: 310px; border-style: dashed; border-color: #93d45c12; }
.welcome-art img { position: relative; }

/* The artwork has margins and uneven spacing: use measured frame origins,
   not percentages of an assumed equal grid. Coordinates are scaled to 80%. */
.welcome-frog {
    position: relative;
    display: block;
    width: 256px;
    height: 244px;
    overflow: hidden;
    background: url('../../img/welcome-frog-sprite.png?v=2') -16px -32px / 1295.2px 776.8px no-repeat;
    filter: drop-shadow(0 18px 35px #0008);
}

@media (prefers-reduced-motion: no-preference) {
    .welcome-frog { animation: welcome-frog-poses 8s step-end infinite; }
}

@keyframes welcome-frog-poses {
    0%, 30% { background-position: -16px -32px; }
    31% { background-position: -272px -32px; }
    32% { background-position: -525.6px -32px; }
    33% { background-position: -780px -32px; }
    34% { background-position: -1036px -32px; }
    35% { background-position: -16px -283.2px; }
    36% { background-position: -272px -283.2px; }
    37% { background-position: -525.6px -283.2px; }
    38% { background-position: -780px -283.2px; }
    39% { background-position: -1036px -283.2px; }
    40% { background-position: -16px -533.6px; }
    41% { background-position: -272px -533.6px; }
    42% { background-position: -525.6px -533.6px; }
    43%, 100% { background-position: -780px -533.6px; }
}
.section-title::after { width: 64px; height: 3px; border-radius: 4px; background: linear-gradient(90deg, #93d45c, #93d45c20); }
article.article-container, .sidebar .content, .site, .quiz-page .category {
    box-shadow: 0 8px 24px #0002, inset 0 1px 0 #ffffff04;
}
article.article-container img.header { border-radius: 7px; transition: filter .3s ease; }
.primary-link, .secondary-link, #nextButton, #checkButton {
    position: relative; overflow: hidden; isolation: isolate;
    transition: background-color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.primary-link::after, #nextButton::after, #checkButton::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(110deg, transparent 20%, #ffffff30 48%, transparent 75%);
    transform: translateX(-130%); transition: transform .55s ease;
}
.primary-link span, .secondary-link span { transition: transform .2s ease; }
.secondary-link:focus-visible, .search-icon-link:focus-visible { background: #1b2920; }
#quiz-container, #mdp-container {
    background-color: #11191b;
    box-shadow: 0 20px 60px #0003, inset 0 1px 0 #93d45c25;
    border-top-color: #49603e;
    transition: border-color .25s ease, box-shadow .25s ease;
}
#mdp-container:focus-within { border-color: #58734b; box-shadow: 0 20px 60px #0003, 0 0 28px #93d45c08; }
#mdp-container input.password { transition: border-color .2s ease, box-shadow .2s ease; }
#mdp-container input.password:focus { border-color: #93d45c; box-shadow: 0 0 0 3px #93d45c15; }
#quiz-container input[type=radio]:checked + label { box-shadow: 0 0 0 1px #93d45c18, inset 3px 0 0 #93d45c; }
#mdp-container .result li { border-bottom: 1px solid #263134; }
#mdp-container .result li:last-child { border-bottom: 0; }
body > footer { background: radial-gradient(ellipse at 50% 100%, #93d45c09, transparent 70%), #0c1314; }
@media (hover: hover) and (pointer: fine) {
    article.article-container:hover { box-shadow: 0 16px 40px #0004, inset 0 1px 0 #93d45c18; }
    article.article-container:hover img.header { filter: brightness(1.06) saturate(1.05); }
    .primary-link:hover, .secondary-link:hover, #nextButton:not(:disabled):hover, #checkButton:hover { box-shadow: 0 8px 26px #93d45c18; }
    .primary-link:hover::after, #nextButton:not(:disabled):hover::after, #checkButton:hover::after { transform: translateX(130%); }
    .primary-link:hover span, .secondary-link:hover span { transform: translateX(3px); }
    .secondary-link:hover, .search-icon-link:hover { border-color: #93d45c; background: #1b2920; }
}
@media (prefers-reduced-motion: no-preference) {
    .welcome-art::before { animation: public-halo 7s ease-in-out 2; }
    .primary-link:active, .secondary-link:active, #nextButton:not(:disabled):active, #checkButton:active { transform: translateY(1px); }
    @keyframes public-halo {
        0%, 100% { transform: scale(.97); opacity: .5; }
        50% { transform: scale(1.04); opacity: 1; }
    }
}
@media (prefers-reduced-motion: reduce) {
    .primary-link::after, #nextButton::after, #checkButton::after { display: none; }
    .welcome-art:hover img, .quiz-page .category-name a:hover::after,
    .primary-link:hover span, .secondary-link:hover span { transform: none; }
}

/* Image URLs are relative to this stylesheet. */
body > header {
    box-sizing: border-box; min-height: 156px; padding: 28px 80px;
    background: linear-gradient(90deg, #090f1020, #090f1040 50%, #090f1020),
                url('assets/header-botanical.png') center 48% / cover no-repeat, #0c1314;
    border-bottom: 1px solid #93d45c25;
}
body > header .site-wordmark {
    position: static; margin: 0; padding: 0; color: #eef2ee; text-align: left;
    font-size: 23px; font-weight: 700; line-height: 1.35; letter-spacing: .075em;
    text-shadow: 0 2px 16px #0008;
}
body > header .site-wordmark span {
    display: block; margin-top: 7px; color: #b0bcb8; font-size: 11px;
    font-weight: 400; letter-spacing: .1em;
}
body > header #logo { width: 66px; max-width: 66px; filter: drop-shadow(0 4px 16px #93d45c20); }
body > header > a:has(#logo) { margin-right: 20px; }
body > header .search-icon-link { top: calc(50% - 21px); background-color: #0c1314bb; }
body > header .toggle-btn-menu { top: calc(50% - 20px); }
.tool-intro { max-width: 920px; padding: 28px 0 38px; }
.tool-intro h1 { max-width: 880px; overflow-wrap: anywhere; text-wrap: balance; }
.tool-intro > p:last-child { max-width: 660px; font-size: 16px; line-height: 1.75; text-wrap: pretty; }
.tool-eyebrow, .welcome .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .15em; color: #93d45c; }
.welcome h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 650; line-height: 1.15; letter-spacing: -.04em; margin: 18px 0; color: #eef2ee; }
.welcome h1 span { color: #93d45c; }
@media (max-width: 1100px) {
    body > header { min-height: 132px; }
    body > header .site-wordmark { font-size: 20px; }
    body > header #logo { width: 56px; }
}
@media (max-width: 760px) {
    body > header { min-height: 118px; padding: 22px 54px; background-position: center; }
    body > header .site-wordmark { font-size: 14px; letter-spacing: .035em; }
    body > header .site-wordmark span { font-size: 9px; letter-spacing: 0; margin-top: 5px; }
    body > header #logo { width: 38px; }
    body > header > a:has(#logo) { margin-right: 9px; }
    body > header .search-icon-link { right: 12px; top: calc(50% - 18px); }
    body > header .toggle-btn-menu { left: 12px; }
    .tool-intro { padding: 18px 0 28px; }
    .tool-intro h1, .welcome h1 { font-size: clamp(28px, 8vw, 38px); }
}
body > header .site-wordmark { display: block; }
body > header .search-icon-link, body > header .toggle-btn-menu { position: absolute; }

/* Static decorative binary texture: no moving particles or extra scripts. */
body {
    background-image: radial-gradient(ellipse 1000px 800px at 50% 20%, #090f10ed 25%, #090f1000 100%),
        url('assets/binary-texture.svg'),
        radial-gradient(ellipse at 90% 0, #93d45c0c, transparent 60%);
    background-size: auto, 360px 400px, auto;
}
.welcome {
    isolation: isolate; box-sizing: border-box; padding: 48px; margin: 32px 0 26px;
    border: 1px solid #354a32; border-radius: 18px; overflow: hidden;
    background: linear-gradient(90deg, #0c1513f5 0%, #0c1513eb 45%, #0c151375 100%),
        url('assets/header-botanical.png') center / cover no-repeat, #11191b;
    box-shadow: 0 24px 60px #0003, inset 0 1px 0 #ffffff08;
}
.welcome::after {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: url('assets/binary-texture.svg') right center / 300px auto;
    mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.welcome .welcome-art { background: radial-gradient(ellipse, #93d45c15, transparent 68%); }
.welcome .welcome-copy > p:not(.eyebrow) { color: #bcc8c0; }
.welcome .secondary-link { background: #0c151399; }
body > footer.public-footer {
    box-sizing: border-box; padding: 54px 32px 0; margin-top: 80px; text-align: left;
    border-top: 1px solid #354a32; line-height: 1.7;
    background: radial-gradient(ellipse at 0 0, #93d45c0b, transparent 60%), #0c1314;
}
.footer-inner { max-width: 1180px; margin: 0 auto; }
.footer-main { display: grid; grid-template-columns: 1.65fr 1fr 1.2fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-main > div { min-width: 0; }
.footer-brand-link { display: inline-flex; align-items: center; gap: 14px; color: #eef2ee; font-size: 17px; font-weight: 700; letter-spacing: .05em; }
.footer-brand-link img { flex-shrink: 0; object-fit: contain; }
.footer-signature { display: block; font-size: 11px; font-weight: 400; color: #93d45c; letter-spacing: 0; margin-top: 3px; }
.footer-brand p { max-width: 300px; margin: 18px 0; color: #b0bcb8; font-size: 13px; }
.footer-bits { color: #7c946f; font: 11px monospace; letter-spacing: .12em; }
.public-footer .footer-links h2 { margin: 0 0 16px; color: #eef2ee; font: 600 13px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: .025em; text-align: left; }
.public-footer .footer-links a { display: block; width: fit-content; padding: 5px 0; color: #b0bcb8; font-size: 13px; text-underline-offset: 5px; }
.public-footer a:hover { color: #b6ec88; }
.public-footer .footer-links a:hover { text-decoration: underline; }
.public-footer .footer-links .footer-back { margin-top: 16px; color: #93d45c; }
.footer-back span { margin-left: 10px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px; padding: 20px 0; border-top: 1px solid #263134; }
.footer-bottom p { margin: 0; color: #9eafa6; font-size: 11px; }
.footer-bottom a { color: #b0bcb8; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1000px) {
    .welcome { padding: 32px; gap: 24px; }
    .footer-main { grid-template-columns: 1.5fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
    .welcome { padding: 28px 22px; margin: 22px 0; border-radius: 12px; background-position: 70% center; }
    body > footer.public-footer { padding: 36px 18px 0; margin-top: 48px; }
    .footer-main { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding-bottom: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.public-footer .footer-brand-link img { width: 48px; height: 48px; max-width: 48px; }

/* Article feed: the latest publication leads the home page. */
.articles-page .article-feed { padding: 0; }
.articles-page article.article-card {
    display: grid; grid-template-columns: 31% minmax(0, 1fr); gap: 0;
    padding: 0; margin-bottom: 22px; border-radius: 12px; overflow: hidden;
}
.article-card .article-visual { display: block; position: relative; overflow: hidden; min-width: 0; background: #18231e; }
.articles-page .article-card .article-visual img {
    display: block; width: 100%; height: 100%; min-height: 230px; max-height: 360px;
    object-fit: cover; border-radius: 0; transition: transform .45s ease, filter .3s ease;
}
.articles-page .article-card .article-visual img.article-image-fallback { object-fit: contain; padding: 32px; box-sizing: border-box; }
.articles-page article.article-card > .article-card-body { display: flex; flex-direction: column; min-width: 0; padding: 24px; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: #b0bcb8; font-size: 11px; line-height: 1.5; }
.article-badge { display: inline-block; padding: 4px 9px; color: #b6ec88; background: #22321f; border: 1px solid #3a5131; border-radius: 5px; }
.articles-page .article-card .article-card-title { margin: 16px 0 12px; padding: 0; font-family: inherit; font-size: 23px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; text-transform: none; text-align: left; overflow-wrap: anywhere; }
.article-card .article-card-title a { color: #eef2ee; }
.article-card .article-card-title a:hover { color: #b6ec88; }
.article-card .article-excerpt { color: #b0bcb8; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.article-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 20px; margin-top: auto; }
.article-read-link { display: inline-flex; align-items: center; gap: 12px; color: #b6ec88; font-size: 13px; font-weight: 600; }
.article-read-link span { transition: transform .2s ease; }
.article-expand { padding: 6px 9px; border: 1px solid #35443a; border-radius: 5px; background: transparent; color: #b0bcb8; font: inherit; font-size: 11px; cursor: pointer; }
.article-expand span { margin-left: 6px; color: #93d45c; }
.article-share-link { margin-left: auto; color: #b0bcb8; font-size: 11px; }
.articles-page article.featured-card { grid-template-columns: minmax(0, 1fr); border-color: #49603e; background: linear-gradient(135deg, #19261d, #11191b 65%); }
.articles-page .featured-card .article-visual { aspect-ratio: 16 / 8; }
.articles-page .featured-card .article-visual img { min-height: 0; max-height: none; }
.featured-label { position: absolute; left: 22px; top: 22px; padding: 7px 12px; color: #b6ec88; background: #0c1513ed; border: 1px solid #58734b; border-radius: 5px; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.articles-page article.featured-card > .article-card-body { padding: 28px; }
.articles-page .featured-card .article-card-title { font-size: clamp(25px, 2.7vw, 34px); }
.articles-page article.article-card:has(.expanded) { grid-template-columns: minmax(0, 1fr); }
.articles-page .article-card:has(.expanded) .article-visual { width: 100%; max-height: 300px; }
.articles-page .article-card .article-excerpt.expanded { max-height: none; overflow: visible; }
.articles-empty { padding: 28px; border: 1px solid #263134; border-radius: 10px; color: #b0bcb8; background: #11191b; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .article-card .article-visual:hover img { transform: scale(1.035); }
    .article-read-link:hover span { transform: translate(2px, -2px); }
}
.article-expand:hover { border-color: #93d45c; color: #eef2ee; background: #1b2920; }
@media (max-width: 760px) {
    .articles-page article.article-card { grid-template-columns: minmax(0, 1fr); }
    .articles-page .article-card .article-visual { aspect-ratio: 16 / 9; }
    .articles-page .article-card .article-visual img { min-height: 0; max-height: none; }
    .articles-page article.article-card > .article-card-body { padding: 20px; }
    .articles-page .article-card .article-card-title { font-size: 23px; }
    .featured-label { top: 14px; left: 14px; }
}

/* Public navigation: separate links and submenu disclosure buttons. */
nav#menu { padding: 10px 24px; background: #0c1314f5; border-bottom-color: #33422f; box-shadow: 0 12px 30px #0003; }
nav#menu .menu { max-width: 1180px; margin: 0 auto; }
nav#menu .menu > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px; }
nav#menu .menu > ul > li { display: flex; align-items: center; position: relative; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 8px; }
nav#menu .menu > ul > li > a { padding: 10px 14px; color: #bdc8c1; font-size: 13px; font-weight: 550; border-radius: 7px; }
nav#menu .menu > ul > li > a::after { display: none; }
nav#menu .menu > ul > li:is(:hover, :focus-within, .submenu-open) { background: #18241c; border-color: #354b2d; }
nav#menu .menu > ul > li.active-branch { background: #20301d; border-color: #49603e; }
nav#menu .menu a.active, nav#menu .menu .active-branch > a { color: #b6ec88; background: transparent; }
nav#menu .menu ul ul { min-width: 230px; max-width: min(320px, calc(100vw - 40px)); padding: 8px; margin: 8px 0 0; border: 1px solid #3a4d33; border-radius: 10px; background: #111b17; box-shadow: 0 18px 44px #0006; }
nav#menu .menu ul ul li { position: relative; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
nav#menu .menu ul ul li > a { flex: 1; min-width: 0; margin: 0; padding: 10px 12px; color: #bdc8c1; border-radius: 6px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
nav#menu .menu ul ul li > a:is(:hover, :focus-visible) { color: #b6ec88; background: #22311e; }
nav#menu .menu > ul > li:last-child > ul { right: 0; }
nav#menu .menu ul ul ul { position: static; flex-basis: 100%; min-width: 0; margin: 4px 0 4px 12px; box-shadow: none; border: 0; border-left: 1px solid #49603e; background: #0c1511; }
nav#menu .submenu-toggle { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 36px; margin: 0 4px 0 0; padding: 0; color: #93d45c; background: transparent; border: 0; border-radius: 6px; cursor: pointer; font: 18px/1 sans-serif; }
nav#menu .submenu-toggle:hover { background: #2d4025; }
nav#menu .submenu-toggle span { transition: transform .2s ease; }
nav#menu .submenu-toggle[aria-expanded=true] span { transform: rotate(180deg); }
nav#menu.menu-enhanced .menu li > ul { display: none; }
nav#menu.menu-enhanced .menu li.submenu-open > ul { display: block; }
nav#menu .menu-toolbar { display: none; }
@media (max-width: 1100px) {
    nav#menu { padding: 0; }
    nav#menu .menu { padding: 14px; box-sizing: border-box; max-height: 75vh; max-height: 75dvh; overflow-y: auto; overscroll-behavior: contain; }
    nav#menu.menu-enhanced:not(.menu-open) .menu { display: none; }
    nav#menu.menu-enhanced.menu-open .menu { display: block; }
    nav#menu .menu > ul { display: flex; flex-direction: column; gap: 5px; }
    nav#menu .menu > ul > li { flex-wrap: wrap; }
    nav#menu .menu > ul > li > a { flex: 1; min-width: 0; padding: 13px 14px; font-size: 14px; }
    nav#menu .menu ul ul { position: static; flex-basis: 100%; max-width: 100%; min-width: 0; margin: 0 8px 8px; box-shadow: none; border: 0; border-left: 1px solid #49603e; border-radius: 0 6px 6px 0; }
    nav#menu .submenu-toggle { flex-basis: 44px; width: 44px; height: 44px; }
    nav#menu .menu-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 12px; color: #93d45c; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
    nav#menu .menu-close { width: 38px; height: 38px; padding: 0; border: 1px solid #354b2d; border-radius: 7px; color: #eef2ee; background: #18241c; font: 24px/1 sans-serif; cursor: pointer; }
    body > header .toggle-btn-menu { width: 36px; height: 40px; border: 1px solid #354b2d; border-radius: 7px; background: #0c1314bb; font-size: 23px; }
}
@media (prefers-reduced-motion: no-preference) {
    nav#menu.menu-open .menu { animation: public-arrive .2s ease-out; }
}

/* Home editorial: native disclosure keeps the entire heading visible when closed. */
.articles-page .edito {
    margin: 28px 0 36px;
    padding: 0;
    max-height: none;
    overflow: visible;
    background: linear-gradient(120deg, #19271f, #11191b 70%);
    border: 1px solid #344735;
    border-left: 3px solid var(--green);
    border-radius: 12px;
    transition: none;
}
.edito-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 24px 28px;
    list-style: none;
    cursor: pointer;
    border-radius: 10px;
}
.edito-summary::-webkit-details-marker { display: none; }
.edito-summary::marker { content: ''; }
.edito-summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.edito-heading { min-width: 0; }
.edito-eyebrow { display: block; margin-bottom: 7px; color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.edito .edito-title { margin: 0; padding: 0; color: var(--text); font-family: inherit; font-size: clamp(19px, 2.2vw, 25px); font-weight: 600; line-height: 1.35; letter-spacing: -.025em; text-transform: none; overflow-wrap: anywhere; }
.edito-toggle { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid #42573c; border-radius: 8px; color: var(--green); font-size: 13px; font-weight: 600; }
.edito-summary:hover .edito-toggle { background: #263a24; border-color: var(--green); }
.edito[open] .edito-show, .edito:not([open]) .edito-hide { display: none; }
.edito[open] .edito-toggle svg { transform: rotate(180deg); }
.edito-body { margin: 0 28px; padding: 20px 0 28px; border-top: 1px solid #344735; color: var(--muted); font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
.edito-body > * { max-width: 76ch; }
.edito-body > :first-child { margin-top: 0; }
.edito-body > :last-child { margin-bottom: 0; }
.edito-body a { text-decoration: underline; text-underline-offset: 4px; }
.edito-body img, .edito-body video { max-width: 100%; height: auto; }
.edito-body pre { overflow-x: auto; }
@media (max-width: 600px) {
    .edito-summary { padding: 20px 18px; gap: 16px; flex-wrap: wrap; }
    .edito-heading { flex: 1 1 180px; }
    .edito-toggle { padding: 0 12px; }
    .edito-body { margin: 0 18px; padding-bottom: 22px; font-size: 15px; }
}

/* Consistent public account and search controls. */
.login-page main { max-width: 680px; }
.login-page main > section { padding: 0; }
.login-page .tool-intro { padding: 48px 0 28px; text-align: center; }
.login-page .tool-intro h1 { font-size: clamp(29px, 4vw, 42px); }
.login-page .login-container { width: 100%; max-width: 460px; margin: 0 auto 32px; padding: clamp(24px, 4vw, 36px); border: 1px solid #344735; border-radius: 14px; background: linear-gradient(140deg, #19271f, #11191b 65%); box-shadow: 0 18px 48px #0003; }
.login-form h2 { margin: 0 0 24px; color: var(--text); font-size: 21px; letter-spacing: -.025em; }
.login-form label { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 550; }
.login-form input:not([type=hidden]), main div.search input {
    box-sizing: border-box; min-width: 0; width: 100%; min-height: 48px; margin: 0; padding: 12px 15px;
    background: #0c1314; color: var(--text); border: 1px solid #425448; border-radius: 8px; font: inherit; font-size: 16px;
    transition: border-color .18s, box-shadow .18s;
}
.login-form input:not([type=hidden]) { margin-bottom: 22px; }
.login-form input:hover, main div.search input:hover { border-color: #718768; }
.login-form input:focus, main div.search input:focus { outline: 2px solid var(--green); outline-offset: 3px; border-color: var(--green); box-shadow: 0 0 0 5px #93d45c12; }
.login-form button[type=submit], main button.search { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 48px; margin: 0; padding: 12px 22px; border: 1px solid var(--green); border-radius: 8px; background: var(--green); color: #10180b; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; transition: background-color .18s, border-color .18s; }
.login-form button[type=submit]:hover, main button.search:hover { background: #b6ec88; border-color: #b6ec88; color: #10180b; }
.login-back { align-self: center; margin-top: 20px; padding: 8px 12px; color: var(--muted); font-size: 13px; border-radius: 6px; }
.login-back:hover { color: var(--green); background: #1b2920; }
main div.search { box-sizing: border-box; width: 100%; max-width: 100%; margin: 0 0 28px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
main div.search form, main div.search form > div { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0; }
main div.search form input:not([type=hidden]) { flex: 1; }
main div.search button { flex-shrink: 0; }
@media (max-width: 600px) {
    .login-page .tool-intro { padding-top: 30px; }
    main div.search { padding: 14px; }
    main div.search form, main div.search form > div { flex-direction: column; align-items: stretch; }
}

/* Public directory: searchable collection with filters available on every screen. */
.directory-page [hidden] { display: none !important; }
.directory-tools { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(120deg, #93d45c08, transparent), var(--surface); }
.directory-tools label { display: block; margin-bottom: 10px; color: var(--text); font-size: 14px; font-weight: 600; }
.directory-tools input { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid #50604f; border-radius: 8px; background: var(--page); color: var(--text); font: inherit; }
.directory-tools input::placeholder { color: var(--muted); }
.directory-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.directory-filters button, .directory-empty button { min-height: 44px; padding: 9px 15px; border: 1px solid #3c4c40; border-radius: 24px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.directory-filters button span { margin-left: 6px; opacity: .75; }
.directory-filters button:hover, .directory-filters button[aria-pressed=true], .directory-empty button:hover { border-color: var(--green); background: #93d45c14; color: var(--green); }
.directory-count { margin: 24px 0 16px; color: var(--muted); font-size: 13px; }
.directory-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 36px; }
.directory-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.directory-card:focus-within, .directory-card:hover { border-color: #58734b; }
.directory-visual { display: grid; place-items: center; height: 180px; padding: 20px; box-sizing: border-box; background: #17221e; border-bottom: 1px solid var(--line); }
.directory-visual img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; border-radius: 5px; }
.directory-visual > span { font-size: 52px; color: var(--green); }
.directory-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; overflow-wrap: anywhere; }
.directory-tag { padding: 4px 9px; border-radius: 5px; background: #93d45c12; color: var(--green); font-size: 11px; }
.directory-card h2 { margin: 14px 0 4px; color: var(--text); font-size: 22px; line-height: 1.3; letter-spacing: -.025em; }
.directory-domain { margin: 0; color: var(--muted); font-size: 12px; }
.directory-description { margin: 18px 0 24px; color: var(--muted); font-size: 14px; line-height: 1.75; text-align: left; }
.directory-visit { display: flex; justify-content: space-between; align-items: center; gap: 20px; box-sizing: border-box; width: 100%; min-height: 44px; margin-top: auto; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; text-decoration: none; }
.directory-visit:hover { text-decoration: underline; text-underline-offset: 4px; }
.directory-visit span { font-size: 20px; }
.directory-empty { padding: 36px 24px; margin-bottom: 32px; border: 1px dashed #50604f; border-radius: 14px; text-align: center; color: var(--muted); }
.directory-empty h2 { color: var(--text); font-size: 22px; }
@media (max-width: 1050px) { .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
    .directory-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .directory-tools, .directory-card-body { padding: 18px; }
    .directory-visual { height: 160px; }
}

/* Shared atelier header. */
:root { --atelier-height: 132px; }
html.header-compact { --atelier-height: 80px; }
html { scroll-padding-top: 150px; }
body > header.atelier-header {
    position: sticky; top: 0; z-index: 1001; height: var(--atelier-height); min-height: 0;
    display: block; margin: 0; padding: 0 32px; overflow: visible;
    background: radial-gradient(ellipse at 22% 45%, #81d34a1c, transparent 48%),
        linear-gradient(90deg, #0c141540, #0c141570 45%, #0c141540),
        linear-gradient(#93d45c05 1px, transparent 1px),
        linear-gradient(90deg, #93d45c05 1px, transparent 1px),
        url('assets/header-botanical.png') center 48% / cover no-repeat, #0c1415;
    background-size: auto, auto, 28px 28px, 28px 28px, cover, auto;
    border-bottom: 1px solid #93d45c30; box-shadow: 0 8px 30px #0002;
    backdrop-filter: blur(16px); transition: height .22s ease;
}
.atelier-header-inner { height: 100%; max-width: 1180px; margin: auto; display: flex; align-items: center; gap: 30px; position: relative; }
.atelier-brand { display: inline-flex; align-items: center; gap: 19px; flex-shrink: 0; text-decoration: none; }
.atelier-logo { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 24px; background: radial-gradient(circle, #93d45c22, transparent 72%); }
body > header.atelier-header #logo { position: static; display: block; width: 76px; max-width: none; height: 76px; margin: 0; object-fit: contain; filter: drop-shadow(0 6px 16px #93d45c35); transition: width .22s, height .22s, transform .22s; }
.atelier-brand:hover #logo { transform: rotate(-5deg); }
.atelier-wordmark { color: #f2f6ee; font: 800 29px/1.1 system-ui, sans-serif; letter-spacing: -.055em; }
.atelier-wordmark > span { color: #a4e572; }
.atelier-wordmark small { display: block; margin-top: 10px; color: #a6b7ae; font-size: 10px; font-weight: 450; letter-spacing: .12em; }
.atelier-note { display: flex; align-items: center; gap: 14px; margin-left: auto; padding-left: 28px; border-left: 1px solid #93d45c30; color: #9eafa6; font-size: 12px; line-height: 1.6; text-align: left; }
.atelier-note > span { color: #93d45c; font: 22px monospace; }
.atelier-search { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 13px 19px; border: 1px solid #93d45c55; border-radius: 30px; background: #17261b; color: #e4f2dc; font-size: 13px; font-weight: 600; text-decoration: none; }
.atelier-search:hover { background: #263e21; border-color: #93d45c; color: white; }
.atelier-search-arrow { margin-left: 12px; color: #a4e572; }
body > header.atelier-header .toggle-btn-menu { position: static; display: none; flex-shrink: 0; }
body > header.atelier-header .toggle-btn-menu[hidden] { display: none; }
body > header.atelier-header + nav#menu { top: var(--atelier-height); z-index: 1000; transition: top .22s ease; }
/* A script follows the header, so the navigation is a general sibling. */
body > header.atelier-header ~ nav#menu { top: var(--atelier-height); z-index: 1000; transition: top .22s ease; }
nav#menu .menu > ul > li > a { position: relative; }
nav#menu .menu > ul > li > a::after { content: ''; display: block; position: absolute; bottom: 4px; left: 14px; right: 14px; height: 2px; width: auto; background: #93d45c; transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
nav#menu .menu > ul > li > a:is(:hover, :focus-visible, .active)::after, nav#menu .menu > ul > li.active-branch > a::after { transform: scaleX(1); }
.header-compact .atelier-logo { width: 58px; height: 58px; }
.header-compact body > header.atelier-header #logo { width: 52px; height: 52px; }
.header-compact .atelier-wordmark { font-size: 25px; }
.header-compact .atelier-wordmark small { margin-top: 5px; }
@media (max-width: 1100px) {
    :root { --atelier-height: 106px; }
    html.header-compact { --atelier-height: 76px; }
    body > header.atelier-header .toggle-btn-menu:not([hidden]) { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; }
    .atelier-note { display: none; }
    .atelier-search { margin-left: auto; }
}
@media (max-width: 600px) {
    :root { --atelier-height: 92px; }
    html.header-compact { --atelier-height: 72px; }
    body > header.atelier-header { padding: 0 14px; }
    .atelier-header-inner { gap: 12px; }
    .atelier-brand { gap: 8px; flex-shrink: 1; min-width: 0; }
    .atelier-logo, .header-compact .atelier-logo { width: 42px; height: 48px; }
    body > header.atelier-header #logo, .header-compact body > header.atelier-header #logo { width: 42px; height: 42px; }
    .atelier-wordmark, .header-compact .atelier-wordmark { font-size: 19px; }
    .atelier-wordmark small { font-size: 8px; letter-spacing: 0; margin-top: 6px; }
    .atelier-search { flex: 0 0 42px; box-sizing: border-box; width: 42px; height: 42px; padding: 0; }
    .atelier-search > span { display: none; }
    body > header.atelier-header .toggle-btn-menu:not([hidden]) { width: 38px; }
    nav#menu .menu { max-height: calc(100dvh - var(--atelier-height)); }
}
@media (max-width: 360px) {
    .atelier-header-inner { gap: 8px; }
    .atelier-wordmark, .header-compact .atelier-wordmark { font-size: 17px; }
    .atelier-wordmark small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    body > header.atelier-header, body > header.atelier-header #logo, body > header.atelier-header ~ nav#menu, nav#menu .menu > ul > li > a::after { transition: none; }
    .atelier-brand:hover #logo { transform: none; }
}
