/* Reader-first archive layout, adapted from the public National Archives design system.
   Reference: https://design-system.nationalarchives.gov.uk/ */
:root{--forest:#123e30;--forest2:#175c45;--paper:#fbf5e7;--parch:#f0e6d2;--ink:#123e30;--line:#cbbd9e;--light:#fbf5e7;--accent:#175c45;--card:#fbf5e7;--muted:#635d50;--design-link:#175c45}
body.collection-design{margin:0!important;background:#fbf5e7!important;color:#123e30!important;font:18px/1.65 'EB Garamond',Georgia,'Times New Roman',serif!important}
.collection-design *{box-sizing:border-box}
.collection-design a{color:var(--design-link);text-underline-offset:3px}
.collection-design a:hover{text-decoration-thickness:2px}
.collection-design :focus-visible{outline:3px solid #ffcc00;outline-offset:3px}
.collection-design h1,.collection-design h2,.collection-design h3{color:#183b2e!important;letter-spacing:-.025em;line-height:1.15;font-family:'EB Garamond',Georgia,'Times New Roman',serif!important}
.collection-design h1{font-size:clamp(32px,4vw,56px)!important;font-weight:700!important;max-width:22ch}
.collection-design h2{font-size:clamp(27px,3vw,38px)!important;font-weight:700!important;margin:1.4em 0 .65em!important}
.collection-design h3{font-size:24px!important;font-weight:700!important}
.collection-design p,.collection-design li{font-size:18px;line-height:1.65}
.collection-design p{max-width:76ch}
.collection-design small,.collection-design .source,.collection-design figcaption{font-size:14px!important;line-height:1.5!important;color:#635d50!important}
.collection-design .eyebrow,.collection-design .tag,.collection-design .status,.collection-design .gallery-id{font:700 12px/1.4 Arial!important;color:#635d50!important;letter-spacing:.09em}
.collection-design main,.collection-design .content,.collection-design .intro{max-width:1200px!important;padding:40px 32px!important;margin:auto!important}
.collection-design>header{background:#fbf5e7!important;color:#123e30!important;border:0!important;border-bottom:1px solid #cbbd9e!important;padding:20px max(32px,calc((100vw - 1136px)/2))!important}
.collection-design>header h1{font-size:24px!important;max-width:none;margin:10px 0!important}
.collection-design>header a{color:#175c45!important;border:0!important;background:transparent!important;padding:8px 0!important;font-size:15px!important;font-weight:600;text-decoration:underline!important}
.collection-design>header nav{display:flex!important;gap:10px 24px!important;flex-wrap:wrap}
.collection-design .mobile-menu{display:none!important}
.collection-design .collection-global{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#123e30;border-bottom:4px solid #175c45;padding:14px max(32px,calc((100vw - 1136px)/2));color:#fff}
.collection-design .collection-global a{color:#fff;font-size:15px;font-weight:700;text-decoration:none;white-space:nowrap}
.collection-design .collection-global nav{display:flex;gap:24px;flex-wrap:wrap}
.collection-design .collection-global .collection-home-link{font-size:19px}
.collection-design .crumb{font-size:14px;color:#635d50;max-width:1200px;padding:0 32px;margin:24px auto 0}
.collection-design .footer{background:#f0e6d2!important;border-top:1px solid #cbbd9e;color:#635d50!important;font-size:14px;padding:26px 32px;margin-top:64px}
.collection-home>header{display:none}
.collection-home main{padding-top:0!important}
.collection-hero{padding:64px 0 40px;border-bottom:1px solid #123e30}
.collection-hero small{letter-spacing:.12em;font-weight:bold;font-size:12px!important}
.collection-hero h1{max-width:19ch;margin:18px 0 24px}
.collection-hero p{font-size:21px!important;max-width:65ch}
.collection-home .eyebrow{margin-top:40px}
.collection-home .intro>h2{font-size:26px!important;margin:12px 0!important}
.collection-home .collection-start{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin:24px 0 48px;border:1px solid #cbbd9e}
.collection-design .viewtabs a,.collection-design .viewlinks a{background:#f0e6d2!important;color:#175c45!important;font:600 17px/1.5 Arial!important;border:1px solid #cbbd9e;padding:18px!important;text-decoration:underline!important}
.collection-home .collection-start a{background:#fbf5e7!important;border:0;border-bottom:1px solid #cbbd9e;border-right:1px solid #cbbd9e}
.collection-home .collection-start .collection-find{background:#175c45!important;color:#fff!important;font-size:22px!important}
.collection-design .branch-home-grid,.collection-design .branch-grid,.collection-design .grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:24px!important}
.collection-design .branch-home-card,.collection-design .branch-card,.collection-design .tile{display:block!important;background:#fbf5e7!important;padding:26px 0!important;border:0!important;border-top:2px solid #123e30!important;border-radius:0!important;box-shadow:none!important;min-height:0!important;text-decoration:none}
.collection-design .branch-home-card b,.collection-design .branch-card strong,.collection-design .tile h3{display:block;color:#175c45!important;font-size:24px!important;margin:0 0 12px!important;text-decoration:underline;text-underline-offset:5px}
.collection-design .branch-home-card span,.collection-design .branch-card span,.collection-design .tile small{display:block;color:#635d50!important;font-size:17px!important;font-weight:400}
.collection-design .scope-note,.collection-design .family-line,.collection-design .open-question,.collection-design .record-fact,.collection-design .note{background:#f0e6d2!important;border:0!important;border-left:4px solid #175c45!important;padding:20px 24px!important;font-size:17px!important}
.collection-design .story-opening{max-width:850px}
.collection-design .story-chapter{max-width:900px;border-top:1px solid #cbbd9e;padding:32px 0}
.collection-design .chapter-number{border:0;border-left:3px solid #175c45;font:700 18px Arial;color:#635d50}
.collection-design .records{gap:32px!important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr))!important}
.collection-design .record,.collection-design .card,.collection-design .gallery-card{background:#fbf5e7!important;border:1px solid #cbbd9e!important;border-radius:0!important;padding:20px!important;box-shadow:none!important}
.collection-design .record img,.collection-design .card img,.collection-design .gallery-card img{background:#f0e6d2!important;object-fit:contain!important}
.collection-design .record h3,.collection-design .card h3,.collection-design .gallery-card h3{color:#175c45!important;font-size:22px!important}
.collection-design .gallery-section{border-top:2px solid #123e30!important;padding-top:24px;margin-top:48px}
.collection-design .gallery-grid{gap:28px!important}
.collection-design .gallery-card-body{padding:20px 0 0!important}
.collection-design .gallery-image{background:#f0e6d2!important}
.collection-design .folio{background:#f0e6d2!important;border:1px solid #cbbd9e;padding:16px}
.collection-design .record-image span{color:#175c45!important;font-size:14px!important}
.collection-record .hero-record{grid-template-columns:1.1fr .9fr!important;gap:40px!important}
.collection-record .facts h2{font-size:34px!important}
.collection-design .reader-note-area{background:#f0e6d2!important;border:0!important;border-top:1px solid #cbbd9e!important;box-shadow:none!important;border-radius:0!important;margin-top:32px;padding:20px!important}
.collection-design .reader-note-area h2{font-size:18px!important;margin:0 0 8px!important}
.collection-design .reader-note-area p{font-size:15px!important}
.collection-design button,.collection-design .note-disclose{background:#123e30!important;color:white!important;border:0!important;border-radius:0!important;padding:12px 18px!important;font:600 15px/1.4 Arial!important;cursor:pointer}
.collection-design input,.collection-design textarea,.collection-design select{border:2px solid #123e30!important;border-radius:0!important;background:#fbf5e7!important;font:18px/1.5 Arial!important;padding:12px!important;max-width:100%}
.collection-design .search-label{display:block;font:700 17px/1.5 Arial;margin:28px 0 10px}
.collection-design #site-search{width:100%;max-width:800px;font-size:22px!important;min-height:64px}
.collection-design .search-result{padding:24px 0!important;border:0!important;border-bottom:1px solid #cbbd9e!important;background:#fbf5e7!important}
.collection-design .search-result h3{font-size:22px!important}
.collection-design .tree-header{max-width:none!important;background:#fbf5e7!important}
.collection-design .tree-main{max-width:1200px!important}
@media(max-width:700px){
 body.collection-design{font-size:17px!important}
 .collection-design main,.collection-design .content,.collection-design .intro{padding:28px 20px!important}
 .collection-design p,.collection-design li{font-size:17px}
 .collection-design .collection-global{padding:14px 20px;display:block}
 .collection-design .collection-global nav{gap:10px 20px;margin-top:10px}
 .collection-design .collection-global a{font-size:14px}
 .collection-design>header{padding:14px 20px!important}
 .collection-design>header h1{font-size:20px!important}
 .collection-design>header nav{gap:8px 18px!important}
 .collection-hero{padding:36px 0 24px}
 .collection-hero h1{font-size:36px!important}
 .collection-hero p{font-size:19px!important}
 .collection-home .collection-start{grid-template-columns:1fr!important;margin-bottom:32px}
 .collection-design .branch-home-grid,.collection-design .branch-grid,.collection-design .grid{grid-template-columns:1fr!important;gap:0!important}
 .collection-design .branch-home-card,.collection-design .branch-card,.collection-design .tile{padding:24px 0!important}
 .collection-design .hero-record{display:flex;flex-direction:column;gap:24px!important}
 .collection-design .folio{width:100%;margin:0;order:0}
 .collection-design .facts{width:100%}
 .collection-design .gallery-grid,.collection-design .records{display:grid!important;grid-template-columns:1fr!important}
 .collection-design .crumb{padding:0 20px;font-size:13px}
}
/* Keep a record's explanation beside its image, not displaced by its notes. */
.collection-record .hero-record{display:grid!important;grid-template-columns:1.1fr .9fr!important;align-items:start}
.collection-record .hero-record>.folio{grid-column:1;grid-row:1}
.collection-record .hero-record>.facts{grid-column:2;grid-row:1}
.collection-record .hero-record>.reader-note-area{grid-column:1/-1;grid-row:auto}
.collection-record .facts h2{margin-top:0!important}
.collection-design .search-hit{background:#fbf5e7!important;border:0!important;border-bottom:1px solid #cbbd9e!important;padding:24px 0!important}
.collection-design .search-hit h3{margin:0 0 12px!important;font-size:23px!important}
.collection-design .search-hit .match-reason{font-size:14px!important;color:#635d50!important}
.collection-design .search-source,.collection-design .search-image{font-size:15px!important;margin-right:16px}
.collection-design .collection-page-name{background:#f0e6d2;padding:16px 32px;font-size:24px;font-weight:700;max-width:1200px;margin:0 auto}
@media(min-width:701px){.collection-home .collection-hero{padding:42px 0 32px}.collection-home .collection-hero h1{font-size:48px!important;max-width:27ch}.collection-home .collection-hero p{font-size:20px!important}}
@media(max-width:700px){.collection-record .hero-record{display:flex!important}.collection-record .hero-record>.facts{order:-1}.collection-home .collection-hero{padding-top:24px}.collection-home .collection-hero h1{font-size:32px!important}.collection-design .collection-page-name{padding:12px 20px;font-size:21px}}
.collection-home-search{margin:26px 0 0;max-width:720px}
.collection-home-search label{display:block;font-size:18px;font-weight:700;margin-bottom:8px}
.collection-home-search>div{display:flex;gap:0}
.collection-home-search input{width:100%;min-width:0;min-height:56px}
.collection-home-search button{background:#175c45!important;min-width:115px;font-size:18px!important}
.collection-side{margin:44px 0}
.collection-side>h3{border-top:4px solid #123e30;padding-top:22px;margin:0 0 24px}
.collection-side>h3 a{color:#183b2e;font-size:26px}
.collection-toc{margin:24px 0 40px;padding:20px 24px;border-left:4px solid #175c45;background:#f0e6d2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;max-width:900px}
.collection-toc a{font-size:16px;line-height:1.5}
@media(max-width:700px){.collection-home-search{margin-top:20px}.collection-home-search button{min-width:84px!important;padding:12px!important}.collection-hero h1{font-size:30px!important}.collection-toc{grid-template-columns:1fr;padding:16px}.collection-side>h3 a{font-size:24px}}
/* Entry paths sit alongside the search rather than below repeated panels. */
.collection-home .collection-start{grid-template-columns:repeat(3,minmax(0,1fr));margin:24px 0 28px}
.collection-home .branch-home{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px}
.collection-home .branch-home>h3{grid-column:1/-1;margin:0!important}
.collection-home .collection-side{margin:0}
.collection-home .collection-side .branch-home-grid{grid-template-columns:1fr!important}
.collection-home .collection-side>h3{padding-top:14px;margin-bottom:12px}
.collection-home .branch-home-card{padding:18px 0!important}
.collection-person-result{padding:14px 0;border-bottom:1px solid #cbbd9e}
.collection-person-result>a{font-size:22px;font-weight:700}
.collection-person-result>p{margin:4px 0;color:#635d50}
#collection-people-results:not(:empty){border-top:3px solid #123e30;padding:20px 0 36px}
@media(max-width:700px){.collection-home .branch-home{grid-template-columns:1fr;gap:28px}.collection-home .collection-start{grid-template-columns:1fr!important;margin:16px 0 24px}.collection-home .collection-start a{padding:12px!important}.collection-home .collection-side .branch-home-grid{grid-template-columns:1fr!important}}
.collection-home-sides{display:flex;gap:12px 28px;flex-wrap:wrap;margin-top:22px}
.collection-home-sides a{font-size:19px;font-weight:700}
.collection-home .collection-more{max-width:1136px;padding:24px 0;margin:40px auto 0;border-top:1px solid #cbbd9e;display:flex;gap:16px 24px;flex-wrap:wrap}
.collection-fan .controls:first-of-type{background:#f0e6d2;border-top:3px solid #123e30;padding:20px;margin:24px 0}
.collection-design .controls label{font-size:16px;font-weight:700;min-width:0}
.collection-design .panel,.collection-design .generation-card,.collection-design .person-card,.collection-design .ring-list section{background:#f0e6d2;border:1px solid #cbbd9e;border-radius:0;padding:20px;box-shadow:none}
.collection-design .panel p{font-size:16px}
.collection-design .tree-main .muted{font:15px/1.5 Arial}
.collection-design .legend{font:16px/1.6 Arial}
.collection-design .fan-desktop{background:#fbf5e7;border-radius:0;border-color:#cbbd9e;padding:16px}
.collection-design .tree-header a{min-height:0}
/* The detailed research reader uses its original content and view scripts. */
.collection-research{--bg:#fbf5e7;--bg-deep:#f0e6d2;--surface:#fbf5e7;--surface-2:#f0e6d2;--ink:#123e30;--ink-2:#635d50;--ink-3:#635d50;--rule:#cbbd9e;--rule-soft:#cbbd9e;--accent:#175c45;--accent-2:#175c45;--accent-soft:#f0e6d2;--on-accent:#fff;--serif:Arial,Helvetica,sans-serif;--display:Arial,Helvetica,sans-serif;--ui:Arial,Helvetica,sans-serif}
.collection-research .crumb{font:14px/1.5 Arial}
.collection-research .topbar{background:#f0e6d2!important;position:static}
.collection-research .topbar-in{gap:12px;flex-wrap:wrap;padding:18px 32px}
.collection-research .brandmark{font:700 16px/1.5 Arial;width:100%}
.collection-research .view-toggle{display:flex;flex-wrap:wrap;gap:8px}
.collection-research .view-toggle button{background:white!important;color:#175c45!important;border:1px solid #cbbd9e!important}
.collection-research .view-toggle button.on{background:#123e30!important;color:white!important}
.collection-research .book-wrap{max-width:900px;margin:auto}
.collection-research .book-cover{background:white!important;padding:40px 32px!important}
.collection-research .book-cover h1{font-size:44px!important;max-width:22ch!important;margin:0 auto 20px!important}
.collection-research .book-cover .bc-sub{font:20px/1.6 Arial!important}
.collection-research .book-begin{background:#175c45!important;color:#fff!important;border-radius:0!important}
.collection-research .book-ch{border-top:1px solid #cbbd9e!important;padding:32px!important}
.collection-research .book-toc{background:#f0e6d2!important;border-radius:0!important}
.collection-research .mast{background:#f0e6d2}
@media(max-width:700px){.collection-home .collection-more{margin:32px 20px 0;padding:20px 0}.collection-home-sides{gap:12px}.collection-home-sides a{font-size:17px}.collection-research .topbar-in{padding:16px 20px}.collection-research .book-cover{padding:30px 20px!important}.collection-research .book-cover h1{font-size:32px!important}.collection-research .book-ch{padding:24px 20px!important}}
.collection-research .book-cover .book-tagline{font:20px/1.6 Arial!important}
.collection-research .brandmark{color:#123e30}
.collection-design button:disabled{opacity:.5;cursor:default}
.collection-design .action{border-color:#cbbd9e;border-radius:0;background:#fbf5e7;font:16px/1.5 Arial;color:#175c45}
.collection-home .collection-hero{padding-top:28px!important}
@media(max-width:700px){.collection-home main{padding-top:0!important}.collection-home .collection-hero{padding-top:28px!important}.collection-home .collection-hero p{font-size:18px!important;line-height:1.55!important}.collection-home .collection-hero h1{margin:14px 0 18px}.collection-fan .controls:first-of-type{padding:16px}.collection-fan .controls:first-of-type button{width:auto;flex:1}}
.collection-fan-workspace{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start;margin-bottom:24px}
.collection-fan-workspace #selection{margin:0}
.collection-fan-workspace .fan-desktop{min-height:260px}
.collection-fan .controls:first-of-type{display:grid;grid-template-columns:1fr 1.4fr auto auto;align-items:end}
.collection-fan .controls:first-of-type input,.collection-fan .controls:first-of-type select{width:100%}
.collection-fan .controls:first-of-type button{white-space:nowrap;align-self:end}
@media(max-width:700px){.collection-fan-workspace{display:flex;flex-direction:column;gap:12px}.collection-fan-workspace #selection{width:100%;padding:14px}.collection-fan-workspace .fan-desktop{width:100%;min-height:0}.collection-fan .controls:first-of-type{display:flex}.collection-fan .controls:first-of-type label{width:100%}.collection-fan .controls:first-of-type button{flex:1;width:auto;font-size:13px!important}.collection-fan main{padding-top:18px!important}}
.collection-fan-workspace .fan-desktop svg{max-height:420px}
@media(max-width:700px){.collection-fan-workspace .fan-desktop svg{max-height:260px}}
.collection-design .ring-list li,.collection-design .relation-list li{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;padding:12px 0}
.collection-design .ring-list li>strong,.collection-design .relation-list li>a{width:100%}
.collection-design .ring-list button{margin-left:0;font-size:13px!important;padding:8px 12px!important}
.collection-design .review-badge{margin:0;letter-spacing:0}
.collection-design .relation-list .muted{width:100%}
/* Verified reader/accessibility refinements after first-pass review. */
.collection-design .collection-skip{position:absolute;left:20px;top:-100px;z-index:9999;background:#fbf5e7;color:#123e30;padding:14px;border:2px solid #123e30}
.collection-design .collection-skip:focus{top:8px}
.collection-preserved-label{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important}
.collection-duplicate-link{display:none!important}
.collection-home .collection-start a.collection-primary-action{background:#175c45!important;color:#fff!important;font-weight:700}
.collection-home .collection-start a.collection-secondary-action{background:#fbf5e7!important;color:#175c45!important}
.collection-design h2{font-size:clamp(25px,2.4vw,32px)!important}
.collection-design h3{font-size:22px!important}
.collection-design .source,.collection-design figcaption,.collection-design .muted,.collection-design .gallery-meta{color:#514c41!important;font-size:15px!important;line-height:1.55!important}
.collection-design .placeholder{background:#f0e6d2!important;border-top-style:dashed!important}
.collection-design .placeholder small{font-weight:bold!important;color:#514c41!important;border-left:3px solid #635d50;padding-left:12px}
.collection-design .collection-recent-links{display:flex;flex-wrap:wrap;gap:12px 24px;line-height:1.7}
.collection-design .src-lbl{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;font-size:13px!important;line-height:1.45!important;padding:6px!important}
.collection-design .src-thumb{height:auto!important;min-height:104px!important;vertical-align:top}
.collection-design .collection-gallery-filter{padding:20px;background:#f0e6d2;margin:24px 0;border-top:3px solid #123e30}
.collection-gallery-filter label{display:block;font-weight:bold}.collection-gallery-filter input{display:block;width:100%;margin-top:8px}.collection-gallery-filter p{margin:8px 0 0;font-size:15px!important}
.collection-design .gallery-card[hidden],.collection-design .gallery-section[hidden]{display:none!important}
.collection-open-note>.note-disclose{display:none!important}
.collection-open-note form{border-top:1px solid #cbbd9e;margin-top:16px;padding-top:16px}
.collection-design .collection-image-loading:before{content:'Loading image';display:block;background:#f0e6d2;color:#514c41;padding:12px;font-size:14px}
.collection-design .collection-image-failed{background:transparent!important;border:0!important;height:auto!important;min-height:0!important}
.collection-design .collection-image-failed img{display:none!important}
.collection-design .collection-image-failed:before{content:'Image unavailable - open source';display:block;color:#514c41;font-size:14px;padding:8px 0}
.collection-research .src-imgs{display:flex!important;flex-wrap:wrap!important;gap:12px!important;max-width:100%}
.collection-research .src-thumb{display:flex!important;flex-direction:column!important;position:static!important;width:160px!important;max-width:100%!important;height:auto!important;overflow:visible!important}
.collection-research .src-thumb img{display:block!important;width:100%!important;height:100px!important;object-fit:contain!important}
.collection-research .src-thumb .src-lbl{position:static!important;display:block!important;width:100%!important;background:#f0e6d2!important;color:#514c41!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.45!important}
.collection-research .srcs{display:flex!important;flex-wrap:wrap!important;gap:8px 16px!important;max-width:100%}
.collection-research .srcs>a,.collection-research .srcs>span{max-width:100%;overflow-wrap:anywhere;font-size:15px!important;line-height:1.5!important}
.collection-research .fact,.collection-research .fact .body,.collection-research .meta{min-width:0;max-width:100%}
@media(max-width:700px){.collection-research .src-thumb{width:calc(50% - 8px)!important}.collection-research .src-thumb .src-lbl{font-size:14px!important}}
.collection-research .cols>main{width:100%!important;min-width:0!important}
.collection-research .card,.collection-research .card-body{min-width:0;max-width:100%}
.collection-research .table-wrap{overflow-x:auto;max-width:100%}
.collection-design .collection-image-failed img{display:none!important}

.collection-design h1,.collection-design h2,.collection-design h3{font-family:'EB Garamond',Georgia,'Times New Roman',serif!important;letter-spacing:-.015em}
.collection-design .collection-global{background:#123e30;border-bottom:4px solid #ac8750}
.collection-design .collection-global a{color:#fbf5e7}
.collection-design p,.collection-design li{font-size:20px;line-height:1.6}
.collection-design .collection-hero{border-bottom:1px solid #ac8750}
.collection-design .branch-card,.collection-design .branch-home-card,.collection-design .tile{border-top:2px solid #ac8750!important}
.collection-design .scope-note,.collection-design .family-line,.collection-design .open-question,.collection-design .record-fact,.collection-design .note{border-left-color:#ac8750!important}
.collection-research .book-cover{background:#fbf5e7!important}
.collection-research .src-thumb .src-lbl{background:#f0e6d2!important;color:#514c41!important}
.collection-design input,.collection-design textarea,.collection-design select{background:#fffdf6!important}
@media(max-width:700px){.collection-design p,.collection-design li{font-size:18px}}
.collection-fan-workspace{grid-template-columns:minmax(0,1fr)}
.collection-fan-workspace #selection{max-width:none;padding:14px 18px}
.collection-fan-workspace .fan-desktop svg{max-height:620px}
@media(min-width:701px){.collection-fan-workspace #selection{display:flex;gap:24px;align-items:center;justify-content:space-between}.collection-fan-workspace #selection p{margin:0;max-width:65ch}}
@media(max-width:700px){.collection-fan-workspace .fan-desktop svg{max-height:300px}}
@media(max-width:700px){.collection-fan .fan-center-name{font-size:14px!important}}

.collection-design .collection-branch-scope{border-bottom:1px solid #cbbd9e;padding:0 0 24px;margin-bottom:28px}
.collection-design .collection-branch-scope h2{font-size:21px!important;margin:0 0 12px!important}
.collection-home-scope{margin-top:24px;border-top:1px solid #cbbd9e;padding-top:16px}
.collection-home-scope summary,.collection-person-citations summary{cursor:pointer;color:#175c45;font-weight:700;text-decoration:underline}
.collection-design .collection-branch-description{font:17px/1.55 Georgia!important}
.collection-design .gallery-card h3{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;display:block!important;-webkit-line-clamp:unset!important;max-height:none!important;overflow-wrap:anywhere}
.collection-design .collection-empty-note{background:transparent!important;padding:10px 0!important;margin-top:16px}
.collection-empty-note>h2,.collection-empty-note>.note-context,.collection-empty-note>.notes-list{display:none!important}
.collection-empty-note>.note-disclose{background:transparent!important;color:#175c45!important;padding:6px 0!important;text-decoration:underline}
.collection-design .srcs a,.collection-design .gallery-meta,.collection-design .gallery-id,.collection-design figcaption,.collection-design small,.collection-design .muted{color:#514c41!important;font-size:14px!important;line-height:1.5!important}
.collection-finding-route{display:flex;flex-wrap:wrap;gap:12px 24px;border-bottom:1px solid #cbbd9e;padding:0 0 16px;margin-bottom:24px;font:16px/1.5 Arial}
.collection-person-citations{border-top:1px solid #cbbd9e;padding:16px 0;margin:20px 0}
.collection-image-enlarge{display:block;cursor:zoom-in}

/* Temporary reader repairs, preserving all family and source content. */
.collection-design .q-answer-link,.collection-design .q-answer-link:visited,.collection-design .q-answer-link:hover,.collection-design .q-answer-link:focus{color:#fff!important}
@media(max-width:700px){
body[data-design-page="trees/teller/generations/index.html"] #tree ul.branch{padding-left:10px;border-left:1px solid #ac8750}
body[data-design-page="trees/teller/generations/index.html"] #tree ul.root{padding-left:0;border-left:0}
body[data-design-page="trees/teller/generations/index.html"] #tree .family{padding:10px 8px;min-width:0}
body[data-design-page="trees/teller/generations/index.html"] #tree .branch .branch .branch .branch{padding-left:0;border-left:0}
body[data-design-page="trees/teller/generations/index.html"] #tree .family .family .family{margin-left:-8px;margin-right:-8px;border-left:2px solid #ac8750}
body[data-design-page="trees/teller/generations/index.html"] #tree .child>.source{margin-left:0}
body[data-design-page="trees/teller/generations/index.html"] #tree .family .source,body[data-design-page="trees/teller/generations/index.html"] #tree .child>.source{font:14px/1.5 Arial,sans-serif}
}

@media(max-width:700px){
.collection-design .reader-mobile-cards,.collection-design .reader-mobile-cards tbody{display:block;width:100%!important;min-width:0!important}
.collection-design .reader-mobile-cards thead{display:none}
.collection-design .reader-mobile-cards tr{display:block!important;width:100%!important;border:1px solid #cbbd9e;margin:12px 0;padding:12px;background:#fffdf6}
.collection-design .reader-mobile-cards td{display:block!important;width:auto!important;min-width:0!important;max-width:none!important;border:0!important;padding:6px 0!important;white-space:normal!important;overflow-wrap:anywhere}
.collection-design .reader-mobile-cards td::before{content:attr(data-label) ": ";font-weight:700;color:#123e30}
body[data-design-page="shapiro/fan/index.html"] .desktop-rings{display:none!important}
body[data-design-page="shapiro/fan/index.html"] #mobile-rings{display:block!important}
}
@media(min-width:701px){body[data-design-page="shapiro/fan/index.html"] #mobile-rings{display:none!important}}

body[data-design-page="shapiro/children/index.html"] img[src="/assets/F-09_1923_manifest_crop_join_brother_nathan_dubinsky.png"]{height:auto!important;min-height:0!important;max-height:none!important;width:100%;object-fit:contain}

/* Keep the joined chart readable instead of using the small source-tile layout. */
.collection-research .tree-chart-imgs{width:100%;max-width:100%;margin-left:0}
.collection-research .tree-chart-imgs .src-thumb{width:100%!important}
.collection-research .tree-chart-imgs .src-thumb img{height:auto!important;object-fit:contain!important}

/* Mobile layout repairs (CSS only): 44px touch targets in site/header navigation; search box first on the search page. */
@media (max-width:640px){
header a,header nav a,nav.global a,.collection-nav a{display:inline-flex;align-items:center;min-height:44px}
.search-page{display:flex;flex-direction:column}
.search-page .search-label{order:-3}
.search-page #site-search{order:-2}
}
.q-card,.question-evidence,.question-evidence p{overflow-wrap:anywhere}
@media (max-width:640px){
.collection-global a,.collection-home-link,.collection-finding-route a{display:inline-flex;align-items:center;min-height:44px}
.collection-global nav{align-items:center}
}

.person-records ul ul{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding-left:0;margin:8px 0}.person-records .person-thumb{display:block;width:132px;font-size:12px;line-height:1.3;text-decoration:none}.person-records .person-thumb img{display:block;width:132px;height:132px;object-fit:contain;background:#f0e6d2;border:1px solid #d8c9a8;margin-bottom:4px}
