:root{--navy:#101f3d;--navy2:#1a3157;--gold:#c7a45a;--gold-light:#ead7a8;--ink:#202938;--muted:#657083;--paper:#fbfaf7;--line:#e6e2d9;--white:#fff;--max:1200px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.65 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit}button,input,select,textarea{font:inherit}.skip-link{position:absolute;left:-999px;top:8px;background:white;padding:10px;z-index:99}.skip-link:focus{left:8px}.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}
.site-header{min-height:90px;background:var(--navy);color:white;display:flex;align-items:center;gap:25px;padding:14px max(4vw,22px);position:relative;z-index:5}.brand{flex:0 0 auto}.brand a{display:flex;align-items:center;gap:12px;text-decoration:none}.az-mark{width:48px;height:48px;border:1.5px solid var(--gold);color:var(--gold);display:grid;place-items:center;font-family:Georgia,serif;font-size:22px;letter-spacing:-2px;border-radius:50%}.brand-copy{display:grid;line-height:1.3}.brand-copy strong{font-size:11px;letter-spacing:2px}.brand-copy b{font-size:15px;letter-spacing:1.4px;color:var(--gold-light)}.brand-copy small{font-size:9px;letter-spacing:1.8px;color:#d7dce5;margin-top:4px}.primary-nav{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:1;flex-wrap:wrap}.primary-nav a{font-size:11px;text-decoration:none;padding:6px 8px;color:#e4e8ef;border-radius:3px}.primary-nav a:hover,.primary-nav a:focus{background:#ffffff18;color:var(--gold-light)}.language select{background:#20385e;color:white;border:1px solid #53627a;border-radius:3px;padding:8px}.menu-toggle{display:none}
.hero{background:linear-gradient(115deg,#101f3d 0%,#182f52 72%,#233c5d 100%);color:white;padding:105px max(8vw,28px) 82px;position:relative;overflow:hidden}.hero:after{content:"AZ";position:absolute;right:8%;top:4%;font:clamp(180px,28vw,390px)/1 Georgia,serif;color:#ffffff08;pointer-events:none}.eyebrow{font-size:10px;letter-spacing:2.4px;font-weight:750;color:var(--gold);text-transform:uppercase}.hero h1{font-size:clamp(44px,7vw,88px);line-height:.98;letter-spacing:-3px;margin:22px 0;max-width:850px}.hero h1 em{font-family:Georgia,serif;font-weight:400;color:var(--gold-light)}.hero>p{max-width:590px;color:#d5dce6;font-size:18px}.hero-actions{display:flex;align-items:center;gap:25px;margin-top:32px}.button{border:0;padding:13px 22px;display:inline-block;text-decoration:none;font-weight:700;cursor:pointer;border-radius:2px}.gold-button{background:var(--gold);color:var(--navy)}.navy-button{background:var(--navy);color:white}.button:hover{filter:brightness(1.1)}.text-link{color:inherit;text-decoration:none;border-bottom:1px solid var(--gold);padding-bottom:4px}.hero-note{margin-top:70px;font-size:10px;letter-spacing:2px;color:#c5ccd7}.hero-note span{color:var(--gold);padding:0 8px}
.search-panel{max-width:var(--max);margin:-1px auto 0;padding:45px 5%;display:grid;grid-template-columns:1fr 1.1fr;gap:20px;align-items:center;background:white;border-bottom:1px solid var(--line)}h2{font-size:clamp(27px,3vw,40px);line-height:1.15;letter-spacing:-1px;margin:8px 0 12px}.search-panel p,.section-heading p{color:var(--muted);margin:0}.search-form{display:flex;gap:8px}.search-form input{min-width:0;flex:1;padding:14px;border:1px solid #d9dce1}.results{grid-column:1/-1}.results:empty{display:none}
.section{max-width:var(--max);margin:auto;padding:78px 5%}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:30px}.section-heading>p{max-width:440px}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-left:1px solid var(--line)}.category-link{min-height:170px;padding:25px;text-decoration:none;border-right:1px solid var(--line);border-bottom:1px solid var(--line);transition:background .2s}.category-link:hover{background:#f1eee7}.category-link span{color:var(--gold);font-size:11px;letter-spacing:2px}.category-link h3{font:26px/1.2 Georgia,serif;margin:18px 0}.category-link b{font-size:11px;color:var(--navy)}.split-section{display:grid;grid-template-columns:1fr 1fr;gap:70px;background:#f0eee8;max-width:none;padding-left:max(5%,calc((100% - var(--max))/2));padding-right:max(5%,calc((100% - var(--max))/2))}.split-section p{font-size:19px;color:#525d6c}.article-list{border-top:1px solid var(--line)}.article-item{display:grid;grid-template-columns:150px 1fr;gap:25px;padding:23px 0;border-bottom:1px solid var(--line)}.article-item small{color:var(--gold);text-transform:uppercase;letter-spacing:1px}.article-item h3{margin:3px 0;font:25px Georgia,serif}.article-item p{margin:0;color:var(--muted)}.newsletter{background:var(--navy);color:white;max-width:none;padding-left:max(5%,calc((100% - var(--max))/2));padding-right:max(5%,calc((100% - var(--max))/2));display:flex;justify-content:space-between;gap:40px;align-items:center}.newsletter p{color:#c9d0dc;max-width:600px}.newsletter-note{max-width:330px;border-left:2px solid var(--gold);padding:10px 0 10px 20px;color:#e5e8ed;font-size:14px}
.page-hero{background:var(--navy);color:white;padding:75px max(7vw,25px)}.page-hero h1{font:clamp(42px,6vw,68px)/1.08 Georgia,serif;margin:15px 0}.page-hero p{max-width:680px;color:#d3dbe6;font-size:18px}.prose{max-width:850px;margin:0 auto;padding:65px 25px 90px}.prose h2{font:32px Georgia,serif;margin:35px 0 12px}.prose p,.prose li{color:#4e5969;font-size:17px}.prose li{margin:8px 0}.filter-label{font-size:13px;color:var(--muted)}.filter-label select{padding:8px;border:1px solid var(--line);background:white}.contact-layout{max-width:1050px;display:grid;grid-template-columns:1fr 1fr;gap:60px}.contact-form{display:grid;gap:9px}.contact-form input,.contact-form textarea{width:100%;padding:12px;border:1px solid #ccd1d8;background:white}.contact-form label{font-weight:650;font-size:13px}.form-note{font-size:12px!important}.site-footer{background:#0a162b;color:#d5dbe4;padding:45px max(5%,calc((100% - var(--max))/2));display:grid;grid-template-columns:1fr auto;gap:25px}.footer-brand{color:var(--gold-light);letter-spacing:2px;font-weight:800}.site-footer p{font-size:13px;color:#aeb8c8}.site-footer a{display:block;color:#d5dbe4;text-decoration:none;font-size:13px;margin:6px 0}.copyright{grid-column:1/-1;border-top:1px solid #ffffff20;padding-top:20px}.back-top{position:fixed;bottom:20px;right:20px;width:42px;height:42px;border:0;background:var(--gold);color:var(--navy);font-size:22px;cursor:pointer;display:none}.back-top.visible{display:block}
[dir=rtl] body{text-align:right}[dir=rtl] .site-header{flex-direction:row-reverse}[dir=rtl] .primary-nav{justify-content:flex-start}[dir=rtl] .newsletter-note{border-left:0;border-right:2px solid var(--gold);padding:10px 20px 10px 0}[dir=rtl] .article-item{direction:rtl}
@media(max-width:1050px){.site-header{flex-wrap:wrap}.menu-toggle{display:block;margin-left:auto;background:transparent;border:1px solid #63718a;color:white;padding:8px 12px}.primary-nav{display:none;order:4;flex-basis:100%;justify-content:flex-start}.primary-nav.open{display:flex}.language{order:3}.primary-nav a{font-size:12px}.site-header{gap:12px}}
@media(max-width:700px){.hero{padding-top:75px}.hero h1{letter-spacing:-1.5px}.search-panel{grid-template-columns:1fr;padding:35px 6%}.search-form{flex-direction:column}.category-grid{grid-template-columns:1fr 1fr}.category-link{min-height:145px;padding:18px}.category-link h3{font-size:21px}.section{padding:55px 6%}.section-heading,.newsletter{align-items:flex-start;flex-direction:column}.split-section{gap:15px}.article-item{grid-template-columns:1fr;gap:5px}.contact-layout{grid-template-columns:1fr;gap:25px}.site-footer{grid-template-columns:1fr}.copyright{grid-column:auto}.brand-copy strong{font-size:9px}.brand-copy b{font-size:12px}.brand-copy small{font-size:8px}.az-mark{width:42px;height:42px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

/* Article publishing additions */
.article-tools{max-width:980px;margin:1.5rem auto 0;padding:0 1.25rem;display:flex;justify-content:space-between;gap:1rem;align-items:center}.article-tools a{color:var(--navy,#101f3d);font-weight:700}.article-tools>div{display:flex;gap:.5rem}.small-button{border:1px solid #c8ced8;background:#fff;border-radius:4px;padding:.55rem .8rem;color:#142440;cursor:pointer}.article-view{max-width:900px;margin:2rem auto 4rem;padding:0 1.25rem}.article-header{border-bottom:1px solid #e2e5eb;padding-bottom:1.5rem;margin-bottom:1.5rem}.article-header h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.1;max-width:18ch;margin:.5rem 0 1rem}.article-meta{color:#687386;font-size:.92rem}.article-summary{font-size:1.2rem;line-height:1.65;color:#263754;font-weight:600;max-width:70ch}.article-learning{display:grid;grid-template-columns:1.2fr 1fr;gap:1rem;background:#f4f6fa;border-left:4px solid #c49a43;padding:1.25rem;margin:1.5rem 0 2rem}.article-learning h2,.learning-check h2,.references h2{font-size:1.2rem;margin:.1rem 0 .65rem}.article-learning ul,.learning-check ol{margin:.4rem 0;padding-left:1.3rem}.article-content{font-size:1.08rem;line-height:1.85;color:#27344a}.article-content h2{font-size:1.5rem;line-height:1.25;margin:2rem 0 .5rem;color:#142440}.article-content p{margin:.7rem 0 1rem}.article-content li{margin:.45rem 0}.term-list{display:flex;flex-wrap:wrap;gap:.4rem;list-style:none;padding:0!important}.term-list li{background:#fff;border:1px solid #d9deea;border-radius:20px;padding:.25rem .65rem;font-size:.9rem}.learning-check,.references{border-top:1px solid #e1e5ec;margin-top:2rem;padding-top:1.25rem}.editorial-note{background:#fff8e8;border:1px solid #ead8ad;padding:1rem;border-radius:4px;margin-top:2rem;font-size:.95rem}.related-section{max-width:980px;margin:0 auto 4rem;padding:0 1.25rem}.article-item{display:grid;grid-template-columns:130px 1fr;gap:1rem;padding:1rem 0;border-bottom:1px solid #e4e7ed}.article-item h3{margin:.1rem 0 .35rem}.article-item p{margin:.25rem 0}.article-item small{color:#657186}.category-grid .category-link{min-height:150px}.newsletter-note{max-width:35rem;padding:1rem;border:1px solid #d9deea;background:#fff}.site-footer a{display:block;margin:.4rem 0}@media(max-width:650px){.article-learning{grid-template-columns:1fr}.article-item{grid-template-columns:1fr;gap:.25rem}.article-tools{align-items:flex-start;flex-direction:column}.article-view{margin-top:1.25rem}.article-content{font-size:1rem}}
@media print{.site-header,.site-footer,.article-tools,.related-section,.back-top{display:none!important}.article-view{max-width:none;margin:0;padding:0}.article-content{font-size:11pt}.article-learning{break-inside:avoid}}

/* Contact page */
.contact-layout{max-width:1080px;align-items:start}.contact-intro h2{font:34px/1.15 Georgia,serif;margin:12px 0 18px}.contact-intro h3{font-size:18px;margin:28px 0 8px}.contact-notice{margin-top:28px;padding:18px 20px;border-left:3px solid var(--gold);background:#f3f1eb}.contact-notice strong{color:var(--navy)}.contact-notice p{font-size:14px;margin:8px 0 0}.contact-form{padding:28px;background:#f7f6f2;border:1px solid var(--line);gap:16px}.contact-form h2{font:30px Georgia,serif;margin:0 0 4px}.form-field{display:grid;gap:7px}.form-field label{font-size:14px;font-weight:700;color:var(--navy)}.form-field label span{color:#9b5b12}.contact-form input,.contact-form textarea,.contact-form select{font:inherit;font-size:15px;border:1px solid #c9ced5;border-radius:3px;padding:13px;background:#fff;color:var(--navy);width:100%;min-height:46px}.contact-form textarea{resize:vertical;min-height:150px}.form-field small,.form-note{font-size:12px;color:var(--muted)}.form-status{font-size:14px;font-weight:650;color:var(--navy);margin:0;min-height:1.3em}.contact-form button:disabled{opacity:.65;cursor:wait}

.founder-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}
.founder-feature img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  border-radius: 12px;
}

#az-chat {
  width: min(36rem, calc(100% - 2rem));
  max-height: 85vh;
  overflow: auto;
  border: 0;
  border-radius: 12px;
  padding: 1.25rem;
}
#az-chat::backdrop { background: rgb(0 0 0 / 60%); }
#az-chat textarea { display: block; width: 100%; margin-block: .5rem; }
#az-chat [role=status] { white-space: pre-wrap; overflow-wrap: anywhere; }
#open-az-chat { margin: 1rem; }

[hidden] { display: none !important; }
.language label { display: block; font-size: .75rem; margin-bottom: .2rem; }
#az-chat {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100% - 2rem);
  overflow: auto;
}
#az-chat textarea { display: block; width: 100%; margin: .5rem 0; }
#az-chat [role="status"] { white-space: pre-wrap; overflow-wrap: anywhere; }

#dictionary-search {
  display: block;
  width: min(100%, 34rem);
  padding: .7rem;
  margin-top: .4rem;
  font: inherit;
}
.dictionary-list { margin: 1.25rem 0; }
.dictionary-entry { padding: 1rem 0; border-bottom: 1px solid #d9dce3; }
.dictionary-entry dt { font-size: 1.25rem; font-weight: 700; }
.dictionary-entry dd { margin: .35rem 0 0; }
.dictionary-entry dd p { margin: .4rem 0; }
.dictionary-topic { font-size: .85rem; color: #4d5260; }

.category-link {
  border-radius: 1.1rem;
  background: linear-gradient(145deg, #fff 65%, #f3eee1);
}
.category-link .subject-icon {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: .65rem;
  border-radius: .75rem;
  background: #e6edf7;
  color: #193864;
  font-size: 1.35rem;
}
.category-link:nth-child(3n+2) .subject-icon { background: #dfefe8; color: #1d5245; }
.category-link:nth-child(3n) .subject-icon { background: #f6ead0; color: #634819; }
.dictionary-hero, .dictionary-feature {
  color: #fff;
  background: radial-gradient(ellipse at 90% 20%, #315783 0%, transparent 58%), #101f3d;
}
.dictionary-hero-inner, .dictionary-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.dictionary-hero-inner, .dictionary-shell {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}
.dictionary-hero-inner { padding: clamp(2rem, 7vw, 5rem) 0; }
.dictionary-hero h1, .dictionary-feature h2 {
  margin: 0;
  font: 700 clamp(2rem, 6vw, 4.7rem)/1.1 Georgia, serif;
}
.dictionary-feature {
  border-radius: 1.25rem;
  padding: clamp(1.5rem, 4vw, 3.5rem);
}
.dictionary-feature h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.dictionary-feature p, .dictionary-hero p { color: #e1e9f2; }
.dictionary-art {
  display: flex;
  gap: .45rem;
  flex-shrink: 0;
  padding: .6rem;
}
.dictionary-art span {
  display: grid;
  place-items: center;
  width: clamp(3rem, 9vw, 7rem);
  aspect-ratio: 1;
  border: 1px solid #ecd6a0;
  border-radius: .9rem;
  background: #f4e4b9;
  color: #192a46;
  font: 700 clamp(1.5rem, 4vw, 3.5rem)/1 Georgia, serif;
  transform: rotate(-8deg);
}
.dictionary-art span + span { background: #dce9f9; border-color: #dce9f9; transform: rotate(8deg) translateY(.45rem); }
.dictionary-shell { padding-block: 2rem 3rem; }
.dictionary-panel {
  padding: clamp(1rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}
.dictionary-panel label { font-weight: 700; }
#dictionary-search {
  width: 100%;
  border: 1px solid #9faaba;
  border-radius: .6rem;
  background: #f7f9fc;
}
.dictionary-letters, .dictionary-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  margin-top: 1rem;
}
.dictionary-letters button, .dictionary-pagination button {
  min-width: 2.25rem;
  min-height: 2.5rem;
  padding: .25rem .55rem;
  color: #172a48;
  background: #f2f5fa;
  border: 1px solid #cbd4e2;
  border-radius: .45rem;
  cursor: pointer;
}
.dictionary-letters [aria-pressed="true"], .dictionary-pagination button:not(:disabled):hover {
  color: #fff;
  background: #193864;
  border-color: #193864;
}
.dictionary-letters button:disabled, .dictionary-pagination button:disabled { opacity: .45; cursor: default; }
.dictionary-count { font-weight: 600; margin-top: 1.25rem; }
.dictionary-list { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.dictionary-entry {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: .85rem;
  background: #fff;
  overflow-wrap: anywhere;
}
.dictionary-entry dt { font: 700 1.55rem/1.2 Georgia, serif; color: #142b4b; }
.dictionary-topic { color: #294970; font-weight: 650; }
.dictionary-entry summary { color: #254f7f; cursor: pointer; }
.dictionary-entry details .dictionary-sense { margin-top: .6rem; }
.dictionary-example, .dictionary-source { font-size: .9rem; color: #4d5260; }
.dictionary-pagination { justify-content: center; }
.contact-email {
  display: inline-block;
  color: #193864;
  font-weight: 700;
  overflow-wrap: anywhere;
}
@media (max-width: 800px) {
  .dictionary-list { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .dictionary-list { grid-template-columns: minmax(0,1fr); }
  .dictionary-hero-inner, .dictionary-feature { gap: .75rem; }
  .dictionary-art { gap: .1rem; padding: 0; }
}

.az-answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: .75rem;
}
