/* Contemporary library â€” exclusively the custom front-page template. */
body.tph-library-page {
	--tph-ink: #152d3d;
	--tph-paper: #f7f5f0;
	--tph-copper: #9e512f;
	--tph-rule: #d9d5cb;
	margin: 0;
	background: var(--tph-paper);
	color: var(--tph-ink);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 16px;
	line-height: 1.6;
}
.tph-library-page *, .tph-library-page *::before, .tph-library-page *::after { box-sizing: border-box; }
.tph-library-page #main { padding: 0; }
.tph-library-container { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.tph-library-page :is(h1, h2, h3) { color: var(--tph-ink); font-family: Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -.025em; }
.tph-library-page p { margin: 0 0 20px; }
.tph-library-page a { color: var(--tph-ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
.tph-library-page a:hover { color: var(--tph-copper); }
.tph-library-page :is(a, summary, input, button):focus-visible { outline: 3px solid #c78356; outline-offset: 5px; }
.tph-library-page :is(section[id], article[id], details[id]) { scroll-margin-top: 24px; }
.tph-library-skip { position: absolute; top: -100px; left: 20px; z-index: 100000; padding: 12px 20px; background: #fff; }
.tph-library-skip:focus { top: 12px; }
.tph-library-header, .tph-library-footer { background: var(--tph-ink); color: #fff; }
.tph-library-masthead { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 94px; }
.tph-library-page .tph-library-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-family: Georgia, 'Times New Roman', serif; font-size: 24px; line-height: 1.25; text-decoration: none; flex-shrink: 0; }
.tph-library-brand svg { flex-shrink: 0; }
.tph-library-page .tph-library-brand:hover { color: #edc4a6; }
.tph-library-desktop-nav { display: flex; gap: 28px; align-items: center; }
.tph-library-page :is(.tph-library-header, .tph-library-footer) nav a { color: #f4f2ec; font-size: 14px; text-decoration: none; }
.tph-library-page :is(.tph-library-header, .tph-library-footer) nav a:hover { color: #edc4a6; text-decoration: underline; }
.tph-library-mobile-nav { display: none; }
.tph-library-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--tph-ink); color: #f8f5ed; padding: 54px 0 68px; text-align: center; }
.tph-library-hero > .tph-library-container { position: relative; z-index: 1; }
.tph-library-page .tph-library-eyebrow { margin: 0 0 22px; color: #e0a67b; font-size: 11px; line-height: 1.5; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; }
.tph-library-page .tph-library-hero h1 { max-width: 1060px; margin: 0 auto 20px; color: #fffaf2; font-size: clamp(36px, 4.6vw, 59px); line-height: 1.14; }
.tph-library-page .tph-library-hero-lead { margin: 0 auto 32px; color: #ece8df; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(19px, 2vw, 24px); line-height: 1.5; }
.tph-library-orbit { position: absolute; width: 330px; height: 330px; right: -205px; top: 15px; border: 1px solid #b99d7e; border-radius: 50%; opacity: .35; transform: rotate(-18deg); background: repeating-linear-gradient(0deg, transparent 0 52px, #b99d7e 53px 54px, transparent 55px 106px); }
.tph-library-orbit::before, .tph-library-orbit::after { content: ''; position: absolute; inset: 0 60px; border: 1px solid #b99d7e; border-radius: 50%; }
.tph-library-orbit::after { inset: 0 110px; }

/* Preserve native KB search and its live results; replace only presentation. */
.tph-library-search { width: min(760px, 100%); margin: 0 auto; text-align: left; }
body.tph-library-page .tph-library-search :is(.eckb-kb-block-search, .epkb-block-main-page-container, .epkb-ml__row-search, #epkb-ml__module-search, #epkb-ml-search-classic-layout) { width: 100% !important; max-width: none !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.tph-library-page .tph-library-search .epkb-ml-search-title { display: none !important; }
body.tph-library-page .tph-library-search #epkb-ml-search-form { width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; }
body.tph-library-page .tph-library-search #epkb-ml-search-box,
.tph-library-fallback-search { display: flex !important; align-items: stretch !important; width: 100% !important; margin: 0 !important; padding: 0 !important; background: #fffaf5 !important; border: 1px solid #cfb59f !important; border-radius: 3px !important; overflow: visible !important; }
body.tph-library-page .tph-library-search .epkb-ml-search-box__input,
.tph-library-fallback-search input[type=search] { flex: 1 1 auto !important; width: 0 !important; min-width: 0 !important; height: 60px !important; padding: 15px 24px !important; border: 0 !important; border-radius: 2px 0 0 2px !important; background: #fffaf5 !important; box-shadow: none !important; color: #152d3d !important; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; font-size: 16px !important; line-height: 1.5 !important; }
body.tph-library-page .tph-library-search .epkb-ml-search-box__input::placeholder { color: #526170; opacity: 1; }
body.tph-library-page .tph-library-search .epkb-ml-search-box__btn,
.tph-library-fallback-search button { position: static !important; display: flex !important; align-items: center !important; justify-content: center !important; flex: 0 0 126px !important; width: auto !important; min-height: 60px !important; margin: 0 !important; padding: 12px 22px !important; border: 0 !important; border-left: 1px solid #cfb59f !important; border-radius: 0 2px 2px 0 !important; background: #99512f !important; color: white !important; font-size: 16px !important; text-transform: none !important; line-height: 1.4 !important; cursor: pointer; }
body.tph-library-page .tph-library-search .epkb-ml-search-box__btn:hover { background: #803f23 !important; }
body.tph-library-page .tph-library-search .epkb-ml-search-box__text { color: #fff !important; font-size: 16px !important; }
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form { max-width: 100% !important; }
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box { background: #fffaf5 !important; }
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box .epkb-ml-search-box__input { background: #fffaf5 !important; }
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box .epkb-ml-search-box__btn { background: #99512f !important; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important; }
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box .epkb-ml-search-box__btn:hover { background: #803f23 !important; }
body.tph-library-page .tph-library-search #epkb-ml-search-results { position: relative; margin: 10px 0 0 !important; max-height: 420px; overflow-y: auto; color: #152d3d !important; background: #fffaf5 !important; border-radius: 3px; }
body.tph-library-page .tph-library-search #epkb-ml-search-results:empty { display: none; }
body.tph-library-page .tph-library-search #epkb-ml-search-results :is(a, h2, h3, p, li) { color: #152d3d !important; font-size: 16px !important; line-height: 1.5 !important; }

.tph-library-paper { background: var(--tph-paper); }
.tph-library-start { padding-block: 42px 30px; }
.tph-library-page .tph-library-section-title { margin: 0 0 30px; font-size: clamp(29px, 3vw, 39px); line-height: 1.2; }
.tph-library-section-title::after { content: ''; display: block; width: 38px; height: 2px; margin-top: 14px; background: #b67551; }
.tph-library-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tph-library-start-card { position: relative; display: flex; flex-direction: column; min-height: 216px; padding: 22px; border: 1px solid var(--tph-rule); }
.tph-library-number { color: var(--tph-copper); font-family: Georgia, 'Times New Roman', serif; font-size: 19px; }
.tph-library-page .tph-library-start-card h3 { margin: 5px 0 12px; font-size: 24px; line-height: 1.2; }
.tph-library-start-card p { position: relative; z-index: 1; width: calc(100% - 120px); max-width: 24ch; min-height: 52px; margin-bottom: 12px; font-size: 14px; line-height: 1.6; }
.tph-library-page .tph-library-text-link { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px; width: fit-content; max-width: calc(100% - 120px); min-height: 32px; margin-top: auto; font-size: 13px; text-decoration: underline; }
.tph-library-page a > span[aria-hidden] { color: var(--tph-copper); }
.tph-library-art { display: block; pointer-events: none; width: 120px; height: 120px; background-image: url('assets/library-illustrations.webp'); background-repeat: no-repeat; background-size: 400% 300%; opacity: .65; clip-path: inset(5% 6%); }
.tph-library-art--books { background-position: 0 0; }
.tph-library-art--scales { background-position: 33.3333% 0; }
.tph-library-art--folders { background-position: 66.6667% 0; }
.tph-library-art--column { background-position: 100% 0; }
.tph-library-art--chart { background-position: 0 50%; }
.tph-library-art--papers { background-position: 33.3333% 50%; }
.tph-library-art--bulb { background-position: 66.6667% 50%; }
.tph-library-art--coins { background-position: 100% 50%; }
.tph-library-art--globe { background-position: 0 100%; }
.tph-library-art--city { background-position: 33.3333% 100%; }
.tph-library-art--law { background-position: 66.6667% 100%; }
.tph-library-art--openbook { background-position: 100% 100%; }
.tph-library-start-card .tph-library-art { position: absolute; right: 14px; bottom: 18px; width: 134px; height: 134px; opacity: .78; }
.tph-library-subjects { padding-block: 34px 48px; border-top: 1px solid #c9a78f; }
.tph-library-subject-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; row-gap: 34px; }
.tph-library-subject { display: grid; grid-template-columns: minmax(0, 1fr) 124px; grid-template-rows: auto auto 1fr; column-gap: 14px; min-height: 206px; border-top: 1px solid #c9a78f; padding: 18px 0 4px; }
.tph-library-page .tph-library-kicker { grid-column: 1 / -1; margin: 0 0 8px; color: var(--tph-copper); font-size: 10px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: .12em; }
.tph-library-page .tph-library-subject h3 { grid-column: 1 / -1; margin: 0 0 12px; font-size: 25px; line-height: 1.2; }
.tph-library-subject-links { grid-column: 1; align-self: center; min-width: 0; }
.tph-library-subject a { display: flex; align-items: baseline; gap: 8px; width: fit-content; max-width: 100%; padding-block: 4px; font-size: 14px; line-height: 1.5; text-decoration: underline; }
.tph-library-subject a > span { flex-shrink: 0; }
.tph-library-subject .tph-library-art { grid-column: 2; grid-row: 3; align-self: end; justify-self: end; width: 124px; height: 124px; opacity: .78; }
.tph-library-subject--methods .tph-library-subject-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tph-library-subject--methods a { font-size: 13px; }
.tph-library-art--globe { clip-path: inset(3% 14% 3% 0); }
.tph-library-index { margin-top: 28px; border-block: 1px solid var(--tph-rule); }
.tph-library-page summary { cursor: pointer; }
.tph-library-index summary { padding: 18px 4px; font-size: 16px; font-weight: 500; }
.tph-library-index summary span { margin-left: 16px; color: #58636a; font-size: 13px; font-weight: 400; }
.tph-library-index-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 20px 0 32px; }
.tph-library-page .tph-library-index h3 { font-size: 22px; line-height: 1.3; margin: 0 0 14px; }
.tph-library-index ul, .tph-library-more-cases ul { margin: 0; padding-left: 18px; }
.tph-library-index li, .tph-library-more-cases li { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.tph-library-index a, .tph-library-more-cases a { text-decoration: underline; overflow-wrap: anywhere; }
.tph-library-reference { background: #fcfbf7; padding-block: 42px 46px; border-block: 1px solid #e7e3da; }
.tph-library-reference-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; }
.tph-library-reference-grid > section { position: relative; min-height: 265px; }
.tph-library-cases { padding-left: 36px; border-left: 1px solid #c9a78f; }
.tph-library-reference .tph-library-section-title { font-size: clamp(27px, 2.7vw, 34px); margin-bottom: 24px; }
.tph-library-reference p { position: relative; z-index: 1; max-width: 49ch; font-size: 14px; line-height: 1.7; }
.tph-library-country-links { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; max-width: 480px; }
.tph-library-country-links a { display: inline-flex; gap: 14px; justify-content: space-between; align-items: center; min-height: 42px; padding: 8px 12px; border: 1px solid var(--tph-rule); background: #fcfbf7; font-size: 13px; line-height: 1.5; text-decoration: none; }
.tph-library-country-links a:hover { border-color: var(--tph-copper); }
.tph-library-countries .tph-library-art { width: 184px; height: 184px; margin-top: 0; margin-left: auto; opacity: .65; }
.tph-library-case-body { display: grid; grid-template-columns: minmax(0, 1fr) 174px; column-gap: 18px; align-items: start; }
.tph-library-case-links { grid-column: 1; display: grid; gap: 10px; padding-right: 0; }
.tph-library-case-links a { display: flex; gap: 16px; align-items: baseline; width: fit-content; font-size: 15px; text-decoration: underline; }
.tph-library-more-cases { grid-column: 1; min-width: 0; margin-top: 24px; }
.tph-library-more-cases[open] { grid-column: 1 / -1; }
.tph-library-more-cases summary { width: fit-content; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.tph-library-more-cases ul { padding-top: 18px; }
.tph-library-cases .tph-library-art { grid-column: 2; grid-row: 1 / span 2; align-self: end; width: 174px; height: 174px; opacity: .7; }
.tph-library-more-cases[open] ~ .tph-library-art { display: none; }
.tph-library-context { padding-block: 24px; }
.tph-library-context-inner { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1fr); align-items: center; gap: 42px; }
.tph-library-context .tph-library-art { width: 350px; height: 230px; background-size: 1400px 1050px; background-position: 100% calc(100% + 30px); justify-self: center; opacity: .78; clip-path: none; }
.tph-library-context .tph-library-section-title { margin-bottom: 18px; font-size: 36px; }
.tph-library-context p { font-size: 15px; line-height: 1.7; }
.tph-library-context-links { display: flex; flex-wrap: wrap; gap: 14px 30px; }
.tph-library-context-links a { display: inline-flex; align-items: baseline; gap: 16px; font-size: 14px; text-decoration: underline; }
.tph-library-footer { padding: 26px 0 22px; }
.tph-library-footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.tph-library-footer nav { display: flex; flex-wrap: wrap; gap: 24px; }
.tph-library-copyright { padding-top: 16px; color: #c2cbd0; font-size: 11px; line-height: 1.6; }

@media (max-width: 1000px) {
	.tph-library-container { width: calc(100% - 48px); }
	.tph-library-masthead { gap: 20px; }
	.tph-library-page .tph-library-brand { font-size: 21px; }
	.tph-library-desktop-nav { gap: 18px; }
	.tph-library-start-grid { gap: 16px; }
	.tph-library-start-card { padding: 20px; }
	.tph-library-page .tph-library-start-card h3 { font-size: 22px; }
	.tph-library-start-card .tph-library-art { width: 112px; height: 112px; }
	.tph-library-start-card p, .tph-library-page .tph-library-start-card .tph-library-text-link { width: auto; max-width: calc(100% - 96px); }
	.tph-library-subject { grid-template-columns: minmax(0, 1fr) 104px; gap: 0 10px; }
	.tph-library-subject .tph-library-art { width: 104px; height: 104px; }
	.tph-library-subject--methods .tph-library-subject-links { grid-template-columns: 1fr; }
	.tph-library-context .tph-library-art { width: 300px; height: 210px; background-size: 1200px 900px; background-position: 100% calc(100% + 15px); }
	.tph-library-subject-grid { column-gap: 24px; }
	.tph-library-reference-grid { gap: 28px; }
	.tph-library-cases { padding-left: 28px; }
}
@media (max-width: 767px) {
	.tph-library-container { width: calc(100% - 40px); }
	.tph-library-masthead { position: relative; min-height: 78px; gap: 12px; }
	.tph-library-page .tph-library-brand { font-size: 20px; gap: 10px; }
	.tph-library-masthead .tph-library-brand { flex-shrink: 1; min-width: 0; }
	.tph-library-brand svg { width: 28px; height: 26px; }
	.tph-library-desktop-nav { display: none; }
	.tph-library-mobile-nav { display: block; flex-shrink: 0; }
	.tph-library-mobile-nav summary { color: #fff; font-size: 14px; list-style: none; padding: 12px 0 12px 12px; }
	.tph-library-mobile-nav summary::-webkit-details-marker { display: none; }
	.tph-library-mobile-nav summary span { padding-left: 7px; }
	.tph-library-mobile-nav:not([open]) nav { display: none; }
	.tph-library-mobile-nav[open] nav { position: absolute; top: 100%; left: -20px; right: -20px; z-index: 20; display: grid; padding: 12px 20px 20px; background: #152d3d; border-top: 1px solid #526170; }
	.tph-library-mobile-nav nav a { padding: 12px; border-bottom: 1px solid #3c505e; }
	.tph-library-hero { padding: 40px 0 48px; }
	.tph-library-page .tph-library-eyebrow { max-width: 30ch; margin-inline: auto; font-size: 10px; letter-spacing: .15em; }
	.tph-library-page .tph-library-hero h1 { max-width: 16ch; font-size: clamp(33px, 8vw, 48px); }
	.tph-library-page .tph-library-hero-lead { max-width: 32ch; font-size: 20px; margin-bottom: 28px; }
	.tph-library-orbit { right: -280px; opacity: .18; }
	body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box .epkb-ml-search-box__input { padding: 12px 14px !important; height: 54px !important; font-size: 14px !important; }
	body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box .epkb-ml-search-box__btn { flex-basis: 85px !important; min-height: 54px !important; padding: 12px !important; font-size: 14px !important; }
	body.tph-library-page .tph-library-search .epkb-ml-search-box__text { font-size: 14px !important; }
	.tph-library-start { padding-block: 34px 30px; }
	.tph-library-page .tph-library-section-title { font-size: 30px; margin-bottom: 26px; }
	.tph-library-start-grid { grid-template-columns: 1fr; gap: 16px; }
	.tph-library-start-card { min-height: 188px; padding: 22px; }
	.tph-library-page .tph-library-start-card h3 { font-size: 25px; }
	.tph-library-start-card p { width: calc(100% - 130px); min-height: 0; max-width: 23ch; margin-bottom: 16px; }
	.tph-library-start-card .tph-library-art { width: 140px; height: 140px; right: 14px; }
	.tph-library-page .tph-library-start-card .tph-library-text-link { max-width: calc(100% - 125px); }
	.tph-library-page .tph-library-text-link { min-height: 36px; }
	.tph-library-subjects { padding-block: 30px 36px; }
	.tph-library-subject-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 28px; }
	.tph-library-page .tph-library-subject h3 { font-size: 24px; }
	.tph-library-subject a { max-width: 100%; min-height: 32px; font-size: 14px; }

	.tph-library-index summary span { display: block; margin: 4px 0 0 20px; }
	.tph-library-index-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.tph-library-reference { padding-block: 34px; }
	.tph-library-reference-grid { grid-template-columns: 1fr; gap: 30px; }
	.tph-library-reference-grid > section { min-height: 0; }
	.tph-library-cases { border-left: 0; border-top: 1px solid #c9a78f; padding: 30px 0 0; }
	.tph-library-countries .tph-library-art { width: 180px; height: 180px; margin-top: 0; }
	.tph-library-case-body { grid-template-columns: minmax(0, 1fr) 138px; }
	.tph-library-cases .tph-library-art { width: 138px; height: 138px; }
	.tph-library-context { padding-block: 28px 36px; }
	.tph-library-context-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.tph-library-context .tph-library-art { width: 300px; height: 210px; max-width: 100%; justify-self: start; }
	.tph-library-context .tph-library-section-title { font-size: 30px; }
	.tph-library-footer-inner { align-items: flex-start; flex-direction: column; }
	.tph-library-footer nav { gap: 20px; }
	.tph-library-footer nav a { min-height: 36px; }
}
@media (max-width: 480px) {
	.tph-library-container { width: calc(100% - 36px); }
	.tph-library-page .tph-library-brand { font-size: 18px; gap: 8px; }
	.tph-library-mobile-nav[open] nav { left: -18px; right: -18px; }
	.tph-library-subject-grid { grid-template-columns: 1fr; }
	.tph-library-subject { grid-template-columns: minmax(0, 1fr) 124px; min-height: 194px; }
	.tph-library-subject .tph-library-art { width: 124px; height: 124px; }
	.tph-library-subject--methods .tph-library-subject-links { grid-template-columns: 1fr; }
	.tph-library-index-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	.tph-library-page *, .tph-library-page *::before, .tph-library-page *::after { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
	.tph-library-page { color: #000; background: #fff; }
	.tph-library-header, .tph-library-search, .tph-library-footer, .tph-library-art, .tph-library-orbit { display: none !important; }
	.tph-library-hero, .tph-library-paper, .tph-library-reference { color: #000; background: #fff; }
	.tph-library-page .tph-library-hero :is(h1, p) { color: #000; }
}

/* One continuous search control, including plugin input max-height overrides. */
body.tph-library-page .tph-library-search { --tph-search-height: 60px; }
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box {
 position: relative !important; height: var(--tph-search-height) !important; min-height: 0 !important; max-height: none !important; gap: 0 !important; overflow: hidden !important;
}
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box::before {
 content: ''; position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23152d3d' stroke-width='1.8'%3E%3Ccircle cx='10' cy='10' r='6.5'/%3E%3Cpath d='m15 15 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box :is(.epkb-ml-search-box__input, .epkb-ml-search-box__btn) {
 box-sizing: border-box !important; height: calc(var(--tph-search-height) - 2px) !important; min-height: 0 !important; max-height: none !important; align-self: stretch !important; margin: 0 !important; border-radius: 0 !important; transition: none !important;
}
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box .epkb-ml-search-box__input { padding-left: 48px !important; }
body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box:focus-within { outline: 3px solid #e0a67b; outline-offset: 4px; }
@media (max-width: 767px) {
 body.tph-library-page .tph-library-search { --tph-search-height: 56px; }
 body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box::before { left: 14px; width: 14px; height: 14px; }
 body.tph-library-page .tph-library-search #epkb-ml__module-search #epkb-ml-search-classic-layout #epkb-ml-search-form #epkb-ml-search-box .epkb-ml-search-box__input { padding-left: 36px !important; }
}
@media (max-width: 359px) {
 .tph-library-start-card p, .tph-library-page .tph-library-start-card .tph-library-text-link { width: auto; max-width: calc(100% - 95px); }
 .tph-library-start-card .tph-library-art { width: 110px; height: 110px; right: 10px; }
 .tph-library-subject { grid-template-columns: minmax(0, 1fr) 105px; }
 .tph-library-subject .tph-library-art { width: 105px; height: 105px; }
 .tph-library-cases .tph-library-art { width: 110px; height: 110px; }
 .tph-library-case-body { grid-template-columns: minmax(0, 1fr) 110px; }
 .tph-library-context .tph-library-art { width: 260px; height: 185px; background-size: 1040px 780px; background-position: 100% calc(100% + 10px); }
}

/* Compact illustrated reference spread, matching the approved library concept. */
.tph-library-reference { padding-block: 30px 24px; }
.tph-library-reference-grid { grid-template-columns: 1.2fr 1fr; gap: 24px; }
.tph-library-reference-grid > section { min-height: 306px; }
.tph-library-cases { padding-left: 28px; }
.tph-library-reference .tph-library-section-title { margin-bottom: 16px; font-size: clamp(26px, 2.5vw, 32px); }
.tph-library-reference p { max-width: none; margin-bottom: 18px; font-family: Georgia, 'Times New Roman', serif; font-size: 14px; }
.tph-library-country-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 510px; gap: 10px 12px; }
.tph-library-country-links a { min-height: 36px; min-width: 0; gap: 8px; padding: 7px 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 12px; }
.tph-library-countries .tph-library-art { position: absolute; z-index: 0; right: -5px; bottom: -4px; width: min(76%, 440px); height: 214px; margin: 0; background-image: url('assets/jurisdiction-skyline.webp'); background-size: contain; background-position: right bottom; clip-path: none; opacity: .42; }
.tph-library-countries { display: flex; flex-direction: column; }
.tph-library-country-index { position: relative; z-index: 1; margin-top: auto; padding-top: 24px; }
.tph-library-country-index summary, .tph-library-more-cases summary { display: flex; align-items: baseline; gap: 18px; width: fit-content; list-style: none; font-family: Georgia, 'Times New Roman', serif; font-size: 15px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.tph-library-country-index summary::-webkit-details-marker, .tph-library-more-cases summary::-webkit-details-marker { display: none; }
.tph-library-reference summary > span { color: var(--tph-copper); }
.tph-library-reference details[open] summary > span { transform: rotate(90deg); }
.tph-library-country-index ul { columns: 2; margin: 18px 0 0; padding-left: 20px; font-size: 14px; }
.tph-library-country-index li { break-inside: avoid; margin-bottom: 12px; }
.tph-library-country-index[open] ~ .tph-library-art { display: none; }
.tph-library-case-body { grid-template-columns: minmax(0, 1fr) 210px; grid-template-rows: 1fr auto; min-height: 208px; gap: 12px; }
.tph-library-case-links { gap: 12px; }
.tph-library-case-links a { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; }
.tph-library-more-cases { margin-top: 18px; }
.tph-library-cases .tph-library-art { align-self: end; width: 210px; height: 208px; background-image: url('assets/case-law-books.webp'); background-size: contain; background-position: right bottom; clip-path: none; opacity: .65; }
.tph-library-context { padding-block: 16px; }
.tph-library-context-inner { grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); gap: 32px; }
.tph-library-context .tph-library-art { width: 100%; max-width: 440px; height: 166px; background-image: url('assets/research-open-book.webp'); background-size: contain; background-position: left center; opacity: .6; }
.tph-library-context .tph-library-section-title { font-size: 29px; margin-bottom: 12px; }
.tph-library-context p { font-family: Georgia, 'Times New Roman', serif; font-size: 14px; margin-bottom: 12px; }
.tph-library-context-links { gap: 12px 22px; }
.tph-library-context-links a { font-family: Georgia, 'Times New Roman', serif; font-weight: 600; }
.tph-library-context-links a + a { border-left: 1px solid #c9a78f; padding-left: 22px; }
@media (min-width: 768px) and (max-width: 1000px) {
 .tph-library-reference-grid { gap: 20px; }
 .tph-library-country-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
 .tph-library-cases { padding-left: 20px; }
 .tph-library-reference-grid > section { min-height: 350px; }
 .tph-library-case-body { grid-template-columns: minmax(0, 1fr) 140px; min-height: 245px; }
 .tph-library-cases .tph-library-art { width: 140px; height: 160px; }
 .tph-library-countries .tph-library-art { width: 90%; height: 180px; }
 .tph-library-context-links a + a { border-left: 0; padding-left: 0; }
}
@media (max-width: 767px) {
 .tph-library-reference { padding-block: 26px; }
 .tph-library-reference-grid { grid-template-columns: 1fr; gap: 24px; }
 .tph-library-reference-grid > section { min-height: 284px; }
 .tph-library-cases { padding: 26px 0 0; }
 .tph-library-countries .tph-library-art { width: 75%; height: 150px; bottom: 0; right: 0; }
 .tph-library-country-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
 .tph-library-country-links a { min-width: 0; min-height: 36px; padding: 7px 10px; }
 .tph-library-country-index { margin-top: auto; padding-top: 26px; }
 .tph-library-country-index ul { columns: 1; }
 .tph-library-case-body { grid-template-columns: minmax(0, 1fr) 145px; min-height: 172px; }
 .tph-library-cases .tph-library-art { width: 145px; height: 170px; }
 .tph-library-context-inner { grid-template-columns: minmax(0, 1fr); gap: 12px; }
 .tph-library-context .tph-library-art { width: min(100%, 360px); height: 135px; justify-self: start; }
 .tph-library-context .tph-library-section-title { font-size: 27px; }
 .tph-library-context-links a + a { border-left: 0; padding-left: 0; }
}
@media (max-width: 359px) {
 .tph-library-reference-grid > section { min-height: 318px; }
 .tph-library-country-links a { min-width: 0; }
 .tph-library-case-body { grid-template-columns: minmax(0, 1fr) 112px; }
 .tph-library-cases .tph-library-art { width: 112px; height: 150px; }
}
