/* dash-bulletins.css — the Bulletins tile on the Dashboard (teacher/dash-bulletins.js,
   slice B1e). It fills the slot the middle row gives it (40% of the left
   column: 199 px at 1280 x 800, 300 px stacked on an iPad). The rows share the
   height under the header (up to five, each at least 40 px); where the slot is
   shorter, whole rows are dropped from the bottom, never cut. When the tile is
   900 px wide or more (and tall enough for a card) the rows are three cards side
   by side and the buttons sit in a foot under them, as on the artboard.
   Colours are the app's tokens, so dark mode follows. Every class starts
   with dash-bulletins- (tests/adblock-names.test.js). */
.dash-bulletins-tile {
  container: dash-bulletins / size;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto minmax(0, 1fr) auto;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--divider-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.dash-bulletins-head {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin-bottom: 8px;
}
.dash-bulletins-title {
  margin: 0;
  font: inherit;
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.dash-bulletins-sub {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--text-2);
}
.dash-bulletins-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}
.dash-bulletins-open,
.dash-bulletins-seen {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--link);
  cursor: pointer;
  text-decoration: none;
}
/* Seen by is 16 px tall on the artboard; 4 px of padding above and below, taken back by the margin, answers a press too: the target is 24 px or more and nothing moves. */
.dash-bulletins-seen:not(.dash-bulletins-pending) {
  padding: 4px 0;
  margin: -4px 0;
}
/* Write a Bulletin is the app's secondary button (btn btn-ghost), in the link colour as on the artboard. */
.dash-bulletins-tile .dash-bulletins-write {
  color: var(--link);
  font-size: var(--text-base);
  font-weight: 500;
  min-height: 32px;
  padding: 8px 16px;
}
.dash-bulletins-open:hover,
.dash-bulletins-seen:hover,
.dash-bulletins-words:hover {
  text-decoration: underline;
}
.dash-bulletins-cls {
  display: none;
}
.dash-bulletins-rows {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content max-content;
  column-gap: 12px;
  grid-auto-rows: minmax(0, 1fr);
  overflow: hidden;
}
.dash-bulletins-row {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: center;
  box-sizing: border-box;
  min-height: 0;
  border-top: 1px solid var(--divider-subtle);
  border-radius: 6px;
}
.dash-bulletins-row:first-child {
  border-top-color: transparent;
}
.dash-bulletins-kind {
  justify-self: start;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--divider-subtle);
  line-height: 1.45;
  font-size: var(--text-xs, 12px);
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.dash-bulletins-kind {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
/* The Reminder label is amber with a pin: the app's notice colours, which hold 4.5 to 1 in both modes. */
.dash-bulletins-rem {
  background: var(--notice-bg);
  color: var(--notice-text);
}
.dash-bulletins-fresh .dash-bulletins-kind {
  border-color: var(--link);
}
.dash-bulletins-words {
  min-width: 0;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  line-height: 1.3;
  padding: 1px 0;
  font-size: var(--text-base);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}
.dash-bulletins-time {
  font-size: var(--text-sm);
  color: var(--text-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dash-bulletins-fresh .dash-bulletins-time {
  font-weight: 700;
  color: var(--text);
}
.dash-bulletins-seen {
  text-align: right;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dash-bulletins-pending {
  color: var(--text-2);
  cursor: default;
}
/* Rows share the height under the header, each at least 40 px (48 on an iPad) so two lines of words fit; a row that would be thinner is not drawn, so none is ever cut and the spare is under one row's share. The container's height is the tile less its padding and border; the header is 32 px (44 on an iPad). */
@container dash-bulletins (max-height: 239.99px) {
  .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(5) {
    display: none;
  }
}
@container dash-bulletins (max-height: 199.99px) {
  .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(4) {
    display: none;
  }
}
@container dash-bulletins (max-height: 159.99px) {
  .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(3) {
    display: none;
  }
}
@container dash-bulletins (max-height: 119.99px) {
  .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(2) {
    display: none;
  }
}
@container dash-bulletins (max-height: 79.99px) {
  .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(1) {
    display: none;
  }
}
/* iPad: header 44 px, every control a finger's size (44 px), rows at least 48 px. teacher/tablet.css has older rules for this tile (one-line words at 44 px, rows fixed at 48 px); these are more specific and take their place, so the words keep two lines and the rows share the height. */
html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-head {
  height: 44px;
}
html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-write {
  justify-content: center;
  min-height: 44px;
}
html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-open,
html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-seen {
  min-height: 44px;
  padding: 0;
  margin: 0;
}
html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-words {
  display: -webkit-box;
  -webkit-box-pack: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 4px 0;
  line-height: 1.3;
}
html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-rows {
  grid-auto-rows: minmax(0, 1fr);
}
html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-row {
  height: auto;
}
@container dash-bulletins (max-height: 291.99px) {
  html.fv-tablet .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(5) {
    display: none;
  }
}
@container dash-bulletins (max-height: 243.99px) {
  html.fv-tablet .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(4) {
    display: none;
  }
}
@container dash-bulletins (max-height: 195.99px) {
  html.fv-tablet .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(3) {
    display: none;
  }
}
@container dash-bulletins (max-height: 147.99px) {
  html.fv-tablet .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(2) {
    display: none;
  }
}
@container dash-bulletins (max-height: 99.99px) {
  html.fv-tablet .dash-bulletins-tile:not(.is-notes) .dash-bulletins-row:nth-child(1) {
    display: none;
  }
}
@container dash-bulletins (max-width: 560px) {
  .dash-bulletins-sub {
    display: none;
  }
}
/* Narrow: the kind label goes first, then the time, so the words keep room and Seen by is never cut. */
@container dash-bulletins (max-width: 560px) {
  .dash-bulletins-rows {
    grid-template-columns: minmax(0, 1fr) max-content max-content;
  }
  .dash-bulletins-kind {
    display: none;
  }
}
@container dash-bulletins (max-width: 430px) {
  .dash-bulletins-rows {
    grid-template-columns: minmax(0, 1fr) max-content;
  }
  .dash-bulletins-time {
    display: none;
  }
}
/* Wide: cards side by side (label and time on top, two lines of words, Seen by), the buttons in a foot, the class's name in the subtitle: three from 860 px across, two from 580 px (Colin, Nov 26: "always notes"). A card needs about 280 px across, so under 580 px the tile stays in rows. Whatever its height, a tile 580 px wide is notes (Colin, Nov 26); a short one draws them compact (see the end of the notes rules). */
@container dash-bulletins (min-width: 580px) {
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-head {
    grid-column: 1 / -1;
    height: 26px;
    margin-bottom: 8px;
    /* Read by dash-bulletins.js: the tile is cards here, so it draws them as notes (.is-notes). */
    --dash-bulletins-cards: 1;
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-cls {
    display: inline;
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--divider-subtle);
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
    grid-auto-rows: minmax(0, 1fr);
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-row {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    row-gap: 3px;
    box-sizing: border-box;
    padding: 6px 12px;
    border: 1px solid var(--divider-subtle);
    border-radius: 10px;
    overflow: hidden;
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-row:nth-child(n + 4) {
    display: none;
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-kind {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    min-width: 0;
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-kind[data-until]::after {
    content: attr(data-until);
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-time {
    grid-column: 2;
    grid-row: 1;
    display: block;
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-words {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
  }
  html:not(.fv-tablet) .dash-bulletins-tile .dash-bulletins-seen {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    text-align: left;
    line-height: 16px;
  }
}
@container dash-bulletins (min-width: 580px) {
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-head {
    grid-column: 1 / -1;
    height: 26px;
    margin-bottom: 8px;
    --dash-bulletins-cards: 1;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-cls {
    display: inline;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--divider-subtle);
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-rows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 12px;
    grid-auto-rows: minmax(0, 1fr);
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-row {
    grid-column: auto;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr) auto;
    row-gap: 3px;
    box-sizing: border-box;
    padding: 6px 12px;
    border: 1px solid var(--divider-subtle);
    border-radius: 10px;
    overflow: hidden;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-row:nth-child(n + 4) {
    display: none;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-kind {
    grid-column: 1;
    grid-row: 1;
    display: inline-flex;
    min-width: 0;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-kind[data-until]::after {
    content: attr(data-until);
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-time {
    grid-column: 2;
    grid-row: 1;
    display: block;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-words {
    grid-column: 1 / -1;
    grid-row: 2;
    align-self: start;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-seen {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: start;
    text-align: left;
    line-height: 16px;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile .dash-bulletins-seen {
    justify-content: flex-start;
  }
}

/* The cards as posted notes (Colin, Nov 18: "look like actual bulletins that
   are posted"): paper on the board with a pin at the top, a reminder on
   yellow, each set a little askew. Dark text on light paper in both modes. */
@container dash-bulletins (min-width: 580px) {
  .dash-bulletins-tile .dash-bulletins-rows {
    column-gap: 18px;
    padding: 5px 8px 3px;
  }
  .dash-bulletins-tile .dash-bulletins-row {
    position: relative;
    /* The tile is only about 85 px per card on a 1680 x 1050 screen, so the pin sits on the top edge, not in the padding. */
    padding: 6px 14px 5px !important;
    row-gap: 2px !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 3px !important;
    background: #fffdf7;
    color: #1d1d1f;
    box-shadow:
      0 1px 1px rgba(0, 0, 0, 0.1),
      0 8px 16px -6px rgba(0, 0, 0, 0.22);
    transform: rotate(-1deg);
    transition:
      transform 0.15s ease,
      box-shadow 0.15s ease;
  }
  .dash-bulletins-tile .dash-bulletins-row:nth-child(2) {
    transform: rotate(0.8deg);
  }
  .dash-bulletins-tile .dash-bulletins-row:nth-child(3) {
    transform: rotate(-0.4deg);
  }
  .dash-bulletins-tile .dash-bulletins-row:has(.dash-bulletins-rem) {
    background: #fff3a8;
  }
  .dash-bulletins-tile .dash-bulletins-row:hover {
    transform: rotate(0deg) translateY(-2px);
    box-shadow:
      0 1px 1px rgba(0, 0, 0, 0.1),
      0 12px 22px -8px rgba(0, 0, 0, 0.28);
  }
  /* The pin. */
  .dash-bulletins-tile .dash-bulletins-row::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ff8a80, #d93025 60%, #a50e0e);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
  }
  .dash-bulletins-tile .dash-bulletins-row .dash-bulletins-words {
    color: #1d1d1f;
    font-size: 13px;
    line-height: 1.3;
    padding: 0;
  }
  .dash-bulletins-tile .dash-bulletins-row .dash-bulletins-time {
    color: #6e6e73;
  }
  .dash-bulletins-tile .dash-bulletins-row .dash-bulletins-kind {
    line-height: 1.25;
    background: rgba(0, 0, 0, 0.06);
    color: #3a3a3c;
  }
  .dash-bulletins-tile .dash-bulletins-row .dash-bulletins-rem {
    background: rgba(160, 100, 0, 0.14);
    color: #6b4200;
  }
  .dash-bulletins-tile .dash-bulletins-row .dash-bulletins-seen {
    color: #0058d0;
  }
}
/* The blank note and a photo note's picture are the notes' own: nowhere else. */
.dash-bulletins-blank,
.dash-bulletins-pic {
  display: none;
}

/* The paper fits the words (Colin, Nov 25: "the text is squished to the top of
   the cards and leaves a lot of whitespace below"; board B1 to B3). Where the
   tile is cards, dash-bulletins.js adds .is-notes and each note is as tall as
   its words need, never a strip as tall as the tile: the words in the middle
   of the paper in larger type, the day in the foot beside Seen by, no label
   on a plain announcement (a reminder keeps its own, on yellow), a photo
   bulletin showing its photo. Write a Bulletin is a blank note in the next
   free place and Open Bulletins sits beside the title, so there is no foot.
   The subtitle shows only when it has something to act on. A taller tile
   holds a second row. */
.dash-bulletins-tile.is-notes .dash-bulletins-rows {
  --dbn-font: 14px;
  --dbn-lines: 3;
  --dbn-lines-rem: 2;
  --dbn-min: 96px;
  --dbn-top: 14px;
  --dbn-gap: 4px;
}
.dash-bulletins-tile.is-notes .dash-bulletins-head {
  grid-column: 1 !important;
  margin-bottom: 0 !important;
}
.dash-bulletins-tile.is-notes .dash-bulletins-sub:not(.is-alert),
.dash-bulletins-tile.is-notes .dash-bulletins-cls,
.dash-bulletins-tile.is-notes .dash-bulletins-write {
  display: none !important;
}
.dash-bulletins-tile.is-notes .dash-bulletins-actions {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.dash-bulletins-tile.is-notes .dash-bulletins-rows {
  grid-row: 2 / -1;
  /* Three notes, and a slim place for the blank one when all three are taken. */
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 0.42fr) !important;
  grid-auto-rows: auto !important;
  align-content: start;
  align-items: start;
  gap: 24px 20px !important;
  padding: 14px 8px 6px !important;
}
.dash-bulletins-tile.is-notes .dash-bulletins-row {
  align-self: start;
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  min-height: var(--dbn-min);
  padding: var(--dbn-top) 18px 10px !important;
  row-gap: var(--dbn-gap) !important;
}
.dash-bulletins-tile.is-notes .dash-bulletins-row .dash-bulletins-kind {
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  justify-self: start;
}
.dash-bulletins-tile.is-notes .dash-bulletins-row .dash-bulletins-plain,
.dash-bulletins-tile.is-notes .dash-bulletins-row:has(.has-pic) .dash-bulletins-kind {
  display: none !important;
}
.dash-bulletins-tile.is-notes .dash-bulletins-row .dash-bulletins-words {
  grid-row: 2 !important;
  align-self: center !important;
  font-size: var(--dbn-font);
  line-height: 1.4;
  -webkit-line-clamp: var(--dbn-lines);
  line-clamp: var(--dbn-lines);
  text-wrap: pretty;
}
.dash-bulletins-tile.is-notes .dash-bulletins-row:has(.dash-bulletins-rem) .dash-bulletins-words {
  -webkit-line-clamp: var(--dbn-lines-rem);
  line-clamp: var(--dbn-lines-rem);
}
.dash-bulletins-tile.is-notes .dash-bulletins-row .dash-bulletins-seen {
  grid-column: 1 !important;
  grid-row: 3 !important;
}
.dash-bulletins-tile.is-notes .dash-bulletins-row .dash-bulletins-time {
  grid-column: 2 !important;
  grid-row: 3 !important;
  align-self: center;
  color: #5f5f64;
}
/* A photo bulletin: the photo is the note. */
.dash-bulletins-tile.is-notes .dash-bulletins-words.has-pic {
  display: block !important;
  align-self: stretch !important;
  font-size: 0 !important;
  padding: 0 !important;
}
.dash-bulletins-tile.is-notes .has-pic .dash-bulletins-pic {
  display: block;
  width: 100%;
  height: max(64px, calc(var(--dbn-min) - var(--dbn-top) - 44px));
  object-fit: cover;
  border-radius: 2px;
}
/* The blank note: Write a Bulletin. */
.dash-bulletins-tile.is-notes .dash-bulletins-blank {
  display: block;
  align-self: stretch;
  min-width: 0;
}
.dash-bulletins-blank-btn {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: max(var(--dbn-min), 72px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  font: inherit;
  font-size: var(--dbn-font);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  /* --link: the app's blue for words, light enough on the dark note too. */
  color: var(--link);
  background: var(--active-light);
  border: 2px dashed color-mix(in srgb, var(--active) 45%, transparent);
  border-radius: 3px;
  cursor: pointer;
  transform: rotate(0.5deg);
  transition: transform 0.15s ease;
}
.dash-bulletins-blank-btn:hover {
  transform: rotate(0deg) translateY(-2px);
}
.dash-bulletins-blank-btn:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 2px;
}
/* More of the words, in larger type, as the tile grows. */
@container dash-bulletins (min-height: 200px) {
  .dash-bulletins-tile.is-notes .dash-bulletins-rows {
    --dbn-font: 15px;
    --dbn-lines: 4;
    --dbn-lines-rem: 3;
    --dbn-min: 118px;
    --dbn-top: 16px;
    --dbn-gap: 6px;
  }
}
@container dash-bulletins (min-height: 240px) {
  .dash-bulletins-tile.is-notes .dash-bulletins-rows {
    --dbn-font: 16px;
    --dbn-lines: 5;
    --dbn-lines-rem: 4;
    --dbn-min: 150px;
    --dbn-top: 22px;
    --dbn-gap: 10px;
  }
}
@container dash-bulletins (min-height: 300px) {
  .dash-bulletins-tile.is-notes .dash-bulletins-rows {
    --dbn-lines: 7;
    --dbn-lines-rem: 6;
  }
}
/* Room for two rows: the fourth and fifth bulletins show, starting the second row. */
@container dash-bulletins (min-height: 430px) {
  .dash-bulletins-tile.is-notes .dash-bulletins-rows {
    --dbn-lines: 4;
    --dbn-lines-rem: 3;
    --dbn-min: 160px;
  }
  .dash-bulletins-tile.is-notes .dash-bulletins-row:nth-child(n + 4) {
    display: grid !important;
  }
  .dash-bulletins-tile.is-notes .dash-bulletins-row:nth-child(4) {
    grid-column: 1 !important;
  }
  /* Three or fewer on a tall tile: one row of larger notes. */
  .dash-bulletins-tile.is-notes .dash-bulletins-rows:not(:has(.dash-bulletins-row:nth-child(4))) {
    --dbn-font: 18px;
    --dbn-lines: 10;
    --dbn-lines-rem: 9;
    --dbn-min: 210px;
    --dbn-top: 26px;
  }
}
@container dash-bulletins (min-height: 540px) {
  .dash-bulletins-tile.is-notes .dash-bulletins-rows {
    --dbn-lines: 6;
    --dbn-lines-rem: 5;
    --dbn-min: 180px;
  }
}
/* A short tile (under 150 px of room, a 1366 x 640 laptop): compact notes, two lines of words ending in an ellipsis, the pin and Seen by inside the tile. */
@container dash-bulletins (max-height: 149.99px) {
  .dash-bulletins-tile.is-notes .dash-bulletins-rows {
    --dbn-font: 13px;
    --dbn-lines: 2;
    --dbn-lines-rem: 1;
    --dbn-min: 0px;
    --dbn-top: 8px;
    --dbn-gap: 0px;
    padding: 8px 8px 4px !important;
    gap: 8px 16px !important;
  }
  .dash-bulletins-tile.is-notes .dash-bulletins-row {
    padding: var(--dbn-top) 12px 8px !important;
  }
  .dash-bulletins-tile.is-notes .dash-bulletins-row .dash-bulletins-words {
    padding: 0;
  }
}
/* iPad, a short tile (landscape, 150 to 180 px tall): the compact notes above, with each control still 44 px to press. Open Bulletins, Seen by and the words take their 44 px as a hit area (padding taken back by a negative margin, as Seen by does on a laptop), so the layout stays a note's height and nothing overlaps or is cut. */
@container dash-bulletins (min-width: 580px) and (max-height: 249.99px) {
  html.fv-tablet .dash-row .dash-bulletins-tile.is-notes .dash-bulletins-open {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: -9px 0;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile.is-notes .dash-bulletins-seen {
    min-height: 0;
    padding: 14px 0;
    margin: -14px 0;
    line-height: 16px;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile.is-notes .dash-bulletins-row .dash-bulletins-words {
    min-height: 0;
    padding: 4px 0;
    margin: -4px 0;
    line-height: 1.4;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile.is-notes .dash-bulletins-blank-btn {
    min-height: 0;
    gap: 2px;
    padding: 4px;
  }
  html.fv-tablet .dash-row .dash-bulletins-tile.is-notes .dash-bulletins-blank-btn svg {
    width: 16px;
    height: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dash-bulletins-blank-btn {
    transition: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dash-bulletins-tile .dash-bulletins-row {
    transition: none;
  }
}

/* Narrower than three notes need (580 to 860 px across): two notes and the
   slim blank one; Open Bulletins has the rest. */
@container dash-bulletins (min-width: 580px) and (max-width: 859.99px) {
  .dash-bulletins-tile .dash-bulletins-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .dash-bulletins-tile.is-notes .dash-bulletins-rows {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 0.5fr) !important;
  }
  .dash-bulletins-tile .dash-bulletins-row:nth-child(n + 3) {
    display: none !important;
  }
}

/* ── The Bulletins tile fits the row (board "Dashboard Row, Revised After Review", Nov 28 2026) ──
   Nothing posted, or the Student Page off: one 56 px strip, the title, what
   there is to say, then Write a Bulletin and Open Bulletins → at the right. */
.dash-bulletins-tile.is-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 20px;
}
.dash-bulletins-strip-say {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: var(--text-base);
  line-height: 20px;
  color: var(--text-2);
}
.dash-bulletins-strip-say a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}
.dash-bulletins-tile.is-strip .dash-bulletins-actions {
  flex: 0 0 auto;
  gap: 12px;
  margin-left: auto;
}
.dash-bulletins-tile.is-strip .dash-bulletins-write {
  min-height: 32px;
  padding: 0 16px;
  font-size: var(--text-sm);
  font-weight: 600;
}
.dash-bulletins-tile.is-strip .dash-bulletins-open {
  padding-right: 8px;
  font-size: var(--text-base);
  font-weight: 600;
}
/* "+ N More" beside the title: the notes the columns have no room for. */
.dash-bulletins-more {
  flex: 0 0 auto;
  font-size: var(--text-sm);
  line-height: 20px;
  color: var(--text-2);
  white-space: nowrap;
}
.dash-bulletins-more[hidden] {
  display: none;
}
/* Notes that fill the row: DashRowSize (the fit) sets the columns (inline), --dbn-h (a note's height),
   --dbn-lines and --dbn-font, and hides the notes the columns have no room for. A note is at
   least 240 px across, 16 px apart, 12 px under the title, as tall as the tile leaves up to 168 px. */
.dash-bulletins-tile.is-notes.is-fit .dash-bulletins-head {
  height: 24px;
  margin-bottom: 12px !important;
  gap: 12px;
}
.dash-bulletins-tile.is-notes.is-fit .dash-bulletins-rows {
  gap: 0 16px !important;
  /* 8 px above the notes for the pin, which sits 4 px over each note's top edge. */
  padding: 8px 0 0 !important;
  grid-auto-rows: var(--dbn-h) !important;
  align-content: start;
  /* Visible, so a tilted note's lower corner and its shadow draw into the tile's 16 px padding
     instead of being cut at the bottom (Colin, Nov 29). The fit hides the notes that have no column. */
  overflow: visible !important;
}
.dash-bulletins-tile.is-notes.is-fit .dash-bulletins-row {
  height: var(--dbn-h);
  min-height: 0;
  padding: 12px 16px !important;
  row-gap: 8px !important;
  /* Visible, so the pin above the paper is never cut; the words clamp themselves. */
  overflow: visible !important;
}
.dash-bulletins-tile.is-notes.is-fit .dash-bulletins-row .dash-bulletins-words {
  line-height: 20px;
  padding: 0;
}
.dash-bulletins-tile.is-notes.is-fit .dash-bulletins-row .dash-bulletins-seen,
.dash-bulletins-tile.is-notes.is-fit .dash-bulletins-row .dash-bulletins-time {
  font-size: var(--text-xs);
  line-height: 16px;
}
.dash-bulletins-tile.is-notes.is-fit .dash-bulletins-blank-btn {
  min-height: 0;
  font-size: var(--text-md);
  line-height: 20px;
}
