/* Shared DG shell. Supplied Aitechfy/Designpro surfaces and Blogflex card rhythm. */
.dg-public-header.site-header{position:static;display:block;min-height:0;padding:0;inset:auto;z-index:auto;background:#110d19;border-bottom:1px solid #45364f;box-shadow:none;backdrop-filter:none;color:#f4eff8;font:400 16px/1.5 system-ui,sans-serif}
.dg-public-header .dg-public-header-inner{box-sizing:border-box;width:min(calc(100% - 40px),1240px);min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;margin:0 auto;padding:16px 0}
.dg-public-header .dg-public-brand{display:flex;align-items:center;gap:12px;flex:0 0 auto;width:auto;min-width:0;min-height:44px;color:#f4eff8;text-decoration:none}
.dg-public-header .dg-public-brand img{width:68px;height:34px;object-fit:contain;display:block;filter:brightness(0) invert(1)}
.dg-public-header .dg-public-brand span{display:grid;gap:2px;line-height:1.35}
.dg-public-header .dg-public-brand strong{font-size:17px;color:#ffda52}
.dg-public-header .dg-public-brand small{font-weight:400;font-size:12px;color:#d5cbdf;margin:0;max-width:none}
.dg-public-header .dg-public-nav{display:flex;position:relative;inset:auto;align-items:center;align-self:auto;justify-content:flex-end;flex-direction:row;flex-wrap:wrap;gap:6px;padding:0;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;width:auto;height:auto;min-height:0;max-width:100%;overflow:visible;transform:none}
.dg-public-header .dg-public-nav>a,.dg-public-header .dg-public-menu>summary{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:44px;padding:10px 14px;font:600 14px/1.45 system-ui,sans-serif;color:#f4eff8;text-decoration:none;white-space:normal;text-align:center;border:1px solid transparent;border-radius:10px;background:transparent;overflow-wrap:anywhere}
.dg-public-header .dg-public-nav a:after{display:none}
.dg-public-header .dg-public-nav>a:hover,.dg-public-header .dg-public-menu>summary:hover{background:#ffffff0d;border-color:#675071;color:#ffda52}
.dg-public-header .dg-public-nav>a[aria-current]{background:#ffda5214;border-color:#aa8c36;color:#ffdf6d}
.dg-public-header .dg-public-menu{position:static;flex:none;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:inherit}
.dg-public-header .dg-public-menu>summary{gap:8px;cursor:pointer;list-style:none;border-color:#756181}
.dg-public-header .dg-public-menu>summary::-webkit-details-marker{display:none}
.dg-public-header .dg-public-menu>summary svg{flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.dg-public-header .dg-public-menu[open]>summary{background:#ffda52;color:#211828;border-color:#ffda52}
.dg-public-header .dg-public-menu[open]>summary svg{transform:rotate(180deg)}
.dg-public-header .dg-public-menu:has([aria-current])>summary{border-color:#aa8c36}
.dg-public-header .dg-public-menu-panel{position:absolute;z-index:30;right:0;top:calc(100% + 10px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;box-sizing:border-box;width:min(560px,calc(100vw - 40px));padding:18px;background:#fdfbff;color:#211828;border:1px solid #d7c9df;border-radius:16px;box-shadow:0 16px 40px #0003;text-align:left}
.dg-public-header .dg-public-menu:not([open])>.dg-public-menu-panel{display:none}
.dg-public-header .dg-public-menu-heading{margin:0 0 8px;padding:0 10px;font:700 12px/1.5 system-ui,sans-serif;color:#6d537d;letter-spacing:.03em}
.dg-public-header .dg-public-menu-group{min-width:0}
.dg-public-header .dg-public-menu-panel a{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:3px;box-sizing:border-box;min-width:0;min-height:64px;padding:10px;margin:3px 0;font:400 14px/1.5 system-ui,sans-serif;color:#211828;white-space:normal;text-decoration:none;border:1px solid transparent;border-radius:10px;background:transparent;overflow-wrap:anywhere}
.dg-public-header .dg-public-menu-panel a strong{font-size:14px;font-weight:650;color:inherit}
.dg-public-header .dg-public-menu-panel a small{display:block;font:400 12px/1.5 system-ui,sans-serif;color:#66556f;margin:0;max-width:none}
.dg-public-header .dg-public-menu-panel a:hover,.dg-public-header .dg-public-menu-panel a[aria-current]{background:#f0e8f6;border-color:#c7b1d6;color:#4c2e61}
.dg-public-header :is(a,summary):focus-visible{outline:3px solid #ffda52;outline-offset:3px}
.dg-public-header .dg-public-menu-panel a:focus-visible{outline-color:#75408f}
/* Local dictionary links wrap instead of hiding destinations off screen. */
.dg-dictionary-nav{display:flex;flex-wrap:wrap;gap:6px 12px;padding-block:10px;border-bottom:1px solid #d9cfdc;font-size:14px}
.dg-dictionary-nav a{display:inline-flex;align-items:center;gap:7px;box-sizing:border-box;min-height:44px;padding:8px 12px;border:1px solid transparent;border-radius:9px;color:inherit;text-decoration:none}
.dg-dictionary-nav a:hover,.dg-dictionary-nav a[aria-current]{background:#ece4f2;border-color:#bba9c9;color:#4c2e61}
.dg-dictionary-nav a:focus-visible{outline:3px solid #75408f;outline-offset:2px}
.dg-dictionary-nav .icon{width:18px;height:18px;flex:none}
/* Small surface and type corrections retain the existing editor and content. */
.hero .hero-copy h1{font-size:clamp(1.75rem,3vw,2.375rem);line-height:1.25;max-width:28ch}
.hero .hero-copy{margin-bottom:22px}
.hero .proof-stroke{height:3px;width:48px;margin-block:14px 18px}
.hero .editor{border-radius:16px;box-shadow:0 12px 36px #0003}
.hero .editor-footer{padding:18px 22px}
.tools-section .quick-grid{gap:20px}
.tools-section .tool-card{border-radius:14px;box-shadow:0 8px 24px #0002;min-width:0}
.tools-section .tool-header{background:#faf7fc}
.tools-section .section-heading h2{font-size:clamp(1.5rem,2.5vw,1.875rem)}
.dg-info main{padding-top:28px}
.dg-knowledge h1{max-width:30ch;font-size:clamp(1.75rem,3vw,2.25rem);line-height:1.3}
.dg-knowledge .dg-article-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.dg-knowledge .dg-article-card{min-width:0;border-color:#dcd2e3;border-radius:14px;box-shadow:0 3px 12px #21182805}
.dg-knowledge .dg-article-card h3{font-size:1.2rem;line-height:1.4}
.dg-knowledge .dg-server-search{border-radius:14px;box-shadow:0 3px 12px #21182805}
.dg-knowledge .dg-topics a{display:inline-flex;align-items:center;box-sizing:border-box;min-height:44px;padding:8px 14px}
#szinonima-tool .input-row input{min-width:0}#szinonima-tool .input-row button{min-height:44px}#szinonima-tool .tool-header h3{font-size:20px}
.dg-private-source-notice{text-align:center}.dg-private-source-notice .secondary-button{display:inline-flex;margin-top:20px;min-height:44px;align-items:center}
.blog-breadcrumb a,.blog-article .blog-author a{display:inline-flex;align-items:center;min-height:28px}
.keyboard-hint{color:#5c5147}
/* A row in the grid reserves the label's actual height at every text size. */
.quote-examples,.quote-example-grid,.quote-example-card,.result-disclaimer{min-width:0;overflow-wrap:anywhere}
.quote-example-grid{grid-template-columns:minmax(0,1fr)}
.quote-example-card>.quote-example-kind{position:static;grid-column:1;grid-row:1;justify-self:start;align-self:start;box-sizing:border-box;max-width:calc(100% - 32px);margin:16px 16px 0;line-height:1.4;letter-spacing:.02em;overflow-wrap:anywhere}
.quote-example-card>blockquote{grid-column:1;grid-row:2;padding-top:12px}
.quote-example-card>figcaption{grid-column:2;grid-row:1 / span 2}
.quote-example-card .quote-locator{padding:0;background:transparent;border-radius:0;color:#63566d;font-weight:650;line-height:1.6}
@media(max-width:760px){
  .quote-examples-heading,.quote-meaning-heading,.quote-example-card,.result-disclaimer{grid-template-columns:minmax(0,1fr)}
  .quote-example-card>figcaption{grid-column:1;grid-row:3}
}
@media(max-width:960px){.dg-public-header .dg-public-header-inner{gap:12px}.dg-public-header .dg-public-nav{justify-content:flex-start;flex:1 0 100%}}
@media(max-width:600px){
  .dg-public-header .dg-public-header-inner{width:calc(100% - 32px);padding-block:12px;gap:12px;min-height:0}
  .dg-public-header .dg-public-brand img{width:54px;height:30px}
  .dg-public-header .dg-public-brand strong{font-size:16px}
  .dg-public-header .dg-public-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;width:100%}
  .dg-public-header .dg-public-nav>a,.dg-public-header .dg-public-menu>summary{width:100%;padding:9px 8px;font-size:14px}
  .dg-public-header .dg-public-nav>a{background:#ffffff06;border-color:#45364f}
  .dg-public-header .dg-public-nav>a[aria-current]{background:#ffda5214;border-color:#aa8c36}
  .dg-public-header .dg-public-menu[open]{grid-column:1/-1}
  .dg-public-header .dg-public-menu-panel{position:static;width:100%;margin-top:10px;padding:12px;gap:12px;box-shadow:none}
  .dg-dictionary-nav{gap:4px;padding-block:8px}
  .dg-dictionary-nav a{font-size:13px;padding:8px;white-space:normal}
  .dg-knowledge .dg-article-grid{grid-template-columns:minmax(0,1fr)}
  .dg-knowledge .dg-server-search>div{align-items:stretch}
  .hero .editor-footer{padding:16px}
  #szinonima-tool .input-row{flex-wrap:wrap}#szinonima-tool .input-row button{width:100%}
}
@media(max-width:400px){.dg-public-header .dg-public-menu-panel{grid-template-columns:minmax(0,1fr)}}
@media(forced-colors:active){.dg-public-header .dg-public-nav>a[aria-current],.dg-public-header .dg-public-menu>summary{border-color:ButtonText}.dg-public-header .dg-public-menu-panel{border:1px solid CanvasText}}
@media print{.dg-public-header,.dg-dictionary-nav{display:none!important}}

/* R98.2.6 — DG editorial system. Gazeta/USNews section rules, Mora article
   measure and Xports' compact tool surfaces, adapted to the existing DG palette.
   Public-only selectors leave administration and the editor text layers alone. */
.dg-public-header .dg-public-nav>a,.dg-public-header .dg-public-menu>summary{border-radius:5px;font-size:13px}
.dg-public-header .dg-public-menu-panel{border-radius:6px;box-shadow:0 12px 28px #2118281c}
.dg-public-header .dg-public-menu-panel a{border-radius:4px}
.dg-dictionary-nav{font-size:13px;gap:4px 10px}
.dg-dictionary-nav a{border-radius:4px}
/* The writing desk stays a compact dark workspace. Text/highlight metrics are untouched. */
body:has(.dg-public-header):has(.hero .editor){background:#17131d;background-image:none}
body:has(.dg-public-header) .hero:has(.editor){width:min(calc(100% - 48px),1240px);padding-top:26px;padding-bottom:40px}
body:has(.dg-public-header) .hero:has(.editor) .hero-copy{margin-bottom:20px}
body:has(.dg-public-header) .hero:has(.editor) .hero-copy h1{font-size:clamp(26px,2.8vw,34px);line-height:1.25;max-width:35ch;letter-spacing:-.025em}
body:has(.dg-public-header) .hero:has(.editor) .proof-stroke{background:#e4c45c;width:42px;height:2px;margin:12px 0 14px}
body:has(.dg-public-header) .hero:has(.editor) .hero-support-row>p{font-size:15px;line-height:1.7}
body:has(.dg-public-header) .hero:has(.editor) .privacy-line{border-radius:5px;background:#ffffff04;border-color:#594c60;font-size:12px}
body:has(.dg-public-header) .hero:has(.editor) .editor{border-radius:6px;border-color:#d1c7d5;box-shadow:0 9px 28px #0002}
body:has(.dg-public-header) .hero:has(.editor) .editor-footer{background:#f7f4f7;border-color:#ded5e2}
body:has(.dg-public-header) .hero:has(.editor) .editor-footer button{border-radius:5px}
body:has(.dg-public-header) .hero:has(.editor) .dg-workspace{margin-bottom:16px}
body:has(.dg-public-header) .hero:has(.editor) :is(.dg-tool-finder,.dg-practice-link,.dg-favorites a){border-radius:5px}
body:has(.dg-public-header) .hero:has(.editor) .dg-favorites a{font-size:13px;padding:8px 10px;background:#ffffff04;border-color:#776245}
body:has(.dg-public-header):has(.hero .editor) .tools-section{width:min(calc(100% - 48px),1240px)}
body:has(.dg-public-header):has(.hero .editor) .tool-card{border-radius:6px;box-shadow:none;border-color:#d9cedd}
body:has(.dg-public-header):has(.hero .editor) .tool-header{background:#f6f1f8;border-bottom:1px solid #dfd6e3}
body:has(.dg-public-header):has(.hero .editor) .tool-header h3{font-size:18px;line-height:1.4}
body:has(.dg-public-header):has(.hero .editor) .counter-grid{border-radius:5px}
/* Light paper for reading, with a consistent purple and warm-yellow hierarchy. */
body.dg-info:has(.dg-public-header):not(.dg-knowledge-browse){background:#faf9f6;background-image:none;color:#29232e}
body.dg-info:has(.dg-public-header):not(.dg-knowledge-browse) .dg-breadcrumb{font-size:12px;color:#746a79}
body.dg-info:has(.dg-public-header):not(.dg-knowledge-browse) :is(.dg-primary-link,.dg-save,button){border-radius:5px}
body.dg-knowledge:has(.dg-public-header):has(main>article) main{max-width:1040px;padding-top:24px}
body.dg-knowledge:has(.dg-public-header) main>article{max-width:800px;margin-inline:auto}
body.dg-knowledge:has(.dg-public-header) main>article>.eyebrow{margin:0 0 12px;padding-top:22px;border-top:1px solid #d9d1db;font-size:11px;color:#694c78}
body.dg-knowledge:has(.dg-public-header) main>article>h1{font:600 clamp(27px,3vw,34px)/1.25 Georgia,'Times New Roman',serif;max-width:32ch;letter-spacing:-.02em;color:#35263e;margin:0 0 16px}
body.dg-knowledge:has(.dg-public-header) main>article .dg-byline{font-size:12px;color:#776c7c;margin:0 0 14px}
body.dg-knowledge:has(.dg-public-header) main>article>.dg-answer{padding:20px 24px;margin:24px 0;background:#faf4df;border:1px solid #e4d7ad;border-left:3px solid #b39138;border-radius:3px}
body.dg-knowledge:has(.dg-public-header) main>article>.dg-answer p{font-size:17px;line-height:1.75;color:#372f39}
body.dg-knowledge:has(.dg-public-header) main>article>.dg-contents{margin:24px 0 30px;padding:18px 0;border:0;border-block:1px solid #dcd4df;border-radius:0;background:transparent;font-size:14px}
body.dg-knowledge:has(.dg-public-header) main>article>.dg-contents summary{font-size:14px;color:#60456f}
body.dg-knowledge:has(.dg-public-header) main>article>section{padding:0 0 26px;margin:30px 0 0;border:0;border-bottom:1px solid #e2dcd4;border-radius:0;background:transparent}
body.dg-knowledge:has(.dg-public-header) main>article>section h2{font:500 25px/1.35 Georgia,'Times New Roman',serif;letter-spacing:-.01em;color:#372b3f;margin:0 0 16px}
body.dg-knowledge:has(.dg-public-header) main>article>section :is(p,li){font-size:16px;line-height:1.85}
body.dg-knowledge:has(.dg-public-header) main>article .dg-table-scroll{border-radius:3px;background:#fff}
body.dg-knowledge:has(.dg-public-header) main>article :is(.dg-rule-links,.dg-sources){border-top:2px solid #8a6a99;padding-top:18px;margin-top:28px}
body.dg-knowledge:has(.dg-public-header) main>article :is(.dg-rule-links,.dg-sources) h2{font-size:17px}
body.dg-knowledge:has(.dg-public-header):has(main>article) main>:is(section,aside,.dg-learning-footnote){max-width:800px;margin-inline:auto}
body.dg-knowledge:has(.dg-public-header):has(main>article) main>section{border-radius:5px}
body.dg-knowledge:has(.dg-public-header) .dg-knowledge-footer{border-top:3px solid #c7a64e}
/* Dictionary: a readable entry title, clear actions and a quieter search strip. */
body:has(.dg-public-header):has(.word-search-band),body:has(.dg-public-header):has(.blog-shell){background:#faf9f6}
body:has(.dg-public-header) .word-search-band{background:#f4efe6;padding:20px 0 12px;border-color:#ded5c8}
body:has(.dg-public-header) .word-search-band .search-card{padding:12px;border-radius:6px;box-shadow:none}
body:has(.dg-public-header) .word-search-band .search-form{grid-template-columns:minmax(0,1fr) minmax(130px,180px);gap:12px}
body:has(.dg-public-header) .word-search-band .search-field-wrap input{height:52px;font-size:18px;border-radius:4px}
body:has(.dg-public-header) .word-search-band .primary-button{height:52px;border-radius:4px;font-size:14px;box-shadow:none}
body:has(.dg-public-header) .word-entry{margin-top:28px;padding:30px 32px;border-radius:6px;border-color:#e0d8df;box-shadow:none}
body:has(.dg-public-header) .word-entry .breadcrumbs{font-size:12px;color:#776b7c;margin-bottom:24px}
body:has(.dg-public-header) .word-entry .result-heading{display:block;margin-bottom:22px}
body:has(.dg-public-header) .word-entry .result-heading h1{font:600 clamp(27px,3vw,34px)/1.25 Georgia,'Times New Roman',serif;letter-spacing:-.02em;color:#36263f}
body:has(.dg-public-header) .word-entry .result-heading .section-kicker{font-size:11px;color:#73537f;letter-spacing:.1em}
body:has(.dg-public-header) .word-entry .result-actions{justify-content:flex-start;margin-top:16px;gap:8px}
body:has(.dg-public-header) .word-entry .secondary-button{border-radius:4px;font-size:13px;min-height:44px;font-weight:600}
body:has(.dg-public-header) .word-entry .short-definition{background:#fcf8e9;border-radius:3px;border-left:3px solid #c6a13e}
body:has(.dg-public-header) .word-entry .short-definition p{font-size:16px;line-height:1.75}
body:has(.dg-public-header) .word-entry .word-facts>div{border-radius:4px;background:#f9f7fa}
body:has(.dg-public-header) .browse-page-hero{background:#f4efe6;padding:32px 0 28px}
body:has(.dg-public-header) .browse-page-hero h1{font:600 clamp(26px,3vw,34px)/1.25 Georgia,'Times New Roman',serif;color:#36263f}
body:has(.dg-public-header) .server-word-grid a{border-radius:4px;box-shadow:none;font-size:14px}
body:has(.dg-public-header) .word-neighbor-nav>a{border-radius:5px;box-shadow:none}
body:has(.dg-public-header) .hero:has(.hero-inner){background:#faf9f6;padding-top:26px}
body:has(.dg-public-header) .hero:has(.hero-inner) h1{font-size:clamp(27px,3vw,35px);line-height:1.3;max-width:34ch}
body:has(.dg-public-header) .hero:has(.hero-inner) .hero-lead{font-size:16px;line-height:1.7}
body:has(.dg-public-header) .hero:has(.hero-inner) .search-card{border-radius:6px;box-shadow:0 6px 22px #33223f0a}
/* The existing blog uses the same article measure without changing its content or images. */
body:has(.dg-public-header) .blog-shell{max-width:1120px;padding-top:24px}
body:has(.dg-public-header) .blog-article{max-width:800px;margin-inline:auto}
body:has(.dg-public-header) .blog-article-header{border-top:2px solid #8a6a99;padding-top:20px}
body:has(.dg-public-header) .blog-article-header h1{font:600 clamp(27px,3vw,34px)/1.25 Georgia,'Times New Roman',serif;color:#36263f}
body:has(.dg-public-header) .blog-prose :is(p,li){font-size:16px;line-height:1.85}
body:has(.dg-public-header) .blog-prose h2{font:500 25px/1.35 Georgia,'Times New Roman',serif;color:#3b2d43}
body:has(.dg-public-header) :is(.blog-answer,.blog-toc,.blog-tool-note){border-radius:4px}
/* Practice keeps the question and answer controls prominent. */
body.dg-practice:has(.dg-public-header) .dg-practice-intro{padding-bottom:20px;border-bottom:1px solid #dbd3df;margin-bottom:24px}
body.dg-practice:has(.dg-public-header) .dg-practice-intro h1{font:600 clamp(27px,3vw,34px)/1.25 Georgia,'Times New Roman',serif;color:#36263f}
body.dg-practice:has(.dg-public-header) :is(.dg-practice-launch-card,.dg-daily,.dg-practice-choice,.dg-practice-history){border-radius:5px;border-color:#dcd2e0;box-shadow:none}
body.dg-practice:has(.dg-public-header) .dg-practice-launch-card{align-content:flex-start;align-items:flex-start;border-top:3px solid #9573a5}
body.dg-practice:has(.dg-public-header) .dg-practice-launch-card:first-child{border-top-color:#cba746;background:#fffdf6}
body.dg-practice:has(.dg-public-header) .dg-practice-launch-card button{font-size:14px}
body.dg-practice:has(.dg-public-header) .dg-quiz-option{border-radius:4px;min-height:50px}
@media(min-width:1100px){
 body:has(.dg-public-header) .hero:has(.editor) .hero-support-row::after,body:has(.dg-public-header) .hero:has(.editor) .dg-dictionary-count{height:76px}
 /* Align the information cards with the title while preserving the mobile DOM order. */
 body:has(.dg-public-header) .hero:has(.editor) .hero-copy{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);grid-template-rows:auto auto min-content 1fr;column-gap:40px;align-items:start}
 body:has(.dg-public-header) .hero:has(.editor) .hero-copy>.eyebrow{grid-column:1;grid-row:1}
 body:has(.dg-public-header) .hero:has(.editor) .hero-copy>h1{grid-column:1;grid-row:2;min-width:0}
 body:has(.dg-public-header) .hero:has(.editor) .hero-copy>.proof-stroke{grid-column:1;grid-row:3 / 5}
 body:has(.dg-public-header) .hero:has(.editor) .hero-support-row{display:contents}
 body:has(.dg-public-header) .hero:has(.editor) .hero-support-row>p{grid-column:1;grid-row:3 / 5;padding-top:28px}
 body:has(.dg-public-header) .hero:has(.editor) .hero-support-row>.privacy-line:not(.dg-dictionary-count):not(.dg-daily-visitors){grid-column:2;grid-row:2;align-self:stretch}
 body:has(.dg-public-header) .hero:has(.editor) .hero-support-row>.dg-dictionary-count,body:has(.dg-public-header) .hero:has(.editor) .hero-support-row::after{grid-column:2;grid-row:3;margin-top:10px}
 body:has(.dg-public-header) .hero:has(.editor) .hero-support-row>.dg-daily-visitors{grid-column:2;grid-row:4;margin-top:10px}
}
@media(max-width:600px){
 .dg-public-header .dg-public-nav{grid-template-columns:1.55fr 1fr 1fr 1fr;gap:4px}
 .dg-public-header .dg-public-nav>a,.dg-public-header .dg-public-menu>summary{font-size:12px;padding:8px 4px;min-height:44px;line-height:1.35}
 .dg-public-header .dg-public-menu>summary{gap:5px}
 .dg-public-header .dg-public-menu>summary svg{width:13px;height:13px}
 body:has(.dg-public-header) .hero:has(.editor),body:has(.dg-public-header):has(.hero .editor) .tools-section{width:calc(100% - 32px)}
 body:has(.dg-public-header) .hero:has(.editor){padding-top:22px}
 body:has(.dg-public-header) .hero:has(.editor) .hero-copy h1{font-size:27px}
 body:has(.dg-public-header) .hero:has(.editor) .hero-support-row>p{font-size:14px;line-height:1.7}
 body:has(.dg-public-header) .hero:has(.editor) .privacy-line{font-size:12px}
 body:has(.dg-public-header) .word-entry{padding:22px 18px;margin-top:20px}
 body:has(.dg-public-header) .word-entry .result-heading h1{font-size:28px}
 body:has(.dg-public-header) .word-entry .result-actions{gap:7px}
 body:has(.dg-public-header) .word-entry .secondary-button{font-size:12px;padding:9px 10px}
 body:has(.dg-public-header) .word-search-band .search-form{grid-template-columns:minmax(0,1fr)}
 body:has(.dg-public-header) .word-search-band .primary-button{height:48px}
 body:has(.dg-public-header) .word-search-band .search-field-wrap input{padding-left:46px;font-size:17px}
 body.dg-knowledge:has(.dg-public-header) main>article>.dg-answer{padding:18px}
 body.dg-knowledge:has(.dg-public-header) main>article>section h2,body:has(.dg-public-header) .blog-prose h2{font-size:23px}
 body.dg-knowledge:has(.dg-public-header) main>article>.dg-contents{padding-block:12px}
 body.dg-knowledge:has(.dg-public-header) main>article>section :is(p,li),body:has(.dg-public-header) .blog-prose :is(p,li){font-size:16px;line-height:1.8}
}
@media(max-width:360px){.dg-public-header .dg-public-nav{grid-template-columns:repeat(2,minmax(0,1fr))}.dg-public-header .dg-public-nav>a,.dg-public-header .dg-public-menu>summary{font-size:13px;padding:9px 8px}}
@media print{body:has(.dg-public-header),body.dg-info:has(.dg-public-header){background:#fff!important}.dg-knowledge main>article>section{break-inside:auto}}

/* R98.2.7: keep complete menu labels at phone widths; four columns need room. */
@media(min-width:421px) and (max-width:600px){
 .dg-public-header .dg-public-nav{grid-template-columns:1.4fr 1.1fr .9fr 1.1fr}
 .dg-public-header .dg-public-nav>a,.dg-public-header .dg-public-menu>summary{white-space:nowrap;overflow-wrap:normal}
}
@media(max-width:420px){
 .dg-public-header .dg-public-nav{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dg-public-header .dg-public-nav>a,.dg-public-header .dg-public-menu>summary{font-size:13px;padding:9px 8px;white-space:nowrap;overflow-wrap:normal}
}

/* Keep the mobile home advertisement after the editor. */
@media(max-width:1099px){
 body:has(.dg-public-header) .hero:has(.editor):has(.dg-home-ad-anchor){display:flex;flex-direction:column}
 body:has(.dg-public-header) .hero:has(.editor):has(.dg-home-ad-anchor)>.hero-copy,body:has(.dg-public-header) .hero:has(.editor):has(.dg-home-ad-anchor)>.hero-copy>.hero-support-row{display:contents}
 body:has(.dg-public-header) .hero:has(.editor):has(.dg-home-ad-anchor)>.hero-copy>.hero-support-row>p{margin-bottom:20px}
 body:has(.dg-public-header) .hero:has(.editor):has(.dg-home-ad-anchor)>.editor{order:1}
 body:has(.dg-public-header) .hero:has(.editor):has(.dg-home-ad-anchor) :is(.dg-home-ad,.dg-home-ad-anchor){order:2}
 body:has(.dg-public-header) .hero:has(.editor):has(.dg-home-ad-anchor)>:not(.hero-copy):not(.editor):not(.dg-home-ad):not(.dg-home-ad-anchor){order:3}
}

/* DG public surfaces share the original aubergine, warm paper and yellow. */
body:has(> .dg-public-header, > .site-shell > .dg-public-header) {
  --dg-paper: #faf8f3;
  --dg-panel: #fffdf9;
  --dg-ink: #302637;
  --dg-line: #ded4df;
  --dg-accent: #d4a617;
  --dg-action: #ffd452;
  --dg-action-hover: #ffdf79;
  --dg-focus: #754d91;
  --dg-radius: 10px;
}

body.dg-info:has(> .dg-public-header):not(.dg-knowledge-browse),
body:has(> .dg-public-header, > .site-shell > .dg-public-header):is(.dg-info, .blog-body, [data-page-type]),
body:has(> .dg-public-header, > .site-shell > .dg-public-header):has(.word-search-band, .result-page, .browse-page-hero) {
  background: var(--dg-paper);
  color: var(--dg-ink);
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header):has(.hero .editor) {
  background-color: #17131d;
  background-image: radial-gradient(ellipse 62% 360px at 12% 4%, #45295276, transparent);
}

.dg-public-header.site-header {
  background: #110d19;
  border-bottom-color: #55415f;
}

.dg-public-header :is(.dg-public-nav > a, .dg-public-menu > summary) {
  border-radius: 7px;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(
  .hero:has(.editor) .editor,
  .word-search-band .search-card,
  .hero:has(.hero-inner) .search-card,
  .word-entry,
  .dg-server-search,
  .dg-practice-launch-card,
  .workshop-editor,
  .catalogue .search-panel
) {
  border-radius: var(--dg-radius);
}

body.dg-knowledge:has(> .dg-public-header, > .site-shell > .dg-public-header) main > article > .eyebrow,
body:has(> .dg-public-header, > .site-shell > .dg-public-header) .blog-article-header {
  border-top: 2px solid var(--dg-accent);
}

body.dg-knowledge:has(> .dg-public-header, > .site-shell > .dg-public-header) main > article > .dg-answer,
body:has(> .dg-public-header, > .site-shell > .dg-public-header) .word-entry .short-definition {
  border-left-color: var(--dg-accent);
  border-radius: 7px;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.dg-article-tools, .dg-live-examples) {
  box-sizing: border-box;
  padding: clamp(16px, 3vw, 26px);
  border: 1px solid var(--dg-line);
  border-top: 3px solid var(--dg-accent);
  border-radius: var(--dg-radius);
  background: var(--dg-panel);
  color: var(--dg-ink);
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.dg-article-tools, .dg-live-examples) > h2 {
  margin-top: 0;
  color: var(--dg-ink);
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.dg-article-tools, .dg-live-examples) p {
  color: #514259;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.dg-article-tools, .dg-live-example) .dg-live-sentence {
  margin: 0 0 14px;
  padding: 12px 15px;
  border-inline-start: 3px solid #9b7aab;
  background: #f5eff7;
  color: var(--dg-ink);
  overflow-wrap: anywhere;
  border-radius: 6px;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-live-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-live-examples > :not(.dg-live-example) {
  grid-column: 1 / -1;
  margin-block: 0;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-live-examples .dg-live-example {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--dg-line);
  border-radius: 7px;
  background: #fff;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-live-example .dg-live-sentence {
  align-self: stretch;
  flex: 1;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-live-example:first-of-type .dg-live-sentence {
  border-inline-start-color: #3c7853;
  background: #eef5ed;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-live-example:last-of-type .dg-live-sentence {
  border-inline-start-color: #9e554a;
  background: #fcf1eb;
}

body.dg-knowledge-browse:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-article-card {
  border-radius: var(--dg-radius);
}

body.dg-knowledge-browse:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-article-card:focus-within {
  outline: 2px solid var(--dg-focus);
  outline-offset: 2px;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(
  .dg-article-tools .dg-primary-link,
  .dg-live-examples .dg-primary-link,
  .dg-server-search button,
  .word-search-band .primary-button
),
body:has(> .dg-public-header, > .site-shell > .dg-public-header) .hero:has(.editor) .editor-footer .primary-button {
  min-height: 44px;
  border: 1px solid #ba8d14;
  border-radius: 7px;
  background: var(--dg-action);
  color: #241b29;
  box-shadow: none;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-article-tool-links .dg-primary-link[href*="/szinonima/"],
body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-article-tool-links .dg-primary-link[href*="/szo/"] {
  background: transparent;
  border-color: #b59cc4;
  color: #543762;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-article-tool-links
  .dg-primary-link:is([href*="/szinonima/"], [href*="/szo/"]):hover {
  background: #f3eaf7;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(
  .dg-article-tools .dg-primary-link,
  .dg-live-examples .dg-primary-link,
  .dg-server-search button,
  .word-search-band .primary-button
):hover,
body:has(> .dg-public-header, > .site-shell > .dg-public-header) .hero:has(.editor) .editor-footer .primary-button:hover {
  background: var(--dg-action-hover);
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.dg-article-tools, .dg-live-examples, .dg-server-search, .word-search-band) :focus-visible {
  outline: 3px solid var(--dg-focus);
  outline-offset: 3px;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.site-footer, .dg-knowledge-footer),
body.dg-info:has(> .dg-public-header) > footer {
  border-top: 2px solid #b8963d;
  background: #15111c;
  color: #e1d9e7;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.site-footer, .dg-knowledge-footer) :is(a, p, address),
body.dg-info:has(> .dg-public-header) > footer a {
  color: #e1d9e7;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.site-footer, .dg-knowledge-footer) a:hover,
body.dg-info:has(> .dg-public-header) > footer a:hover {
  color: #ffdf79;
}

@media (max-width: 600px) {
  body:has(> .dg-public-header, > .site-shell > .dg-public-header) .dg-live-examples {
    grid-template-columns: minmax(0, 1fr);
  }

  body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(.dg-article-tools, .dg-live-example) .dg-primary-link {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    text-align: center;
  }
}

/* Quiet details for reading, navigating and using the writing tools. */
body:has(> .dg-public-header, > .site-shell > .dg-public-header) ::selection {
  background: #f6d877;
  color: #302637;
}

body:has(> .dg-public-header, > .site-shell > .dg-public-header) :is(
  .blog-article-header h1, .dg-knowledge-intro h1, .dg-practice-intro h1,
  .word-entry h1, .blog-prose h2, .dg-live-examples h2
) {
  text-wrap: balance;
}

body.dg-info:has(.dg-public-header) .dg-breadcrumb {
  display: block;
  margin-bottom: 20px;
  line-height: 1.8;
}

body.dg-info:has(.dg-public-header) .dg-breadcrumb :is(a, span) {
  display: inline;
  min-height: 0;
  padding: 0;
}

body.dg-info:has(.dg-public-header) .dg-breadcrumb [aria-hidden] {
  margin-inline: 6px;
}

body:has(.dg-public-header) :is(.blog-prose, .dg-answer, .short-definition) a,
body.dg-knowledge:has(.dg-public-header) main > article > section a:not(.dg-primary-link) {
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

body:has(.dg-public-header) :is(.blog-toc, .dg-contents) > summary {
  box-sizing: border-box;
  min-height: 44px;
  padding-block: 10px;
  cursor: pointer;
  line-height: 1.6;
}

body:has(.dg-public-header) :is(.blog-toc, .dg-contents) li::marker {
  color: #765386;
  font-variant-numeric: tabular-nums;
}

body:has(.dg-public-header) :is(.blog-toc, .dg-contents) a {
  text-underline-offset: .2em;
}

body:has(.dg-public-header) .blog-prose th,
body.dg-knowledge:has(.dg-public-header) th {
  background: #eee7f2;
  color: #46334f;
}

body:has(.dg-public-header) .blog-prose tbody tr:nth-child(even) {
  background: #faf7fc;
}

body:has(.dg-public-header) :is(.blog-question, .word-filters, .sense-card) {
  border-radius: 8px;
}

body:has(.dg-public-header) :is(.blog-question, .word-filters) :is(input, select) {
  accent-color: #754d91;
}

body:has(.dg-public-header) .blog-option:has(input:checked) {
  border-color: #856395;
  background: #f1eaf5;
}

body:has(.dg-public-header) :is(.blog-option, .word-entry .secondary-button) {
  min-height: 44px;
}

body:has(.dg-public-header) :where(main, .hero, .tools-section) :where(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid var(--dg-focus);
  outline-offset: 3px;
}

body:has(.dg-public-header) :is(.site-footer, .dg-knowledge-footer) a:focus-visible,
body.dg-info:has(.dg-public-header) > footer a:focus-visible {
  outline: 3px solid #ffdf79;
  outline-offset: 4px;
}

body:has(.dg-public-header) :is(.site-footer, .dg-knowledge-footer) a {
  text-underline-offset: .25em;
}

body:has(.dg-public-header) :is(.site-footer, .dg-knowledge-footer) a:hover {
  text-decoration: underline;
}

@media (prefers-reduced-motion: no-preference) {
  .dg-public-header a,
  body:has(.dg-public-header) :is(.dg-primary-link, .blog-option, .synonym-chip, .dg-article-card, .blog-card) {
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dg-public-header :is(a, summary, svg),
  body:has(.dg-public-header) :is(.dg-primary-link, .blog-option, .synonym-chip, .dg-article-card, .blog-card) {
    transition: none;
  }
}

/* Writing and emoji tools use the shared paper, plum and yellow palette. */
body:is([data-page-type="workshop"], [data-page-type="emoji"]):has(.dg-public-header) {
  --ink: var(--dg-ink);
  --paper: var(--dg-paper);
  --yellow: var(--dg-action);
  --yellow-strong: var(--dg-action);
  --line: var(--dg-line);
  --muted: #65596d;
}

body:is([data-page-type="workshop"], [data-page-type="emoji"]):has(.dg-public-header) .hero h1 {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-transform: none;
  color: var(--dg-ink);
}

body:is([data-page-type="workshop"], [data-page-type="emoji"]):has(.dg-public-header) .hero-lead {
  color: #483650;
  line-height: 1.5;
}

body:is([data-page-type="workshop"], [data-page-type="emoji"]):has(.dg-public-header) .hero-description {
  color: #65596d;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-shell {
  background: #f0eaf2;
  border-color: var(--dg-line);
  color: var(--dg-ink);
  border-radius: var(--dg-radius);
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-heading h2 {
  color: var(--dg-ink);
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-step-nav {
  border-color: var(--dg-line);
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-step-nav a {
  color: #594164;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-step-nav small {
  color: #65596d;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-step-nav a > span {
  background: #eee5f2;
  color: #543562;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-step-nav a:hover {
  background: #f4eef6;
  border-color: #b59cc4;
  color: var(--dg-ink);
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-step-nav a[aria-current="step"] {
  background: #fff3c7;
  border-color: #ae8419;
  color: var(--dg-ink);
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-step-nav a[aria-current="step"] > span {
  background: #483252;
  color: #fff2b8;
}

body[data-page-type="workshop"]:has(.dg-public-header) :is(.workshop-step--writing, .workshop-step--checking) {
  --dg-focus: #ffdf79;
  background: #201a28;
  border-color: #5f4c69;
  color: #f3edf6;
}

body[data-page-type="workshop"]:has(.dg-public-header) :is(.workshop-writing-toolbar button, .workshop-writing-toolbar a, .workshop-rhythm-paging button) {
  background: #f7f3f8;
  border-color: #cbbbd3;
  color: var(--dg-ink);
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-writing-toolbar button[aria-pressed="true"] {
  background: #fff3c7;
  border-color: #ae8419;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-writing-progress {
  background: #302438;
  border-color: #6d5878;
  color: #ece4f0;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-writing-progress :is(label span, small) {
  color: #d2c3db;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-rhythm {
  --dg-focus: #754d91;
  background: var(--dg-panel);
  border-color: var(--dg-line);
  color: var(--dg-ink);
}

body[data-page-type="workshop"]:has(.dg-public-header) :is(.workshop-rhythm summary span, .workshop-rhythm-list small) {
  color: #65596d;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-rhythm-list button {
  border-color: var(--dg-line);
  color: var(--dg-ink);
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-rhythm-list button:hover {
  background: #f4eef6;
  border-color: #b59cc4;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-rhythm-list button[data-long] {
  border-left-color: #a57920;
}

body[data-page-type="workshop"]:has(.dg-public-header) .writing-button {
  background: var(--dg-action);
  color: #241b29;
  border-color: #ba8d14;
}

body[data-page-type="workshop"]:has(.dg-public-header) .writing-button:hover {
  background: var(--dg-action-hover);
}

body[data-page-type="workshop"]:has(.dg-public-header) .writing-button--quiet {
  background: var(--dg-panel);
  border-color: #b59cc4;
  color: #543762;
}

body[data-page-type="workshop"]:has(.dg-public-header) .writing-button--quiet:hover {
  background: #f3eaf7;
}

body:is([data-page-type="workshop"], [data-page-type="emoji"]):has(.dg-public-header) :is(.writing-subnav, .dg-emoji-subnav) {
  border-color: var(--dg-line);
}

body:is([data-page-type="workshop"], [data-page-type="emoji"]):has(.dg-public-header) :is(.writing-subnav a, .dg-emoji-subnav a) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #594164;
}

body[data-page-type="emoji"]:has(.dg-public-header) .search-panel {
  border-color: #8e769e;
  box-shadow: 0 4px 16px #3026370a;
}

body[data-page-type="emoji"]:has(.dg-public-header) .search-panel:focus-within {
  outline: 3px solid var(--dg-focus);
  outline-offset: 3px;
  box-shadow: none;
}

/* The enclosing search panel carries the input focus ring. */
body[data-page-type="emoji"]:has(.dg-public-header) .search-panel #emoji-search:focus-visible {
  outline: none;
}

body[data-page-type="emoji"]:has(.dg-public-header) .search-button {
  border-color: #ba8d14;
}

body[data-page-type="emoji"]:has(.dg-public-header) .emoji-help-toggle {
  min-height: 44px;
}

@media (max-width: 600px) {
  body:is([data-page-type="workshop"], [data-page-type="emoji"]):has(.dg-public-header) :is(input:not([type="checkbox"]):not([type="radio"]), select) {
    font-size: 16px;
  }

  body[data-page-type="emoji"]:has(.dg-public-header) .dg-emoji-subnav {
    flex-wrap: wrap;
    overflow: visible;
    white-space: normal;
    gap: 4px 18px;
  }
}

body[data-page-type="workshop"]:has(.dg-public-header) :is(.hero .eyebrow, .workshop-heading .section-kicker) {
  color: #73537f;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-heading > p {
  color: #65596d;
}

body[data-page-type="workshop"]:has(.dg-public-header) .workshop-step[data-workshop-step-active] {
  border-color: #ad91bd;
}

body[data-page-type="workshop"]:has(.dg-public-header) :is(.workshop-step--writing, .workshop-step--checking)
  :is(a, button, input, select, textarea, summary):focus-visible {
  outline-color: var(--dg-focus);
}

body:has(.dg-public-header) .hero:has(.editor) :is(.hero-copy, .dg-favorites) a:focus-visible {
  outline-color: #ffdf79;
}

@media (max-width: 600px) {
  body.dg-knowledge:has(.dg-public-header) #knowledge-query { font-size: 16px; }
}

@media print {
  body:has(> .dg-public-header, > .site-shell > .dg-public-header) > footer {
    border-color: #777;
    background: #fff;
    color: #222;
  }

  body:has(> .dg-public-header, > .site-shell > .dg-public-header) > footer :is(a, p, address) {
    color: #222;
  }
}
