/* Sample client account page. Colours match the homepage hero and dashboard. */
.site-header nav a[aria-current="page"] { color: #275f51; font-weight: 700; }

.account-hero { background: #132b37; color: #eef4ee; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); }
.account-sample { display: inline-block; font-size: .72rem; letter-spacing: .04em; color: #132b37; background: #c8e79b; border-radius: 2rem; padding: .3rem .8rem; }
.account-title { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.account-kicker { font-size: .68rem; letter-spacing: .12em; color: #a5bcb5; }
.account-title h2 { font: 400 clamp(2.4rem, 6vw, 3.6rem)/1.1 var(--display); margin-top: .4rem; }
.account-meta { display: flex; flex-direction: column; gap: .25rem; font-size: .82rem; color: #c6d8cb; text-align: right; }
.account-meta strong { color: #e0f4c0; }

.account-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 2rem; }
.stat { background: #1b3a40; border: 1px solid #49685f; border-radius: .6rem; padding: 1.1rem 1.2rem; }
.stat small { font-size: .6rem; letter-spacing: .1em; color: #a5bcb5; }
.stat strong { display: block; font: 400 2.1rem/1.15 var(--display); margin-top: .35rem; color: #fff; }
.stat span { font-size: .76rem; color: #c6d8cb; }
.stat-alert { border-color: #c8e79b; }
.stat-alert strong { color: #e0f4c0; }

.account-body { background: #fcfbf7;  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }

.tracker { background: #fff; border: 1px solid #d6e1d4; border-radius: .75rem; overflow: hidden; box-shadow: 0 14px 40px #243d2b0b; }
.tracker-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid #e3e9e1; flex-wrap: wrap; }
.tracker-tabs { display: flex; gap: .35rem; flex-wrap: wrap; }
.tracker-tabs button { font: inherit; font-size: .8rem; color: #275f51; background: transparent; border: 1px solid #d6e1d4; border-radius: 2rem; padding: .35rem .8rem; cursor: pointer; }
.tracker-tabs button span { opacity: .7; margin-left: .2rem; }
.tracker-tabs button[aria-selected="true"] { background: #27594c; border-color: #27594c; color: #fff; }
.tracker-note { font-size: .62rem; letter-spacing: .1em; color: #6b8079; }
.tracker-head, .tracker-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.1fr) minmax(0, .7fr) minmax(0, 1.1fr); gap: .8rem; align-items: center; }
.tracker-head { padding: .55rem 1rem; font-size: .6rem; letter-spacing: .1em; color: #6b8079; background: #f4f6f1; }
.tracker-rows { list-style: none; margin: 0; padding: 0; }
.tracker-rows li + li { border-top: 1px solid #edf1ec; }
.tracker-row { width: 100%; text-align: left; font: inherit; color: #132b37; background: transparent; border: 0; padding: .85rem 1rem; cursor: pointer; }
.tracker-row:hover { background: #f6f9f4; }
.tracker-row.is-selected { background: #e9f3e1; box-shadow: inset 3px 0 0 #27594c; }
.tracker-row strong { display: block; font-size: .88rem; }
.tracker-row small { display: block; font-size: .74rem; color: #5f7570; margin-top: .1rem; }
.cell-received, .cell-owner { font-size: .8rem; color: #3e5550; }
.status { justify-self: start; font-size: .7rem; font-weight: 700; border-radius: 2rem; padding: .25rem .6rem; white-space: nowrap; }
.status-new { background: #e0eddf; color: #27594c; }
.status-reminder { background: #fbecd3; color: #8a5a14; }
.status-handled { background: #eef0ec; color: #6b7a76; }

.detail { background: #132b37; color: #eef4ee; border-radius: .75rem; padding: 1.5rem; position: sticky; top: 6.5rem; }
.detail-label { font-size: .6rem; letter-spacing: .12em; color: #a5bcb5; }
.detail h2 { font: 400 1.6rem/1.2 var(--display); margin-top: .4rem; }
.detail-customer { font-size: .85rem; color: #c6d8cb; margin-top: .2rem; }
.detail-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.2rem 0; padding: 1rem 0; border-block: 1px solid #355651; }
.detail-facts dt { font-size: .62rem; letter-spacing: .08em; color: #a5bcb5; text-transform: uppercase; }
.detail-facts dd { margin: .15rem 0 0; font-size: .85rem; }
.detail-facts dd.is-late { color: #f1d1a0; }
.detail-message { font-size: .86rem; line-height: 1.55; background: #1b3a40; border: 1px solid #49685f; border-radius: .5rem; padding: .9rem 1rem; margin-bottom: 1.2rem; color: #e3ece5; }
.timeline { list-style: none; margin: .6rem 0 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.2rem; border-left: 1px solid #49685f; margin-left: .3rem; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -.3rem; top: .3rem; width: .55rem; height: .55rem; border-radius: 50%; background: #c8e79b; }
.timeline small { display: block; font-size: .68rem; color: #a5bcb5; }
.timeline span { font-size: .83rem; }

.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.rule { display: flex; gap: .8rem; align-items: flex-start; background: #e9eee5; border-radius: .6rem; padding: 1rem; }
.rule-icon { display: grid; place-items: center; flex: none; width: 2.2rem; height: 2.2rem; border-radius: .4rem; background: #27594c; color: #d9efbb; }
.rule strong { font-size: .86rem; color: #132b37; }
.rule small { display: block; font-size: .76rem; color: #4d625d; margin-top: .15rem; }
.rule-on { margin-left: auto; font-size: .6rem; letter-spacing: .1em; font-weight: 700; color: #27594c; }

.account-cta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #d6e1d4; color: #132b37; }
.account-cta p { font: 400 1.4rem/1.3 var(--display); }

@media (max-width: 60rem) {
  .account-layout { grid-template-columns: 1fr; }
  .detail { position: static; }
  .account-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules { grid-template-columns: 1fr; }
}
@media (max-width: 36rem) {
  .account-meta { text-align: left; }
  .tracker-head { display: none; }
  .tracker-row { grid-template-columns: 1fr auto; }
  .cell-received, .cell-owner { display: none; }
}
