/* The territory, the manuscript and the instrument use different reading paths. */
.a358-tag { text-transform:uppercase; letter-spacing:.11em; font:750 .75rem/1.55 system-ui; }
#chemistry-study .a358-field .c318-stations { gap:.4rem; }
#chemistry-study .a358-field .c318-stations button { flex:1; min-width:0; border:1px solid #658775; border-radius:.4rem; background:#152e29; color:#e8f7dc; }
#chemistry-study .a358-field .c318-stations button[aria-pressed=true] { border-color:#c5ec95; background:#2d4632; box-shadow:inset 0 -3px #c5ec95; }
.a358-mapboard,.a358-field-header,.a358-finding { padding:clamp(.9rem,3vw,2rem); border:1px solid #719780; border-radius:.75rem; background:#112d26f7; color:#e8f7e5; }
.a358-mapboard { margin-bottom:.8rem; }
#chemistry-study .a358-field :is(.a358-mapboard,.a358-field-header,.a358-finding) h2,
#chemistry-study .a358-archive .a358-scroll h2 { margin:.2rem 0 .55rem; font:700 clamp(1.65rem,4vw,3.25rem)/1.1 Georgia,serif; }
#chemistry-study .a358-field .a358-tag { color:#bfeca9; margin:0; }
.a358-field-grid { display:grid; grid-template-columns:minmax(0,2.3fr) minmax(0,1fr); gap:1rem; margin:1.1rem 0 .4rem; }
.a358-map {
  isolation:isolate; position:relative; min-width:0; min-height:250px; border:1px solid #82ae9b; border-radius:.55rem;
  background:repeating-linear-gradient(0deg,transparent 0 31px,#74a89423 32px),repeating-linear-gradient(90deg,#204b3b 0 31px,#528b69 32px);
}
.a358-map svg { position:absolute; inset:0; height:100%; width:100%; pointer-events:none; }
.a358-map path { fill:none; stroke-linecap:round; stroke-linejoin:round; }
.a358-map .a358-contour { stroke:#c4deac77; stroke-width:2; }
.a358-map .a358-river { stroke:#75ccd8; stroke-width:32; }
.a358-map .a358-zone { stroke:#d1c68e; fill:#9c8e573f; stroke-width:3; }
.a358-map .a358-plume { stroke:#d9c67a; stroke-dasharray:8 10; stroke-width:4; }
.a358-map .a358-road { stroke:#949a94; stroke-width:27; }
.a358-map .a358-soil { stroke:#c89e74; fill:#70503f; stroke-width:3; }
#chemistry-study .a358-map .a358-pin { position:absolute; top:var(--pin-y,49%); left:var(--pin-x); transform:translate(-50%,-50%); display:grid; justify-items:center; gap:.23rem; min-width:0; max-width:32%; border-color:#b5d4ad; background:#152b25; color:#f1ffec; padding:.38rem .5rem; line-height:1.15; font-size:clamp(.72rem,1.5vw,.91rem); }
.a358-pin:nth-of-type(1) { --pin-x:17%; --pin-y:60%; }
.a358-pin:nth-of-type(2) { --pin-x:50%; --pin-y:37%; }
.a358-pin:nth-of-type(3) { --pin-x:83%; --pin-y:55%; }
[data-terrain=soil] .a358-pin:nth-of-type(1) { --pin-y:35%; }
[data-terrain=soil] .a358-pin:nth-of-type(2) { --pin-y:58%; }
[data-terrain=soil] .a358-pin:nth-of-type(3) { --pin-y:78%; }
.a358-pin b { display:grid; place-items:center; width:1.5rem; height:1.5rem; border:1px solid currentColor; border-radius:50%; }
.a358-pin.is-visited b { background:#7baa68; color:#102319; }
#chemistry-study .a358-map .a358-pin[aria-pressed=true] { background:#d7eab5; color:#203c2e; border-color:#d7eab5; }
.a358-field-note { background:#f2ecd9; color:#263f34; padding:clamp(.8rem,2vw,1.2rem); border-radius:.55rem; min-width:0; }
#chemistry-study .a358-field-note h3 { color:#243b2b; margin:.5rem 0 .35rem; font-size:1.3rem; }
#chemistry-study .a358-field-note .a358-tag { color:#40643b; }
#chemistry-study .a358-field-note [data-a358-count] { margin:.6rem 0 0; font-size:.82rem; color:#3b604b; }
#chemistry-study .a358-map-caption { margin:.45rem 0 .85rem; color:#d0e8ca; font-size:.82rem; }
.a358-guide,.a358-archive-notes { padding:.8rem; margin-top:.75rem; background:#132e28; border:1px solid #75916d; border-radius:.55rem; }
.a358-guide summary,.a358-archive-notes summary { cursor:pointer; color:#e6f5cd; font-weight:700; }
.a358-guide[open] .c318-reading,.a358-archive-notes[open] .c318-reading { margin-top:.9rem; }
.a358-field-header,.a358-finding { margin-bottom:1rem; }
#chemistry-study .a358-field .a358-finding :is(legend,label) { color:#edf5e7; }
#chemistry-study .a358-field .a358-finding fieldset { background:#1d4134; margin:.7rem 0; min-width:0; }
#chemistry-study .a358-field [data-a358-feedback] { color:#deefbd; }

#chemistry-study .a358-archive .c318-stations button { color:#f2e3c4; min-width:0; }
#chemistry-study .a358-archive .c318-stations button[aria-pressed=true] { color:#ffe6ad; border-bottom-color:#e7b76e; background:#e7b76e17; }
.a358-scroll {
  color:#372c27; background:repeating-linear-gradient(107deg,#64462308 0 1px,transparent 1px 8px),radial-gradient(ellipse at 51% 45%,#fff4d5,#dec393 90%);
  border:1px solid #c89658; border-inline:clamp(7px,2vw,24px) solid #91663e; border-radius:1rem;
  padding:clamp(.95rem,4vw,2.8rem); box-shadow:0 16px 45px #0006,inset 0 0 50px #67401930;
}
#chemistry-study .a358-archive .a358-scroll h2,#chemistry-study .a358-transcript h3 { color:#482e26; }
#chemistry-study .a358-scroll header p { max-width:65ch; }
#chemistry-study .a358-scroll .a358-tag { color:#6d412b; margin:0; }
.a358-folio { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.15fr); align-items:stretch; gap:clamp(.7rem,2.5vw,1.5rem); margin:1rem 0; }
.a358-swatches { display:grid; gap:.5rem; }
#chemistry-study .a358-swatches button {
  display:flex; align-items:center; gap:.5rem; padding:.5rem .7rem; background:#fff4d7; border:1px solid #9a7449; color:#462c21; text-align:left; box-shadow:none;
}
#chemistry-study .a358-swatches button[aria-pressed=true] { background:#ead0a0; border-color:#795437; }
.a358-swatches i { width:1.55rem; height:1.35rem; background:#a4805f33; border-radius:65% 40% 55% 50%; border:1px solid #98744977; flex:none; }
.a358-transcript { padding:clamp(.75rem,2vw,1.2rem); background:#fff6ddad; border:1px dashed #a17b55; }
#chemistry-study .a358-transcript h3 { margin:.35rem 0; font:700 clamp(1.4rem,3vw,2.25rem)/1.1 Georgia,serif; }
#chemistry-study .a358-scroll .a358-archive-source { color:#664637; font-size:.85rem; }
#chemistry-study .a358-scroll a { color:#5d3826; text-decoration:underline; }
.a358-bridge { padding:1rem; border:1px solid #9e8456; background:#322b23; border-radius:.45rem; margin-bottom:1rem; }
#chemistry-study .a358-bridge h2 { margin:0 0 .35rem; color:#ffdfb0; }

#chemistry-study .a358-studio {
  --a357-line:#786ca2; --a357-cyan:#d7c9ff; --a357-navy:#211b34; --a357-amber:#ffd59c;
}
#chemistry-study .a358-studio .a357-case { background:linear-gradient(125deg,#261a39,#192e42); border-top:3px solid #cdb3fc; }
#chemistry-study .a358-studio .s331 { background:#15192b; border-color:var(--a357-line); }
#chemistry-study .a358-studio .a357-settings { margin:0; background:#281f3b; align-items:center; }
#chemistry-study .a358-studio .a357-presets button,#chemistry-study .a358-studio .a357-records article { background:#312648; }
#chemistry-study .a358-studio .s331-grid:not(.s331-expanded .s331-grid) { grid-template-columns:minmax(0,1fr) minmax(210px,260px); align-items:start; }
#chemistry-study .a358-studio .s331-inquiry { min-width:0; }
#chemistry-study .a358-studio .s331-grid:not(.s331-expanded .s331-grid) > aside { order:1; }
#chemistry-study .a358-studio .a357-results { margin:0; border-width:1px 0 0; }
#chemistry-study .a358-studio .a357-results > button { margin-top:.5rem; }
#chemistry-study .a358-studio .a358-cooling { border-color:#9e86be; padding:.6rem .7rem; margin:.8rem 0 0; background:#302741; min-width:0; }
#chemistry-study .a358-studio .a358-cooling button { margin:.15rem .25rem .15rem 0; white-space:normal; }
#chemistry-study .a358-studio .a358-cooling [role=status] { color:#ffe2b7; margin:.5rem 0 0; }
#chemistry-study .a358-studio .a357-theory { background:#1b2236; }
@media(max-width:1000px){
  #chemistry-study .a358-studio .s331-grid:not(.s331-expanded .s331-grid) { grid-template-columns:minmax(0,1fr); }
  #chemistry-study .a358-studio .s331-grid:not(.s331-expanded .s331-grid) > aside { order:0; }
}
@media(max-width:680px){
  .a358-field-grid,.a358-folio { grid-template-columns:minmax(0,1fr); }
  .a358-map { min-height:200px; }
  #chemistry-study .a358-field .c318-stations button,#chemistry-study .a358-archive .c318-stations button { padding:.55rem .3rem; font-size:.79rem; }
}
.a358-evidence { margin:.6rem 0; padding:.6rem .75rem; border:1px solid #779984; background:#152c27; border-radius:.45rem; }
.a358-evidence summary { cursor:pointer; color:#d9f1b9; font-weight:700; }
[data-a358-readings] { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,245px),1fr)); gap:.6rem; }
[data-a358-readings] article { min-width:0; padding:.45rem .6rem; margin-top:.45rem; background:#203d32; }
#chemistry-study [data-a358-readings] h3 { margin:.2rem 0; color:#d7e8c4; font-size:.98rem; }
[data-a358-readings] dl { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,100px),1fr)); gap:.4rem .6rem; }
[data-a358-readings] dt { font-size:.78rem; color:#c0d9bc; }
[data-a358-readings] dd { margin:0; font-weight:700; overflow-wrap:anywhere; }
