:root{--navy:#082f5b;--navy-deep:#062548;--gold:#ffca38;--paper:#f3f6f9;--ink:#162739;--muted:#596879;--line:#d4dee8;--blue:#215b92;color-scheme:light}
*{box-sizing:border-box}
html{scroll-padding-top:24px;scroll-padding-bottom:140px;scrollbar-gutter:stable}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 "Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit}
button,a,summary{touch-action:manipulation}
a{color:var(--navy);text-underline-offset:4px;text-decoration-thickness:1px}
a:hover{color:var(--blue);text-decoration-thickness:2px}
:focus-visible{outline:3px solid #a76f00;outline-offset:3px}
h1,h2,h3,p{margin:0}
h1,h2,h3{color:var(--navy);line-height:1.2;letter-spacing:-.025em}
h1,h2{font-family:Georgia,"Times New Roman",serif;font-weight:600}
h1{font-size:1.8rem}
h2{font-size:1.7rem}
h3{font-size:1.1rem}
.wrap{width:min(calc(100% - 64px),1120px);margin-inline:auto}
.editor-header{background:#fff;border-top:5px solid var(--navy);border-bottom:1px solid var(--line)}
.editor-masthead{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-block:22px}
.editor-brand{display:flex;align-items:center;gap:14px;min-width:0}
.editor-crest{display:block;width:44px;height:48px;object-fit:contain;flex-shrink:0}
.chapter-identity{color:var(--muted);font-size:.875rem;font-weight:600;line-height:1.4;margin-bottom:4px}
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px 20px;flex-wrap:wrap;min-width:0}
.account-name{font-size:.875rem;color:var(--muted);overflow-wrap:anywhere;max-width:180px}
.header-actions a{display:inline-flex;align-items:center;gap:7px;min-height:44px;font-size:.9375rem}
main{padding-top:28px;padding-bottom:44px}
button{min-height:46px;padding:10px 18px;border:1px solid var(--navy);border-radius:5px;background:var(--navy);color:#fff;font-weight:700;cursor:pointer}
button:hover{background:#16497c}
button:disabled{opacity:.52;cursor:default}
button.secondary{color:var(--navy);background:#fff}
button.secondary:hover{background:#eaf0f6}
button.quiet{background:transparent;border-color:transparent;color:var(--navy);font-weight:400;text-decoration:underline;text-underline-offset:4px;padding-inline:8px}
button.quiet:hover{background:#eaf0f6}
button.remove-rep{font-size:.9375rem;color:#923b30;justify-self:start;grid-column:1/-1;padding-block:8px}
.auth-panel{max-width:460px;margin:24px auto 60px;padding:30px 32px 34px;background:#fff;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:6px}
.auth-panel>p{margin-top:14px;color:var(--muted)}
#auth-form{margin-top:26px}
#auth-form>.field{margin-bottom:20px}
#auth-submit{min-width:145px}
#retry-auth{margin-top:20px}
.field{display:flex;flex-direction:column;min-width:0;gap:6px}
.fixed-field{margin:0}
.fixed-field dt{font-weight:600;font-size:.9375rem}
.fixed-field dd{margin:0;overflow-wrap:anywhere}
label{font-weight:600;font-size:.9375rem}
input,textarea,select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #8497aa;border-radius:5px;background:#fff;color:var(--ink);box-shadow:none}
input:hover,textarea:hover,select:hover{border-color:var(--navy)}
input:focus,textarea:focus,select:focus{outline:3px solid #a76f00;outline-offset:1px}
textarea{resize:vertical;min-height:110px}
.hint{font-size:.875rem;color:var(--muted)}
#editor{background:#fff;border:1px solid var(--line);border-radius:6px}
.editor-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 20px;border-bottom:1px solid var(--line)}
.editor-tools a{display:flex;align-items:center;justify-content:center;min-width:104px;min-height:44px;padding:8px 14px;border-radius:4px;color:var(--muted);font-size:.9375rem;font-weight:600;text-decoration:none}
.editor-tools a[aria-current=page]{background:var(--navy);color:#fff}
.editor-tools a:hover{background:#eaf0f6;color:var(--navy)}
.editor-tools a[aria-current=page]:hover{background:#16497c;color:#fff}
.tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line)}
.tabs button{min-width:0;min-height:62px;padding:15px 12px;border:0;border-bottom:3px solid transparent;border-radius:0;background:var(--paper);color:var(--muted);font-weight:600;line-height:1.4}
.tabs button:first-child{border-top-left-radius:5px}
.tabs button:last-child{border-top-right-radius:5px}
.tabs button+button{border-left:1px solid var(--line)}
.tabs button[aria-selected=true]{border-bottom-color:var(--gold);background:#fff;color:var(--navy);font-weight:700}
.tabs button:hover{background:#eaf0f6;color:var(--navy)}
.workspace{margin:0;padding:0 28px 26px;border:0;min-width:0}
.section-heading{padding-block:28px 24px}
.section-heading p{max-width:740px;margin-top:10px;color:var(--muted)}
.rep-toolbar{display:grid;grid-template-columns:minmax(200px,420px) minmax(0,1fr);align-items:end;gap:24px}
.rep-toolbar-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap}
#rep-total{white-space:nowrap}
#add-rep{flex-shrink:0}
#search-status{min-height:23px;margin-block:6px 10px}
#rep-list{border-bottom:1px solid var(--line)}
.rep-row{border-top:1px solid var(--line)}
.rep-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:72px;padding:17px 18px;list-style:none;cursor:pointer}
.rep-summary::-webkit-details-marker{display:none}
.rep-summary:hover{background:#edf3f8}
.rep-summary-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:baseline;gap:24px;flex:1;min-width:0}
.rep-site-title{font-size:1rem;font-weight:600;color:var(--navy);overflow-wrap:anywhere}
.rep-name-summary{font-size:.9375rem;color:var(--muted);overflow-wrap:anywhere}
.rep-edit-label{min-width:44px;text-align:right;color:var(--blue);text-decoration:underline;text-underline-offset:4px;font-size:.9375rem;flex-shrink:0}
.rep-row[open]{background:var(--paper)}
.rep-row[open]>.rep-summary{padding-bottom:20px}
.rep-fields{display:grid;grid-template-columns:1fr 1fr 1.15fr;gap:16px 20px;align-items:end;padding:0 18px 16px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px 28px;max-width:860px;padding-bottom:8px}
.field-wide{grid-column:1/-1}
.contact-group{border:0;padding:0;margin:0;min-width:0}
.contact-group legend{font-size:1.0625rem;font-weight:600;color:var(--navy);margin-bottom:18px;padding:0}
.contact-group+.contact-group{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}
.contact-group .form-grid{padding-bottom:0}
.save-bar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border-top:1px solid var(--line);border-radius:0 0 5px 5px;padding:18px 28px;box-shadow:0 -3px 8px #082f5b08;z-index:2}
.save-actions{display:flex;align-items:center;gap:12px;flex-shrink:0}
#save{min-width:144px}
#save-status{font-size:.9375rem;color:var(--muted);text-align:right;min-height:24px}
.editor-message:empty,#auth-message:empty{display:none}
.editor-message{margin:24px 28px 0;padding:14px 17px;border-left:3px solid var(--gold);background:#fff9e7}
.editor-message:not(:empty)+.tabs{margin-top:24px}
.error{color:#923b30!important}
#reload-content{margin:0 28px 24px;max-width:calc(100% - 56px)}
.skip{position:absolute;top:-100px;left:20px;background:var(--gold);color:var(--navy);padding:12px 18px;font-weight:700;z-index:10}
.skip:focus{top:10px}
.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}
@media(max-width:840px){
  .rep-toolbar{grid-template-columns:1fr;gap:12px}
  .rep-toolbar-actions{justify-content:space-between}
  .rep-fields{grid-template-columns:1fr 1fr}
  .rep-fields>.field:first-child{grid-column:1/-1}
  .rep-summary-main{gap:18px}
}
@media(max-width:600px){
  .wrap{width:calc(100% - 32px)}
  .editor-masthead{align-items:start;flex-direction:column;gap:14px;padding-block:18px 12px}
  .header-actions{width:100%;justify-content:space-between;gap:12px}
  h1{font-size:1.6rem}
  h2{font-size:1.5rem}
  main{padding-top:20px}
  .auth-panel{margin-top:8px;padding:25px 22px 28px}
  .tabs button{font-size:.9375rem;min-height:67px;padding:11px 6px}
  .workspace{padding:0 18px 22px}
  .section-heading{padding-top:24px}
  .rep-summary{gap:14px;padding:15px 12px}
  .rep-summary-main{grid-template-columns:1fr;gap:3px}
  .rep-fields,.form-grid{grid-template-columns:1fr;gap:18px}
  .rep-fields{padding-inline:12px}
  .save-bar{align-items:stretch;flex-direction:column;gap:8px;padding:14px 18px}
  .save-actions{justify-content:space-between;gap:6px}
  #save-status{text-align:left;font-size:.875rem}
  .editor-message{margin:20px 18px 0}
  #reload-content{margin-inline:18px;max-width:calc(100% - 36px)}
}
@media(max-width:360px){
  .save-actions{gap:8px}
  .save-actions button{padding-inline:8px;font-size:.875rem;white-space:nowrap}
  #save{min-width:0}
}
.chapter-contacts{border-top:1px solid var(--line);margin-top:28px;padding-top:24px}
.chapter-contacts-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}
.chapter-contacts-heading h3{font-size:1.0625rem;letter-spacing:0}
.chapter-contacts-actions{display:flex;align-items:center;justify-content:flex-end;gap:18px;flex-wrap:wrap}
#contact-total{white-space:nowrap}
#add-contact{flex-shrink:0}
#contact-empty{margin-block:12px 4px}
#contact-list:not(:empty){border-bottom:1px solid var(--line)}
.chapter-contact-row{border-top:1px solid var(--line)}
.chapter-contact-summary{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:72px;padding:17px 18px;list-style:none;cursor:pointer}
.chapter-contact-summary::-webkit-details-marker{display:none}
.chapter-contact-summary:hover{background:#edf3f8}
.chapter-contact-summary-main{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:baseline;gap:24px;flex:1;min-width:0}
.chapter-contact-role{font-size:1rem;font-weight:600;color:var(--navy);overflow-wrap:anywhere}
.chapter-contact-name{font-size:.9375rem;color:var(--muted);overflow-wrap:anywhere}
.chapter-contact-edit{min-width:44px;text-align:right;color:var(--blue);text-decoration:underline;text-underline-offset:4px;font-size:.9375rem;flex-shrink:0}
.chapter-contact-row[open]{background:var(--paper)}
.chapter-contact-row[open]>.chapter-contact-summary{padding-bottom:20px}
.chapter-contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;padding:0 18px 18px}
.chapter-contact-row-actions{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.chapter-contact-moves{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.chapter-contact-row-actions button{min-height:44px;padding:8px 12px;font-size:.875rem}
.chapter-contact-row-actions .remove-contact{color:#923b30}
#editor-confirm-dialog{width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:26px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--ink);box-shadow:0 12px 48px #082f5b33}
#editor-confirm-dialog::backdrop{background:#102e4b66}
#editor-confirm-title{font:600 1.4rem/1.3 Georgia,"Times New Roman",serif;letter-spacing:-.015em;overflow-wrap:anywhere}
#editor-confirm-message{margin-top:12px;color:var(--muted);overflow-wrap:anywhere}
#editor-confirm-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:24px}
#editor-confirm-actions button{min-height:44px;max-width:100%;white-space:normal}
#editor-confirm-accept.dangerous{background:#923b30;border-color:#923b30}
#editor-confirm-accept.dangerous:hover{background:#793128;border-color:#793128}
#editor-notice{position:fixed;z-index:20;right:24px;bottom:var(--notice-bottom,16px);display:flex;align-items:flex-start;gap:12px;width:min(400px,calc(100% - 32px));max-height:var(--notice-max-height,calc(100dvh - 32px));overflow:auto;padding:16px 12px 16px 18px;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:6px;background:#fff;color:var(--ink);box-shadow:0 5px 24px #082f5b24}
#editor-notice[data-kind=success]{border-left-color:#387353}
#editor-notice[data-kind=error]{border-left-color:#923b30}
#editor-notice-copy{flex:1;min-width:0;overflow-wrap:anywhere}
#editor-notice-title{display:block;color:var(--navy);font-size:.9375rem;font-weight:600;line-height:1.45}
#editor-notice-message{margin-top:4px;color:var(--muted);font-size:.875rem;line-height:1.5}
#editor-notice-dismiss{flex:0 0 44px;width:44px;min-height:44px;padding:5px;font-size:1.5rem;line-height:1;text-decoration:none;border-radius:4px}
@media(max-width:600px){
  .chapter-contacts-heading{align-items:start;flex-direction:column;gap:12px}
  .chapter-contacts-actions{justify-content:space-between;width:100%;gap:12px}
  .chapter-contact-summary{gap:14px;padding:15px 12px}
  .chapter-contact-summary-main{grid-template-columns:1fr;gap:3px}
  .chapter-contact-fields{grid-template-columns:1fr;gap:18px;padding-inline:12px}
  #editor-notice{right:16px}
  #editor-confirm-dialog{padding:22px}
}
@media(max-width:480px){#editor-confirm-actions{flex-direction:column}#editor-confirm-actions button{width:100%}}
.website-editor-page .editor-shell{display:grid;grid-template-columns:224px minmax(0,1fr);align-items:start}
.website-editor-page .editor-sidebar{align-self:stretch;padding:24px 12px;background:#f7f9fb;border-right:1px solid var(--line);border-radius:5px 0 0 5px}
.website-editor-page .editor-section-nav{position:sticky;top:24px;min-width:0}
.website-editor-page .editor-navigation-heading{padding:0 12px 12px;color:var(--muted);font-size:.875rem;font-weight:600}
.website-editor-page .editor-section-links{display:flex;flex-direction:column;gap:4px}
.website-editor-page .editor-section-links a{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:48px;padding:11px 12px;border-radius:5px;color:var(--navy);font-size:.9375rem;font-weight:600;line-height:1.4;text-decoration:none}
.website-editor-page .editor-section-links a:hover{background:#e5edf4}
.website-editor-page .editor-section-links a[aria-current=page]{background:var(--navy);color:#fff}
.website-editor-page .editor-section-links a[aria-current=page]:hover{background:#16497c}
.website-editor-page .editor-section-links .editor-newsletter-link{margin-top:14px;padding-top:18px;border-top:1px solid var(--line);border-radius:0}
.website-editor-page .section-change-indicator{flex-shrink:0;font-size:.75rem;font-weight:500;color:var(--muted)}
.website-editor-page a[aria-current=page] .section-change-indicator{color:#fff}
.website-editor-page #section-toggle{display:none}
.website-editor-page .editor-content-pane{min-width:0}
.website-editor-page .section-heading h2{scroll-margin-top:24px}
@media(max-width:900px){
  .website-editor-page .editor-shell{display:block}
  .website-editor-page .editor-sidebar{position:sticky;top:0;z-index:6;padding:10px 16px;background:#fff;border-right:0;border-bottom:1px solid var(--line);border-radius:5px 5px 0 0}
  .website-editor-page .editor-section-nav{position:static}
  .website-editor-page .editor-navigation-heading{display:none}
  .website-editor-page #section-toggle{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:50px;padding:11px 14px;background:var(--paper);border-color:var(--line);color:var(--navy);font-size:.9375rem;font-weight:600;text-align:left}
  .website-editor-page #section-toggle:hover{background:#eaf0f6}
  .website-editor-page .section-toggle-action{font-size:.8125rem;font-weight:400;text-decoration:underline;text-underline-offset:3px}
  .website-editor-page .editor-section-links{position:absolute;top:calc(100% - 1px);left:16px;right:16px;z-index:7;max-height:min(65vh,360px);overflow:auto;padding:8px;background:#fff;border:1px solid var(--line);border-radius:5px;box-shadow:0 8px 24px #082f5b24}
  .website-editor-page #section-toggle[aria-expanded=false]+#section-links{display:none}
  .website-editor-page .editor-section-links .editor-newsletter-link{margin-top:6px;padding-top:14px}
  .website-editor-page .section-heading h2{scroll-margin-top:92px}
}
