:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #21372c;
  background: #f7f8f4;
  font-size: 16px;
  line-height: 1.5;
  --green: #226543;
  --green-dark: #174a31;
  --muted: #5a675d;
  --border: #dce3d8;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
a { color: var(--green); text-underline-offset: 4px; }
button, a, input, textarea, select, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #4388a1; outline-offset: 4px; }
[hidden] { display: none !important; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { flex-shrink: 0; width: 19px; height: 19px; vertical-align: middle; }
.shell { width: 100%; max-width: 1328px; padding: 0 32px; margin: 0 auto; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #21372c; }
.brand-mark { display: flex; gap: 1px; justify-content: center; align-items: center; width: 42px; height: 42px; border: 1px solid #c9dbcb; border-radius: 12px; background: #eaf1e7; color: var(--green); font-weight: 650; font-size: 27px; line-height: 1; letter-spacing: -3px; padding-right: 3px; }
.brand-mark span:last-child { transform: translateY(2px); }
.brand-name { font-size: 20px; font-weight: 750; letter-spacing: -.8px; line-height: 1.1; }
.brand-caption { display: block; font-size: 12px; letter-spacing: 0; font-weight: 400; color: var(--muted); margin-top: 4px; }
.header-nav { display: flex; gap: 26px; align-self: stretch; margin-left: auto; }
.header-nav a { display: flex; align-items: center; font-size: 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; padding-top: 2px; white-space: nowrap; }
.header-nav a:hover { color: var(--green); }
.header-nav a[aria-current="page"] { border-color: var(--green); color: var(--green); font-weight: 600; }

/* Intro */
.intro { padding: 30px 0 22px; max-width: 900px; }
.eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 1.3px; text-transform: uppercase; color: var(--muted); margin: 0 0 9px; }
h1 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.13; letter-spacing: -1.6px; margin: 0 0 10px; overflow-wrap: anywhere; }
.intro-copy { font-size: 16px; color: var(--muted); margin: 0; }

/* Workbench */
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; }
.tool-column { min-width: 0; }
.tool-tabs { display: flex; gap: 4px; padding: 5px; background: #e9ede5; border: 1px solid #e0e5da; border-radius: 10px; margin-bottom: 17px; }
.tool-tabs a { display: flex; text-decoration: none; justify-content: center; align-items: center; gap: 9px; flex: 1; min-width: 0; min-height: 42px; padding: 8px 10px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #4f5e51; font-size: 14px; white-space: nowrap; }
.tool-tabs a.is-active { background: #fff; border-color: #dde5d5; color: var(--green-dark); font-weight: 650; box-shadow: 0 1px 3px #253e2110; }
.tool-tabs a:not(.is-active):hover { background: #f2f5ed; color: var(--green-dark); }
.tool-tabs .icon { width: 17px; height: 17px; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.editor-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid #d4ded0; border-radius: 11px; background: #fff; box-shadow: 0 3px 12px #203b2004; overflow: hidden; }
.editor-card:focus-within { border-color: #7d9f77; box-shadow: 0 0 0 3px #dce8d4; }
.editor-heading { display: flex; min-height: 51px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 17px; border-bottom: 1px solid #e8ece4; }
.editor-heading label { font-size: 15px; font-weight: 650; }
.quiet-button { font-size: 13px; background: transparent; border: 0; color: var(--green); padding: 5px 0 5px 8px; min-height: 44px; }
.quiet-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.mode-label { font-size: 12px; color: #3f6638; background: #e8f0e1; border: 1px solid #d9e5ce; border-radius: 4px; padding: 3px 7px; white-space: nowrap; }
.editor-card textarea { display: block; resize: vertical; width: 100%; height: 178px; min-height: 120px; border: 0; border-radius: 0; background: transparent; color: #24392b; padding: 17px; line-height: 1.5; font-size: 20px; font-family: "Segoe UI", Arial, "Noto Sans", sans-serif; }
.editor-card textarea:focus-visible { outline: 0; }
.editor-card textarea::placeholder { color: #69766b; font-size: 17px; }
.output-card { background: #f3f7ed; border-color: #d0dfc5; }
.output-card .editor-heading, .output-card .editor-footer { border-color: #dfe8d7; }
.output-card textarea { color: var(--green-dark); }
.output-card textarea::placeholder { color: #6f7f69; font-style: italic; }
.editor-footer { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 15px; border-top: 1px solid #e8ece4; margin-top: auto; }
.character-count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.clear-button { display: flex; align-items: center; gap: 5px; color: var(--muted); border: 0; background: transparent; padding: 8px; font-size: 14px; min-height: 44px; }
.clear-button:hover { color: var(--green); }
.clear-button .icon { width: 15px; height: 15px; }
.copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: #fff; font-size: 15px; font-weight: 650; box-shadow: 0 2px 4px #13402710; }
.copy-button:hover:not(:disabled) { background: var(--green-dark); }
.copy-button .icon { width: 16px; height: 16px; }
.tool-note { display: flex; align-items: center; gap: 6px; margin: 11px 0 0; color: var(--muted); font-size: 13px; }
.tool-note .icon { width: 15px; height: 15px; }
.status-message { min-height: 21px; color: var(--green); font-size: 14px; margin: 4px 0 8px; }
.noscript-note { border: 1px solid var(--border); padding: 12px; font-size: 14px; }

/* Featured symbols on symbol pages */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.featured-card { min-height: 190px; padding: 18px; }
.featured-card .symbol-glyph { font-size: 64px; }
.featured-card .symbol-name { font-size: 15px; }
.featured-card .symbol-code { font-size: 12px; }
.featured-action { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: var(--green); font-size: 14px; font-weight: 600; }
.featured-action .icon { width: 16px; height: 16px; }

/* Ads and sidebar */
.ad-slot { margin-top: 6px; }
.ad-label { font-size: 11px; color: #687264; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.ad-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; color: #636d5e; border: 1px dashed #cdd7c4; border-radius: 8px; background-color: #f0f3e9; background-image: radial-gradient(#6a80581a .7px, transparent .7px); background-size: 7px 7px; text-align: center; font-size: 12px; padding: 16px; }
.ad-placeholder-title { font-size: 14px; font-weight: 550; }
.ad-horizontal { min-height: 93px; }
.ad-rectangle { height: 250px; margin-bottom: 22px; }
.ad-placeholder-icon { display: grid; place-items: center; width: 38px; height: 32px; border: 1px solid #b8c4ae; border-radius: 5px; font-size: 13px; margin-bottom: 7px; background: #f4f6ed; }
.related-links h2, .site-footer h2 { font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); font-weight: 650; margin: 0 0 6px; }
.related-links ul, .page-index ul, .footer-links ul { list-style: none; padding: 0; margin: 0; }
.related-links a, .page-index a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; text-decoration: none; }
.related-links a:hover, .page-index a:hover { text-decoration: underline; }
.related-links .icon, .page-index .icon { width: 16px; height: 16px; }

/* Page text */
.page-text { margin-top: 28px; max-width: 820px; }
.legal { margin-top: 20px; max-width: 820px; }
.prose { color: #3d4f42; font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.prose p { margin: 0 0 14px; }
.prose h2 { font-size: 22px; letter-spacing: -.5px; margin: 26px 0 10px; color: #21372c; }
.prose ul { padding-left: 1.3rem; }
.prose h3 { font-size: 17px; margin: 20px 0 6px; color: #21372c; }
.prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: 15px; }
.prose caption { text-align: left; font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--border); }
.prose thead th { font-size: 13px; color: var(--muted); font-weight: 600; }
.prose tbody th { font-weight: 600; white-space: nowrap; padding-right: 18px; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid #c9d3c4; border-bottom-width: 2px; border-radius: 5px; background: #fff; font: 600 13px/1.5 ui-monospace, "SF Mono", Menlo, Consolas, monospace; text-align: center; color: #21372c; }
.flip-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; list-style: none; padding: 0 !important; margin: 10px 0 22px; }
.flip-list li { margin: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: 7px; background: #fff; font-size: 18px; text-align: center; white-space: nowrap; }
/* The PNG is rendered at 2x; zoom shows it at half size on every screen, so its text
   matches the 16px prose (a lone "2x" srcset falls back to 1x on standard screens). */
.contact-image { display: block; zoom: .5; max-width: 200%; height: auto; }
.page-index { margin-top: 10px; }
.page-index > h2 { margin-bottom: 18px; }
.page-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.page-index h3 { font-size: 16px; margin: 0 0 6px; }

/* Symbol library */
.symbol-section { margin-top: 43px; padding-top: 29px; border-top: 1px solid var(--border); scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
h2 { font-size: 26px; line-height: 1.2; letter-spacing: -.9px; margin: 0 0 8px; font-weight: 650; }
.section-heading p:not(.eyebrow) { color: var(--muted); font-size: 15px; margin: 0; }
.symbol-controls { display: flex; gap: 9px; align-items: center; }
.search-control { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #d4ded0; border-radius: 7px; padding: 0 10px; color: var(--muted); }
.search-control:focus-within { outline: 3px solid #4388a1; outline-offset: 2px; }
.search-control .icon { width: 16px; height: 16px; }
.search-control input { width: 180px; min-height: 44px; border: 0; outline: 0; color: #263d2d; background: transparent; font-size: 15px; padding: 8px 0; }
.symbol-controls select { border: 1px solid #d4ded0; min-height: 46px; color: #3d5641; background: #fff; border-radius: 7px; padding: 8px; font-size: 15px; }
.symbol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
.symbol-card { min-width: 0; position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 122px; padding: 13px 15px; border: 1px solid #dce3d5; border-radius: 8px; background: #fff; text-align: left; color: #26462f; }
.symbol-card:hover { border-color: #8eae7b; background: #f3f8ed; box-shadow: 0 2px 8px #28462308; }
.symbol-glyph { font-family: "Segoe UI", Arial, "Noto Sans", "Noto Sans Symbols 2", sans-serif; font-size: 34px; line-height: 1.2; margin-bottom: 9px; }
.symbol-name { font-size: 13px; color: #40584a; line-height: 1.35; padding-right: 8px; overflow-wrap: anywhere; }
.symbol-code { font-size: 11px; color: var(--muted); margin-top: 3px; }
.symbol-copy-icon { position: absolute; top: 15px; right: 12px; width: 14px; height: 14px; color: #617b58; }
.empty-state { border: 1px dashed var(--border); border-radius: 8px; padding: 24px; text-align: center; font-size: 15px; color: var(--muted); }
.symbol-status { min-height: 21px; font-size: 14px; color: var(--green); margin: 10px 0 0; }
.symbol-fallback { padding: 12px 0; }
.symbol-fallback label { display: block; font-size: 14px; margin-bottom: 6px; }
.symbol-fallback input { max-width: 220px; padding: 9px 12px; border: 1px solid var(--border); background: #fff; border-radius: 6px; font-size: 20px; }

.unicode-note { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.unicode-note summary { cursor: pointer; color: #3c5b43; padding: 10px 0; }
.unicode-note p { max-width: 800px; line-height: 1.7; }

/* Footer */
.site-footer { margin-top: 40px; padding: 30px 0 26px; border-top: 1px solid var(--border); background: #fff; color: var(--muted); }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #3e5545; font-size: 14px; text-decoration: none; display: inline-block; padding: 6px 0; }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--green); text-decoration: underline; }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13px; }
.footer-meta-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-meta a { color: var(--muted); }

.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 20px; top: 10px; padding: 12px; z-index: 5; background: #fff; }

@media (max-width: 1100px) {
  .workspace-grid { grid-template-columns: minmax(0, 1fr); }
  .tool-sidebar .ad-label, .tool-sidebar .ad-placeholder { display: none; }
  .tool-sidebar { margin-top: 10px; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 760px) {
  .shell { padding-left: 20px; padding-right: 20px; }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 12px; }
  .brand-caption { display: none; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; font-size: 22px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 18px; letter-spacing: -.6px; }
  .header-nav { order: 1; flex-basis: 100%; margin: 6px -20px 0; padding: 0 20px; gap: 14px; overflow-x: auto; scrollbar-width: none; }
  .header-nav::-webkit-scrollbar { display: none; }
  .header-nav a { min-height: 44px; font-size: 13px; }
  .intro { padding: 22px 0 18px; }
  h1 { font-size: 28px; letter-spacing: -1.1px; }
  .intro-copy { font-size: 15px; line-height: 1.55; }
  .tool-tabs { margin-bottom: 13px; padding: 4px; gap: 2px; }
  .tool-tabs a { font-size: 14px; min-height: 44px; padding: 7px 4px; }
  .tool-tabs .icon { display: none; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .editor-heading { min-height: 46px; padding: 4px 13px; }
  .editor-card textarea { height: 112px; min-height: 100px; font-size: 19px; padding: 12px 13px; }
  .editor-card textarea::placeholder { font-size: 16px; }
  .editor-footer { min-height: 58px; padding: 6px 12px; }
  .copy-button { font-size: 14px; padding: 8px 13px; }
  .ad-horizontal { min-height: 100px; }
  .symbol-section { margin-top: 30px; padding-top: 24px; }
  h2 { font-size: 23px; }
  .section-heading { gap: 16px; }
  .symbol-controls { width: 100%; gap: 7px; }
  .search-control { flex: 1; min-width: 0; }
  .search-control input { width: 100%; min-width: 0; }
  .symbol-controls select { max-width: 150px; }
  .symbol-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .symbol-card { padding: 11px 10px; min-height: 124px; }
  .symbol-glyph { font-size: 30px; }
  .symbol-name { font-size: 12px; padding-right: 0; }
  .symbol-copy-icon { width: 12px; height: 12px; right: 9px; top: 13px; }
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .featured-card { min-height: 170px; padding: 14px; }
  .featured-card .symbol-glyph { font-size: 52px; }
  .page-index-grid, .footer-links { grid-template-columns: 1fr; gap: 22px; }
  .footer-meta { flex-direction: column; gap: 10px; }
}
@media (max-width: 380px) {
  .tool-tabs a { font-size: 12px; }
  .symbol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-nav { gap: 12px; }
}

.consent-settings { border: 0; padding: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.consent-banner { position: fixed; z-index: 100; right: 12px; bottom: 12px; width: min(420px, calc(100% - 24px)); background: #fff; border: 1px solid #c9dbcb; border-radius: 10px; box-shadow: 0 4px 18px #0002; max-height: 70vh; overflow: auto; }
.consent-banner[hidden] { display: none; }
.consent-content { padding: 12px 14px; font-size: 0.875rem; line-height: 1.4; }
.consent-content h2 { margin: 0 0 5px; font-size: 1rem; }
.consent-content p { margin: 0 0 9px; font-size: 0.8125rem; }
.consent-content p:empty { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions button { font: inherit; padding: 8px 12px; border: 1px solid #244d32; border-radius: 6px; background: #244d32; color: #fff; cursor: pointer; }
.consent-actions [data-consent-reject] { background: #4b5563; border-color: #4b5563; }
