/* Gefährten 1.17 — shared visual rhythm, loaded on every HTML page. */
:root{--dg-layout-width:1120px;--dg-layout-gutter:clamp(16px,2.2vw,30px);--dg-layout-title:clamp(36px,4.8vw,64px);--dg-layout-top:64px;--dg-space-sm:12px;--dg-space-md:20px;--dg-space-lg:28px;--dg-space-xl:40px;--dg-card-radius:3px;--dg-card-padding:24px;--dg-control-height:44px;--dg-text-soft:#c8bba8;--dg-luxe-shadow:0 18px 38px #0005,0 4px 12px #0003,inset 0 1px #f5d6a414,inset 0 -1px #07090e55}
.site-shell>.section{width:100%;max-width:var(--dg-layout-width);padding-inline:var(--dg-layout-gutter);min-width:0}
body.dg-inner-page .site-shell>.section{padding-bottom:56px}
body.dg-inner-page .site-shell :is(.dg-page-header,.account-shared-header){margin-bottom:var(--dg-space-xl)!important}
body.dg-inner-page .site-shell :is(.dg-page-header,.account-shared-header)>h1{overflow-wrap:anywhere}
body.dg-inner-page .site-shell :is(.dg-page-header,.account-shared-header)>.lead{margin-bottom:0!important}
body.dg-inner-page .site-shell .dg-page-header>:is(.kicker,.eyebrow),body.dg-inner-page .site-shell .account-shared-header>.eyebrow{font:700 10px/1.7 system-ui,sans-serif;letter-spacing:.17em;color:#cba267}
body.dg-inner-page .site-shell .section h1{overflow-wrap:anywhere}
body.dg-inner-page .site-shell .section :is(h2,h3){line-height:1.3;overflow-wrap:anywhere}
body.dg-inner-page .site-shell .section>h2,body.dg-inner-page .site-shell :is(.section-head,.dg-resource-section-head,.member-section-title)>h2{font:400 clamp(24px,2.6vw,32px)/1.25 Georgia,'Times New Roman',serif;color:#ead0a1;margin:0 0 16px}
body.dg-inner-page .site-shell .section>p{line-height:1.75}
body.dg-inner-page .site-shell .section>.panel{padding:var(--dg-card-padding)}
body.dg-inner-page .site-shell .section>.panel+.panel,body.dg-inner-page .site-shell .section>.panel+form.panel{margin-top:var(--dg-space-md)}
body.dg-inner-page .site-shell :is(.gc-settings,.admin-content)>.panel+.panel{margin-top:var(--dg-space-md)}
body.dg-inner-page .site-shell .legal-panel{padding:var(--dg-card-padding)!important;max-width:none;border-radius:var(--dg-card-radius)!important}
body.dg-inner-page .site-shell .legal-panel h2{font-size:24px;margin:30px 0 12px}
body.dg-inner-page .site-shell .legal-panel h2:first-child{margin-top:0}
body.dg-inner-page .site-shell .legal-panel p,body.dg-inner-page .site-shell .legal-panel address{font-size:14px;line-height:1.8;color:var(--dg-text-soft)}
/* Forms share dimensions; game controls, chat composers and checkboxes keep their own geometry. */
.site-shell .section :is(.form-grid,.craft-form,.gc-settings .form-grid){gap:18px 22px}
.site-shell .section .form-grid>label:not(.consent):not(:has(input[type=checkbox],input[type=radio])){display:grid;align-content:start;gap:8px;font-size:13px;color:#d5c2a0}
.site-shell .section :is(.form-grid,.craft-filters,.bnet-filters,.play-filters) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select){min-height:var(--dg-control-height);padding:10px 12px;border-radius:2px;font-size:14px;max-width:100%;min-width:0}
.site-shell .section .form-grid textarea{min-height:100px;padding:12px;border-radius:2px;font-size:14px;line-height:1.65;resize:vertical}
.site-shell .section .form-grid :is(.wide,h2,h3,.notice){min-width:0}
.site-shell .section .form-grid input[type=checkbox],.site-shell .section .form-grid input[type=radio]{accent-color:#cba266;flex-shrink:0}
.site-shell .section :is(.form-grid,.craft-filters) :is(input,select,textarea):focus-visible{outline:2px solid #d9b578;outline-offset:3px}
.site-shell .section .btn{min-height:var(--dg-control-height);display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;font-size:11px;line-height:1.45;letter-spacing:.075em;padding:12px 18px;text-align:center;vertical-align:middle;max-width:100%}
.site-shell .section .btn:focus-visible{outline:2px solid #e7c180;outline-offset:3px}
/* Spacing between headings, navigation, content and notices. */
body.dg-inner-page .site-shell :is(.craft-actions,.gc-admin-links,.dg-resource-admin-links,.account-tab-nav,.dg-resource-subnav){display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-block:24px}
body.dg-inner-page .site-shell :is(.account-tab-nav,.dg-resource-subnav) a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:11px 16px;line-height:1.4;box-sizing:border-box}
body.dg-inner-page .site-shell .section :is(.notice,.notice.bad,.notice.good){padding:14px 18px;line-height:1.65;font-size:13px;margin:18px 0;border-radius:2px;overflow-wrap:anywhere}
body.dg-inner-page .site-shell .section .fine{line-height:1.7}
body.dg-inner-page .site-shell .forum-header{display:flex;align-items:flex-start;gap:24px;margin-bottom:0}
body.dg-inner-page .site-shell .forum-header>.dg-page-header{flex:1;min-width:0}
body.dg-inner-page .site-shell .forum-header>.btn{margin-top:5px;flex-shrink:0}
body.dg-inner-page .site-shell .account-bnet-actions{justify-content:flex-start;margin:20px 0;gap:10px}
body.dg-inner-page .site-shell .guild-person-hero .guild-person-name{font:400 clamp(26px,3vw,38px)/1.2 Georgia,'Times New Roman',serif;color:#edd2a2;margin:0 0 12px}
/* Existing feature headers retain imagery, sharing the same title edge and rhythm. */
body.dg-inner-page .site-shell .story-banner{padding:0!important;border:0!important;background:none!important;box-shadow:none!important;min-height:0;margin:0 0 40px}
body.dg-inner-page .site-shell .story-banner>.eyebrow{font:700 10px/1.7 system-ui,sans-serif;letter-spacing:.17em;color:#cba267}
body.dg-inner-page .site-shell .story-banner>.lead{max-width:850px;font-size:15px;line-height:1.8;margin-bottom:24px}
body.dg-inner-page .site-shell .story-banner-crest{opacity:.12;pointer-events:none}
body.dg-inner-page .site-shell .story-chapters{gap:24px}
body.dg-inner-page .site-shell .guild-directory-copy>.lead{font-size:15px;line-height:1.8;max-width:850px}
body.dg-inner-page .site-shell .guild-directory-hero{margin-bottom:32px}
body.dg-inner-page .site-shell .section :is(.dg-resource-grid,.account-summary-grid,.gc-sections){gap:20px}
/* Secondary admin pages use the same panel rhythm as the main workspace. */
body.dg-inner-page .site-shell .admin-content :is(.panel,.admin-page-heading){min-width:0}
body.dg-inner-page .site-shell .admin-content .admin-v13-grid{gap:22px}
body.dg-inner-page .site-shell .admin-content .admin-v13-grid>.panel{padding:24px}
body.dg-inner-page .site-shell .gc-settings>section.panel{padding:24px;margin-bottom:24px}
body.dg-inner-page .site-shell :is(.admin-page-heading,.dg-resource-section-head,.guild-editor-heading){margin-bottom:24px}
/* Header navigation wraps into balanced rows without stretching the last item. */
.topbar{gap:20px}.topbar nav{row-gap:6px;column-gap:clamp(12px,1.3vw,24px);justify-content:flex-end;min-width:0}.topbar nav a{line-height:1.5;white-space:nowrap}.topbar .brand{flex-shrink:0}
footer{line-height:1.75;gap:24px}footer>div{min-width:0}footer a{overflow-wrap:anywhere}
@media(max-width:900px){.topbar{align-items:flex-start}.topbar nav{column-gap:15px;row-gap:5px}.topbar nav a{font-size:11px}body.dg-inner-page .site-shell .forum-header{flex-direction:column;gap:0}body.dg-inner-page .site-shell .forum-header>.btn{margin:0 0 24px}}
@media(max-width:760px){:root{--dg-layout-top:36px;--dg-layout-title:clamp(32px,7vw,46px);--dg-card-padding:18px;--dg-space-xl:30px}body.dg-inner-page .site-shell>.section{padding-bottom:40px}body.dg-inner-page .site-shell .admin-content .admin-v13-grid>.panel,body.dg-inner-page .site-shell .gc-settings>section.panel{padding:18px}.topbar{flex-direction:column;gap:12px}.topbar nav{justify-content:flex-start;width:100%}.site-shell .section .form-grid{gap:16px}.site-shell .section .btn{padding:11px 14px}body.dg-inner-page .site-shell .guild-person-hero .guild-person-name{font-size:28px}footer{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.site-shell .section .btn,.topbar nav a{transition:none!important}}
body.dg-inner-page .site-shell .story-banner{text-align:left!important;overflow:visible}
body.dg-inner-page .site-shell .story-banner-crest{position:absolute;right:12px;top:0;margin:0}
body.dg-inner-page .site-shell .story-banner>.lead{margin-inline:0;text-align:left}
body.dg-inner-page .site-shell .story-banner-actions{justify-content:flex-start;margin-top:24px}
footer{padding-inline:max(var(--dg-layout-gutter),calc((100vw - var(--dg-layout-width))/2 + var(--dg-layout-gutter)))}
@media(max-width:760px){body.dg-inner-page .site-shell .story-banner-crest{display:none}}
.site-shell .section .form-grid :is(input[type=checkbox],input[type=radio]){width:16px;height:16px;min-height:0;margin:0;padding:0;box-shadow:none}
.site-shell .section .form-grid label:has(>input[type=checkbox]),.site-shell .section .form-grid label:has(>input[type=radio]){display:flex;align-items:center;gap:10px;line-height:1.6}
.site-shell .section .forum-form{display:grid;gap:18px}
.site-shell .section .forum-form>label{display:grid;gap:8px;font-size:13px;color:#d5c2a0}
.site-shell .section .forum-form :is(input:not([type=hidden]),select,textarea){min-height:44px;padding:10px 12px;font-size:14px;border-radius:2px}
.site-shell .section .forum-form textarea{min-height:100px;line-height:1.65}
body.dg-inner-page .site-shell .guild-character-details-head .guild-character-name{font:400 clamp(26px,3vw,38px)/1.2 Georgia,'Times New Roman',serif;color:#edd2a2;margin:8px 0 14px}
body.dg-inner-page .site-shell .guild-directory-hero-rich{padding:24px!important}
@media(max-width:760px){body.dg-inner-page .site-shell .guild-directory-hero-rich{padding:18px!important}}
.site-shell .section .panel:not(.tb-tree):not(.play-card-row):not(.play-entry-spotlight){border-radius:var(--dg-card-radius)!important}
