/* 2026 look: stratigraphic plot, sandstone side panel, hover cards. Loaded after the 2016 stylesheet. */
body { background: #ecdcbc; margin: 0; }
#memo-plot { position: relative; background-color: #ecdcbc; height: 100vh; overflow: hidden; --inv: 1; }
#plot-scroll { position: absolute; inset: 0; overflow: auto; }
#plot-sizer { position: relative; overflow: hidden; }
#plot-ruler { position: absolute; right: 0; top: 0; pointer-events: none; z-index: 30; }
#plot-zoom { position: absolute; right: 104px; top: 10px; z-index: 31; display: flex; gap: 4px; align-items: center; font: 12px Arial, Helvetica, sans-serif; }
#plot-zoom button { width: 30px; height: 28px; border: 1px solid rgba(58,36,18,.35); border-radius: 6px; background: rgba(250,242,226,.85); color: #3a2412; font: bold 15px Arial, Helvetica, sans-serif; cursor: pointer; padding: 0; }
#plot-zoom button[data-z="one"] { width: 36px; font-size: 11px; }
#plot-zoom button:hover { background: #fff8ea; }
#plot-zoom .zl { min-width: 40px; text-align: right; color: rgba(43,26,12,.75); }
/* marks keep their size at every zoom */
#plot-area .pdia { transform: scale(var(--inv)); }
#plot-area .parr { transform: scaleX(var(--inv)); }
#plot-area a.pt pop { transform: scale(var(--inv)); transform-origin: 0 0; margin-left: calc(16px * var(--inv) - 16px) !important; margin-top: calc(4px * var(--inv) - 4px) !important; }
html.mobile #memo-plot { height: auto; overflow: visible; margin-top: -425px; }
html.mobile #plot-scroll { position: static; overflow: visible; }
html.mobile #plot-sizer { overflow: visible; }
html.mobile #plot-ruler, html.mobile #plot-zoom { display: none; }
body.ms-open #memo-plot, body.ms-open #results { margin-left: 310px; }
#plot-area { position: relative; border: none; background: #eee2c8 url(../img/strata_d18o.jpg) no-repeat; }
/* marks: flat diamond for a single age, double-headed arrow for a bracket */
#plot-area .pdia { width: 11px; height: 5px; background: currentColor; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
#plot-area .parr { position: relative; width: 6px; background: linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat; }
#plot-area .parr::before, #plot-area .parr::after { content: ""; position: absolute; left: calc(3px - var(--aw, 3px)); border-left: var(--aw, 3px) solid transparent; border-right: var(--aw, 3px) solid transparent; }
#plot-area .parr.loose { background: repeating-linear-gradient(to bottom, currentColor 0 2px, transparent 2px 6px) center / 1.5px 100% no-repeat; }
#plot-area .parr::before { top: 0; border-bottom: calc(var(--ah, 6px) * var(--inv, 1)) solid currentColor; }
#plot-area .parr::after { bottom: 0; border-top: calc(var(--ah, 6px) * var(--inv, 1)) solid currentColor; }
#plot-area svg.plot-labels { position: absolute; left: 0; top: 0; pointer-events: none; }

/* ---- hover cards ---- */
a pop { display: none; }
a:hover pop { display: block; position: absolute; top: 4px; left: 16px; width: 310px; margin: 0; padding: 10px 12px; z-index: 50;
  background: rgba(22,22,26,.96); color: #e8e8e8; border: 1px solid #4a4a4a; border-left: 5px solid #999; border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0,0,0,.65); font: 12px/1.45 Arial, Helvetica, sans-serif; pointer-events: none; text-align: left; }
a.pt.flip pop { left: auto; right: 16px; }
a.pt.up pop { top: auto; bottom: 4px; }
pop .tip-head { display: flex; align-items: flex-start; margin-bottom: 6px; }
pop .tip-title { flex: 1; font-size: 14px; font-weight: bold; color: #fff; line-height: 1.25; padding-right: 10px; }
pop .globe { flex: none; position: relative; display: block; width: 68px; height: 60px; background: url(../globe.jpg) no-repeat; border-radius: 4px; border: 1px solid #555; margin: 0; }
pop .globe i { position: absolute; width: 5px; height: 5px; background: #f0f; }
pop table { border-collapse: collapse; width: 100%; }
pop td { padding: 2px 0; vertical-align: top; color: #e8e8e8; font-size: 12px; }
pop td.k { width: 88px; color: #9a9a9a; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; padding-top: 3px; }

/* ---- side panel ---- */
#memo-side { position: fixed; left: 0; top: 0; bottom: 0; width: 310px; box-sizing: border-box; overflow-y: auto; z-index: 100; padding: 14px 14px 24px;
  background: #c4a374 url(../img/sandstone.jpg) repeat-y; color: #3a2a1a; font: 13px/1.4 Arial, Helvetica, sans-serif; text-align: left;
  border-right: 3px solid #8a6a45; box-shadow: inset -1px 0 0 rgba(255,240,210,.35), 3px 0 16px rgba(0,0,0,.6); }
body:not(.ms-open) #memo-side { display: none; }
#ms-show { display: none; position: fixed; left: 10px; top: 10px; z-index: 100; padding: 7px 12px; border: 1px solid #8a6a45; border-radius: 6px;
  background: #c4a374 url(../img/sandstone.jpg); color: #3a2412; font: bold 13px Arial, Helvetica, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
body:not(.ms-open) #ms-show { display: block; }
#memo-side .ms-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
#memo-side .ms-title { font-size: 15px; font-weight: bold; color: #3a2412; line-height: 1.25; text-shadow: 0 1px 0 rgba(255,240,210,.5); }
#memo-side .ms-sub { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #6b3f1f; }
#memo-side .ms-hide { border: 1px solid #8a6a45; background: rgba(255,245,225,.45); color: #4a3420; border-radius: 5px; cursor: pointer; font-size: 14px; padding: 2px 8px; }
#memo-side fieldset { min-width: 0; margin: 0 0 10px; padding: 6px 8px 8px; border: 1px solid rgba(110,80,50,.45); border-left: 4px solid #888; border-radius: 6px;
  background: rgba(255,246,226,.22); box-shadow: inset 0 1px 0 rgba(255,250,235,.35); }
#memo-side legend { padding: 0 4px; color: #4a3420; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .05em; }
#memo-side legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(60,40,20,.55); }
#memo-side .ms-row { display: flex; gap: 4px; margin-top: 4px; }
#memo-side .ms-row > * { flex: 1 1 0; width: 0; }
#memo-side input[type=text], #memo-side select { min-width: 0; box-sizing: border-box; background: rgba(255,250,240,.82); color: #2c1f12; border: 1px solid #9a7a52;
  border-radius: 4px; padding: 4px 5px; font: 12px Arial, Helvetica, sans-serif; }
#memo-side input[type=text].ms-filled, #memo-side select.ms-filled { font-weight: bold; color: #1e140a; }
#memo-side fieldset.ms-on { background: rgba(255,246,226,.42); }
/* Genes overlay: black translucent column at the left of the plot, neon green type, DNA twists with hover cards. */
#gene-toggle { position: fixed; top: 12px; left: 322px; z-index: 99; width: 40px; height: 44px; padding: 0; border-radius: 8px; cursor: pointer;
  background: rgba(10,14,10,.82); border: 1px solid #2f6b26; box-shadow: 0 2px 8px rgba(0,0,0,.35); display: flex; align-items: center; justify-content: center; }
body:not(.ms-open) #gene-toggle { left: 118px; top: 10px; }
#gene-toggle svg path { fill: none; stroke: #6f8f68; stroke-width: 2.4; stroke-linecap: round; }
#gene-toggle svg path.r { stroke-width: 1.8; }
#gene-toggle:hover svg path, body.genes-on #gene-toggle svg path { stroke: #39ff14; filter: drop-shadow(0 0 3px rgba(57,255,20,.8)); }
body.genes-on #gene-toggle { border-color: #39ff14; box-shadow: 0 0 10px rgba(57,255,20,.45); }
#gene-col { display: none; position: absolute; z-index: 40; background: rgba(0,0,0,.74); border-right: 1px solid rgba(57,255,20,.45);
  box-shadow: 4px 0 14px rgba(0,0,0,.35); font-family: Menlo, Consolas, "Courier New", monospace; color: #39ff14; }
body.genes-on #gene-col { display: block; }
#gene-col canvas.gene-rain { position: absolute; left: 0; top: 0; opacity: .16; pointer-events: none; }
#gene-col svg.gene-lines { position: absolute; left: 0; top: 0; pointer-events: none; overflow: visible; }
#gene-col svg.gene-lines line.rng { stroke: #39ff14; stroke-width: 1.3; opacity: .75; }
#gene-col svg.gene-lines line.lead { stroke: #39ff14; stroke-width: .6; opacity: .35; }
#gene-col .ghead { position: absolute; left: 8px; top: 2px; right: 6px; font-size: 10px; font-weight: bold; letter-spacing: .08em; text-shadow: 0 0 4px rgba(57,255,20,.7); }
#gene-col .ghead span { font-weight: normal; letter-spacing: 0; color: #9be88f; margin-left: 4px; }
#gene-col .glab { position: absolute; left: 136px; height: 12px; line-height: 12px; font-size: 10.5px; color: #8dff7a; white-space: nowrap;
  text-shadow: 0 0 3px rgba(57,255,20,.55); pointer-events: none; }
#gene-col .gund { position: absolute; left: 8px; right: 8px; bottom: 4px; font-size: 9.5px; color: #7fcf74; }
#dna-twist .s1, #dna-twist .s2, #dna-twist .rung { fill: none; stroke: #39ff14; stroke-width: 1.6; stroke-linecap: round; }
#dna-twist .s2 { stroke: #b6ff9e; }
#dna-twist .rung { stroke-width: 1; opacity: .8; }
#gene-col .gx { position: absolute; width: 10px; height: 16px; cursor: help; outline: none; }
#gene-col .gx > svg { display: block; filter: drop-shadow(0 0 2px rgba(57,255,20,.9)); }
#gene-col .gx:hover > svg, #gene-col .gx:focus > svg { transform: scale(1.5); filter: drop-shadow(0 0 4px #39ff14); }
#gene-col .gcard { display: none; position: absolute; top: -8px; width: 400px; padding: 10px 12px; z-index: 60; background: rgba(2,10,2,.96);
  border: 1px solid #39ff14; border-radius: 6px; box-shadow: 0 0 16px rgba(57,255,20,.35); color: #d6ffcf; font: 12px/1.35 Arial, Helvetica, sans-serif; }
#gene-col .gx.up .gcard { top: auto; bottom: -8px; }
#gene-col .gx:hover .gcard, #gene-col .gx:focus .gcard, #gene-col .gx:focus-within .gcard { display: block; }
#gene-col .gcard .gid { font: 10px Menlo, Consolas, monospace; color: #39ff14; letter-spacing: .08em; }
#gene-col .gcard .gname { font: bold 14px Menlo, Consolas, monospace; color: #8dff7a; margin: 2px 0 6px; text-shadow: 0 0 4px rgba(57,255,20,.5); }
#gene-col .gcard table { border-collapse: collapse; width: 100%; }
#gene-col .gcard td { padding: 3px 0; vertical-align: top; color: #e6ffe0 !important; font: 13px/1.4 Arial, Helvetica, sans-serif !important; }
#gene-col .gcard td.k { width: 82px; padding-right: 10px; font: 9.5px/1.3 Menlo, Consolas, monospace !important; text-transform: uppercase; color: #5fd04f !important; padding-top: 5px; }
#gene-col .gcard ul.gsrc { margin: 6px 0 0; padding: 6px 0 0 14px; border-top: 1px dashed rgba(57,255,20,.35); font-size: 11px; }
#gene-col .gcard ul.gsrc a { color: #9bff8a; }
/* A card that is searched and showing results points at the plot: a triangle in the card's colour, drawn outside the scrolling panel. */
#ms-arrows { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 101; pointer-events: none; }
#ms-arrows i { position: fixed; width: 0; height: 0; border-style: solid; border-color: transparent; border-right-width: 0; filter: drop-shadow(1px 1px 1px rgba(40,25,10,.35)); }
body:not(.ms-open) #ms-arrows, html.mobile #ms-arrows { display: none; }
#memo-side input[type=text]::placeholder { color: #a08a6c; font-style: normal; }
#memo-side input[type=text]:focus, #memo-side select:focus { outline: none; border-color: #6b3f1f; background: #fffaf0; }
#memo-side a.ms-hits, #memo-side a.ms-hits:link, #memo-side a.ms-hits:visited { display: inline-block; margin-top: 5px; font-size: 11px; color: #5a2e12; text-decoration: none; }
#memo-side .ms-opts label { display: flex; align-items: center; gap: 6px; margin-top: 5px; color: #4a3420; font-size: 11px; }
#memo-side .ms-opts label span { width: 70px; flex: none; }
#memo-side .ms-opts select { flex: 1; }
#memo-side .ms-actions { display: flex; gap: 8px; align-items: center; margin: 12px 0 14px; }
#memo-side .ms-go { flex: 1; padding: 7px; border: 0; border-radius: 5px; background: #8b4a2b; color: #fff; font: bold 13px Arial, Helvetica, sans-serif; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,220,190,.35), 0 1px 2px rgba(0,0,0,.35); }
#memo-side .ms-go:hover { background: #9c5634; }
#memo-side a, #memo-side a:link, #memo-side a:visited, #memo-side a:hover { color: #6b2f12; font-size: 12px; text-decoration: none; font-family: Arial, Helvetica, sans-serif; }
#memo-side a:hover { text-decoration: underline; }
#memo-side details { border-top: 1px solid rgba(110,80,50,.45); padding-top: 8px; margin-top: 6px; font-size: 12px; color: #3a2a1a; }
#memo-side summary { cursor: pointer; color: #3a2412; font-weight: bold; margin-bottom: 6px; }
#memo-side .ms-links { border-top: 1px solid rgba(110,80,50,.45); margin-top: 10px; padding-top: 8px; line-height: 1.9; }

/* ---- results list under the plot, in earth tones ---- */
#results { background: #e6d3ad !important; color: #2c1f12 !important; }
#results h2 { color: #6b3f1f !important; }
#results a, #results a:link, #results a:visited { color: #8b3a16 !important; }
#results .meta, #results .times { color: #6b5238 !important; }
#results table.hits-table { background: #f3e7cd !important; }
#results .hits-table th { background: #8a6a45 !important; color: #fff6e6; }
#results .hits-table td { border-top-color: #d8c19a !important; }
#results .hits-table td.snip { color: #5a4630 !important; }
#results mark { background: #e8b04a !important; color: #2c1f12; }
#results code { background: #f3e7cd !important; border-color: #b89a6e !important; color: #2c1f12; }
#results .suggest { background: #dcc396 !important; }

/* ---- plain-English request box ---- */
#memo-side .ms-ask { margin: 0 0 6px; }
#memo-side .ms-ask label { display: block; font-weight: bold; color: #3a2412; font-size: 12px; margin-bottom: 4px; }
#memo-side .ms-ask textarea, #memo-side .ms-expr textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 64px; background: rgba(255,250,240,.9); color: #2c1f12;
  border: 1px solid #9a7a52; border-radius: 5px; padding: 6px 7px; font: 13px/1.35 Arial, Helvetica, sans-serif; }
#memo-side .ms-ask textarea:focus, #memo-side .ms-expr textarea:focus { outline: none; border-color: #6b3f1f; background: #fffaf0; }
#memo-side .ms-ask .ms-go { width: 100%; margin-top: 6px; }
#memo-side .ms-read { margin-top: 8px; padding: 7px 8px; background: rgba(255,246,226,.35); border: 1px solid rgba(110,80,50,.45); border-radius: 6px; }
#memo-side .ms-readhead { display: block; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: #6b3f1f; font-weight: bold; margin-bottom: 4px; }
#memo-side .chip { display: inline-block; margin: 0 4px 4px 0; padding: 2px 8px; border-radius: 12px; font-size: 11px; background: #3a2412; color: #fff3df; }
#memo-side .chip-age { background: #6b3f1f; } #memo-side .chip-place { background: #4a5a2a; } #memo-side .chip-method { background: #5a4430; }
#memo-side .chip a.x, #memo-side .chip a.x:link, #memo-side .chip a.x:visited { color: #f3c99a; margin-left: 5px; font-size: 12px; text-decoration: none; }
#memo-side .ms-plain { font-size: 11px; color: #5a3a1e; margin-top: 3px; }
#memo-side .ms-or { text-align: center; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: #6b3f1f; margin: 8px 0 6px; }
/* Search 1: the sentence box and the expression it was read as, one card. { __ and __ and [ __ or __ ] but not __ } */
#memo-side fieldset.ms-expr { position: relative; padding-bottom: 9px; }
#memo-side .ms-expr label { display: block; font-weight: bold; color: #3a2412; font-size: 12px; margin: 2px 0 4px; }
#memo-side .ms-expr .ms-go { width: 100%; margin-top: 6px; }
#memo-side .ms-default { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#memo-side .ms-x { margin-top: 9px; padding-top: 7px; border-top: 1px dashed rgba(110,80,50,.6); }
#memo-side .xl { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 4px; }
#memo-side .xl .xs, #memo-side .xl .xg, #memo-side .xl .xn { display: contents; }
#memo-side .xl .nb { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; max-width: 100%; }
#memo-side .xl i { font-style: normal; font-size: 11px; color: #6b3f1f; }
#memo-side .xl i.but { font-weight: bold; color: var(--xc, #8c1426); }
#memo-side .xl b { font: bold 17px/1 Georgia, 'Times New Roman', serif; color: var(--xc, #8c1426); }
#memo-side .xl b.cb { font-size: 22px; }
#memo-side .xl input[type=text] { flex: none; max-width: 100%; padding: 3px 4px 2px; border: 0; border-bottom: 2px solid var(--xc, #8c1426); border-radius: 3px 3px 0 0; background: rgba(255,250,240,.72); }
#memo-side .xl input[type=text]:not(.ms-filled) { opacity: .7; background: rgba(255,250,240,.45); }
#memo-side .xl input[type=text]:focus { background: #fffaf0; opacity: 1; }
#memo-side .xl .xadd { border: 1px dashed #9a7a52; background: transparent; color: #6b3f1f; font: 11px Arial, Helvetica, sans-serif; border-radius: 4px; cursor: pointer; padding: 2px 5px; }
#memo-side .xl .xadd:hover { background: rgba(255,250,240,.5); }
#memo-side .ms-x .ms-hits { display: block; }
#memo-side .ms-row.ms-stack { flex-direction: column; }
#memo-side .ms-row.ms-stack > * { width: 100%; flex: none; }

/* ================= phone layout ================= */
#m-bar, #m-strip, #m-sheet { display: none; }
@media (max-width: 820px) {
  html, body { -webkit-text-size-adjust: 100%; }
  body.ms-open #memo-plot, body.ms-open #results, #memo-plot, #results { margin-left: 0 !important; }
  #ms-show { display: none !important; }
  #m-bar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 90; padding: 8px 10px;
    background: #c4a374 url(../img/sandstone.jpg); border-bottom: 3px solid #8a6a45; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
  #m-bar .m-open { flex: none; padding: 9px 14px; border: 0; border-radius: 7px; background: #8b4a2b; color: #fff; font: bold 15px Arial, Helvetica, sans-serif; }
  #m-bar .m-title { font: 11px/1.25 Arial, Helvetica, sans-serif; color: #4a3420; text-transform: uppercase; letter-spacing: .04em; }
  #m-bar .m-title b { display: block; color: #3a2412; }
  #m-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 10px; background: #e6d3ad; border-bottom: 1px solid #8a6a45; font: 12px Arial, Helvetica, sans-serif; color: #2c1f12; }
  #m-strip .m-key { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 13px; background: #f3e7cd; }
  #m-strip .m-key i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
  #m-strip .m-key b { color: #8b3a16; }
  #m-strip .m-filter { background: #dcc396; color: #2c1f12; }
  #m-strip .m-hint { color: #6b5238; }

  /* the panel becomes a full-screen sheet */
  #memo-side { width: 100%; border-right: 0; padding: 14px 14px 40px; font-size: 15px; }
  #memo-side .ms-title { font-size: 17px; }
  #memo-side .ms-hide { font-size: 20px; padding: 4px 14px; }
  #memo-side .ms-ask textarea, #memo-side .ms-expr textarea { font-size: 16px; min-height: 90px; }
  #memo-side .xl input[type=text] { font-size: 16px; padding: 6px 6px; }
  #memo-side .xl i { font-size: 13px; }
  #memo-side input[type=text], #memo-side select { font-size: 16px; padding: 8px 7px; }
  #memo-side .ms-row { flex-wrap: wrap; }
  #memo-side .ms-row > * { flex: 1 1 100%; width: 100%; }
  #memo-side .ms-go { padding: 12px; font-size: 16px; }
  #memo-side .chip { font-size: 13px; padding: 4px 10px; }
  #memo-side .chip a.x { font-size: 16px; }
  #memo-side .ms-opts label { font-size: 14px; }

  /* plot: scaled to the screen by script; thicker marks so they survive the scaling */
  #plot-area .parr { transform: scaleX(1.6); }
  #plot-area .pdia { transform: scale(1.6); }

  /* results list: scroll sideways instead of squeezing */
  #results { overflow-x: auto; padding: 10px !important; font: 14px/1.45 Arial, Helvetica, sans-serif !important; }
  #results h2, #results h3 { font-family: Arial, Helvetica, sans-serif !important; font-size: 17px !important; }
  #results .explain, #results p { font-size: 13px !important; }
  #results .hits-table { min-width: 720px; }
}
/* touch screens: no hover cards; a tap opens the bottom sheet */
@media (hover: none) {
  a:hover pop { display: none !important; }
  #m-sheet:not([hidden]) { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; max-height: 70vh; overflow-y: auto;
    background: #17171b; color: #e8e8e8; border-top: 3px solid #8a6a45; border-radius: 14px 14px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.7);
    padding: 14px 16px 20px; font: 14px/1.45 Arial, Helvetica, sans-serif; }
  #m-sheet .m-close { position: absolute; right: 10px; top: 8px; border: 0; background: none; color: #bbb; font-size: 28px; line-height: 1; }
  #m-sheet .m-body { border-left: 5px solid #999; padding-left: 10px; margin-right: 24px; }
  #m-sheet .tip-head { display: flex; align-items: flex-start; margin-bottom: 8px; }
  #m-sheet .tip-title { flex: 1; font-size: 17px; font-weight: bold; color: #fff; padding-right: 10px; }
  #m-sheet .globe { flex: none; position: relative; display: block; width: 68px; height: 60px; background: url(../globe.jpg) no-repeat; border-radius: 4px; border: 1px solid #555; }
  #m-sheet .globe i { position: absolute; width: 5px; height: 5px; background: #f0f; }
  #m-sheet table { border-collapse: collapse; width: 100%; }
  #m-sheet td { padding: 3px 0; vertical-align: top; font-size: 14px; color: #e8e8e8; }
  #m-sheet td.k { width: 96px; color: #9a9a9a; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding-top: 5px; }
  #m-sheet .m-go { display: block; margin-top: 14px; padding: 12px; border-radius: 8px; background: #8b4a2b; color: #fff !important; text-align: center;
    font: bold 16px Arial, Helvetica, sans-serif; text-decoration: none; }
}
@media (max-width: 820px) {
  #results h3 { font-size: 13px !important; font-weight: normal !important; line-height: 1.4 !important; color: #5a4630 !important; }
  #results .meta { font-size: 13px !important; }
}
#results .hits-table td { color: #2c1f12; }

/* Clear search: a bordered button beside Search */
#memo-side .ms-actions .ms-clear { flex: 0 0 auto; padding: 7px 10px; border: 1px solid #8b4a2b; border-radius: 5px; color: #8b4a2b; background: #fff; font: bold 13px Arial, Helvetica, sans-serif; text-decoration: none; text-align: center; }
#memo-side .ms-actions .ms-clear:hover { background: #f6ece6; }

/* Up to ten searches: every card has a color picker, a Text / Form switch and a remove button in its head */
#memo-side fieldset.ms-card { position: relative; padding-top: 4px; }
#memo-side form { position: relative; }
#memo-side .ms-default { position: absolute; left: -9999px; top: 0; }
#memo-side legend input[type=color] { width: 18px; height: 18px; padding: 0; margin: 0 6px 0 0; border: 1px solid rgba(60,40,20,.55); border-radius: 50%;
  vertical-align: -4px; cursor: pointer; background: none; -webkit-appearance: none; appearance: none; overflow: hidden; }
#memo-side legend input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
#memo-side legend input[type=color]::-webkit-color-swatch { border: none; border-radius: 50%; }
#memo-side legend input[type=color]::-moz-color-swatch { border: none; border-radius: 50%; }
#memo-side .ms-tools { position: absolute; top: -9px; right: 6px; display: flex; gap: 4px; }
#memo-side .ms-tools button { font: bold 10px Arial, Helvetica, sans-serif; color: #4a3420; background: #f3e6cc; border: 1px solid rgba(110,80,50,.55);
  border-radius: 9px; padding: 1px 2px; cursor: pointer; line-height: 14px; }
#memo-side .ms-tg b { display: inline-block; padding: 0 5px; border-radius: 7px; font-weight: bold; text-transform: uppercase; letter-spacing: .04em; opacity: .55; }
#memo-side .ms-tg b.on { background: var(--xc, #8c1426); color: #fff; opacity: 1; }
#memo-side .ms-rm { width: 18px; padding: 1px 0 !important; font-size: 13px !important; }
#memo-side .ms-rm:hover { background: #8c1426; color: #fff; }
#memo-side .ms-all { display: block; margin-top: 5px; font-size: 11px; color: #4a3420; cursor: pointer; }
#memo-side .ms-all input { vertical-align: -2px; margin: 0 3px 0 0; }
#memo-side .ms-all span { opacity: .65; }
#memo-side .ms-addrow { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 2px 0 12px; font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase; color: #6b3f1f; }
#memo-side .ms-addrow button { font: bold 12px Arial, Helvetica, sans-serif; color: #8b4a2b; background: #fff8ec; border: 1px dashed #8b4a2b;
  border-radius: 5px; padding: 4px 10px; cursor: pointer; }
#memo-side .ms-addrow button:hover { background: #f6ece6; border-style: solid; }
