.m365-hero { padding-block: clamp(1.75rem, 4vw, 3.25rem); }

.m365-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4.25rem);
}

.m365-intro .page-title { font-size: clamp(2.2rem, 4.2vw, 3.65rem); text-wrap: balance; }
.m365-intro .page-lead { max-width: 35rem; margin-bottom: 0; font-size: clamp(1rem, 1.8vw, 1.15rem); }
.m365-back { display: inline-block; margin-bottom: .75rem; font-weight: 650; font-size: .875rem; }
.m365-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.3rem; margin-top: 1.25rem; }
.m365-actions .btn { gap: .65em; }
.m365-text-link { font-weight: 650; text-decoration: underline; text-underline-offset: .21em; }

.m365-guide {
  --guide-text: #e3f1ef;
  --guide-line: #41706b;
  padding: .95rem 1.15rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--product);
  color: white;
}

.m365-guide h2 { margin: 0 0 .35rem; color: inherit; font-size: 1.13rem; }
.m365-guide-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .6rem 0;
  border-top: 1px solid var(--guide-line);
  color: inherit;
  line-height: 1.3;
}

.m365-guide-row:hover { color: white; }
a.m365-guide-row:hover strong, .m365-back:hover { text-decoration: underline; text-underline-offset: .2em; }
.m365-guide a:focus-visible { outline-color: #9fe4d8; }
.m365-guide-row small, .m365-price small { display: block; margin-top: .15rem; color: var(--guide-text); }
.m365-guide-arrow { color: #a9e5d9; }
.m365-summary { margin: 0; }
.m365-summary .m365-guide-row { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); }
.m365-summary dt { display: flex; align-items: center; gap: .65rem; color: var(--guide-text); font-size: .91rem; }
.m365-summary dd { margin: 0; text-align: right; font-weight: 650; }
.m365-price { margin: 0; padding-top: .6rem; border-top: 1px solid var(--guide-line); font-size: .875rem; }
.m365-price strong { font-size: 1.18rem; }

.m365-icon {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: #d7eeea;
  color: #13554c;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 720;
}

.m365-icon--word, .m365-icon--web, .m365-icon--storage { background: #e2edfa; color: #19528a; }
.m365-icon--excel, .m365-icon--apps { background: #d8eee0; color: #206038; }
.m365-icon--slides, .m365-icon--calendar { background: #fae8df; color: #984421; }
.m365-icon--teams, .m365-icon--tasks, .m365-icon--notes { background: #e9e7fb; color: #5342a0; }

.m365-main { padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 5vw, 3.75rem); }
.m365-section { padding: 0; }
.m365-section + .m365-section { margin-top: clamp(2rem, 5vw, 3.5rem); }
.m365-section-head { margin-bottom: .9rem; }
.m365-section-head h2, .m365-example h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); margin-bottom: .28em; }
.m365-section-head p { margin: 0; color: var(--ink-700); }

.m365-table {
  width: 100%;
  table-layout: fixed;
  border: 1px solid var(--border-strong);
  border-spacing: 0;
  border-radius: var(--radius);
  overflow: hidden;
  font-size: .92rem;
  line-height: 1.32;
}

.m365-table th, .m365-table td {
  padding: .64rem .7rem;
  text-align: center;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--border);
}

.m365-table thead th { color: var(--product); background: var(--mint); font-size: .98rem; }
.m365-table thead th:first-child { width: 30%; }
.m365-table tr > :first-child { text-align: left; }
.m365-table tbody th { font-weight: 600; }
.m365-table tbody tr:nth-child(even) > * { background: #f5f8f7; }
.m365-table tbody tr:last-child > * { border-bottom: 0; }
.m365-table thead .m365-current { background: var(--product); color: white; }
.m365-table tbody tr > .m365-current { background: #eaf5f2; }
.m365-table thead small { display: block; margin-top: .16rem; font-weight: 500; }
.m365-table thead a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.m365-table thead a:focus-visible { outline-offset: 1px; }
.m365-table-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .35rem 1rem;
  margin-top: .63rem;
  color: var(--ink-700);
  font-size: .85rem;
}
.m365-price-note { margin: .45rem 0 0; color: var(--ink-700); font-size: .85rem; }

.m365-yes, .m365-no { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; font-weight: 750; }
.m365-yes { border-radius: 50%; color: #166054; background: #deefe9; }
.m365-no { color: var(--ink-700); }
.m365-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.m365-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18.5rem), 1fr)); gap: .75rem; }
.m365-card {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: 1rem;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.m365-card h3 { margin: .08rem 0 .32rem; font-size: 1rem; }
.m365-card p, .m365-card small { margin: 0; color: var(--ink-700); font-size: .92rem; line-height: 1.5; }
.m365-card small { display: block; }
.m365-card--link:hover { border-color: var(--cta); background: var(--mint-hover); }
.m365-example { border-left: 3px solid var(--cta); padding: 1.1rem clamp(1rem, 3vw, 1.65rem); background: #f3f8f7; }
.m365-example .content > :last-child { margin-bottom: 0; }

.m365-faq { border-top: 1px solid var(--border); }
.m365-faq details { border-bottom: 1px solid var(--border); }
.m365-faq summary { padding: .75rem .3rem; cursor: pointer; font-weight: 650; }
.m365-faq summary::marker { color: var(--cta); }
.m365-faq details > div { padding: 0 .3rem .8rem 1.35rem; max-width: 49rem; }
.m365-faq p { margin: 0; color: var(--ink-700); }
.m365-faq a, .m365-example a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 860px) {
  .m365-table { overflow: visible; }
  .m365-table thead {
    position: sticky;
    /* The mobile header's bottom border adds one pixel to its inner height. */
    top: calc(var(--header-h-mobile) + 1px);
    z-index: 1;
  }
  .m365-table thead th:first-child { border-top-left-radius: calc(var(--radius) - 1px); }
  .m365-table thead th:last-child { border-top-right-radius: calc(var(--radius) - 1px); }
}

@media (max-width: 720px) {
  .m365-hero-grid { grid-template-columns: 1fr; }
  .m365-table { font-size: .83rem; }
  .m365-table thead th { font-size: .83rem; }
  .m365-table th, .m365-table td { padding: .5rem .25rem; }
  .m365-table tr > :first-child { padding-left: .5rem; }
}
