/* Dashboard: hero banner, what needs attention, squad and next matches. */

.purpose {
  padding: 16px 12px;
}

.purpose p {
  font-size: 11px;
}

.hero-banner {
  padding: 28px 33px;
  min-height: 235px;
}

.hero-banner:after {
  content: '';
  position: absolute;
  border: 1px solid #ffffff0c;
  right: -40px;
  top: -90px;
}

.hero-banner h2 {
  font-size: 34px;
}

.hero-banner p {
  font-size: 11px;
}

.pitch-art {
  width: 46%;
  display: flex;
  padding: 0 24px;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(280px,1fr);
  gap: 22px;
}

.attention-row {
  gap: 13px;
  padding: 20px 22px;
}

.attention-row>div {
  flex: 1;
}

.attention-row strong {
  font-size: 11px;
}

.attention-row p {
  font-size: 10px;
}

.match-date .badge {
  margin-left: auto;
}

.match-versus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0 14px;
  gap: 8px;
}

.match-versus>div {
  width: 40%;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.next-match .btn {
  background: #f8faf3;
}

.athletes-preview {
  margin-top: 23px;
}

.mini-athletes {
  display: grid;
  grid-template-columns: repeat(6,1fr);
  padding: 6px 22px 24px;
  gap: 12px;
}

.mini-athletes strong {
  font-size: 10px;
}

.mini-athletes small {
  font-size: 9px;
}

.club-crest {
  width: 40px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e8d9;
  flex-shrink: 0;
  background: #243453;
  border-color: #394767;
  color: var(--yellow);
  border-radius: 4px;
}

.purpose strong {
  color: #d9e2f5;
  font-weight: 500;
}

.purpose>span {
  margin-left: auto;
  align-self: flex-start;
  color: var(--yellow);
}

.btn:hover {
  background: #f0f3ff;
}

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.hero-banner h2>span {
  color: var(--yellow);
}

.attention-row {
  display: flex;
  align-items: center;
  border-top: 1px solid #f2f3ee;
  border-color: #edf0f6;
}

.next-match .panel-head {
  border-bottom: 1px solid #e8edf7;
}

.match-preview {
  padding: 0 22px 21px;
  padding-top: 17px;
}

.match-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #63779c;
}

.match-crest {
  height: 48px;
  width: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);
  margin-bottom: 11px;
  background: var(--blue);
  color: var(--yellow);
}

.match-crest.away {
  background: #e9edf7;
  color: #7588b0;
}

.match-versus strong {
  line-height: 1.5;
  color: #233d68;
  font-weight: 650;
  font-size: 11px;
}

.match-versus small {
  font-size: 9px;
  margin-top: 4px;
  color: #8d9bb2;
}

.versus {
  color: #2e436d;
  font-size: 21px;
  font-weight: 750;
}

.match-venue {
  text-align: center;
  font-size: 9px;
  margin-top: 3px;
  color: #7283a0;
}

.match-competition {
  text-align: center;
  font-size: 8px;
  margin: 7px 0 18px;
  color: #98a4b9;
}

.next-match .btn {
  justify-content: space-between;
  padding: 11px 13px;
  font-size: 10px;
  background: #edf2ff;
  border-color: #e0e8fd;
  color: var(--blue);
  border-radius: 4px;
  font-weight: 700;
}

.mini-athletes strong {
  display: block;
  color: #304769;
  font-weight: 600;
}

.mini-athletes small {
  display: block;
  margin-top: 6px;
  color: #8797b1;
}

.mini-athletes .avatar {
  width: 39px;
  height: 39px;
  margin-bottom: 11px;
  border-radius: 7px;
}

.activity-list>div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  border-color: #e2e8f2;
}

.activity-list strong {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  display: block;
  color: #354e75;
}

.activity-list small {
  display: block;
  font-size: 10px;
  margin-top: 6px;
  color: #8a9db8;
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  background: var(--yellow);
  color: #14224b;
  border-radius: 3px;
  padding: 12px 14px;
  margin-top: 23px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
}

.mini-player {
  text-align: center;
  padding: 7px 0;
}

.activity-panel {
  margin-top: 25px;
}

