/* Oshi Trip — shared styles. System fonts, mobile-first, no external assets. */
:root {
  --ink: #1f2937;
  --muted: #5b6472;
  --accent: #1d4ed8;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --line: #d9dee6;
  --maxw: 44rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 1.05rem;
}
.site-header, .site-footer, main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.1rem;
}
.site-header { padding-top: 1.4rem; padding-bottom: 0.6rem; border-bottom: 2px dotted var(--line); }
.site-name { font-weight: 700; font-size: 1.15rem; }
.site-name a { color: var(--ink); text-decoration: none; }
.site-footer {
  padding-top: 1rem; padding-bottom: 2rem;
  color: var(--muted); font-size: 0.9rem;
  border-top: 2px dotted var(--line); margin-top: 2.5rem;
}
h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.6rem 0 1rem; }
h2 { font-size: 1.35rem; line-height: 1.3; margin: 2.2rem 0 0.7rem; padding-bottom: 0.35rem; border-bottom: 2px dotted var(--line); }
h3 { font-size: 1.15rem; line-height: 1.35; margin: 1.9rem 0 0.6rem; }
p { margin: 0.8rem 0; }
ul { margin: 0.8rem 0; padding-left: 1.3rem; }
li { margin: 0.45rem 0; }
a { color: var(--accent); }
strong { font-weight: 700; }
.lede { color: var(--muted); font-size: 1.1rem; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  min-width: 36rem;
}
th, td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
th { background: var(--soft); font-weight: 700; }
tbody tr:nth-child(even) td { background: #fbfcfd; }
.article-card {
  display: block;
  border: 2px dotted var(--line);
  border-radius: 0.6rem;
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  text-decoration: none;
  color: var(--ink);
  background: var(--soft);
}
.article-card:hover { border-color: var(--accent); }
h3.card-title { margin: 0; display: block; }
.article-card .card-title { font-weight: 700; font-size: 1.15rem; color: var(--accent); }
.article-card .card-desc { color: var(--muted); margin-top: 0.3rem; }
img.pin { max-width: 100%; height: auto; border-radius: 0.5rem; }
@media (max-width: 480px) {
  body { font-size: 1rem; }
  h1 { font-size: 1.55rem; }
  table { font-size: 0.88rem; }
}
blockquote {
  margin: 1rem 0;
  padding: 0.7rem 1rem;
  border-left: 3px solid var(--line);
  background: var(--soft);
  color: var(--muted);
  font-size: 0.98rem;
}

/* Pixel-art brand icons (v0 samples) — keep the pixels crisp at small display sizes. */
.icon-pixel { image-rendering: pixelated; }
.site-name .icon-pixel { width: 1.7rem; height: 1.7rem; vertical-align: -0.45rem; margin-right: 0.4rem; }
.hero-icon { width: 3.2rem; height: 3.2rem; vertical-align: -0.65rem; margin-right: 0.5rem; }
.card-icon { width: 1.55rem; height: 1.55rem; display: inline-block; vertical-align: -0.32rem; margin-right: 0.45rem; object-fit: contain; }
.dateline { color: #6b7280; font-size: .86rem; margin: .1rem 0 1rem; letter-spacing: .02em; }
.article-icon { width: 2rem; height: 2rem; vertical-align: -0.35rem; margin-right: 0.45rem; object-fit: contain; }

/* Theme icon strip (home) */
.themes-heading { margin-top: 2.2rem; }
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem 0.6rem; margin: 1rem 0 0.5rem; }
.theme { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; text-align: center; font-size: 0.82rem; line-height: 1.25; }
.theme-icon { width: 52px; height: 52px; object-fit: contain; }
.theme-icon.ticket { width: 44px; height: 44px; }
@media (max-width: 560px) { .themes { grid-template-columns: repeat(3, 1fr); } }

/* Layout with sidebar (added 2026-11-09) */
.wrap {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1.1rem;
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 44rem);
  gap: 2.2rem;
  justify-content: center;
}
.wrap main { max-width: none; margin: 0; padding: 0; }
.sidebar { padding-top: 1.1rem; }
.sidebar nav {
  position: sticky; top: 1rem;
  border: 2px dotted var(--line); border-radius: 10px;
  padding: 0.9rem 1rem 1rem; background: var(--soft);
}
.side-h { font-size: 1rem; margin: 0.9rem 0 0.4rem; border-bottom: none; padding-bottom: 0; }
.side-h:first-child { margin-top: 0; }
.side-list { list-style: none; margin: 0.2rem 0 0.4rem; padding-left: 0; }
.side-list li { margin: 0.3rem 0; }
.side-list a { text-decoration: none; }
.side-list a:hover { text-decoration: underline; }
@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 44rem); gap: 0.8rem; }
  .sidebar { padding-top: 0.7rem; }
  .sidebar nav { position: static; }
}

