/* Shared additions loaded on every page (mobile nav, search link, prose pages, tools). */
.nav { position: relative; }
a.nav__search-btn { text-decoration: none; }
.nav__links a.active { color: var(--text, #1A1A1A); background: var(--bg-alt, #F2F1EE); }
@media (max-width: 768px) {
  .nav.nav--open .nav__links {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 64px; left: 0; right: 0; padding: 12px 20px 16px;
    background: #FAFAF8; border-bottom: 1px solid #E5E4E0; box-shadow: 0 12px 24px rgba(0,0,0,0.06);
    list-style: none; margin: 0; z-index: 99;
  }
  .nav.nav--open .nav__links a { padding: 12px 14px; font-size: 16px; }
  .nav__actions .nav__submit-btn { display: none; }
  .nav__mobile-toggle { display: flex !important; }
}
/* Generic content pages (new pages built 2026-10) */
.page { padding: 120px 0 72px; }
.page__inner { max-width: 880px; margin: 0 auto; }
.page__crumbs { font-size: 13px; color: #6B6B6B; margin-bottom: 18px; }
.page__crumbs a { color: #6B6B6B; text-decoration: underline; text-underline-offset: 2px; }
.page h1 { font-family: var(--font-display, Georgia, serif); font-size: clamp(34px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; font-weight: 400; }
.page__lead { font-size: 18px; color: #555; line-height: 1.7; margin-bottom: 36px; }
.prose h2 { font-family: var(--font-display, Georgia, serif); font-weight: 400; font-size: 30px; margin: 44px 0 14px; letter-spacing: -0.01em; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.75; color: #2a2a2a; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: #B5302A; text-decoration: underline; text-underline-offset: 2px; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; background: #F2F1EE; padding: 1px 6px; border-radius: 4px; }
.prose pre { background: #161616; color: #EDEDED; padding: 18px 20px; border-radius: 12px; overflow-x: auto; margin: 0 0 20px; font-size: 14px; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.note { background: #F2F1EE; border-left: 4px solid #E8453C; padding: 14px 18px; border-radius: 8px; margin: 20px 0; font-size: 15.5px; line-height: 1.65; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid #E5E4E0; border-radius: 12px; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #EEEDEA; white-space: nowrap; }
.data-table th { background: #FAFAF8; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #555; }
.data-table tr:last-child td { border-bottom: none; }
.data-table code { font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; }
.chip { display: inline-block; width: 28px; height: 28px; border-radius: 6px; border: 1px solid rgba(0,0,0,0.12); vertical-align: middle; }
.tool { background: #fff; border: 1px solid #EEEDEA; border-radius: 20px; padding: 28px; box-shadow: 0 4px 24px rgba(0,0,0,0.05); margin-bottom: 36px; }
.tool label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tool input[type=text], .tool input[type=number], .tool select { width: 100%; padding: 11px 13px; border: 1px solid #E5E4E0; border-radius: 10px; font-size: 16px; font-family: ui-monospace, Menlo, monospace; background: #fff; color: #1A1A1A; }
.tool input[type=color] { width: 52px; height: 46px; border: 1px solid #E5E4E0; border-radius: 10px; padding: 3px; background: #fff; cursor: pointer; }
.tool__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 18px; }
.tool__inline { display: flex; gap: 10px; align-items: flex-end; }
.tool__inline > div { flex: 1; }
.tool__preview { height: 120px; border-radius: 14px; border: 1px solid #E5E4E0; margin: 8px 0 20px; }
.out-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.out { background: #F7F6F3; border-radius: 12px; padding: 14px 16px; cursor: pointer; border: 1px solid transparent; }
.out:hover { border-color: #E8453C; }
.out__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: #6B6B6B; margin-bottom: 4px; }
.out__value { font-family: ui-monospace, Menlo, monospace; font-size: 16px; font-weight: 600; word-break: break-all; }
.tool__error { color: #B5302A; font-size: 14px; min-height: 20px; margin-top: 6px; }
.btn-plain { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 10px; border: 1px solid #E5E4E0; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; color: #1A1A1A; }
.btn-plain:hover { border-color: #1A1A1A; }
.btn-dark { display: inline-flex; padding: 11px 18px; border-radius: 10px; background: #1A1A1A; color: #fff !important; font-weight: 600; font-size: 14px; text-decoration: none !important; border: none; cursor: pointer; }
.swatch-strip { display: flex; border-radius: 12px; overflow: hidden; border: 1px solid #E5E4E0; margin-bottom: 8px; }
.swatch-strip > div { flex: 1; min-height: 64px; display: flex; align-items: flex-end; justify-content: center; padding: 6px 2px; font: 600 11px ui-monospace, Menlo, monospace; cursor: pointer; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin: 0 0 28px; }
.link-card { display: block; background: #fff; border: 1px solid #EEEDEA; border-radius: 16px; padding: 20px; text-decoration: none !important; color: #1A1A1A !important; transition: border-color .2s, transform .2s; }
.link-card:hover { border-color: #ccc; transform: translateY(-2px); }
.link-card strong { display: block; font-size: 16px; margin-bottom: 6px; }
.link-card span { font-size: 14px; color: #6B6B6B; line-height: 1.5; }
.link-card__bar { display: flex; height: 36px; border-radius: 8px; overflow: hidden; margin-bottom: 14px; }
.link-card__bar i { flex: 1; }
.search-box { width: 100%; padding: 16px 18px; font-size: 18px; border: 1px solid #E5E4E0; border-radius: 14px; background: #fff; margin-bottom: 24px; font-family: inherit; }
.search-results { list-style: none; margin: 0 !important; }
.search-results li { padding: 16px 0; border-bottom: 1px solid #EEEDEA; }
.search-results a { font-size: 18px; font-weight: 600; color: #1A1A1A; text-decoration: none; }
.search-results a:hover { color: #B5302A; }
.search-results p { margin: 4px 0 0; font-size: 14.5px; color: #555; }
.palette-actions--added { display: flex; gap: 6px; margin-top: 10px; }
.pal-btn { font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; border: 1px solid #E5E4E0; background: #fff; color: #1A1A1A; cursor: pointer; }
.pal-btn:hover { border-color: #1A1A1A; }
.site-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(90px); background: #0F0F0F; color: #fff; padding: 11px 22px; border-radius: 100px; font-size: 14px; font-weight: 500; z-index: 300; opacity: 0; transition: all .3s; pointer-events: none; }
.site-toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
@media (max-width: 768px) {
  .page { padding: 96px 0 56px; }
  .tool { padding: 20px 16px; }
  .prose h2 { font-size: 25px; }
}
