/* Home page and branch dashboard: four columns split by thin ink lines,
   from Kayleigh's home sketch. Card colours arrive as --fill / --ink / --tint. */
.ef-cols { display: grid; gap: 40px 0; align-items: stretch; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.9fr) minmax(0, 1.05fr) minmax(0, 1.45fr); }
.ef-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 0 24px; border-left: 1.5px solid var(--ef-ink); }
.ef-col-first { border-left: 0; padding-left: 0; }
.ef-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; }
.ef-tasks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* Your events */
.ef-events { display: flex; flex-direction: column; gap: 10px; }
/* Her words (25 Nov): up/down chevrons move through the list inside the column. No fade. */
/* Taller than three cards, so part of the next card peeks in (picture 17). */
.ef-events.is-scrolling { max-height: 530px; overflow-y: auto; scrollbar-width: none; }
.ef-events.is-scrolling::-webkit-scrollbar { display: none; }
.ef-card-wrap { border-radius: 6px; overflow: hidden; flex: 0 0 auto; background: var(--tint); }
/* Picture 16/17: the lockup sits right under the date, links/side on the right. */
.ef-card { border-radius: 6px; padding: 9px 14px 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 3px; align-items: start; background: var(--fill); color: var(--ink); cursor: pointer; }
.ef-card .ef-card-top, .ef-card .ef-card-mid { display: contents; }
.ef-card .ef-card-date { grid-column: 1; grid-row: 1; }
.ef-card .ef-card-links, .ef-card .ef-card-side { grid-column: 2; grid-row: 1 / span 2; }
.ef-card .ef-lockup { grid-column: 1; grid-row: 2; }
.ef-card .ef-card-foot { grid-column: 1 / -1; }
.ef-code-line { display: block; font-size: 11px; color: var(--ef-ink); margin: 2px 0 -6px; letter-spacing: .04em; }
.ef-card-wrap.is-open .ef-card { border-radius: 6px 6px 0 0; }
.ef-card .ef-mono { color: inherit; }
.ef-card .ef-go:hover { color: inherit; }
.ef-card a:focus-visible, .ef-card button:focus-visible { outline-color: currentColor; }
.ef-card-row { display: flex; justify-content: space-between; gap: 8px; }
.ef-card-top { align-items: flex-start; }
.ef-card-mid { align-items: flex-end; gap: 12px; }
.ef-card-foot { align-items: center; }
.ef-card-date { font-size: 12px; font-weight: 600; min-width: 0; }
.ef-card-links { display: flex; flex-direction: column; align-items: flex-end; flex: 0 0 auto; }
.ef-card-links .ef-icon { margin-top: 2px; }
.ef-card-side { font-size: 10.5px; line-height: 1.7; min-width: 0; }
/* One line where it fits; a long venue wraps whole rather than being cut. */
.ef-card-where { font-size: 11px; min-width: 0; line-height: 1.5; display: flex; flex-wrap: wrap; gap: 0 10px; }
.ef-card-where span:first-child { min-width: 0; overflow-wrap: anywhere; }
.ef-card-where span:last-child { white-space: nowrap; }
.ef-card-foot > .ef-icon { flex: 0 0 auto; }
.ef-name { font: 800 30px/0.92 var(--ef-head); text-transform: uppercase; margin: 0; white-space: nowrap; }
.ef-name.is-long { font-size: 24px; }
.ef-lockup { position: relative; display: inline-block; letter-spacing: -.01em; }
.ef-lockup-outline { position: absolute; left: 4px; top: 4px; color: transparent; -webkit-text-stroke: 1.4px var(--outline); right: -4px; }
.ef-lockup-text { position: relative; }
.ef-card-cog { background: var(--tint); color: var(--ef-ink); padding: 8px 14px; display: flex; flex-wrap: wrap; gap: 2px 22px; justify-content: flex-end; }
.ef-card-panel { background: var(--tint); color: var(--ef-ink); padding: 10px 14px 12px; display: grid; grid-template-columns: auto auto 1fr; gap: 2px 16px; align-items: center; }
.ef-end { justify-self: end; }
.ef-card-panel .ef-go { white-space: normal; line-height: 1.25; }
.ef-card-panel .ef-go svg, .ef-card .ef-go svg { flex: 0 0 auto; }
/* An open card keeps its height; its side text sits beside the name. */
.ef-card-wrap { container-type: inline-size; }
.ef-card-wrap.is-open .ef-card-foot { min-height: 28px; }
.ef-card-wrap.is-open .ef-card { grid-template-columns: auto minmax(min-content, 1fr); }
/* Picture 17: three whole lines on the right, where Dashboard/Agenda were. */
.ef-card-wrap.is-open .ef-card .ef-card-date { grid-column: 1 / -1; white-space: nowrap; }
.ef-card-wrap.is-open .ef-card .ef-card-side { grid-row: 2; align-self: center; justify-self: end; text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
/* The counts stay whole; the venue wraps between words only when the name
   leaves no room, so the side text never runs over the name. */
.ef-side-count { white-space: nowrap; }
.ef-side-venue { overflow-wrap: normal; }
/* Same height and name position as a closed card: an empty spacer the
   height of the closed card's links column. */
.ef-card .ef-card-spacer { grid-column: 2; grid-row: 1 / span 2; width: 0; height: 78px; }
/* So a long name and the side lines fit together on an open card. */
@container (max-width: 310px) {
  .ef-card-wrap.is-open .ef-name.is-long { font-size: 20px; }
}
@container (max-width: 290px) {
  .ef-card-wrap.is-open .ef-name.is-long { font-size: 18px; }
  /* Narrow cards: a long name is 20px open AND closed, so it never jumps. */
  .ef-card .ef-name.is-long { font-size: 20px; }
  .ef-card-panel { column-gap: 10px; }
}
.ef-card-foot .ef-visually-hidden:focus-visible { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.ef-scroll-down { align-self: flex-end; }
.ef-more { font-size: 15px; color: var(--ef-ink); font-weight: 400; }
.ef-mine-foot { display: flex; justify-content: center; align-items: center; gap: 24px; }
.ef-new { font-size: 15px; color: var(--ef-ink); }

/* Upcoming tasks */
.ef-task-group { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
/* Picture 01: task rows and bands are set in from their headings. */
.ef-task-group, .ef-task, .ef-task-note { margin-left: 24px; }
.ef-band-head, .ef-band, .ef-all { margin-left: 13px; }
.ef-task-code { font-size: 11px; letter-spacing: .04em; }
.ef-task-event { font: 800 15px/0.95 var(--ef-head); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.ef-task-event .ef-lockup-outline { left: 2px; top: 2px; -webkit-text-stroke-width: 1px; }
.ef-task-when { font-size: 11px; letter-spacing: .04em; }
.ef-task { display: flex; align-items: center; gap: 12px; background: var(--ef-row); border-radius: 4px; padding: 0 14px; min-height: 40px; }
.ef-task.is-done { opacity: .5; }
.ef-task.is-done .ef-task-name { text-decoration: line-through; }
.ef-task-name { font-size: 13px; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ef-task.is-saving .ef-tick { opacity: .6; cursor: progress; }
.ef-task-note { font: 400 12px var(--ef-mono); text-transform: uppercase; letter-spacing: .03em; color: var(--ef-ink); margin: 4px 0 0; }
.ef-task .ef-go { font-size: 12px; font-weight: 400; white-space: normal; max-width: 5.5em; line-height: 1.2; }
.ef-tick { display: inline-flex; align-items: center; gap: 12px; font: 400 12px var(--ef-mono); text-transform: uppercase; letter-spacing: .04em; cursor: pointer; white-space: nowrap; }
.ef-tick input { width: 22px; height: 22px; accent-color: var(--ef-ink); cursor: pointer; margin: 0; }

/* Quick links */
.ef-quick { font: 400 17px var(--ef-mono); text-transform: uppercase; letter-spacing: .03em; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; min-height: 30px; }
a.ef-quick:hover { text-decoration: underline; }
.ef-quick.has-gap { margin-top: 22px; }
/* Picture 01: FOLK lines up with the first task row, well below the heading. */
.ef-col > .ef-h + .ef-quick { margin-top: 36px; }
.ef-quick.is-waiting { color: var(--ef-soft); }
/* Tools folds out under itself (board ToolsC): a › that turns down when open,
   bold while open, its tools in smaller grey caps just inside it. */
.ef-quick-fold { border: 0; background: transparent; color: var(--ef-ink); padding: 0; cursor: pointer; text-align: left; }
.ef-quick-fold::after { content: "›"; display: inline-block; }
.ef-quick-fold[aria-expanded="true"] { font-weight: 700; }
.ef-quick-fold[aria-expanded="true"]::after { transform: rotate(90deg); }
.ef-quick-sub { list-style: none; margin: 0; padding: 0 0 0 10px; display: flex; flex-direction: column; }
.ef-quick-tool { font: 400 15px var(--ef-mono); text-transform: uppercase; letter-spacing: .02em; display: inline-flex; align-items: center; min-height: 30px; text-decoration: none; }
a.ef-quick-tool:hover { text-decoration: underline; }
.ef-quick-tool.is-waiting { color: var(--ef-soft); }
.ef-all { margin-top: 14px; }

/* All branch */
.ef-branch-head { display: flex; align-items: center; gap: 12px; }
.ef-select { font: 400 21px var(--ef-mono); text-transform: uppercase; letter-spacing: .03em; border: 0; background: transparent; color: var(--ef-ink); padding: 0; height: 28px; line-height: 28px; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.ef-select::after { content: "›"; display: inline-block; }
.ef-select[aria-expanded="true"]::after { transform: rotate(90deg); }
/* The branch list folds out as plain text, like her other menus. */
.ef-branch-list { list-style: none; margin: 0 0 6px 13px; padding: 0; display: flex; flex-direction: column; }
.ef-branch-list button { font: 400 15px var(--ef-mono); text-transform: uppercase; letter-spacing: .03em; background: transparent; border: 0; padding: 4px 0; min-height: 30px; color: var(--ef-soft); cursor: pointer; text-align: left; }
.ef-branch-list button[aria-current="true"], .ef-branch-list button:hover { color: var(--ef-ink); }
.ef-branch-rule { flex: 1; height: 1.5px; background: var(--ef-ink); min-width: 12px; }
.ef-band-head { font-size: 15px; margin-top: 8px; }
.ef-band { border-radius: 4px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; min-height: 44px; background: var(--fill); color: var(--ink); }
.ef-band:hover { filter: brightness(.96); color: var(--ink); }
.ef-band-left { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ef-band-name { font: 800 14px/0.95 var(--ef-head); text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.ef-band-name .ef-lockup-outline { left: 3px; top: 3px; -webkit-text-stroke-width: 1px; }
.ef-band-code { font-size: 10.5px; color: inherit; letter-spacing: .04em; }
.ef-band-left { flex: 0 0 auto; }
/* The name stays whole; a date with a year drops its year to a second line. */
.ef-band-date { font: 600 14px var(--ef-mono); text-transform: uppercase; white-space: normal; text-align: right; min-width: 0; }

@media (max-width: 1350px) {
  .ef-quick { font-size: 15px; }
}
/* Two columns before the four start to overlap (about 1190px). */
@media (max-width: 1200px) {
  .ef-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ef-cols .ef-col:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 620px) {
  .ef-cols { grid-template-columns: minmax(0, 1fr); }
  .ef-cols .ef-col { border-left: 0; padding-left: 0; padding-right: 0; }
}