.activity-panel .activity-list {
  padding: 0 25px 20px;
}

.purpose svg {
  flex-shrink: 0;
}

@media (min-width: 1600px) {
  .hero-banner {
    min-height: 260px;
  }

  .hero-banner h2 {
    font-size: 40px;
  }

  .attention-row {
    padding-top: 25px;
    padding-bottom: 25px;
  }
}

@media (max-width: 1200px) {
  .overview-grid {
    grid-template-columns: 1.35fr 1fr;
    gap: 16px;
  }

  .attention-row {
    padding: 19px 16px;
    gap: 9px;
  }

  .attention-row strong {
    font-size: 10px;
  }

  .attention-row p {
    font-size: 9px;
  }

  .pitch-art {
    width: 43%;
    padding: 0 5px;
  }
}

@media (max-width: 960px) {
  .purpose {
    padding: 12px 9px;
  }

  .purpose p {
    font-size: 10px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .next-match .match-versus {
    max-width: 400px;
    margin: auto;
  }

  .mini-athletes {
    grid-template-columns: repeat(3,1fr);
    row-gap: 22px;
  }

  .pitch-art {
    display: none;
  }

  .hero-banner {
    min-height: 225px;
  }

  .hero-banner:after {
    right: -180px;
    top: -70px;
    border-color: #d9ef8e30;
    box-shadow: 0 0 0 50px #d9ef8e05,0 0 0 100px #d9ef8e05;
  }

  .hero-banner>div:first-child {
    z-index: 1;
  }
}

@media (max-width: 700px) {
  .hero-banner {
    padding: 25px;
    min-height: 242px;
  }

  .hero-banner h2 {
    font-size: 35px;
  }

  .hero-banner p {
    font-size: 10px;
  }

  .overview-grid {
    gap: 16px;
  }

  .attention-row {
    gap: 10px;
    padding: 18px 14px;
  }

  .attention-row .round-icon {
    width: 32px;
    height: 32px;
  }

  .attention-row strong {
    font-size: 10px;
  }

  .attention-row p {
    font-size: 9px;
  }

  .attention-row .text-btn {
    font-size: 9px;
    gap: 5px;
  }

  .mini-athletes {
    padding: 5px 15px 20px;
    gap: 14px;
  }

  .mini-athletes strong {
    font-size: 9px;
  }

  .mini-athletes small {
    font-size: 8px;
  }

  .athletes-preview {
    margin-top: 16px;
  }
}

/* Overrides: these must come after the breakpoints above. */

.purpose {
  display: flex;
  gap: 11px;
  margin: 24px 0 12px;
  align-items: center;
  background: #1c2a47;
  border: 1px solid #2d3b59;
  border-radius: 4px;
  color: var(--yellow);
  padding: 15px 11px;
}

.hero-banner {
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  border-radius: 6px;
  background: var(--blue);
  padding: 30px 32px;
  min-height: 240px;
  isolation: isolate;
}

.hero-banner:before {
  content: '11';
  font-style: italic;
  font-size: 300px;
  font-weight: 900;
  line-height: .8;
  position: absolute;
  top: 0;
  right: 45px;
  letter-spacing: -35px;
  color: #ffffff06;
  z-index: -1;
}

.hero-banner:after {
  pointer-events: none;
  border: 0;
  border-radius: 0;
  right: -100px;
  top: -100px;
  transform: rotate(22deg);
  width: 310px;
  height: 550px;
  background: #18285724;
  box-shadow: none;
  z-index: -1;
}

.hero-banner h2 {
  font-family: 'Arial Narrow',Impact,Arial,sans-serif;
  font-size: 43px;
  line-height: 1.02;
  letter-spacing: -.9px;
  font-weight: 850;
  margin: 17px 0 15px;
  font-style: italic;
}

.hero-banner p {
  color: #d9e2ff;
  font-size: 11px;
}

.pitch-art {
  position: relative;
  align-items: center;
  width: 45%;
  padding: 0 20px;
}

.attention-row strong {
  color: #304664;
  font-weight: 600;
  font-size: 11px;
}

.attention-row p {
  margin-top: 6px;
  color: #8290a8;
  font-size: 10px;
}

.purpose p {
  line-height: 1.6;
  color: #91a3c5;
  font-size: 10px;
  flex: 1;
  min-width: 0;
}

@media (max-width: 1200px) {
  .pitch-art {
    width: 42%;
  }

  .hero-banner h2 {
    font-size: 39px;
  }
}

@media (max-width: 960px) {
  .hero-banner:after {
    right: -120px;
    top: -100px;
    border: 0;
    box-shadow: none;
  }

  .hero-banner {
    min-height: 245px;
  }

  .hero-banner h2 {
    font-size: 41px;
  }
}

@media (max-width: 700px) {
  .hero-banner {
    padding: 25px;
    min-height: 245px;
  }

  .hero-banner h2 {
    font-size: 40px;
  }

  .hero-banner p {
    font-size: 10px;
    line-height: 1.7;
  }

  .attention-row strong {
    font-size: 11px;
  }

  .attention-row p {
    line-height: 1.6;
    font-size: 10px;
  }
}

/* Section summaries: the block at the top of a section page (key numbers that
   open the page filtered, what needs attention, a split per age group). */
.summary-stats .stat.selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.summary-grid {
  display: grid;
  grid-template-columns: minmax(0,1.6fr) minmax(260px,1fr);
  gap: 22px;
  margin-bottom: 22px;
}

.attention-list,
.age-groups ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.attention-list li+li,
.age-groups li+li {
  border-top: 1px solid var(--line);
}

.attention-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  color: inherit;
}

