.notes-main { max-width: 1000px; min-height: 45vh; margin: auto; padding: 3.5rem 1.5rem 4rem; line-height: 1.6; }
.notes-intro { max-width: 40rem; margin-bottom: 1.5rem; }
.notes-intro h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; letter-spacing: -.035em; }
.notes-controls { display: flex; align-items: end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1rem; padding: 1.25rem; background: var(--color-mist); border: 1px solid var(--line); }
.notes-search-group { flex: 1 1 24rem; }
.notes-search-group label, .notes-sort-group > span { display: block; margin-bottom: .45rem; color: var(--color-night); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.notes-search-row { display: flex; gap: .5rem; }
.notes-search-row input { width: 100%; height: 44px; padding: .65rem .8rem; background: #fffdf7; color: var(--color-ink); border: 1px solid var(--color-night); border-radius: 0; }
.notes-search-row input:focus-visible { outline: 0 !important; border-color: var(--color-rust); box-shadow: inset 0 0 0 1px var(--color-rust); }
.notes-search-row input::placeholder { color: #65767a; }
.notes-controls button { height: 44px; padding: .6rem .85rem; background: #fffdf7; color: var(--color-ink); border: 1px solid var(--color-night); border-radius: 0; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.notes-controls button:hover { background: var(--color-gold); }
.notes-sort-group { flex: 0 0 auto; }
.notes-sort-group .sort.asc, .notes-sort-group .sort.desc { background: var(--color-gold); box-shadow: 2px 2px 0 var(--color-ink); }
.notes-sort-group .sort.asc::after { content: ' ↑'; }
.notes-sort-group .sort.desc::after { content: ' ↓'; }
.notes-results { min-height: 1.5rem; margin: 0 0 .75rem; color: #4f6267; font-size: .82rem; }
.notes-empty { margin: 1.5rem 0 0; padding: 1.5rem; background: #fffdf7; border: 1px solid var(--line); text-align: center; }
.note-title { font-size: clamp(2.15rem, 4.75vw, 3.6rem); line-height: 1.12; letter-spacing: -.03em; }
.notes-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.note-card, .note-article { overflow-wrap: anywhere; background: #fffdf7; border: 1px solid rgba(47,80,89,.12); box-shadow: 0 4px 16px rgba(47,80,89,.06), 0 1px 3px rgba(47,80,89,.03); }
.note-card { padding: 1.8rem; }
.note-card h2 { font-size: 1.8rem; line-height: 1.2; overflow-wrap: anywhere; }
.note-card-title { font-weight: 700; text-decoration: none; }
.note-card-summary { line-height: 1.6; }
.note-card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.note-card .note-author, .note-card .note-published { display: block; line-height: 1.25; }
.note-card .note-published { margin-top: .05rem; }
.note-card .note-published::before { content: none; }
.note-card-share-button { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; background: transparent; color: var(--color-night); border: 0; }
.note-card-share-button:hover, .note-card-share-button:focus-visible, .note-card-share-button.is-copied { background: transparent; color: var(--color-rust); }
.note-card-share-button:disabled { opacity: .6; }
.note-meta { color: #4f6267; font-size: .8rem; margin: 1rem 0; }
.note-published::before, .note-updated::before { content: ' · '; }
.note-article { width: 100%; padding: clamp(1.25rem, 4vw, 3rem); }
.note-back { display: inline-block; margin-bottom: 2rem; font-size: .85rem; }
.note-summary { font: 1.25rem/1.5 var(--font-display); margin: 1.5rem 0 2rem; }
.note-image { display: block; width: 100%; height: auto; margin: 0 0 2rem; }
.note-toc { margin: 0 0 2rem; padding: 1.25rem 1.5rem; background: var(--color-mist); border-top: 3px solid var(--color-gold); }
.note-toc h2 { margin: 0 0 .75rem; font-size: 1.35rem; }
.note-toc ol { margin: 0; padding-left: 1.25rem; }
.note-toc li + li { margin-top: .4rem; }
.note-toc a { color: var(--color-night); font-weight: 700; text-decoration: none; }
.note-toc a:hover, .note-toc a:focus-visible { color: var(--color-rust); }
.note-body { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.note-body h1, .note-body h2, .note-body h3, .note-body h4, .note-body h5, .note-body h6 { scroll-margin-top: 1.5rem; margin: 2rem 0 1rem; line-height: 1.2; }
.note-body h1 { font-size: 2.1rem; }
.note-body h2 { margin: 3rem 0 .85rem; font-size: 2rem; }
.note-body h2::after { content: ''; display: block; width: 3rem; height: 3px; margin-top: .75rem; background: var(--color-gold); }
.note-body h3 { margin: 2.25rem 0 .65rem; font-size: 1.35rem; }
.note-body h4 { margin: 1.5rem 0 .3rem; font-size: 1rem; line-height: 1.3; }
.note-body h5 { font-size: 1.1rem; }
.note-body h6 { font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.note-body p, .note-body ul { margin-bottom: 1.3rem; line-height: 1.7; }
.note-body em { font-style: italic; }
.note-body a { color: var(--color-night); font-weight: 700; text-decoration: none; }
.note-body a::after { content: '\f35d'; margin-left: .35em; font-family: 'Font Awesome 6 Free'; font-size: .72em; font-weight: 900; vertical-align: .08em; }
.note-body a:hover, .note-body a:focus-visible { color: var(--color-rust); }
.note-toggle { margin: 1.5rem 0; border: 1px solid var(--line); background: #fff; }
.note-toggle summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; cursor: pointer; list-style: none; font: 1.15rem/1.35 var(--font-display); }
.note-toggle summary::-webkit-details-marker { display: none; }
.note-toggle summary:hover, .note-toggle[open] summary { background: var(--color-mist); }
.note-toggle-icon { display: grid; place-items: center; flex: 0 0 1.7rem; height: 1.7rem; background: var(--color-gold); color: var(--color-ink); font: 1.25rem/1 Arial, sans-serif; }
.note-toggle-icon::before { content: '+'; }
.note-toggle[open] .note-toggle-icon::before { content: '−'; }
.note-toggle-content { padding: 1.2rem; border-top: 1px solid var(--line); }
.note-toggle-content > :last-child { margin-bottom: 0; }
.note-panel { margin: 1.35rem 0; padding: 1.2rem 1.35rem; background: #fff; border-left: 3px solid var(--color-gold); box-shadow: 0 4px 16px rgba(47,80,89,.06), 0 1px 3px rgba(47,80,89,.03); }
.note-body .note-panel-title { margin: 0 0 .4rem; font-size: 1rem; line-height: 1.3; }
.note-panel-content h4 { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }
.note-panel-content > h4:first-child { margin-top: 0; }
.note-panel-content p, .note-panel-content ul { line-height: 1.7; }
.note-panel-content > :last-child { margin-bottom: 0; }
.note-carousel { margin: 1.75rem 0; background: var(--color-mist); border: 1px solid var(--line); }
.note-carousel-stage { position: relative; overflow: hidden; }
.note-carousel-viewport { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.note-carousel-viewport::-webkit-scrollbar { display: none; }
.note-carousel-slide { position: relative; flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: start; }
.note-carousel-slide img { display: block; width: 100%; height: auto; }
.note-carousel-slide figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 2rem 1rem .7rem; background: linear-gradient(transparent, rgba(0,0,0,.78)); color: #fff; font-size: .88rem; line-height: 1.45; }
.note-carousel-previous, .note-carousel-next { position: absolute; top: 50%; z-index: 1; width: 2rem; height: 2rem; padding: 0; background: transparent; color: #fff; border: 0; font-size: 1.15rem; line-height: 1; text-shadow: 0 1px 4px rgba(0,0,0,.8); transform: translateY(-50%); }
.note-carousel-previous { left: .65rem; }
.note-carousel-next { right: .65rem; }
.note-carousel-previous:hover, .note-carousel-next:hover { color: var(--color-gold); }
.note-carousel-previous:focus-visible, .note-carousel-next:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.note-carousel-dots { position: absolute; right: 0; bottom: 2.25rem; left: 0; z-index: 1; display: flex; justify-content: center; gap: .4rem; }
.note-carousel-dot { width: .55rem; height: .55rem; padding: 0; background: rgba(255,253,247,.78); border: 1px solid rgba(47,80,89,.7); border-radius: 50%; }
.note-carousel-dot[aria-current="true"] { background: var(--color-gold); }
@media (max-width: 600px) {
 .notes-main { padding-top: 2.5rem; }
 .notes-controls { align-items: stretch; flex-direction: column; }
 .notes-search-group, .notes-sort-group { flex: 1 1 auto; width: 100%; }
 .notes-sort-group .sort { width: 100%; }
 .note-meta .note-published, .note-meta .note-updated { display: block; margin-top: .05rem; line-height: 1.25; }
 .note-meta .note-published::before, .note-meta .note-updated::before { content: none; }
}

.note-breadcrumbs { margin-bottom: 2rem; font-size: .8rem; color: #4f6267; }
.note-breadcrumbs span[aria-hidden] { margin-inline: .4rem; }
.note-share-button { padding: .55rem .9rem; min-height: 44px; background: transparent; border: 1px solid var(--color-night); color: var(--color-night); font: 700 .8rem Arial, sans-serif; }
.note-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; gap: .5rem 1rem; margin: .75rem 0; }
.note-meta-row .note-meta { margin: 0; flex: 0 1 auto; }
.note-meta-row .note-share { margin-left: auto; text-align: right; max-width: 100%; }
.note-meta-row .note-share-button { padding: .35rem .65rem; min-height: 36px; white-space: nowrap; }
.note-share-button .fa-paper-plane { margin-left: .25rem; }
.note-share-status:empty { display: none; }
.note-share-button:hover { background: var(--color-mist); }
.note-share-button:disabled { opacity: .6; }
.note-share-status { margin-left: .75rem; font-size: .8rem; color: var(--color-night); }
.note-share-fallback { margin-top: .75rem; }
.note-share-fallback label { display: block; font-size: .85rem; }
.note-share-fallback input { width: 100%; padding: .5rem; border: 1px solid var(--line); background: white; color: var(--color-ink); }
.note-inquiry { margin-top: 2.5rem; padding: clamp(1.25rem, 4vw, 2rem); border-top: 3px solid var(--color-gold); background: var(--color-mist); }
.note-inquiry h2 { font-size: 1.8rem; }
.note-inquiry p { max-width: 32rem; font-size: .95rem; line-height: 1.6; }
.note-back-to-top { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 10; display: inline-flex; align-items: center; gap: .55rem; padding: .75rem 1rem; background: var(--color-gold); color: var(--color-ink); border: 1px solid var(--color-ink); box-shadow: 3px 3px 0 var(--color-ink); font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-decoration: none; text-transform: uppercase; opacity: 0; visibility: hidden; transform: translateY(.75rem); pointer-events: none; transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background-color .2s ease; }
.note-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.note-back-to-top:hover { background: var(--color-paper); color: var(--color-ink); transform: translateY(-2px); }
.note-back-to-top .fa-arrow-up { font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
 html { scroll-behavior: smooth; }
}
