/* Madinum journal: shared reading and discovery layouts. */
.editorial-page{margin:0;background:#fff;color:#304735;font-family:var(--font-body,"DIN Ar",Arial,sans-serif);font-size:16px;line-height:1.8}
.editorial-page *, .editorial-page *::before,.editorial-page *::after{box-sizing:border-box}
.editorial-page a{text-underline-offset:4px}
.editorial-page :where(a,button,input,summary):focus-visible{outline:2px solid #826b45;outline-offset:4px}
.editorial-page [hidden]{display:none!important}
.editorial-shell{width:min(1200px,100%);margin:0 auto;padding:40px 32px 72px}
.editorial-eyebrow{display:flex;align-items:center;gap:10px;color:#806b49;font-size:14px;font-weight:600;letter-spacing:.01em;margin:0 0 10px}
.editorial-eyebrow::before{content:"";width:24px;height:1px;background:currentColor}
.editorial-intro{display:flex;align-items:center;justify-content:space-between;gap:32px;padding:38px 44px;margin:0 0 32px;border:1px solid #e8e4d8;border-radius:20px;background:#f5f3ec;overflow:hidden}
.editorial-intro h1{font-size:clamp(38px,4.6vw,58px);font-weight:500;line-height:1.25;margin:0 0 12px}
.editorial-intro-copy{font-size:18px;color:#63715e;line-height:1.8;max-width:650px;margin:0}
.editorial-card{min-width:0;border:1px solid #e5e7de;border-radius:19px;background:white;overflow:hidden;transition:box-shadow .25s,border-color .25s}
.editorial-card:hover{border-color:#bcc9b1;box-shadow:0 12px 30px #3047350b}
.editorial-card:focus-within{outline:2px solid #826b45;outline-offset:4px}
.editorial-card-link{display:flex;flex-direction:column;height:100%;color:inherit;text-decoration:none}
.editorial-card-media{position:relative;aspect-ratio:16/9;background:#eaece3;overflow:hidden}
.editorial-card-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.editorial-card-link:hover .editorial-card-media img{transform:scale(1.025)}
.editorial-card-copy{display:flex;flex-direction:column;gap:14px;flex:1;padding:24px}
.editorial-card-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:#6b7667;flex-wrap:wrap}
.editorial-topic{display:inline-flex;align-items:center;min-height:30px;border-radius:999px;background:#edf2e7;color:#43583a;padding:3px 12px;font-size:13px;font-weight:500;line-height:1.6}
.editorial-card h2,.editorial-card h3{font-size:23px;line-height:1.6;font-weight:500;color:#304735;margin:0;text-wrap:pretty;overflow-wrap:anywhere}
.editorial-card-description{font-size:15px;line-height:1.9;color:#697461;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.editorial-card-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:16px;border-top:1px solid #eeeee6;font-size:13px;color:#6b7667}
.editorial-read-more{display:inline-flex;gap:12px;align-items:center;white-space:nowrap;color:#3f5543;font-weight:600}
.editorial-read-more>span{font:24px/1 Arial,sans-serif}
.editorial-feature .editorial-card-link{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);min-height:360px}
.editorial-feature .editorial-card-media{aspect-ratio:auto;min-height:100%}
.editorial-feature .editorial-card-copy{padding:34px;justify-content:center;gap:18px}
.editorial-feature h2{font-size:clamp(27px,2.7vw,35px);line-height:1.55}
.editorial-feature .editorial-card-description{font-size:16px;-webkit-line-clamp:3}
.editorial-feature .editorial-card-footer{margin-top:12px}
.editorial-feature-label{position:absolute;top:20px;inset-inline-start:20px;background:#fffef5ed;color:#3f5543;padding:7px 15px;border-radius:999px;font-size:13px;box-shadow:0 2px 12px #0001}
.editorial-library{margin-top:60px}
.editorial-section-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:24px}
.editorial-section-heading h2{font-size:clamp(26px,3vw,34px);font-weight:500;line-height:1.5;margin:0}
.editorial-section-heading .editorial-eyebrow{margin-bottom:8px}
.editorial-section-heading>a{min-height:44px;display:inline-flex;align-items:center;font-size:14px;font-weight:500;color:#536948;white-space:nowrap}
.editorial-results-count{font-size:14px;color:#697461;margin:0 0 6px;white-space:nowrap}
.editorial-filters{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:28px;padding-block:16px;border-block:1px solid #e7e8de}
.editorial-filter-topics{display:flex;flex-wrap:wrap;gap:6px}
.editorial-filter-topics button,.editorial-filter-reset,.editorial-empty button{min-height:44px;padding:10px 16px;border:1px solid transparent;border-radius:999px;color:#53634b;background:transparent;cursor:pointer;font:inherit;font-size:14px;line-height:1.5}
.editorial-filter-topics button:hover{background:#f4f5ee}
.editorial-filter-topics button[aria-pressed=true]{background:#3f5543;color:white}
.editorial-search{display:flex;align-items:center;gap:10px;margin-inline-start:auto;border:1px solid #dfe3d6;border-radius:999px;padding:0 16px;min-height:44px;width:230px;max-width:100%;background:#fff}
.editorial-search>span[aria-hidden]{font-size:26px;line-height:1;color:#697b5b}
.editorial-search input{appearance:none;-webkit-appearance:none;background:transparent;border:0;outline:0;padding:8px 0;min-width:0;width:100%;height:44px;font:inherit;font-size:16px;color:#304735;box-shadow:none}
.editorial-search:focus-within{outline:2px solid #826b45;outline-offset:3px}
.editorial-search input:focus-visible{outline:0}
.editorial-filter-reset{border-color:#dfe3d6;text-decoration:underline}
.article-grid,.editorial-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:stretch}
.editorial-empty{background:#f6f5ee;border:1px dashed #c9d0bf;border-radius:18px;padding:36px;text-align:center;color:#5a6b50}
.editorial-empty p{margin:0 0 16px}.editorial-empty button{background:#3f5543;color:white}
.editorial-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.editorial-review{padding:10px 16px;margin:0 0 24px;border:1px solid #d8ddcd;border-radius:10px;background:#f7f6ef;font-size:14px}
/* Article layout. The body retains a comfortable line length and start alignment. */
.editorial-breadcrumb{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:34px;color:#74806c;font-size:13px;line-height:1.6}
.editorial-breadcrumb a{color:#65785a;text-decoration:none;min-height:30px;display:inline-flex;align-items:center}
.editorial-breadcrumb a:hover{text-decoration:underline}
.editorial-reading-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:48px;align-items:start}
.editorial-story{min-width:0}
.editorial-story-kicker{display:flex;align-items:center;gap:14px;color:#6b7667;font-size:13px;margin:0 0 18px}
.editorial-story-header h1{font-size:clamp(32px,3.7vw,45px);font-weight:500;line-height:1.5;letter-spacing:-.015em;margin:0 0 24px;text-wrap:pretty;overflow-wrap:anywhere;color:#304735}
.editorial-story-meta{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding-bottom:24px}
.article-byline{display:flex;align-items:center;gap:11px;margin:0;font-size:14px;line-height:1.6}
.article-byline>img{width:38px;height:38px;border:1px solid #e1e4d7;border-radius:11px;object-fit:cover}
.article-byline>span{display:grid;gap:2px}
.article-byline a{color:#43583a;text-decoration:none;font-weight:500}.article-byline a:hover{text-decoration:underline}
.article-byline time{font-size:12px;color:#65715e}
.editorial-copy-link{margin-inline-start:auto;display:inline-flex;align-items:center;gap:14px;min-height:44px;border:1px solid #dfe3d6;border-radius:999px;padding:9px 16px;font:inherit;font-size:13px;line-height:1.5;color:#536948;background:white;cursor:pointer}
.editorial-copy-link>span{font:20px/1 Arial,sans-serif}.editorial-copy-link:hover{background:#f5f6ef}
.editorial-share-status{font-size:12px;color:#6b7667}.editorial-share-status:empty{display:none}
.editorial-reviewed{font-size:13px;color:#697461;margin:-12px 0 24px}
.editorial-cover{margin:0 0 36px}
.editorial-cover>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:20px;background:#edf0e5}
.editorial-cover figcaption{font-size:12px;color:#65715e;line-height:1.7;margin-top:8px}
.editorial-article-body{max-width:760px}
.editorial-page .editorial-article-body p{text-align:start;font-size:18px;line-height:2;color:#4c5e46;margin:0}
.editorial-page .editorial-article-body .article-lead{font-size:20px;line-height:1.95;color:#3f5543;padding-inline-start:22px;border-inline-start:3px solid #a38b57;margin-bottom:42px}
.editorial-article-body>section{scroll-margin-top:116px;margin-top:38px;padding-top:28px;border-top:1px solid #e9ebdf}
.editorial-article-body h2{display:flex;align-items:flex-start;gap:14px;font-size:27px;line-height:1.6;font-weight:500;margin:0 0 16px;text-wrap:pretty;overflow-wrap:anywhere}
.editorial-section-number{flex:none;color:#9b875b;font:500 12px/1.6 Figtree,Arial,sans-serif;min-width:26px;margin-top:12px}
.article-source{padding:16px 18px;background:#f5f7ef;border:1px solid #e2e7d8;border-radius:12px;margin-top:20px;font-size:13px;color:#697461}
.article-source>span{display:block;margin-bottom:4px;font-weight:600}
.article-source a{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:44px;color:#4d6541;font-size:14px;overflow-wrap:anywhere}
.article-source a>span{flex:none;font-size:18px}
.editorial-reading-aside{align-self:stretch;min-width:0}
.editorial-aside-sticky{position:sticky;top:112px;padding-top:4px}
.editorial-toc{border:1px solid #e4e8da;border-radius:17px;padding:22px 18px;background:#fafbf6}
.editorial-toc h2{font-size:17px;line-height:1.6;font-weight:600;margin:0 0 16px;padding:0 6px 14px;border-bottom:1px solid #e1e6d5}
.editorial-toc ol{max-height:max(220px,calc(100dvh - 400px));overflow-y:auto;scrollbar-width:thin}
.editorial-toc ol,.editorial-mobile-toc ol{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.editorial-toc a,.editorial-mobile-toc a{display:flex;align-items:flex-start;gap:10px;min-height:44px;border-radius:8px;padding:10px 8px;font-size:13px;line-height:1.8;color:#6b7862;text-decoration:none;transition:background .2s,color .2s}
.editorial-toc a>span,.editorial-mobile-toc a>span{font:500 11px/1.8 Figtree,Arial,sans-serif;min-width:18px;color:#9b875b;margin-top:2px}
.editorial-toc a:hover,.editorial-toc a[aria-current=location],.editorial-mobile-toc a[aria-current=location]{background:#e9efdf;color:#324a2d}
.editorial-service-note{position:relative;padding:24px 18px;margin-top:16px;border-radius:16px;border:1px solid #e4dfd0;background:#f4f0e5}
.editorial-service-note p{font-size:13px;color:#826c46;margin:0 0 8px}
.editorial-service-note a{display:inline-flex;align-items:center;gap:12px;font-size:16px;line-height:1.8;color:#3f5543;font-weight:500}
.editorial-aside-mark{position:absolute;inset-inline-end:16px;top:12px;font-size:30px;line-height:1;color:#b2a67c44}
.editorial-mobile-toc{display:none}
.editorial-reading-progress{position:fixed;top:0;left:0;width:100%;height:3px;background:transparent;z-index:1200;pointer-events:none}
.editorial-reading-progress>span{display:block;background:#a58e57;width:100%;height:100%;transform:scaleX(0);transform-origin:left}
html[dir=rtl] .editorial-reading-progress>span{transform-origin:right}
.editorial-page .article-related{margin-top:64px;padding-top:40px;border-top:1px solid #e5e8dc;background:transparent}
.editorial-page .article-related h2{margin:0}
.editorial-related-grid .editorial-card-copy{padding:20px}.editorial-related-grid h3{font-size:21px}
.editorial-related-grid .editorial-card-description{-webkit-line-clamp:2;font-size:14px}
.editorial-page .article-shell .article-cta{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;margin-top:56px;padding:40px 32px;border:0;border-radius:24px;background:#3e5542;color:white;box-shadow:none}
.editorial-cta-mark{display:grid;place-items:center;width:40px;height:40px;border:1px solid #ffffff35;border-radius:50%;color:#dcc38d;font:28px/1 Arial,sans-serif}
.editorial-page .article-cta h2{color:#fff;font-size:clamp(25px,3vw,32px);line-height:1.5;margin:0 auto 12px;max-width:700px;font-weight:500}
.editorial-page .article-cta p{font-size:16px;line-height:1.9;color:#e0e6d7;margin:0;max-width:650px}
.editorial-page .article-cta>a{display:inline-flex;align-items:center;justify-content:center;gap:20px;background:#f1f1e4;color:#344b30;border:1px solid #edf0df;border-radius:999px;min-height:48px;max-width:100%;padding:11px 24px;margin:0;font-size:15px;line-height:1.7;text-decoration:none;white-space:normal}
.editorial-page .article-cta>a:hover{background:#fff}
html[lang=en] .editorial-article-body p{line-height:1.85}html[lang=en] .editorial-story-header h1{line-height:1.2;letter-spacing:-.03em}
@media(max-width:1100px){.editorial-reading-layout{grid-template-columns:minmax(0,1fr) 230px;gap:32px}.editorial-card-copy{padding:20px}.editorial-feature .editorial-card-copy{padding:26px}.editorial-filters{align-items:flex-start}.editorial-search{width:210px}.editorial-filter-topics button{padding-inline:12px}}
@media(max-width:1000px){.article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.editorial-search{width:100%;margin-inline-start:0}.editorial-feature .editorial-card-link{min-height:320px}}
@media(max-width:900px){.editorial-reading-layout{grid-template-columns:minmax(0,1fr)}.editorial-reading-aside{display:none}.editorial-story-header h1{max-width:800px}.editorial-article-body{max-width:none}.editorial-mobile-toc{display:block;border:1px solid #dfe5d3;border-radius:13px;padding:0 18px;background:#f8faf4;margin:0 0 28px}.editorial-mobile-toc summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;padding:12px 0;font-size:15px;cursor:pointer;font-weight:500}.editorial-mobile-toc summary::-webkit-details-marker{display:none}.editorial-mobile-toc summary>span{font:24px/1 Arial,sans-serif;color:#6d7e5c}.editorial-mobile-toc[open] summary>span{transform:rotate(45deg)}.editorial-mobile-toc nav{padding:0 0 12px}.editorial-mobile-toc a{font-size:14px}.editorial-related-grid{gap:16px}.editorial-related-grid .editorial-card-copy{padding:16px}.editorial-related-grid h3{font-size:19px}}
@media(max-width:760px){.editorial-shell{padding:24px 20px 48px}.editorial-intro{padding:28px;margin-bottom:24px;gap:18px}.editorial-intro-index{font-size:70px;padding-inline-start:22px;letter-spacing:-4px}.editorial-intro-index>span{font-size:10px;letter-spacing:2px}.editorial-intro-copy{font-size:16px}.editorial-feature .editorial-card-link{grid-template-columns:1fr;min-height:0}.editorial-feature .editorial-card-media{aspect-ratio:16/9;min-height:0}.editorial-feature .editorial-card-copy{padding:24px;gap:14px}.editorial-feature h2{font-size:28px}.editorial-feature .editorial-card-footer{margin-top:0}.editorial-library{margin-top:40px}.editorial-feature-label{top:14px;inset-inline-start:14px}.editorial-breadcrumb{margin-bottom:24px}.editorial-story-header h1{font-size:34px;margin-bottom:20px;line-height:1.5}.editorial-story-kicker{margin-bottom:16px}.editorial-story-meta{padding-bottom:20px}.editorial-cover{margin-bottom:24px}.editorial-cover>img{border-radius:15px}.editorial-page .editorial-article-body p{font-size:17px;line-height:2}.editorial-page .editorial-article-body .article-lead{font-size:18px;line-height:2;padding-inline-start:18px;margin-bottom:32px}.editorial-article-body>section{margin-top:30px;padding-top:24px;scroll-margin-top:94px}.editorial-article-body h2{font-size:24px;gap:10px}.editorial-section-number{min-width:23px;margin-top:11px}.editorial-page .article-related{margin-top:44px;padding-top:32px}.editorial-related-grid{grid-template-columns:1fr}.editorial-related-grid .editorial-card-link{display:grid;grid-template-columns:34% minmax(0,1fr)}.editorial-related-grid .editorial-card-media{height:100%;aspect-ratio:auto;min-height:160px}.editorial-related-grid .editorial-card-copy{padding:18px;gap:10px}.editorial-related-grid .editorial-card-description{display:none}.editorial-related-grid .editorial-card-footer{border:0;padding-top:0}.editorial-related-grid .editorial-card-footer time{display:none}.editorial-page .article-shell .article-cta{padding:32px 24px;margin-top:36px;border-radius:20px}}
@media(max-width:600px){.article-grid{grid-template-columns:1fr;gap:22px}.editorial-shell{padding-inline:18px}.editorial-intro{padding:26px 24px}.editorial-intro-index{display:none}.editorial-section-heading{align-items:center;gap:16px}.editorial-section-heading h2{font-size:27px}.editorial-results-count{font-size:13px}.editorial-filter-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}.editorial-filter-topics button[aria-pressed=false]{border-color:#e0e5d6}.editorial-filter-topics button{font-size:13px;padding-inline:12px}.editorial-card h3{font-size:24px}.editorial-card-copy{padding:22px}.editorial-card-description{font-size:15px}.editorial-story-header h1{font-size:31px}.editorial-story-meta{gap:10px}.editorial-copy-link{font-size:12px;padding-inline:13px;gap:10px}.article-byline{font-size:13px}.article-byline>img{width:34px;height:34px}.article-byline time{font-size:12px}.editorial-article-body h2{font-size:23px}.editorial-section-number{font-size:11px}.editorial-section-heading>a{font-size:13px}.editorial-related-grid .editorial-card-copy{padding:16px}.editorial-related-grid h3{font-size:20px}.editorial-related-grid .editorial-card-meta{font-size:11px;gap:6px}.editorial-related-grid .editorial-topic{font-size:11px;padding-inline:9px}.editorial-breadcrumb{font-size:12px;gap:8px}}
@media(max-width:360px){.editorial-shell{padding-inline:14px}.editorial-intro{padding:24px 20px}.editorial-story-header h1{font-size:29px}.editorial-feature h2{font-size:26px}.editorial-feature .editorial-card-copy{padding:20px}.editorial-card-meta{gap:8px}.editorial-related-grid .editorial-card-link{grid-template-columns:30% minmax(0,1fr)}.editorial-related-grid .editorial-card-copy{padding:14px}.editorial-related-grid h3{font-size:19px}.editorial-related-grid .editorial-card-meta>span:last-child{display:none}.editorial-results-count{font-size:12px}.editorial-section-heading h2{font-size:25px}}
@media(prefers-reduced-motion:reduce){.editorial-card,.editorial-card-media img,.editorial-toc a,.editorial-mobile-toc a{transition:none}.editorial-card-link:hover .editorial-card-media img{transform:none}.editorial-page{scroll-behavior:auto}}

.editorial-data-table {
 width: 100%;
 margin-block: 24px;
 border-collapse: collapse;
 font-size: clamp(.85rem, 2vw, 1rem);
}
.editorial-data-table caption { text-align: start; font-weight: 600; padding-block-end: 8px; }
.editorial-data-table th,
.editorial-data-table td { padding: .65em .75em; text-align: start; border-block-end: 1px solid #dfe5d3; }
.editorial-data-table thead { background: #eef2e8; }
.editorial-inline-action a {
 display: inline-flex;
 align-items: center;
 min-height: 44px;
 padding: .55em 1.15em;
 border-radius: 999px;
 background: #35583b;
 color: #fff;
 text-decoration: none;
}
.editorial-inline-action a:hover { background: #294730; }

/* Server-rendered library controls remain usable without JavaScript. */
.editorial-filters label:has(select){display:flex;align-items:center;gap:10px}
.editorial-filters select{font:inherit;max-width:100%;min-height:44px;border:1px solid #cdd5cc;border-radius:10px;padding:8px;background:#fff;color:inherit}
.editorial-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:20px;margin-block:32px}
.editorial-pagination a{display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;border:1px solid currentColor;border-radius:24px}
@media(max-width:600px){.editorial-filters label:has(select),.editorial-filters .editorial-search{width:100%}.editorial-filters select{flex:1;min-width:0}}

/* Keep library cards aligned across different headline lengths. */
.article-grid>.editorial-card{min-width:0;height:100%}
.article-grid .editorial-card-link{height:100%;display:flex;flex-direction:column}
.article-grid .editorial-card-copy{flex:1;min-width:0}
.article-grid .editorial-card-media{aspect-ratio:16/9;overflow:hidden;flex:none}
.article-grid .editorial-card-media img{width:100%;height:100%;object-fit:cover}
.article-grid .editorial-card-title,.article-grid h3{font-size:22px;line-height:1.65;min-height:3.3em}
.article-grid .editorial-card-description{min-height:5.7em}
.article-grid .editorial-card-footer{margin-top:auto}
@media(max-width:600px){.article-grid h3{min-height:0}.article-grid .editorial-card-description{min-height:0}}