.attention-list a:hover,
.age-groups a:hover {
  background: #f6f8fc;
}

.attention-list a>span:nth-child(2) {
  flex: 1;
  min-width: 0;
}

.attention-list strong,
.age-groups strong {
  display: block;
  font-size: 11px;
}

.attention-list small,
.age-groups small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.attention-list svg {
  flex-shrink: 0;
  color: var(--blue);
}

.tone-dot {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--blue);
}

.tone-dot.orange {
  background: #e0a43a;
}

.tone-dot.purple {
  background: #7465b9;
}

.tone-dot.neutral {
  background: #b6c0d4;
}

.attention-clear {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
  font-size: 11px;
}

.attention-clear svg {
  color: #2f9e6a;
}

.age-groups a {
  display: block;
  padding: 12px 22px;
  color: inherit;
}

.progress {
  display: block;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 3px;
  background: #eef1f7;
}

.progress span {
  display: block;
  width: var(--done);
  height: 100%;
  background: #2f9e6a;
}

.filter-chip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.filter-chip strong {
  color: var(--ink);
}

@media (max-width: 960px) {
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
}

@media (max-width: 700px) {
  .attention-list a,
  .age-groups a {
    padding: 12px 14px;
  }

  .attention-clear {
    padding: 0 14px 16px;
  }
}

/* The games summary's next game per team. */
.next-games ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.next-games li+li {
  border-top: 1px solid var(--line);
}

.next-games a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  color: inherit;
}

.next-games a:hover {
  background: #f6f8fc;
}

.next-games a>span:not(.badge) {
  flex: 1;
  min-width: 0;
}

.next-games strong {
  display: block;
  font-size: 11px;
}

.next-games small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

@media (max-width: 700px) {
  .next-games a {
    padding: 12px 14px;
  }
}

/* "Hoje": the page each member lands on, built for their role. */
.tone-dot.red {
  background: #d1453b;
}

.tone-dot.green {
  background: #2f9e6b;
}

.today-head .head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* The office's key numbers: each opens the list it counts. */
.today-numbers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.today-number {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
}

.today-number:hover,
.today-number:focus-visible {
  border-color: var(--blue);
}

.today-number.orange {
  border-left-color: #e0a43a;
}

.today-number.purple {
  border-left-color: #7465b9;
}

.today-number span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.today-number strong {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.1;
}

.today-number small {
  color: var(--muted);
  font-size: 12px;
}

/* What needs doing beside the next 7 days; the coach's next game takes the first column. */
.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 22px;
  align-items: start;
}

.today-layout .panel {
  margin: 0;
}

