/* The navigation is the frame of the orchard. Reading and writing stay on paper. */
:root {
  --pine:#19483d; --pine-deep:#10392f; --cream:#fff8df; --brass:#dbb76f;
  --paper:#fffaf0; --paper-edge:#dac9a9; --paper-shadow:#71513424;
}
html[data-theme=dark] {
  --paper:#292b29; --paper-edge:#605b49; --paper-shadow:#0004;
}
body { background-color:#dbe1ce; background-image:radial-gradient(#94a38c50 .8px,transparent 1px),linear-gradient(130deg,#c6d7c4,#f7e8cf 57%,#c1d4c2); background-size:8px 8px,100% 100%; }
html[data-theme=dark] body { background:#122b25; }
.masthead,html[data-theme=dark] .masthead {
  background:linear-gradient(105deg,#153e35,#205446 72%,#183f36); border-color:#1a493d;
  box-shadow:inset 0 1px #ffffff26,inset 0 -2px #d1b77d; color:var(--cream);
}
.masthead .brand,.masthead .brand strong,.masthead .notification-button,.masthead .preferences-toggle,.masthead .logout-button { color:var(--cream); }
.masthead .brand-symbol { filter:drop-shadow(0 1px 2px #071e19); }
.masthead .global-search { background-color:#faf7eb; color:#273c34; border-color:#102f28; }
.masthead .global-search::placeholder { color:#596459; }
.masthead .preferences-panel { color:var(--ink); }
.masthead button.primary[data-testid=login-open] { background:#983710; color:#fffdf5; border-color:#e5a06d; }
.masthead :is(.brand,.notification-button,.preferences-toggle,.logout-button):hover { background:#ffffff14; }
.masthead :focus-visible,.mobile-tabs button:focus-visible { outline:3px solid #ffcf73; outline-offset:2px; }
.layout { background:#f5efdf; border-color:var(--paper-edge); }
.sidebar,.content-rail>section,.composer,.guest-composer,.post,.stories,.builtin-strip {
  border-color:var(--paper-edge); box-shadow:0 2px 0 var(--paper-shadow),0 5px 14px #42301c08;
}
.sidebar,.builtin-strip { background:var(--paper); }
.sidebar nav>button.active,html[data-theme=dark] .sidebar nav>button.active {
  background:var(--pine); color:var(--cream); box-shadow:inset 3px 0 #ecc783,inset 0 -2px #0b3026;
}
.sidebar .chat-link { color:var(--ink); }
button.primary:not(:disabled),.mobile-tabs button[data-testid=mobile-create] {
  background:linear-gradient(#be4d20,#a23a12); border-color:#993912; color:#fff9ed;
  box-shadow:inset 0 1px #ffd19785,0 2px 0 #7c3012; text-shadow:none;
}
button.primary:not(:disabled):active,.mobile-tabs button[data-testid=mobile-create]:active { box-shadow:inset 0 1px 2px #70250e; }
.harvest-banner,html[data-theme=dark] .harvest-banner {
  display:flex; align-items:center; justify-content:space-between; gap:10px; height:auto; min-height:86px; padding:13px 17px;
  border:1px solid #224d3b; border-radius:14px; box-shadow:inset 0 0 0 2px #fff2,0 3px 0 var(--paper-shadow);
  background-color:#214536;
  background-image:linear-gradient(90deg,#123a30 0%,#163d32eb 33%,#163d3220 74%),url('/art/orchard/orchard-banner.jpg');
  background-size:cover; background-position:center;
}
.harvest-banner::before,.harvest-banner::after { content:none; }
.harvest-copy { min-width:0; max-width:none; }
.harvest-banner h1 { margin:0; color:#fff9dc; font-size:clamp(1.35rem,2.2vw,1.92rem); text-wrap:balance; overflow-wrap:anywhere; }
.harvest-banner p,html[data-theme=dark] .harvest-banner p { color:#f6ebc9; font-size:.88rem; }
.map-launch,.map-close {
  display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:42px; border-radius:10px;
  border:1px solid #877146; background:#fff3ce; color:#233e32; box-shadow:inset 0 1px #fff,0 3px 0 #5a553a;
  font-weight:850; line-height:1.15;
}
.map-launch { max-width:48%; flex:none; padding:8px 12px; text-wrap:balance; }
.map-launch:hover,.map-close:hover,.map-pin:hover { background:#fff9e7; color:#193e32; }
.map-launch .icon { width:20px; height:20px; }
.content-tabs { margin-top:0; border-color:var(--paper-edge); background:var(--paper); gap:4px; }
.content-tabs>button,.content-tabs>button.active { font-size:.88rem; padding:5px 10px; min-height:35px; }
.content-tabs>button.active,.content-tabs>button.active:hover,html[data-theme=dark] .content-tabs>button.active {
  background:var(--pine); color:#fff9dc; border:1px solid #153d32; box-shadow:inset 0 1px #8fb09b66,0 2px 0 #12382b;
}
.builtin-strip-scroll { gap:8px; padding-bottom:6px; }
.builtin-strip .fruit-persona {
  flex:0 0 calc((100% - 24px)/4); min-width:0; padding:4px 3px; gap:3px; border-radius:11px;
  background:linear-gradient(145deg,#f8ebca,#f9f3e7); border:1px solid var(--paper-edge); box-shadow:0 2px 0 var(--paper-shadow);
}
.builtin-strip .fruit-persona:nth-child(4n+2) { background:linear-gradient(145deg,#f7dfb9,#fff2de); }
.builtin-strip .fruit-persona:nth-child(4n+3) { background:linear-gradient(145deg,#d2e7d7,#f0f6e7); }
.builtin-strip .fruit-persona:nth-child(4n) { background:linear-gradient(145deg,#dcdeed,#f3edf0); }
.builtin-strip .fruit-persona .persona-ring { border:0; padding:0; background:transparent; box-shadow:none; }
.builtin-strip .persona-ring .fruit-avatar { width:clamp(44px,5vw,60px); height:clamp(44px,5vw,60px); }
.builtin-strip .fruit-persona strong { color:#253c30; font-size:.78rem; }
html[data-theme=dark] .builtin-strip .fruit-persona { background:linear-gradient(135deg,#3c483b,#333733); }
html[data-theme=dark] .builtin-strip .fruit-persona strong { color:#f7ecd6; }
.content-rail .orchard-topics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; background:var(--paper); }
.orchard-topics h2 { grid-column:1/-1; margin-bottom:3px; }
.orchard-topics .desk-shortcut {
  display:grid; grid-template-columns:minmax(0,1fr); align-content:start; align-items:start; gap:0;
  padding:0; min-width:0; overflow:hidden; text-align:start; font-size:.82rem;
  background:var(--surface); border:1px solid var(--paper-edge); border-radius:10px; box-shadow:0 2px 0 var(--paper-shadow);
}
.place-thumbnail { display:block; width:100%; aspect-ratio:2.8; background-position:center; background-size:cover; background-color:var(--paper); }
.place-caption { display:flex; align-items:center; gap:6px; padding:6px 8px; color:var(--ink); overflow-wrap:anywhere; }
.place-caption .icon { width:15px; height:15px; }
.illustrated-empty>button { margin:8px 0 0; min-height:44px; }
.post-actions button[aria-pressed=true],html[data-theme=dark] .post-actions button[aria-pressed=true] { color:#204c36; background:#e5efda; box-shadow:inset 0 -2px #bdd2ac; }
.post-actions button[aria-pressed=true] .icon { fill:#b5d8ad; }
.post-actions button[data-testid=save][aria-pressed=true] .icon { fill:#47774f; }

.map-backdrop { padding:12px; z-index:100; }
.orchard-map {
  width:min(750px,calc(100vw - 24px)); min-width:0; max-height:90dvh; overflow:auto; color:var(--cream); background:#193f34;
  border:2px solid #bc9b66; border-radius:19px; padding:9px; box-shadow:0 18px 60px #10291e64,inset 0 0 0 2px #52715b;
}
.orchard-map>header { display:flex; align-items:center; gap:9px; padding:2px 4px 11px; }
.orchard-map h2 { margin:0; color:var(--cream); font-size:1.22rem; }
.map-emblem { display:grid; place-items:center; width:34px; height:34px; color:#f5ce81; }
.map-close { margin-inline-start:auto; min-width:44px; font-size:1.25rem; }
.map-board {
  position:relative; isolation:isolate; overflow:hidden; width:100%; aspect-ratio:3/2; min-height:14em;
  border:1px solid #0e3128; border-radius:11px; background:#58744b url('/art/causewaybay/district-map.jpg') center / cover;
}
.map-projection { position:absolute; inset:0; display:grid; grid-template:600px / 900px; place-content:center; pointer-events:none; }
.map-projection>div { transform:scale(var(--paper-scale,1)); transform-origin:center; }
.map-paper { width:940px; height:627px; background:url('/art/causewaybay/district-map.jpg') center / cover; }
.map-places { position:absolute; inset:0; display:grid; grid-template:repeat(2,minmax(0,1fr)) / repeat(2,minmax(0,1fr)); place-items:end center; padding:0 3% 5%; gap:2% 3%; }
.map-pin {
  position:relative; display:inline-flex; align-items:center; justify-content:center; gap:6px; max-width:100%; min-height:44px;
  padding:4px 12px 4px 5px; background:#fff3d0; color:#263c2d; border:2px solid #5b5738; border-radius:24px;
  font-size:.94rem; font-weight:850; line-height:1.2; box-shadow:inset 0 1px #fff,0 3px 0 #4c4933,0 5px 11px #162b2180;
}
.pin-icon { display:grid; place-items:center; flex:none; width:30px; height:30px; border-radius:50%; color:#fff; background:#9c461e; }
[data-place=videos] .pin-icon { background:#5c4b89; }
[data-place=memes] .pin-icon { background:#894a66; }
[data-place=trending] .pin-icon { background:#35725a; }
.pin-icon .icon { width:18px; height:18px; }
.map-pin[aria-current=true] { border-color:#173c2f; background:#1d523d; color:#fff8da; }
.map-pin[aria-current=true] .pin-icon { background:#fff0be; color:#234b35; }
.map-pin:focus-visible,.map-close:focus-visible,.map-launch:focus-visible { outline:3px solid white; outline-offset:2px; box-shadow:0 0 0 7px #16392e; }
@media(max-width:620px) {
  .harvest-banner,html[data-theme=dark] .harvest-banner { padding:5px 9px; min-height:44px; border-radius:10px; }
  .harvest-banner h1 { font-size:1.04rem; }
  .harvest-banner p { display:none; }
  .map-launch { min-height:32px; font-size:.76rem; padding:4px 7px; gap:4px; }
  .map-launch .icon { width:15px; height:15px; }
  .content-tabs { gap:2px; padding:3px; }
  .content-tabs>button,.content-tabs>button.active { flex:1 1 auto; font-size:.75rem; min-height:32px; padding:4px 6px; }
  .builtin-strip { padding:2px 5px 6px; }
  .builtin-strip-scroll { gap:5px; padding:2px 0 3px; }
  .builtin-strip .fruit-persona { flex:0 0 auto; max-width:55%; min-height:44px; flex-direction:row; gap:5px; padding:3px 8px 3px 4px; }
  .builtin-strip .fruit-persona strong { width:auto; }
  .builtin-strip-heading button { min-height:28px; }
  .builtin-strip .persona-ring .fruit-avatar { width:32px; height:32px; }
  .builtin-strip .fruit-persona strong { font-size:.68rem; }
  .mobile-tabs,html[data-layout] .mobile-tabs { background:#193f35; border:1px solid #416858; box-shadow:inset 0 1px #68977d,0 3px 10px #14332644; }
  .mobile-tabs button { color:#eee7d4; }
  .mobile-tabs button.active,.mobile-tabs button[aria-expanded=true] { background:#fceac3; color:#284836; border-radius:12px; }
  .map-places { gap:2%; padding:0 1.5% 5%; }
  .map-pin { font-size:.83rem; padding-inline-end:8px; gap:4px; }
  .pin-icon { width:26px; height:26px; }
}
@media(prefers-reduced-motion:reduce) { .map-projection { display:none; } }
