/* 03-notes / 04-article: scoped archival pages. Approved homepage CSS is untouched. */
.wp-site-blocks:has(.atlas-notes-main) { max-width: 1440px; margin-inline: auto; border: 1px solid #735338; border-radius: 20px; background: #f7e6ca url('../images/parchment.webp') center top / 1440px auto repeat-y; box-shadow: inset 0 0 23px #8d532a40; }
.wp-site-blocks:has(.atlas-notes-main) > * { margin-block: 0 !important; }
.atlas-notes-main { padding: 0 28px 24px; color: #211f19; }
.atlas-notes-main > * { margin-block: 0; }
.atlas-notes-header .atlas-aircraft { background: url('../images/mountain-engraving.webp') center / contain no-repeat; mask: none; -webkit-mask: none; }
.atlas-notes-header .atlas-aircraft::before { content: none; }
.atlas-notes-intro { position: relative; min-height: 150px; padding: 26px 20px 22px; border-bottom: 1px solid #80623f80; overflow: hidden; isolation: isolate; }
.atlas-notes-intro::before { content: ''; position: absolute; inset: 0 0 0 40%; z-index: -1; background: url('../images/home-mobile.webp') right center / cover no-repeat; opacity: .65; mask-image: linear-gradient(to right, transparent, #000 35%); }
.atlas-notes-intro h1 { font-size: clamp(34px, 4vw, 52px); font-weight: 700; margin: 0 0 12px; line-height: 1.1; }
.atlas-notes-intro p { max-width: 570px; margin: 0; font-size: 20px; line-height: 1.35; }
.atlas-notes-search { display: flex; gap: 8px; padding-block: 16px; }
.atlas-notes-search input[type=search], .atlas-notes-search select { min-width: 0; background: #fff8e540; color: #211f19; border: 1px solid #94714c88; border-radius: 5px; font: 15px/1.5 var(--atlas-sans); padding: 10px 12px; }
.atlas-notes-search input[type=search] { flex: 1; }
.atlas-notes-search select { max-width: 240px; }
.atlas-notes-search input::placeholder { color: #62533e; opacity: 1; }
.atlas-notes-search button { background: #9c251b; color: #fff9eb; border: 1px solid #9c251b; border-radius: 4px; padding: 8px 20px; font: 600 15px/1.5 var(--atlas-sans); cursor: pointer; min-height: 44px; }
.atlas-notes-search button:hover { background: #751d17; }
.atlas-notes-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; }
.atlas-notes-sidebar { min-width: 0; }
.atlas-notes-directions { margin: 0; }
.atlas-notes-directions summary, .atlas-notes-toc summary { font-size: 25px; font-weight: 700; border-bottom: 2px solid #9c251b; padding: 6px 0; list-style: none; cursor: pointer; }
.atlas-notes-directions summary::-webkit-details-marker, .atlas-notes-toc summary::-webkit-details-marker { display: none; }
.atlas-notes-directions summary::after, .atlas-notes-toc summary::after { content: '−'; float: right; font-size: 21px; color: #9c251b; }
.atlas-notes-directions:not([open]) summary::after, .atlas-notes-toc:not([open]) summary::after { content: '+'; }
.atlas-notes-directions nav { display: flex; flex-direction: column; margin-top: 10px; }
.atlas-notes-directions nav > a { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 12px 5px; border-bottom: 1px solid #94714c55; color: #211f19; font-size: 17px; text-decoration: none; }
.atlas-notes-directions nav > a[aria-current], .atlas-notes-directions nav > a:hover { background: #e6c99a55; border-radius: 4px; }
.atlas-notes-directions nav > a > span:last-child { font: 14px/1.5 var(--atlas-sans); }
.atlas-direction-icon { width: 28px; height: 28px; background-position: center; background-size: contain; background-repeat: no-repeat; }
.atlas-direction-symbol { color: #9c251b; font-size: 27px; line-height: 1; text-align: center; }
.atlas-notes-results { min-width: 0; }
.atlas-notes-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid #80623f80; }
.atlas-notes-tabs, .atlas-notes-views { display: flex; align-items: center; gap: 8px; }
.atlas-notes-tabs a { padding: 10px 14px; text-decoration: none; color: #211f19; font-weight: 700; font-size: 18px; border-bottom: 3px solid transparent; }
.atlas-notes-tabs a[aria-current] { border-color: #9c251b; color: #9c251b; }
.atlas-notes-views a { display: inline-block; padding: 7px 9px; color: #211f19; text-decoration: none; border: 1px solid #94714c88; border-radius: 4px; font: 12px/1.5 var(--atlas-sans); }
.atlas-notes-views a[aria-current] { background: #9c251b; border-color: #9c251b; color: #fff9eb; }
.atlas-notes-toolbar a:hover, .atlas-notes-main a:focus-visible { text-decoration: underline; }
.atlas-notes-result-count, .atlas-notes-popular-source { color: #584934; font: 13px/1.7 var(--atlas-sans); margin: 14px 0; }
.atlas-notes-feed { display: grid; gap: 16px; }
.atlas-note-card { display: grid; grid-template-columns: minmax(150px, 32%) minmax(0, 1fr); gap: 20px; border: 1px solid #9c754e88; border-radius: 15px 10px 13px 9px; padding: 12px; background: #fff5dc30; box-shadow: 0 2px 2px #71482022; min-width: 0; }
.atlas-note-picture { display: block; position: relative; align-self: stretch; min-height: 160px; border-radius: 10px; overflow: hidden; background: #e3cfac44; }
.atlas-note-picture img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.atlas-note-picture-empty { display: block; position: absolute; inset: 20%; background: url('../images/icon-folder.svg') center / contain no-repeat; opacity: .5; }
.atlas-note-number { position: absolute; top: 8px; left: 8px; padding: 2px 7px; border-radius: 4px; background: #fff3d5; color: #9c251b; font-size: 15px; font-weight: 700; }
.atlas-note-card-copy { min-width: 0; }
.atlas-note-category, .atlas-note-categories a { font-weight: 700; color: #9c251b; font-size: 15px; }
.atlas-note-card h2 { margin: 8px 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; overflow-wrap: anywhere; }
.atlas-note-card h2 a { color: #211f19; text-decoration: none; }
.atlas-note-card h2 a:hover { color: #9c251b; text-decoration: underline; }
.atlas-note-excerpt { font: 15px/1.5 var(--atlas-sans); margin: 8px 0 14px; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.atlas-note-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; font: 12px/1.6 var(--atlas-sans); margin-block: 10px; color: #4d402f; }
.atlas-notes-view-list .atlas-note-card { grid-template-columns: 1fr; }
.atlas-notes-view-list .atlas-note-picture { display: none; }
.atlas-notes-view-list .atlas-note-excerpt { margin-bottom: 6px; }
.atlas-notes-empty { border: 1px dashed #94714c; border-radius: 10px; padding: 32px; background: #fff4db33; }
.atlas-notes-empty h2 { font-size: 27px; margin-top: 0; }
.atlas-notes-empty p { font: 16px/1.7 var(--atlas-sans); }
.atlas-notes-main .pagination { margin-block: 28px 10px; }
.atlas-notes-main .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.atlas-notes-main .page-numbers { min-width: 40px; min-height: 40px; padding: 5px 12px; border: 1px solid #94714c88; border-radius: 5px; text-decoration: none; text-align: center; }
.atlas-notes-main .page-numbers.current { color: #fff9eb; background: #9c251b; border-color: #9c251b; }
.atlas-note-breadcrumb { font: 12px/1.7 var(--atlas-sans); padding-block: 16px; }
.atlas-note-breadcrumb a { color: #211f19; }
.atlas-article-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.atlas-article-outline { position: sticky; top: 20px; min-width: 0; }
.atlas-notes-toc summary { font-size: 21px; }
.atlas-notes-toc ol { padding-left: 25px; font-size: 15px; line-height: 1.5; }
.atlas-notes-toc li { padding-block: 7px; }
.atlas-notes-toc a { color: #211f19; }
.atlas-toc-subheading { margin-left: 12px; }
.atlas-note-article { min-width: 0; }
.atlas-note-article h1 { font-size: clamp(29px, 2.6vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -.03em; margin: 8px 0 14px; overflow-wrap: anywhere; }
.atlas-note-categories { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.atlas-note-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 12px 18px; font: 12px/1.5 var(--atlas-sans); }
.atlas-note-tags a { padding: 3px 9px; border: 1px solid #94714c; border-radius: 7px; color: #211f19; text-decoration: none; }
.atlas-note-tags a:hover { color: #9c251b; border-color: #9c251b; }
.atlas-article-cover { display: block; width: 100%; height: auto; margin-bottom: 18px; border-radius: 9px; }
.atlas-note-content { font: 17px/1.8 var(--atlas-sans); overflow-wrap: anywhere; }
.atlas-note-content h2 { font-family: "Atlas PT Serif", Georgia, serif; font-size: 28px; font-weight: 700; line-height: 1.2; border-bottom: 2px solid #9c251b; margin: 30px 0 14px; padding-bottom: 6px; scroll-margin-top: 20px; }
.atlas-note-content h3 { font-size: 22px; margin-top: 26px; scroll-margin-top: 20px; }
.atlas-note-content img { max-width: 100%; height: auto; }
.atlas-note-content figure { max-width: 100%; margin-inline: 0; }
.atlas-note-content blockquote { border: 1px solid #94714c88; border-left: 4px solid #9c251b; padding: 15px 20px; border-radius: 5px; margin-inline: 0; background: #fff5dc44; }
.atlas-note-content pre { max-width: 100%; overflow: auto; white-space: pre; overflow-wrap: normal; word-break: normal; padding: 20px; border-radius: 8px; background: #252c2b; color: #f7e6ca; font: 13px/1.8 ui-monospace, monospace; }
.atlas-note-content :not(pre) > code { padding: 2px 5px; background: #e6c99a66; border-radius: 3px; }
.atlas-note-content .wp-block-table { overflow-x: auto; }
.atlas-note-content table { border-collapse: collapse; min-width: max(100%, 480px); font-size: 14px; }
.atlas-note-content td, .atlas-note-content th { border: 1px solid #94714c88; padding: 10px; }
.atlas-note-content th { background: #e6c99a77; text-align: left; }
.atlas-note-content .wp-block-image figcaption, .atlas-note-content .wp-block-table figcaption { font-size: 13px; color: #584934; }
.atlas-note-related { min-width: 0; }
.atlas-note-related > h2 { font-size: 22px; font-weight: 700; border-bottom: 2px solid #9c251b; margin: 0 0 12px; padding-bottom: 6px; }
.atlas-note-related > p { font: 14px/1.7 var(--atlas-sans); }
.atlas-note-compact { display: block; margin-bottom: 12px; padding: 10px; }
.atlas-note-compact .atlas-note-picture { min-height: 100px; }
.atlas-note-compact .atlas-note-card-copy h2 { font-size: 18px; }
.atlas-note-compact .atlas-note-excerpt { display: none; }
.atlas-note-compact .atlas-note-facts { font-size: 10px; gap: 5px; }
.atlas-back-notes { display: inline-block; margin-block: 28px; font-size: 15px; }
.atlas-copy-code { display: block; margin: 0 0 5px auto; padding: 5px 8px; background: #fff3d5; border: 1px solid #94714c; color: #211f19; border-radius: 4px; cursor: pointer; font: 12px/1.5 var(--atlas-sans); }
@media (max-width: 1100px) {
 .atlas-notes-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
 .atlas-article-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
 .atlas-note-related { grid-column: 2; }
 .atlas-notes-toolbar { flex-wrap: wrap; padding-bottom: 10px; }
}
@media (max-width: 767px) {
 .wp-site-blocks:has(.atlas-notes-main) { max-width: 520px; border-radius: 14px; background-size: 760px auto; }
 .atlas-notes-main { padding-inline: 12px; }
 .atlas-notes-intro { padding: 16px 0 100px; }
 .atlas-notes-intro::before { inset: 65px 0 0; mask-image: linear-gradient(to bottom, transparent, #000 45%); }
 .atlas-notes-intro h1 { font-size: 34px; }
 .atlas-notes-intro p { max-width: 290px; font-size: 16px; }
 .atlas-notes-search { flex-wrap: wrap; }
 .atlas-notes-search input[type=search] { flex-basis: 100%; }
 .atlas-notes-search select { max-width: none; flex: 1; width: 65%; }
 .atlas-notes-search button { padding-inline: 12px; }
 .atlas-notes-layout, .atlas-article-layout { display: flex; flex-direction: column; gap: 18px; }
 .atlas-notes-sidebar, .atlas-notes-results, .atlas-article-outline, .atlas-note-article, .atlas-note-related { width: 100%; }
 .atlas-notes-directions summary { font-size: 22px; }
 .atlas-notes-directions nav > a { font-size: 16px; }
 .atlas-notes-tabs { flex: 1; justify-content: space-between; gap: 2px; }
 .atlas-notes-tabs a { padding: 9px 4px; font-size: 15px; }
 .atlas-notes-views { margin-left: auto; }
 .atlas-note-card { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
 .atlas-note-picture { min-height: 155px; }
 .atlas-note-card h2 { font-size: 24px; }
 .atlas-note-excerpt { font-size: 14px; }
 .atlas-note-facts { gap: 5px 12px; }
 .atlas-article-outline { position: static; }
 .atlas-notes-toc summary { font-size: 20px; }
 .atlas-note-article h1 { font-size: 31px; }
 .atlas-note-content { font-size: 16px; }
 .atlas-note-content h2 { font-size: 25px; }
 .atlas-note-content h3 { font-size: 21px; }
 .atlas-note-related { grid-column: auto; }
}

@media (max-width: 767px) {
 .atlas-notes-header { padding-bottom: 36px; border-bottom: 1px solid #665a4380; }
 .atlas-notes-header .atlas-cover-issue { display: block; position: absolute; top: 86px; right: 14px; padding: 0; }
 .atlas-note-article > .atlas-notes-toc { margin-block: 18px; }
 .atlas-article-outline:empty { display: none; }
}