.counter { display: inline-flex; align-items: center; gap: .45rem; border: 2px dotted #e75480; border-radius: .6rem; padding: .3rem .6rem; background: #fff5f8; margin-top: .8rem; }
.counter img.badge { height: 20px; display: block; }
.counter .cicon { width: 1.4rem; height: 1.4rem; }
.counter .clabel { font-size: .8rem; color: #9d2449; letter-spacing: .04em; }

/* Binder sheet — pixel/dot notebook (preview v3) */
body { background: #a3804f; }
.binder { max-width: 76rem; margin: 0 auto; padding: 1.1rem 1.1rem 0; background: transparent; position: relative; z-index: 2; }
.tabs { display: flex; align-items: flex-end; gap: 5px; padding: 0 0.3rem 0 2.3rem; margin-bottom: -3px; position: relative; z-index: 2; }
.tab {
  background: #e6cb96; color: #4a3b28; text-decoration: none; font-weight: 800; font-size: 0.92rem;
  letter-spacing: 0.02em; padding: 0.5rem 1.05rem 0.6rem;
  border: 3px solid #6f5527; border-bottom: none;
  clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%, 0 7px);
  white-space: nowrap;
}
.tab:nth-child(1) { background: #e9d09e; }
.tab:nth-child(2) { background: #dfc086; padding-top: 0.74rem; }
.tab:nth-child(3) { background: #e6cb96; padding-top: 0.42rem; }
.tab:nth-child(4) { background: #ecd3a4; padding-top: 0.68rem; }
.tab:nth-child(5) { background: #e0c48d; padding-top: 0.48rem; }
.tab:hover { filter: brightness(1.06); }
.tab.active { background: #fffaf0; color: #1f2937; padding-top: 0.9rem; box-shadow: inset 0 5px 0 #e75480; }
.sheet {
  max-width: 76rem; margin: 0 auto 1.6rem; position: relative;
  background-color: #fffaf0;
  background-image: radial-gradient(#e7d6ab 1.3px, transparent 1.4px);
  background-size: 22px 22px;
  border: 3px solid #6f5527;
  box-shadow: 8px 8px 0 rgba(60,42,14,.35);
}
.sheet::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 40px;
  border-right: 2px dashed #d9c491;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='132'%3E%3Crect x='12' y='52' width='16' height='16' fill='%23efe3c2' stroke='%23a98f57' stroke-width='3'/%3E%3Crect x='15' y='55' width='5' height='5' fill='%23c9b183'/%3E%3C/svg%3E");
  background-repeat: repeat-y; background-position: center top;
}
.sheet-head { padding: 1rem 1.1rem 0.4rem 3.6rem; display: flex; align-items: center; }
.sheet .holes { display: none; }
.sheet .wrap { padding-left: 3.2rem; }
.sheet .site-footer { max-width: none; margin-left: 3.2rem; margin-right: 0; border-top: 2px dotted #cbb27f; }
@media (max-width: 900px) {
  .sheet::before { width: 26px; background-size: 26px 132px; }
  .sheet-head { padding-left: 2.4rem; }
  .sheet .wrap { padding-left: 2.2rem; }
  .sheet .site-footer { margin-left: 2.2rem; }
}
@media (max-width: 560px) {
  .tabs { padding-left: 0.5rem; gap: 3px; }
  .tab { flex: 1 1 0; text-align: center; font-size: 0.78rem; letter-spacing: 0; padding-left: 0.15rem; padding-right: 0.15rem; }
}

[id] { scroll-margin-top: 1rem; }

/* Verified chip */
.vchip {
  display: inline-block; background: #e3f3e2; color: #1d5c26; border: 3px solid #2e7d32;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em;
  padding: 0.14rem 0.55rem 0.2rem; margin: 0 0 0.55rem; vertical-align: middle;
}
.dateline .vchip { margin: 0 0 0 0.5rem; }

/* Header tagline, footer disclosure, counter joke */
.tagline { margin-left: auto; font-size: 0.82rem; font-weight: 700; color: #9d2449; letter-spacing: 0.03em; white-space: nowrap; }
.sheet-head { flex-wrap: wrap; }
.disclosure { font-size: 0.8rem; color: var(--muted); }
.fanline { font-size: 0.85rem; color: #9d2449; font-weight: 600; }
.cjoke { font-size: 0.72rem; color: #9d2449; letter-spacing: 0.03em; }
.counter { flex-wrap: wrap; }
@media (max-width: 560px) { .tagline { margin-left: 0; width: 100%; font-size: 0.78rem; } }
