/* ECBNET feedback revision: shared reflow and compact, action-first home/auth. */
:root {
  --fb-ink: #17202e;
  --fb-muted: #526174;
  --fb-line: #dde3ea;
  --fb-action: #c74f20;
}
html { scroll-padding-block: 5rem 2rem; }
body { overflow-wrap: break-word; }
button, input, select, textarea { font: inherit; }
input, select, textarea { max-width: 100%; font-size: 16px; }
img, video { max-width: 100%; }
:is(main, section, article, form, fieldset) { min-width: 0; }
:is(button, a, input, textarea, select):focus-visible { outline: 3px solid #a84015; outline-offset: 3px; }
:is(.auth-form, .public-form, .request-form) :is(input, select, button) { min-height: 46px; }
:is(.auth-form, .public-form, .request-form) input[type="checkbox"] { min-height: 0; }

/* A short, single-column form scrolls as one unit at any browser zoom. */
.auth-modal { padding: 16px; align-items: center; overflow: auto; }
.auth-modal .auth-card {
  width: min(100%, 480px);
  max-height: calc(100dvh - 32px);
  padding: 28px;
  background: #fff;
  color: var(--fb-ink);
  border: 1px solid var(--fb-line);
  border-radius: 12px;
  overflow: auto;
  overscroll-behavior: contain;
  scroll-padding-block: 20px;
  gap: 20px;
}
.auth-modal .auth-card-header { padding-right: 38px; }
.auth-modal .auth-card-header span { display: none; }
.auth-modal .auth-card-header h2 { font-size: 26px; line-height: 1.3; }
.auth-modal .auth-card-header p { font-size: 16px; line-height: 1.6; }
.auth-modal .auth-close { width: 44px; height: 44px; top: 16px; right: 16px; }
.auth-modal .auth-form { gap: 18px; min-width: 0; }
.auth-modal .auth-form > label:not(.auth-consent) { display: grid; gap: 7px; font-size: 16px; }
.auth-modal .auth-form input:not([type="checkbox"]) { width: 100%; background: #fff; color: var(--fb-ink); border: 1px solid #aebaca; border-radius: 6px; padding: 12px; }
.auth-modal .auth-form small { color: var(--fb-muted); font-size: 13px; line-height: 1.5; }
.auth-modal .auth-form .auth-consent { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; line-height: 1.65; font-size: 14px; }
.auth-modal .auth-consent input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; }
.auth-modal .auth-consent a { color: #8f3918; text-decoration: underline; text-underline-offset: 3px; }
.auth-modal .auth-submit { min-height: 48px; border-radius: 6px; background: var(--fb-action); color: #fff; font-size: 16px; }
.auth-modal .auth-helper { font-size: 15px; margin: 0; }
.auth-message { overflow-wrap: anywhere; }

/* Same navigation and original media; fewer sections and direct destinations. */
.ecbnet-landing .site-header { background: #fff; }
.ecbnet-landing .hx-mast-inner { min-height: 72px; height: auto; padding-block: 12px; }
.ecbnet-landing .gnb-link { font-size: 15px; }
.ecbnet-landing .en-shell { width: calc(100% - 40px); max-width: 1240px; }
.fb-home-hero { display: grid; grid-template-columns: 1fr; gap: 28px; padding-block: 40px; align-items: center; }
.fb-home-copy h1 { color: var(--fb-ink); font-size: clamp(32px, 4.5vw, 54px); line-height: 1.22; font-weight: 780; letter-spacing: -.045em; margin: 12px 0 18px; }
.fb-home-copy .en-lead { color: var(--fb-muted); font-size: 18px; line-height: 1.6; margin-bottom: 26px; }
.fb-home-copy .en-eyebrow { font-size: 12px; color: #a83d16; }
.fb-home-video { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: #17202e; }
.fb-home-video video { display: block; width: 100%; height: 100%; object-fit: cover; }
.fb-video-open { position: absolute; inset: auto 16px 16px; display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; color: #fff; background: #17202ed9; border: 1px solid #ffffffb3; border-radius: 6px; cursor: pointer; }
.fb-home-find { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: center; padding-block: 28px; border-top: 1px solid var(--fb-line); border-bottom: 1px solid var(--fb-line); }
.fb-home-find h2, .fb-home-start h2 { margin: 0 0 12px; font-size: 24px; font-weight: 750; line-height: 1.4; letter-spacing: -.025em; }
.fb-category-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.fb-category-links a { min-height: 44px; display: inline-flex; align-items: center; color: #8f3918; text-decoration: none; font-size: 16px; }
.fb-category-links a:hover { text-decoration: underline; }
.fb-home-search { display: flex; gap: 8px; }
.fb-home-search input { min-width: 0; flex: 1; min-height: 48px; border: 1px solid #aebaca; border-radius: 6px; padding: 12px; }
.fb-home-search button { flex: 0 0 auto; }
.ecbnet-landing .en-button { min-height: 48px; font-size: 16px; padding: 12px 20px; gap: 16px; }
.ecbnet-landing .en-primary { background: var(--fb-action); color: #fff; }
.ecbnet-landing .en-secondary { background: #fff; color: var(--fb-ink); border-color: #79869a; }
.ecbnet-landing .en-actions { flex-wrap: wrap; }
.ecbnet-landing .en-films { padding-block: 42px; }
.ecbnet-landing .en-films h2 { font-size: 26px; }
.ecbnet-landing .en-section-head { align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.ecbnet-landing .en-film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.ecbnet-landing .en-film-card-info { display: block; }
.ecbnet-landing .en-film-card p { font-size: 15px; }
.ecbnet-landing .en-film-select { font-size: 14px; min-height: 44px; }
.fb-home-start { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; background: #fff4ed; border-radius: 10px; padding: 28px; margin-bottom: 48px; }
.fb-home-start p { margin: 0; color: var(--fb-muted); font-size: 16px; }
.ecbnet-landing .site-footer { margin-top: 0; }

/* Columns must yield to available width rather than hiding overflow. */
.platform-body #networkContent,
.platform-body #networkStats,
.platform-body .ecb-net-block { min-width: 0; max-width: 100%; }
.platform-body #networkStats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.platform-body #networkStats article { min-width: 0; padding: 16px; }
.platform-body .ecb-kanban-board { display: grid; grid-template-columns: 1fr; overflow: visible; }
.platform-body .ecb-kanban-column { min-width: 0; width: 100%; }
.platform-body .ecb-kanban-column :is(header, .ecb-kanban-cards, .ecb-kanban-empty) { min-width: 0; overflow-wrap: anywhere; }
.platform-body .ecb-net-member-info { min-width: 0; overflow-wrap: anywhere; }
.platform-body :is(#view-profile, #view-settings) > .member-section-intro { display: none; }
.ep-public :is(.public-contact-intro, .public-contact-card) { min-width: 0; }
.ep-public .public-contact-commitment dd { overflow-wrap: anywhere; }
.ep-public :is(.public-field, .public-contact-optional) { min-width: 0; }
.ep-public .public-field :is(input, select, textarea) { min-width: 0; width: 100%; }

@media (max-width: 960px) {
  .ep-public .public-contact-layout { grid-template-columns: minmax(0, 1fr); }
  .ep-public .public-contact-card { order: -1; }
}

@media (min-width: 768px) {
  .ecbnet-landing .en-shell { width: calc(100% - 80px); }
  .fb-home-hero { grid-template-columns: .95fr 1.05fr; gap: 40px; padding-block: 56px; }
  .fb-home-find { grid-template-columns: 1fr 1fr; gap: 40px; }
  .ecbnet-landing .en-film-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .platform-body #networkStats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .platform-body .ecb-kanban-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  html { scroll-padding-bottom: 8rem; scroll-behavior: auto; }
  .ecbnet-organization .workspace-main { padding-bottom: calc(9rem + env(safe-area-inset-bottom, 0px)); }
  .ecbnet-organization .workspace-main :is(button, input, select, textarea) { scroll-margin-block: 24px 9rem; }
}
@media (max-width: 760px) {
  .public-contact-optional-grid { grid-template-columns: minmax(0, 1fr); }
  .platform-body .ecb-net-member-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .platform-body .ecb-net-member-row .ecb-btn { padding-inline: 10px; }
  .ecbnet-landing .site-header:not(.nav-open) #gnb { visibility: hidden; pointer-events: none; }
  .ecbnet-landing .site-header.nav-open #gnb { visibility: visible; pointer-events: auto; max-height: calc(100dvh - 76px); overflow-y: auto; }
  .ecbnet-landing .hx-mast-inner { padding-inline: 20px; }
  .ecbnet-landing .site-brand { min-width: 0; }
  .fb-home-copy h1 br { display: none; }
  .fb-home-copy .en-actions > a { flex: 1 1 145px; }
  .fb-home-start { padding: 22px; }
  .fb-home-start > button { width: 100%; }
  .platform-body .ecb-net-block { padding: 18px; }
  .platform-body #networkStats { gap: 8px; }
  .platform-body #networkStats article { padding: 12px; }
  .auth-modal { padding: 8px; }
  .auth-modal .auth-card { max-height: calc(100dvh - 16px); padding: 22px; border-radius: 8px; }
  .auth-modal .auth-card-header h2 { font-size: 24px; }
}
@media (max-width: 360px) {
  .ecbnet-landing .en-film-grid { grid-template-columns: 1fr; }
  .ecbnet-landing .en-shell { width: calc(100% - 32px); }
  .platform-body #networkStats { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .en-button, .auth-modal, .auth-card { transition: none; animation: none; }
}
/* First visit stays within the public homepage. */
.ecbnet-landing .fb-welcome { position:relative; margin-block:28px 0; padding:24px 28px; background:#fbf4ee; border:1px solid #eee1d5; border-radius:6px; display:grid; grid-template-columns:1fr 1.6fr; gap:28px; align-items:center; }
.ecbnet-landing .fb-welcome[hidden] { display:none; }
.fb-welcome h2 { margin:0 0 8px; font-size:24px; line-height:1.4; letter-spacing:-.8px; }
.fb-welcome p { margin:0; font-size:15px; line-height:1.6; color:#59616d; }
.fb-welcome .en-eyebrow { font-size:11px; margin-bottom:8px; color:#984b24; }
.fb-welcome nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding-right:48px; }
.fb-welcome nav a { text-decoration:none; color:#984b24; min-height:48px; }
.fb-welcome nav strong,.fb-welcome nav span { display:block; }
.fb-welcome nav strong { font-size:15px; margin-bottom:6px; }
.fb-welcome nav span { color:#59616d; font-size:14px; line-height:1.6; }
.fb-welcome button { position:absolute; right:12px; top:8px; min-height:44px; border:0; background:transparent; color:#59616d; cursor:pointer; font-size:14px; }
@media(max-width:900px) { .ecbnet-landing .fb-welcome { grid-template-columns:1fr; gap:20px; padding:24px; } .fb-welcome nav { padding-right:0; } }
@media(max-width:520px) { .fb-welcome nav { grid-template-columns:1fr; gap:0; } .fb-welcome nav a { padding:12px 0; border-top:1px solid #eaded3; } .fb-welcome h2 { padding-right:52px; font-size:22px; } }
