/* Scoped additions: reuse the validated Grimoire cards, ornaments and panels. */
.ge-page{color:#f7edff;line-height:1.7;font-size:17px}.ge-page header.ge-heading{position:static;display:block;background:none;border:0;padding:20px 0;text-align:center;backdrop-filter:none}.ge-heading h1{font-family:Georgia,serif;color:#ffe5ac;font-size:clamp(28px,5vw,42px)}.ge-heading p{max-width:700px;margin:12px auto}.ge-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin:24px 0}.ge-grid .am-grimoire-card{min-width:0}.ge-card img{height:100%;object-fit:cover}.ge-search{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding:20px;border:1px solid #e6bd824d;border-radius:20px;background:#542e6d55}.ge-search label{margin:0;color:#fff1cf}.ge-search input,.ge-search select,.ge-journal input,.ge-journal textarea{background:#291839;color:#fff4df;border:1px solid #aa80be;min-height:46px}.ge-search a,.ge-links a,.ge-page a,.ge-language{color:#ffe5ac}.ge-search a:focus-visible,.ge-page a:focus-visible{outline:3px solid #ffe5ac;outline-offset:4px}.ge-steps{padding:0;list-style:none}.ge-steps>li{margin:24px 0 36px}.ge-steps h3{color:#ffe6b5}.ge-number{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid #e7bf80;border-radius:50%;margin-right:8px}.ge-step{display:grid;grid-template-columns:1fr;gap:18px;align-items:center}.ge-step img{width:100%;max-width:360px;height:auto;object-fit:contain;margin:auto;border-radius:16px}.ge-links{display:flex;flex-wrap:wrap;gap:12px;padding:22px 0}.ge-links a{display:block;border:1px solid #d8b47866;border-radius:14px;padding:12px 16px;background:#5c326755}.ge-symbolic,.ge-language{font-size:14px;line-height:1.6;padding:16px;border:1px solid #d5ae7355;border-radius:14px}.ge-reading li{margin-bottom:10px}.ge-reading blockquote span{display:block}.ge-reading .consecration-panel>p,.ge-reading .consecration-panel li{overflow-wrap:anywhere}.ge-journal{max-width:850px;margin:0 auto}.ge-journal label{color:#ffe5ac}.ge-journal textarea{min-height:110px;resize:vertical}.ge-journal button{margin:12px 8px 0 0;min-height:44px}.ge-journal .ge-note{white-space:pre-wrap;overflow-wrap:anywhere}.ge-journal fieldset{border:1px solid #d5ae7377;border-radius:16px;padding:20px}.ge-journal legend{padding:0 8px}.ge-journal-output{padding:16px 0}.ge-journal article{margin:20px 0}.ge-herb-original{border-top:1px solid #d5ae7344;margin-top:15px;padding-top:15px}.ge-herb-original h3{font-size:17px}.ge-page .ge-herb-section{scroll-margin-top:100px}.ge-journal [hidden]{display:none!important}
@media(min-width:680px){.ge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ge-step{grid-template-columns:minmax(200px,300px) minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){.ge-page *{scroll-behavior:auto}}

.ge-reading .consecration-invocation{display:block}.ge-page .consecration-invocation blockquote{width:100%;margin:0;text-align:center}.ge-page.ge-journal{padding:22px}.ge-page>.ge-grid,.ge-page>.ge-search,.ge-page>.ge-heading,.ge-page>p[role="status"]{margin-left:16px;margin-right:16px}

.ge-page .ge-steps>li{padding-left:0}.ge-page .ge-steps>li::before{content:none}

/* Small decorative constellations stay in the panel margins, outside the text. */
.ge-page .consecration-panel::after{
 content:"";position:absolute;pointer-events:none;right:4px;top:54px;bottom:12px;width:12px;
 background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='176' viewBox='0 0 12 176'%3E%3Cpath d='M6 8 7.5 12.5 12 14 7.5 15.5 6 20 4.5 15.5 0 14 4.5 12.5Z' fill='%23ffe6ae' opacity='.8'/%3E%3Ccircle cx='5' cy='66' r='1.2' fill='%23f2c76f' opacity='.65'/%3E%3Cpath d='M6 116 7 119 10 120 7 121 6 124 5 121 2 120 5 119Z' fill='%23ead6ff' opacity='.6'/%3E%3Ccircle cx='8' cy='153' r='.8' fill='%23ffe6ae' opacity='.55'/%3E%3C/svg%3E");
 background-repeat:repeat-y;filter:drop-shadow(0 0 3px #f4cf8866);
}
.ge-page .consecration-panel{
 box-shadow:inset 0 0 20px #e6bd8130,0 0 11px #d9a4e023;
}
.ge-page details.consecration-panel:not([open])::after{display:none}

/* The six collections use the existing Petites Magies primitives. */
.ge-collection .magic-banner{width:calc(100% - 24px)}
.ge-collection .magic-banner img{aspect-ratio:2/1;object-fit:cover}
.ge-collection .magic-card{grid-template-columns:34% minmax(0,1fr) 24px;gap:10px;padding:0 8px 0 0}
.ge-collection .magic-card>img{grid-column:auto;aspect-ratio:1;width:100%;height:auto;max-height:none;object-fit:contain;background:none}
/* Fill the square thumbnails of the six inherited landscape cocktail images. */
.ge-collection .magic-card:is([href="/grimoire/flacon-lune"],[href="/grimoire/potion-jardin"],[href="/grimoire/potion-crepuscule"],[href="/grimoire/potion-tendresse"],[href="/grimoire/potion-creativite"],[href="/grimoire/potion-aurore"])>img{aspect-ratio:1/1;object-fit:cover;object-position:center}
.ge-collection .magic-card-copy{padding:12px 0;overflow-wrap:anywhere}
.ge-collection .magic-card h2{font-size:1.07rem;line-height:1.22}
.ge-collection .magic-card p{font-size:.86rem;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ge-collection .magic-card>.consecration-chevron{width:24px;height:24px;margin-right:0}
.ge-collection .magic-families{grid-template-columns:repeat(2,minmax(0,1fr))}
.ge-collection .magic-families button span{overflow-wrap:anywhere}
.ge-collection .magic-card-copy small{font-size:10px}
@media(min-width:700px){.ge-collection .magic-card h2{font-size:1.12rem}.ge-collection .magic-families button{font-size:.95rem}}

/* Keep the existing recipe structure at the same reading scale as Petites Magies. */
.ge-reading .consecration-hero,.ge-herbier .consecration-hero{max-width:600px}
.ge-herbier .consecration-hero img{aspect-ratio:1;object-fit:contain}
.ge-reading .consecration-content,.ge-herbier .consecration-content{width:100%;max-width:850px;margin-inline:auto}
.ge-reading .ge-step{grid-template-columns:86px minmax(0,1fr);gap:13px;align-items:start}
.ge-reading .ge-step img{display:block;width:100%;height:auto;max-width:100%;margin:0;object-fit:contain;border-radius:11px}
.ge-reading .ge-step p{margin:0;font-size:1rem;line-height:1.55;min-width:0}
.ge-reading .ge-steps h3{display:flex;align-items:baseline;gap:10px;font-size:1.17rem;line-height:1.35}
.ge-reading .ge-number{flex:none;width:30px;height:30px;margin-right:0;font-size:1rem}
@media(min-width:700px){
 .ge-reading .consecration-content,.ge-herbier .consecration-content{padding-inline:22px}
 .ge-reading .ge-step{grid-template-columns:145px minmax(0,1fr)}
 .ge-reading .ge-step p{font-size:1.06rem}
}
@media(max-width:370px){.ge-reading .ge-step{grid-template-columns:70px minmax(0,1fr);gap:10px}}

.ge-reading .consecration-panel::after,.ge-herbier .consecration-panel::after{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='176' viewBox='0 0 12 176'%3E%3Cpath d='M6 8 7.5 12.5 12 14 7.5 15.5 6 20 4.5 15.5 0 14 4.5 12.5Z' fill='%23ffe6ae' opacity='.8'/%3E%3Ccircle cx='5' cy='66' r='1.2' fill='%23f2c76f' opacity='.65'/%3E%3Cpath d='M8 82A5 5 0 1 0 8 92A4 4 0 0 1 8 82Z' fill='%23ead6ff' opacity='.55'/%3E%3Cpath d='M6 116 7 119 10 120 7 121 6 124 5 121 2 120 5 119Z' fill='%23ead6ff' opacity='.6'/%3E%3Ccircle cx='8' cy='153' r='.8' fill='%23ffe6ae' opacity='.55'/%3E%3C/svg%3E");}

/* Potions use existing panels and compact cards; text never occupies an empty image column. */
.potions-reading .ge-step:not(:has(img)){grid-template-columns:minmax(0,1fr)}
.potions-reading .consecration-hero img{aspect-ratio:1;object-fit:contain}
.potions-reading .potions-ingredients{list-style:none;padding:0}
.potions-reading .potions-ingredients li{display:flex;align-items:center;gap:12px;min-width:0}
.potions-reading .potions-ingredients img{width:64px;height:64px;object-fit:contain;border-radius:10px;flex:none}
.potions-reading .potions-ingredients span{min-width:0;overflow-wrap:anywhere}

/* Reuse compact cards for the two introductory article links. */
.classified-introduction{margin:18px 12px;padding:0;background:none}
.classified-introduction .magic-card h2{margin:0 0 6px}

/* The eleven reclassified articles fill the same square as the other thumbnails.
   Retain the existing 330px tablet image limit without flattening the square. */
.magic-page .magic-card:is([href="/grimoire/sachet-souvenir"],[href="/grimoire/etoile-courage"],[href="/grimoire/lettre-amour"],[href="/grimoire/sort-bracelet-liens"],[href="/grimoire/sceau-ancrage"],[href="/grimoire/fil-renouveau"],[href="/grimoire/sort-cle-etoiles"],[href="/grimoire/elements"],[href="/grimoire/couleurs"],[href="/grimoire/lune"],[href="/grimoire/saisons"])>img{
 width:100%;height:auto;aspect-ratio:1/1;max-width:330px;max-height:none;
 object-fit:cover;object-position:center;justify-self:center;
}
