/* Go-zen print stylesheet: enqueued with media="print" so it does not block screen render.
   Long-note surfaces (table / code / hr / lists) and hidden screen chrome. */

.site::before,
.site-header,
.site-nav,
.site-footer,
.skip-link,
.back-top,
.nav-toggle,
.no-print,
.related-notes,
.entry-back,
.entry-footer,
.about-waitlist,
.legal-draft-banner,
.shelf-nav,
.search-form,
.search-refine,
.search-entry,
.waitlist-panel,
.waitlist-form,
.waitlist-done,
.waitlist-error,
.product-showcase,
.product-chooser,
.session-storyboard,
.material-bleed::before,
.material-bleed::after,
.material-bleed__wood,
.material-bleed__field,
.product-stage__plinth {
  display: none !important;
}

/* 3.1: scroll-driven reveals and the hero entrance never leave print half-faded */
[data-reveal],
.hero-copy > *,
.hero-visual__board,
.hero-visual__phone {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  translate: none !important;
}

/* 3.1.3: the app goban keeps its kaya lift and frame on paper */
.goban {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  box-shadow: none;
}

@page {
  margin: 1.6cm 1.5cm 2cm;
}

body {
  background: #fff;
  color: #000;
  /* Prefer self-hosted stacks (fonts.css @font-face) over anonymous Times */
  font-family: var(--font-body), "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 11.5pt;
  line-height: 1.55;
}

h1, h2, h3, .display, .hero-tagline {
  font-family: var(--font-display), "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

.site-main,
.site-main--narrow,
.site-main--reading {
  min-height: 0;
  padding-block: 0;
}

.wrap {
  max-width: none;
  padding-inline: 0;
}

.entry-header {
  break-after: avoid-page;
  page-break-after: avoid;
}

.entry-header h1 {
  font-size: 1.65rem;
  margin-bottom: 0.4rem;
  color: #000;
}

.entry-header .meta {
  color: #333;
}

.section-rule {
  border-color: #bbb;
}

.entry-content,
.entry-page .entry-content,
.entry-reading .entry-content {
  max-width: none;
  color: #000;
  font-size: 11.5pt;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  break-after: avoid-page;
  page-break-after: avoid;
  color: #000;
}

.entry-content p,
.entry-content li {
  orphans: 3;
  widows: 3;
}

/* Lists: keep marker ink readable; quiet nested indent */
.entry-content ul,
.entry-content ol {
  padding-left: 1.25rem;
  margin: 0 0 1.1em;
  line-height: 1.55;
}

.entry-content li + li {
  margin-top: 0.35rem;
}

.entry-content li::marker {
  color: #444;
}

.entry-content ul ul,
.entry-content ol ol,
.entry-content ul ol,
.entry-content ol ul {
  margin: 0.35em 0 0.2em;
}

/* hr / separator: hairline or dots; no screen wash */
.entry-content hr,
.entry-content .wp-block-separator {
  display: block;
  width: 100%;
  max-width: 4rem;
  height: 0;
  margin: 1.6rem auto;
  border: 0;
  border-top: 1px solid #999;
  background: transparent;
  break-inside: avoid;
  page-break-inside: avoid;
}

.entry-content .wp-block-separator.is-style-wide {
  max-width: 100%;
}

.entry-content .wp-block-separator.is-style-dots {
  max-width: none;
  height: auto;
  border: 0;
  text-align: center;
  color: #555;
}

.entry-content .wp-block-separator.is-style-dots::before {
  content: "· · ·";
  letter-spacing: 0.4em;
  font-family: var(--font-display), "Shippori Mincho", serif;
  font-size: 0.9rem;
}

/* Inline code / kbd: light chip, ink economy (no dark field tokens) */
.entry-content code,
.entry-content kbd,
.entry-content samp {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.85em;
  font-weight: 500;
  color: #000;
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 2px;
  padding: 0.05em 0.3em;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.entry-content kbd {
  border-bottom-width: 2px;
}

/* Pre / code blocks: pale field, hairline, avoid split mid-block */
.entry-content pre,
.entry-content .wp-block-code,
.entry-content .wp-block-preformatted {
  margin: 1.2rem 0;
  padding: 0.7rem 0.85rem;
  overflow: visible;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.78rem;
  line-height: 1.45;
  color: #000;
  background: #f4f4f4;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-shadow: none;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.entry-content pre code,
.entry-content .wp-block-code code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: inherit;
  font-weight: 400;
  color: inherit;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Tables: editorial hairline rows; keep header with body */
.entry-content table,
.entry-content .wp-block-table table {
  width: 100%;
  margin: 1.2rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
  line-height: 1.4;
  color: #111;
  break-inside: avoid;
  page-break-inside: avoid;
}

.entry-content .wp-block-table {
  margin: 1.2rem 0;
  overflow: visible;
}

.entry-content .wp-block-table table {
  margin: 0;
}

.entry-content th,
.entry-content td,
.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
  padding: 0.4rem 0.55rem 0.4rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #bbb;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
}

.entry-content thead th,
.entry-content .wp-block-table thead th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #000;
  border-bottom-color: #666;
}

.entry-content tbody tr:last-child th,
.entry-content tbody tr:last-child td,
.entry-content .wp-block-table tbody tr:last-child th,
.entry-content .wp-block-table tbody tr:last-child td {
  border-bottom-color: #666;
}

.entry-content .wp-block-table figcaption {
  margin-top: 0.45rem;
  font-size: 0.78rem;
  color: #444;
}

.entry-content blockquote,
.entry-content .wp-block-quote,
.entry-content .wp-block-pullquote,
.entry-content figure,
.entry-content .wp-block-image,
.entry-content img {
  break-inside: avoid;
  page-break-inside: avoid;
}

.entry-content blockquote cite,
.entry-content figcaption,
.entry-content .wp-element-caption {
  color: #444;
  font-size: 0.85em;
}

.entry-content img {
  max-width: 100% !important;
  height: auto !important;
}

/* Absolute URLs outside this host only (skip local / relative noise). */
.entry-content a[href^="http"]::after,
.entry-reading .entry-content a[href^="http"]::after {
  content: " (" attr(href) ")";
  font-size: 0.8em;
  font-family: var(--font-mono, ui-monospace, monospace);
  color: #555;
  word-break: break-all;
}

.entry-content a[href^="http://localhost"]::after,
.entry-content a[href^="https://localhost"]::after,
.entry-content a[href^="#"]::after,
.entry-content a[href^="javascript"]::after,
.entry-reading .entry-content a[href^="http://localhost"]::after,
.entry-reading .entry-content a[href^="https://localhost"]::after,
.entry-reading .entry-content a[href^="#"]::after {
  content: none;
}

a {
  color: inherit;
  text-decoration: underline;
}

.material-bleed {
  background: #eee !important;
  color: #000 !important;
  -webkit-print-color-adjust: economy;
  print-color-adjust: economy;
}

/* Quiet wordmark so long notes keep provenance without chrome. */
.site-main--reading .entry-header::before {
  content: "GoZen";
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #666;
}

/* v2.17: never skip paint for print */
.site-main--front #practice,
.site-main--front #notes,
.site-main--front #product,
.site-main--front #download {
  content-visibility: visible;
  contain-intrinsic-size: none;
}