.today-more {
  margin: 0;
  padding: 12px 22px 18px;
  color: var(--muted);
  font-size: 13px;
}

.today-calm {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 22px;
  color: #217d56;
}

.today-calm span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.today-calm strong {
  color: var(--ink);
  font-size: 15px;
}

.today-calm small {
  color: var(--muted);
  font-size: 13px;
}

/* The coach's next game, with what's left to prepare. */
.next-game-hero {
  padding: 26px 28px;
  border-top: 4px solid var(--yellow);
  background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, var(--blue-deep));
  color: #fff;
}

.next-game-hero.empty {
  padding: 0;
  border-top: 0;
  background: #fff;
  color: var(--ink);
}

.next-game-hero .hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.next-game-hero .eyebrow {
  color: var(--yellow);
}

.next-game-hero h2 {
  margin: 14px 0 6px;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  overflow-wrap: anywhere;
}

.next-game-hero .hero-when {
  margin: 6px 0 0;
  color: #d6ddf0;
  font-size: 14px;
}

.next-game-hero .hero-where {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 6px 0 0;
  color: #d6ddf0;
  font-size: 14px;
}

.next-game-hero .hero-when strong {
  color: #fff;
}

.next-game-hero .hero-prep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgb(255 255 255 / 8%);
}

.next-game-hero .hero-prep span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.next-game-hero .hero-prep small {
  color: #c3cbe3;
  font-size: 12px;
}

.next-game-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.next-game-hero .hero-actions .btn:not(.primary) {
  border-color: rgb(255 255 255 / 35%);
  background: transparent;
  color: #fff;
}

.next-game-hero .hero-actions .btn.primary {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--navy-deep);
}

/* The venue's map from our own server, on the right; under the details on
   phones. Tapping it opens the same choice of map apps as "Como chegar". */
.next-game-hero.with-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 42%);
  grid-template-areas: "details map" "prep map" "actions map";
  align-items: start;
  column-gap: 28px;
}

.next-game-hero.with-map .hero-details {
  grid-area: details;
}

.next-game-hero.with-map .hero-prep {
  grid-area: prep;
}

.next-game-hero.with-map .hero-actions {
  grid-area: actions;
}

.next-game-hero .hero-distance {
  margin: 6px 0 0 22px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 600;
}

.next-game-hero .hero-map {
  grid-area: map;
  margin: 0;
}

.next-game-hero .hero-map button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 10px;
  background: rgb(255 255 255 / 8%);
  cursor: pointer;
}

.next-game-hero .hero-map button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.next-game-hero .hero-map img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.next-game-hero .hero-map figcaption {
  margin-top: 6px;
  text-align: right;
  font-size: 10px;
}

.next-game-hero .hero-map figcaption a {
  color: #c3cbe3;
}

.directions-dialog .directions-links {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.directions-dialog h2 {
  margin-bottom: 10px;
}

.today-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 18px 0 0;
  color: #7d8ba6;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .today-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .today-numbers {
    gap: 10px;
    margin-bottom: 16px;
  }

  .today-number {
    padding: 14px;
  }

  .today-number strong {
    font-size: 24px;
  }

  .today-layout {
    gap: 16px;
  }

  .today-head .head-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .next-game-hero {
    padding: 20px;
  }

  .next-game-hero h2 {
    font-size: 32px;
  }

  .next-game-hero .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .next-game-hero.with-map {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "details" "map" "prep" "actions";
  }

  .next-game-hero .hero-map {
    margin-top: 18px;
  }

  .next-game-hero .hero-map img {
    height: 150px;
  }
}

/* "Hoje": the games of the next 7 days, by day. */
.upcoming-day {
  margin: 0;
  padding: 14px 22px 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  text-transform: uppercase;
}

.upcoming-day.live {
  color: #217d56;
}

.upcoming-postponed strong,
.upcoming-postponed a {
  display: inline;
  padding: 0;
  font-size: 11px;
}

.upcoming-postponed {
  margin: 0;
  padding: 12px 22px 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 700px) {
  .upcoming-day,
  .upcoming-postponed {
    padding-left: 14px;
    padding-right: 14px;
  }
}
