.tips-page { --tips-blue: #0078d4; --tips-blue-deep: #005a9e; }

.tips-hero { min-height: 500px; position: relative; display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 7vw; align-items: center; overflow: hidden; padding: 78px max(7vw,32px); background: radial-gradient(circle at 77% 34%,rgba(0,120,212,.28),transparent 25%),linear-gradient(120deg,#061424 0%,#0b2947 75%,#0c3757 100%); color: #fff; }
.tips-hero-copy { position: relative; z-index: 1; }
.tips-hero h1 { max-width: 760px; margin: 24px 0; font-size: clamp(50px,6vw,78px); }
.tips-hero h1 span { color: var(--brand-accent); }
.tips-hero-copy > p:last-child { max-width: 650px; margin: 0; color: #bfd0dd; font-size: 19px; line-height: 1.65; }
.tips-hero .eyebrow { color: var(--brand-accent); }
.tips-hero .verified-dot { display: inline-block; margin-right: 8px; background: #43e5ff; box-shadow: 0 0 0 6px rgba(67,229,255,.12); }

.tip-spotlight { position: relative; z-index: 1; display: block; padding: 26px; border: 1px solid rgba(101,231,244,.38); border-top: 3px solid var(--brand-accent); background: rgba(4,20,36,.78); color: inherit; text-decoration: none; box-shadow: 0 22px 44px rgba(0,0,0,.18); transition: transform .18s ease, border-color .18s ease; }
.tip-spotlight:hover { transform: translateY(-3px); border-color: var(--brand-accent); }
.tip-spotlight:focus-visible { outline: 3px solid var(--brand-accent); outline-offset: 4px; }
.spotlight-kicker { display: block; color: #91abbc; font: 700 10px/1 monospace; letter-spacing: .12em; }
.spotlight-mark,.outlook-mark { display: grid; place-items: center; background-color: var(--tips-blue); color: #fff; font-weight: 800; -webkit-print-color-adjust: exact; print-color-adjust: exact; forced-color-adjust: none; }
.spotlight-mark { width: 48px; height: 48px; margin: 24px 0 18px; font-size: 1.2rem; }
.teams-spotlight .spotlight-mark { background-color: #6264a7; }
.tip-spotlight h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.03em; }
.tip-spotlight p { margin: 12px 0 22px; color: #bfd0dd; font-size: .9rem; line-height: 1.6; }
.spotlight-path { display: block; padding-top: 16px; border-top: 1px solid rgba(101,231,244,.25); color: var(--brand-accent); font: 700 10px/1.4 monospace; letter-spacing: .08em; }
.spotlight-link { display: inline-block; margin-top: 16px; color: #fff; font-size: .82rem; font-weight: 800; }

.tips-intro { display: grid; grid-template-columns: repeat(3,1fr) 1.25fr; padding: 0 max(7vw,32px); border-bottom: 1px solid var(--line); background: #fff; }
.tips-intro > div { min-height: 106px; display: flex; flex-direction: column; justify-content: center; padding: 26px; border-right: 1px solid var(--line); }
.tips-intro > div:first-child { border-left: 1px solid var(--line); }
.tips-intro strong { font-size: 34px; line-height: 1; letter-spacing: -.04em; }
.tips-intro span { margin-top: 8px; color: var(--muted); font: 700 10px/1.4 monospace; letter-spacing: .1em; text-transform: uppercase; }
.tips-intro .tips-intro-note { flex-direction: row; align-items: center; gap: 12px; border-right: 0; color: var(--muted); font-weight: 650; }
.tips-intro-note .pulse { flex: 0 0 auto; margin: 0 !important; }

.tips-library { padding: 86px max(7vw,32px); background: var(--paper); }
.tips-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 28px; }
.tips-heading > p { max-width: 570px; margin: 0 0 4px; color: var(--muted); line-height: 1.65; }
.product-filter { display: flex; gap: 8px; overflow-x: auto; padding: 12px; border: 1px solid var(--line); border-bottom: 0; background: #f5f8fa; scrollbar-width: thin; }
.product-filter button { flex: 0 0 auto; min-height: 50px; display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; font-size: .76rem; font-weight: 800; }
.product-filter button[aria-pressed="true"] { border-color: var(--product-color); box-shadow: inset 0 -3px 0 var(--product-color); }
.product-filter button:focus-visible { outline: 3px solid color-mix(in srgb,var(--product-color) 25%,transparent); outline-offset: 2px; }
.product-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; background-color: var(--product-color); color: #fff; font: 800 .72rem/1 monospace; -webkit-print-color-adjust: exact; print-color-adjust: exact; forced-color-adjust: none; }
.tip-controls { display: grid; grid-template-columns: minmax(280px,1fr) auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); background: #fff; }
.tip-search { position: relative; display: block; }
.tip-search > span:first-child { position: absolute; z-index: 1; top: 9px; left: 15px; color: var(--muted); font-size: 1.2rem; }
.tip-search input { width: 100%; min-height: 46px; padding: 0 16px 0 42px; border: 1px solid transparent; background: var(--paper); color: var(--ink); outline: 0; }
.tip-search input:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 3px color-mix(in srgb,var(--brand-primary) 18%,transparent); }
.tip-categories { display: flex; gap: 7px; }
.tip-categories button { min-height: 42px; padding: 0 14px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); cursor: pointer; font-size: .78rem; font-weight: 750; }
.tip-categories button[aria-pressed="true"] { border-color: var(--tips-blue); background: var(--tips-blue); color: #fff; }
.tip-categories button:focus-visible,.tip-card:focus-visible { outline: 3px solid color-mix(in srgb,var(--tips-blue) 25%,transparent); outline-offset: 2px; }
.tip-progress { display: grid; grid-template-columns: 220px 220px 1fr; gap: 12px; align-items: stretch; margin-top: 16px; }
.tip-progress > div { display: grid; grid-template-columns: 1fr auto; gap: 7px 12px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; }
.tip-progress > div > span { align-self: center; color: var(--muted); font: 800 9px/1.2 monospace; letter-spacing: .09em; text-transform: uppercase; }
.tip-progress strong { color: var(--navy); font-size: 1.15rem; }
.tip-progress strong small { color: var(--muted); font-size: .7rem; }
.tip-progress i { grid-column: 1 / -1; height: 4px; overflow: hidden; background: #dfe7ea; }
.tip-progress i b { display: block; height: 100%; background: var(--brand-primary); transition: width .2s ease; }
.tip-progress > div:nth-child(2) i b { background: #16845b; }
.tip-progress > p { display: flex; align-items: center; margin: 0; padding: 13px 16px; border: 1px solid var(--line); background: #f5f8fa; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.progress-filters { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.progress-filters > span { margin-right: 4px; color: var(--muted); font: 800 9px/1 monospace; letter-spacing: .09em; text-transform: uppercase; }
.progress-filters button { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); background: #fff; color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 800; }
.progress-filters button[aria-pressed="true"] { border-color: #16845b; background: #16845b; color: #fff; }
.progress-filters button:focus-visible { outline: 3px solid rgba(22,132,91,.2); outline-offset: 2px; }
.tip-results { min-height: 20px; margin: 16px 0 10px; color: var(--muted); font: 700 10px/1.4 monospace; letter-spacing: .08em; text-transform: uppercase; }
.tip-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.tip-card { position: relative; display: flex; flex-direction: column; scroll-margin-top: 110px; border: 1px solid var(--line); border-top: 3px solid var(--product-color); background: #fff; color: var(--ink); transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.tip-card:target { box-shadow: 0 0 0 3px color-mix(in srgb,var(--product-color) 42%,transparent),var(--shadow); }
.tip-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb,var(--product-color) 42%,var(--line)); box-shadow: var(--shadow); }
.tip-card.is-viewed { background: linear-gradient(180deg,#fff 0%,#f8fbfc 100%); }
.tip-card.is-implemented { box-shadow: inset 0 0 0 2px rgba(22,132,91,.14); }
.tip-card-main { min-height: 330px; flex: 1; display: flex; flex-direction: column; padding: 24px; border: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.tip-card-main:focus-visible { outline: 3px solid color-mix(in srgb,var(--product-color) 28%,transparent); outline-offset: -4px; }
.tip-card-top { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; }
.tip-number { display: grid; place-items: center; width: 34px; height: 34px; background: var(--navy); color: var(--brand-accent); font: 800 10px/1 monospace; }
.tip-product { display: flex; align-items: center; gap: 8px; color: var(--muted); font: 800 10px/1 monospace; letter-spacing: .08em; }
.tip-product .product-avatar { width: 27px; height: 27px; font-size: .64rem; }
.tip-time { padding: 5px 7px; border: 1px solid #acd2ec; background: #edf7fd; color: var(--tips-blue-deep); font: 800 9px/1 monospace; letter-spacing: .06em; text-transform: uppercase; }
.tip-category { margin-top: 24px; color: var(--product-color); font: 800 10px/1 monospace; letter-spacing: .11em; text-transform: uppercase; }
.tip-release { margin-top: 7px; color: var(--muted); font: 700 9px/1.3 monospace; letter-spacing: .05em; text-transform: uppercase; }
.release-date-note { margin: 12px 0 4px; color: var(--muted); font-size: .82rem; line-height: 1.55; }
.tip-card h3 { margin: 12px 0 10px; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.025em; }
.tip-card-main > p { margin: 0; color: var(--muted); line-height: 1.58; }
.tip-impact { position: relative; display: grid; gap: 5px; margin-top: auto; padding: 16px 14px 16px 18px; border: 1px solid var(--line); background: var(--paper); }
.tip-impact::before,.dialog-impact::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; background: #c17a13; }
.tip-impact[data-impact="high"]::before,.dialog-impact[data-impact="high"]::before { background: #16845b; }
.tip-impact span,.dialog-impact > span { color: var(--muted); font: 800 9px/1.2 monospace; letter-spacing: .09em; text-transform: uppercase; }
.tip-impact strong { color: var(--navy); font-size: .8rem; line-height: 1.35; }
.tip-open { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid var(--line); color: var(--product-color); font-size: .78rem; font-weight: 800; }
.tip-status { min-height: 53px; display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); background: #f5f8fa; }
.tip-status label,.dialog-status label { display: inline-flex; align-items: center; gap: 7px; color: var(--navy); cursor: pointer; font-size: .72rem; font-weight: 750; }
.tip-status input,.dialog-status input { width: 17px; height: 17px; margin: 0; accent-color: #16845b; }
.card-rating { margin-left: auto; color: var(--muted); font: 800 10px/1 monospace; }
.tip-empty { padding: 70px 20px; border: 1px dashed var(--line); background: #fff; text-align: center; }
.tip-empty strong { font-size: 1.3rem; }
.tip-empty p { margin: 8px 0 0; color: var(--muted); }

.tips-next { display: grid; grid-template-columns: 64px minmax(0,1.1fr) minmax(320px,.9fr); gap: 28px 5vw; align-items: start; padding: 78px max(7vw,32px); border-top: 1px solid var(--line); background: #e9eff2; }
.tips-next-mark { display: grid; place-items: center; width: 64px; height: 64px; background: var(--ink); color: var(--brand-accent); font-size: 2rem; }
.tips-next h2 { max-width: 700px; font-size: clamp(2rem,3.2vw,2.8rem); }
.tips-next p:last-child { max-width: 720px; margin: 18px 0 0; color: var(--muted); line-height: 1.7; }
.future-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.future-topics span { padding: 13px; border: 1px solid var(--line); border-left: 3px solid var(--brand-primary); background: #fff; color: var(--navy); font-size: .78rem; font-weight: 750; }

.tip-dialog { border-top: 4px solid var(--product-color,var(--tips-blue)); }
.tip-dialog-body { padding: 46px; }
.tip-dialog-header { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 16px; align-items: start; padding-right: 46px; }
.tip-dialog-header .product-avatar { width: 52px; height: 52px; font-size: 1rem; }
.tip-dialog-header div > span { color: var(--product-color); font: 800 10px/1.3 monospace; letter-spacing: .1em; }
.tip-dialog-header h2 { margin: 8px 0 0; font-size: clamp(1.8rem,4vw,2.7rem); }
.tip-dialog-lede { margin: 22px 0 28px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.microsoft-release { display: grid; grid-template-columns: minmax(120px,auto) minmax(0,1fr); gap: 4px 18px; align-items: baseline; margin: -8px 0 22px; padding: 14px 16px; border-left: 3px solid var(--product-color); background: #f3f7fa; }
.microsoft-release > span { color: var(--muted); font: 800 10px/1.3 monospace; letter-spacing: .08em; text-transform: uppercase; }
.microsoft-release strong { color: var(--navy); }
.microsoft-release small { grid-column: 2; color: var(--muted); }
.microsoft-release a { grid-column: 2; color: var(--product-color); font-size: .8rem; font-weight: 800; }
.microsoft-release > span:last-child { grid-column: 2; font-family: inherit; font-size: .78rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.dialog-status { display: flex; align-items: center; gap: 18px; margin: -8px 0 16px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; }
.dialog-status > strong { margin-right: auto; color: var(--navy); font-size: .82rem; }
.dialog-impact { position: relative; display: grid; gap: 7px; margin: 0 0 28px; padding: 19px 22px 19px 26px; border: 1px solid var(--line); background: var(--paper); }
.dialog-impact strong { color: var(--navy); font-size: 1.08rem; }
.dialog-impact p { margin: 2px 0 0; color: var(--muted); font-size: .88rem; line-height: 1.6; }
.tip-dialog-body section { padding-top: 23px; border-top: 1px solid var(--line); }
.tip-dialog-body section h3 { margin: 0 0 14px; font-size: .95rem; }
.tip-dialog-body ol { margin: 0; padding: 0; list-style: none; counter-reset: steps; }
.tip-dialog-body ol li { counter-increment: steps; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 10px 0; color: var(--muted); }
.tip-dialog-body ol li::before { content: counter(steps); display: grid; place-items: center; width: 27px; height: 27px; background: var(--navy); color: var(--brand-accent); font: 800 10px/1 monospace; }
.tip-dialog-body ol li span { padding-top: 2px; }
.tip-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.tip-detail-grid section { padding: 20px; border: 1px solid var(--line); background: var(--paper); }
.tip-detail-grid p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.6; }
.tip-detail-grid .tip-note { border-left: 3px solid var(--product-color); background: color-mix(in srgb,var(--product-color) 8%,#fff); }
.tip-source { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--product-color); font-size: .82rem; font-weight: 800; text-decoration: none; }
.tip-source:hover { text-decoration: underline; }
.tip-feedback { display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; align-items: center; margin-top: 24px; padding: 22px !important; border: 1px solid var(--line) !important; background: #f5f8fa; }
.tip-feedback h3 { margin-bottom: 5px !important; }
.tip-feedback div > p { margin: 0; color: var(--muted); font-size: .78rem; }
.thumb-rating { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.thumb-rating button { min-width: 54px; min-height: 46px; display: grid; place-items: center; gap: 2px; padding: 5px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.thumb-rating button span { font-size: clamp(.52rem,.8vw,.72rem); white-space: nowrap; }
.thumb-rating button small { color: var(--muted); font: 800 9px/1 monospace; }
.thumb-rating button[aria-pressed="true"] { border-color: #16845b; background: #e8f5ef; box-shadow: inset 0 -3px 0 #16845b; }
.thumb-rating button:focus-visible { outline: 3px solid rgba(22,132,91,.2); outline-offset: 2px; }
.rating-confirmation { grid-column: 1 / -1; margin: 0; color: #126744; font-size: .78rem; font-weight: 750; }

@media (max-width: 1000px) {
  .tips-hero { grid-template-columns: minmax(0,1fr) 310px; gap: 38px; }
  .tips-intro { grid-template-columns: repeat(3,1fr); }
  .tips-intro-note { grid-column: 1 / -1; min-height: 64px !important; border-top: 1px solid var(--line); }
  .tip-controls { grid-template-columns: 1fr; }
  .tip-progress { grid-template-columns: 1fr 1fr; }
  .tip-progress > p { grid-column: 1 / -1; }
  .tip-categories { flex-wrap: wrap; }
  .tip-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tips-next { grid-template-columns: 64px 1fr; }
  .future-topics { grid-column: 2; }
}

@media (max-width: 760px) {
  .microsoft-release { grid-template-columns: 1fr; }
  .microsoft-release small, .microsoft-release a, .microsoft-release > span:last-child { grid-column: 1; }
  .tips-hero { min-height: 0; grid-template-columns: 1fr; padding: 62px 22px 54px; }
  .tips-hero h1 { font-size: clamp(2.7rem,13vw,4rem); }
  .tips-hero-copy > p:last-child { font-size: 1rem; }
  .tip-spotlight { padding: 22px; }
  .tips-intro { grid-template-columns: 1fr 1fr; padding: 0 22px; }
  .tips-intro > div { min-height: 88px; padding: 18px; }
  .tips-intro > div:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .tips-intro-note { grid-column: auto; min-height: 88px !important; }
  .tips-library { padding: 62px 22px; }
  .tips-heading { align-items: flex-start; flex-direction: column; gap: 15px; }
  .tip-categories button { flex: 1 1 calc(50% - 7px); }
  .tip-grid { grid-template-columns: 1fr; }
  .tip-card { min-height: 310px; }
  .tips-next { grid-template-columns: 1fr; padding: 58px 22px; }
  .future-topics { grid-column: auto; grid-template-columns: 1fr; }
  .tip-dialog-body { padding: 36px 24px; }
  .tip-dialog-header { grid-template-columns: 44px minmax(0,1fr); padding-right: 32px; }
  .tip-dialog-header .product-avatar { width: 44px; height: 44px; }
  .tip-detail-grid { grid-template-columns: 1fr; }
  .tip-feedback { grid-template-columns: 1fr; }
  .thumb-rating { width: 100%; }
  .thumb-rating button { min-width: 0; }
}

@media (max-width: 390px) {
  .tips-intro { grid-template-columns: 1fr; }
  .tips-intro > div,.tips-intro > div:nth-child(3) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .tips-intro-note { grid-column: 1; }
  .tip-progress { grid-template-columns: 1fr; }
  .tip-progress > p { grid-column: auto; }
  .tip-status { align-items: flex-start; flex-direction: column; gap: 9px; }
  .card-rating { margin-left: 0; }
  .dialog-status { align-items: flex-start; flex-wrap: wrap; }
  .dialog-status > strong { flex: 0 0 100%; }
  .progress-filters { align-items: stretch; flex-wrap: wrap; justify-content: flex-start; }
  .progress-filters > span { flex: 0 0 100%; margin: 0 0 3px; }
  .progress-filters button { flex: 1 1 auto; }
}
