/* Section sheets (gracepress-ui 1.10.0, 2026-11-29): the "Browse our sections" tab down the right edge, and the paper sheets that fold out
   from it, each laid a little over the one before, as Tablet Magazine does it, in ChristP2P's paper look. Plain light-mode colours (the
   Dark Mode plugin turns the whole page). */
:root { --gps-paper: #f6f1e6; --gps-paper-edge: #ebe3d2; --gps-ink: var(--nb-ink, #211d18); --gps-muted: #6b645a; --gps-red: var(--nb-red, #a8281e); --gps-rule: rgba(33, 29, 24, .22); }

/* the tab */
.gp-sheets-tab { position: fixed; right: 0; top: 50%; z-index: 99980; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 9px 16px; transform: translateY(-50%); border: 1px solid var(--gps-rule); border-right: 0; border-radius: 12px 0 0 12px; background: var(--gps-paper); color: var(--gps-red); box-shadow: -6px 0 18px rgba(0, 0, 0, .12); cursor: pointer; transition: padding .2s, box-shadow .2s; }
.gp-sheets-tab span { writing-mode: vertical-rl; transform: rotate(180deg); font: 700 12px/1 Georgia, 'Times New Roman', serif; letter-spacing: .24em; text-transform: uppercase; }
.gp-sheets-tab svg { width: 18px; height: 18px; }
.gp-sheets-tab:hover, .gp-sheets-tab:focus-visible { padding-right: 14px; box-shadow: -10px 0 24px rgba(0, 0, 0, .18); outline: none; }
body.gp-sheets-open .gp-sheets-tab { visibility: hidden; }

/* the fold-out */
/* (1.10.2; Jason: "The fit, top right and bottom, could use a little help… a little gap on the left") over the whole site, its top bar and icon
   rail too, just under WordPress's admin bar when it shows */
.gp-sheets { position: fixed; inset: var(--wp-admin--admin-bar--height, 0px) 0 0 0; z-index: 99990; background: rgba(28, 24, 18, .34); opacity: 0; transition: opacity .35s; }
.gp-sheets[hidden] { display: block; visibility: hidden; pointer-events: none; }
.gp-sheets.is-open { opacity: 1; }
body.gp-sheets-open { overflow: hidden; }
/* (1.10.3; Jason: "that blank space on the left is where I need to click to close that. So we need to leave that.") */
.gp-sheets-row { position: absolute; top: 0; bottom: 0; right: 0; left: clamp(44px, 6vw, 96px); display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior: contain; scroll-snap-type: x proximity; scrollbar-width: thin; outline: none; }
.gp-sheets-wait { margin: auto; color: #fff; font: italic 18px Georgia, serif; }

/* each sheet: a page of paper, lying a little over the one before it */
.gp-sheet { position: relative; z-index: calc(1 + var(--i, 0)); flex: 0 0 min(372px, 86vw); height: 100%; margin-left: -20px; padding: 34px 30px 40px 40px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-align: start; box-sizing: border-box;
  background: radial-gradient(rgba(60, 45, 20, .035) 1px, transparent 1.2px) 0 0 / 4px 4px, linear-gradient(90deg, var(--gps-paper-edge), var(--gps-paper) 26px) var(--gps-paper);
  color: var(--gps-ink); box-shadow: -12px 0 26px -10px rgba(0, 0, 0, .42); transform: translateX(105vw); transition: transform .62s cubic-bezier(.18, .84, .24, 1) calc(var(--i, 0) * 60ms); }
.gp-sheet:first-child { margin-left: 0; }
.gp-sheets.is-open .gp-sheet { transform: none; }
.gp-sheet a { color: inherit; text-decoration: none; }
.gp-sheet a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* (1.10.1) every head the same height, two lines' room, its words at the bottom, so all the sheets' stories start level */
.gp-sheet-head { display: flex; align-items: flex-end; justify-content: center; min-height: 2.1em; margin: 0 0 22px; padding-bottom: 14px; border-bottom: 1px solid var(--gps-ink); font: 900 clamp(24px, 2.1vw, 31px)/1.02 Georgia, 'Times New Roman', serif; text-align: center; }
.gp-sheet-head a { letter-spacing: -.015em; text-transform: uppercase; }
.gp-sheet h3 { margin: 14px 0 8px; font: 400 27px/1.12 Georgia, 'Times New Roman', serif; text-align: center; }
.gp-sheet h4 { margin: 8px 0 4px; font: 400 18px/1.2 Georgia, 'Times New Roman', serif; }
.gp-sheet-dek { margin: 0 0 8px; color: var(--gps-muted); font-size: 15px; line-height: 1.42; }
.gp-sheet-lead .gp-sheet-dek { text-align: center; }
.gp-sheet-by { margin: 0; font: 700 10.5px/1.3 Georgia, serif; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
.gp-sheet-pic { display: block; }
.gp-sheet-pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; filter: saturate(.85) sepia(.08); }
.gp-sheet-lead { padding-bottom: 22px; border-bottom: 1px solid var(--gps-rule); }
.gp-sheet-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; padding: 18px 0; border-bottom: 1px solid var(--gps-rule); }
.gp-sheet-pair article + article { padding-left: 18px; border-left: 1px solid var(--gps-rule); }
.gp-sheet-pair h4 { font-size: 16px; }
.gp-sheet-line { padding: 14px 0; border-bottom: 1px solid var(--gps-rule); }
.gp-sheet-more { display: inline-block; margin-top: 18px; color: var(--gps-red) !important; font: 600 15px Georgia, serif; text-decoration: underline !important; text-underline-offset: 3px; }

/* close */
.gp-sheets-close { position: absolute; top: 14px; right: 18px; z-index: 500; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--gps-rule); border-radius: 50%; background: var(--gps-paper); color: var(--gps-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); cursor: pointer; }
.gp-sheets-close svg { width: 20px; height: 20px; }
.gp-sheets-close:hover { background: #fff; }

@media (max-width: 640px) {
  .gp-sheets-tab { padding: 14px 7px 12px; }
  .gp-sheets-row { left: 14px; scroll-snap-type: x mandatory; }
  .gp-sheet { padding: 28px 22px 34px 30px; }
}
@media (prefers-reduced-motion: reduce) { .gp-sheet, .gp-sheets { transition: none; } }

/* (1.11.0, 2026-11-29; Jason: "Can we make it fold out like… a trifold or a pentafold brochure… a piece of paper that's been folded up 4 or 5
   times, and it accordions out") one long strip of paper, creased between the sections: folded, each panel stands on its crease, turned
   one way then the other like an accordion; opened, the panels swing flat one after another. The creases stay faintly, a valley then a
   ridge. */
.gp-sheets-row { perspective: 2400px; perspective-origin: 85% 50%; }
.gp-sheet { margin-left: 0; box-shadow: none; transform-origin: 0 50%; transform: translateX(calc(40vw - var(--i, 0) * 4px)) rotateY(calc(var(--fold, 1) * 84deg)); opacity: 0;
  transition: transform .75s cubic-bezier(.18, .84, .24, 1) calc(var(--i, 0) * 75ms), opacity .35s ease calc(var(--i, 0) * 75ms);
  background: linear-gradient(90deg, rgba(60, 45, 20, .13), rgba(60, 45, 20, 0) 30px), radial-gradient(rgba(60, 45, 20, .035) 1px, transparent 1.2px) 0 0 / 4px 4px, var(--gps-paper); }
.gp-sheet:nth-child(even) { --fold: -1; background: linear-gradient(90deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 30px), radial-gradient(rgba(60, 45, 20, .035) 1px, transparent 1.2px) 0 0 / 4px 4px, #f2ecdf; }
.gp-sheet:first-child { box-shadow: -14px 0 30px -12px rgba(0, 0, 0, .45); }
.gp-sheet:last-child { box-shadow: 14px 0 30px -12px rgba(0, 0, 0, .35); }
.gp-sheets.is-open .gp-sheet { transform: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gp-sheet { transform: none; } }

/* (1.12.1, 2026-11-29; Jason: "it was better before… put the previous effect back, leave the news sections as they are… We don't need that
   link… It's not obvious how to close it… make that space flash, kind of pulse… if you scroll up or scroll down with the mouse wheel, it
   should immediately fold itself back.") The 1.11.0 accordion fold is back. Each section shows only what fits on the screen, no scroll bar:
   its head, the lead story and the two beside it. The strip of space on the left, where a click closes the fold-out, pulses. */
.gp-sheet { display: flex; flex-direction: column; overflow: hidden; padding: 26px 26px 22px 30px; }
.gp-sheet-head { flex: none; margin-bottom: 14px; padding-bottom: 10px; font-size: clamp(20px, 3.2vh, 31px); }
.gp-sheet-lead { flex: none; padding-bottom: 14px; }
.gp-sheet-lead .gp-sheet-pic img { aspect-ratio: 16 / 9; max-height: 26vh; }
.gp-sheet h3 { margin: 10px 0 6px; font-size: clamp(18px, 2.8vh, 27px); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gp-sheet-lead .gp-sheet-dek { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: clamp(13px, 1.75vh, 15px); }
.gp-sheet-pair { flex: 0 1 auto; min-height: 0; overflow: hidden; padding: 14px 0; }
.gp-sheet-pair .gp-sheet-pic img { max-height: 13vh; }
.gp-sheet-pair h4 { font-size: clamp(14px, 2vh, 16px); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.gp-sheet-line, .gp-sheet-more { display: none; }
/* the close strip: the space left of the sheets pulses, with an x in it */
.gp-sheets-shut { position: absolute; top: 0; bottom: 0; left: 0; width: clamp(44px, 6vw, 96px); display: grid; place-items: center; padding: 0; border: 0; background: rgba(246, 241, 230, .14); color: #fff; cursor: pointer; animation: gp-sheets-pulse 1.6s ease-in-out infinite; }
.gp-sheets-shut svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5)); }
.gp-sheets-shut:hover, .gp-sheets-shut:focus-visible { background: rgba(246, 241, 230, .4); animation: none; outline: none; }
@keyframes gp-sheets-pulse { 0%, 100% { background: rgba(246, 241, 230, .08); } 50% { background: rgba(246, 241, 230, .42); } }
@media (max-width: 640px) { .gp-sheets-shut { width: 14px; } .gp-sheets-shut svg { display: none; } }
@media (prefers-reduced-motion: reduce) { .gp-sheets-shut { animation: none; background: rgba(246, 241, 230, .3); } }
