/* Consistent centred content; the map retains its full-screen layout. */
body:not(.console-page) { --content-width:1240px; --content-gutter:clamp(16px,3vw,32px); }
.town-shell { width:calc(100% - var(--content-gutter)*2); max-width:var(--content-width); }
.town-tabs { margin-inline:auto; }
.town-editor-layout,.publication-detail-grid { max-width:1100px; margin-inline:auto; }
.town-page .town-card-grid,.town-page .pub-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),380px)); justify-content:center; }
.town-page .town-empty { width:100%; max-width:820px; margin-inline:auto; }
.town-page-heading>div:first-child { min-width:0; }
.town-page .town-page-heading h1 { overflow-wrap:anywhere; }
.town-footer { align-items:center; }
.venue-media,.venue-feedback { min-width:0; }
.profile-page { width:calc(100% - var(--content-gutter)*2); max-width:760px; margin:32px auto; padding:clamp(22px,4vw,38px); border:1px solid var(--line); border-radius:20px; background:var(--surface); }
.profile-page>header { text-align:center; }
.profile-page>header p { overflow-wrap:anywhere; }
.profile-page>form { width:100%; max-width:610px; margin-inline:auto; }
.profile-page>.secondary-button { display:flex; justify-content:center; width:fit-content; max-width:100%; margin:22px auto 0; }
.auth-entry { max-width:1180px; }
.auth-entry:not(.is-register) { align-items:center; }
.auth-entry:not(.is-register) .auth-visual { position:relative; top:auto; }
.account-panel { margin-inline:auto; }
.console-page .admin-dashboard { width:100%; min-width:0; max-width:1640px; margin-inline:auto; }
@media(min-width:1100px) { .auth-entry { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } }
@media(max-width:899px) { .auth-entry { max-width:660px; } }
@media(max-width:820px) {
  .town-page .town-card-grid,.town-page .pub-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); }
  .town-editor-layout,.publication-detail-grid { width:100%; }
  .profile-page { margin-top:24px; }
}
@media(max-width:599px) {
  .town-page-heading>div:first-child { text-align:center; }
  .town-page .town-page-heading h1 { font-size:clamp(28px,7.5vw,32px); }
  .town-tabs { justify-content:center; }
  .town-page .town-card-grid,.town-page .pub-grid { grid-template-columns:minmax(0,1fr); }
  .town-footer { justify-content:center; text-align:center; }
  .profile-page { padding:22px 18px; border-radius:16px; }
  .auth-entry { width:calc(100% - 24px); }
}
@media(max-width:359px) {
  .town-feature>div:first-child,.town-form-card,.publication-detail,.publication-plan { padding:20px; }
  .town-page .town-section-heading { flex-wrap:wrap; gap:12px; }
}
@media(orientation:landscape) and (max-height:600px) and (min-width:900px) {
  .auth-entry { min-height:0; margin-block:20px; }
  .auth-entry:not(.is-register) .auth-scene { height:530px; }
}
