/* WIMIP personal Mbps advice: one accessible layout in all three site themes. */
.wimip .wimip-advice {
  display: grid;
  min-width: 0;
  gap: clamp(18px, 3vw, 30px);
  width: 100%;
}

.wimip .wimip-advice-hero {
  min-width: 0;
  max-width: 850px;
}

.wimip .wimip-advice-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.04;
}

.wimip .wimip-advice-hero > p:last-child {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}

.wimip .wimip-advice-eyebrow,
.wimip .wimip-advice-result-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.wimip .wimip-advice-console {
  display: grid;
  min-width: 0;
  gap: 20px;
  padding: clamp(16px, 3vw, 26px);
}

.wimip .wimip-advice-toolbar {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.wimip .wimip-advice-toolbar .muted {
  justify-self: end;
}

.wimip .wimip-advice-lamp {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.wimip .wimip-advice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  min-width: 0;
  gap: clamp(18px, 3vw, 30px);
  align-items: start;
}

.wimip .wimip-advice-form {
  display: grid;
  min-width: 0;
  gap: 18px;
}

.wimip .wimip-advice-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid rgba(127, 127, 127, .28);
  border-radius: 14px;
}

.wimip .wimip-advice-form legend {
  padding: 0 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
}

.wimip .wimip-advice-form legend > span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-right: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 12px;
}

.wimip .wimip-advice-hint {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 12px;
}

.wimip .wimip-advice-options {
  display: grid;
  gap: 9px;
}

.wimip .wimip-advice-options--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wimip .wimip-advice-options--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wimip .wimip-advice-options--activities {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wimip .wimip-advice-options label {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.wimip .wimip-advice-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wimip .wimip-advice-options label > span {
  display: grid;
  align-content: center;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid rgba(127, 127, 127, .34);
  border-radius: 11px;
  background: rgba(255, 255, 255, .02);
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}

.wimip .wimip-advice-options label:hover > span {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  transform: translateY(-1px);
}

.wimip .wimip-advice-options input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 9%, transparent);
}

.wimip .wimip-advice-options input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

.wimip .wimip-advice-options strong,
.wimip .wimip-advice-options small {
  overflow-wrap: anywhere;
}

.wimip .wimip-advice-options strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.3;
}

.wimip .wimip-advice-options small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.wimip .wimip-advice-result {
  position: sticky;
  top: 18px;
  padding: clamp(17px, 2.5vw, 24px);
  border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 6%, rgba(0, 0, 0, .1));
}

.wimip .wimip-advice-result h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
}

.wimip .wimip-advice-result p {
  color: var(--muted);
}

.wimip .wimip-advice-number {
  display: grid;
  gap: 3px;
  margin-bottom: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(127, 127, 127, .25);
}

.wimip .wimip-advice-number strong {
  color: var(--accent);
  font-size: clamp(39px, 6vw, 64px);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.05em;
  line-height: .95;
}

.wimip .wimip-advice-number span,
.wimip .wimip-advice-upload span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.wimip .wimip-advice-upload {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}

.wimip .wimip-advice-upload strong {
  color: var(--text);
  font-size: 23px;
}

.wimip .wimip-advice-result ul {
  display: grid;
  gap: 7px;
  margin: 15px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}

.wimip .wimip-advice-measurement {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(127, 127, 127, .25);
}

.wimip .wimip-advice-measurement h3 {
  margin: 0 0 10px;
  font-size: 16px;
}

.wimip .wimip-advice-measurement-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.wimip .wimip-advice-measurement-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.wimip .wimip-advice-measurement-fields label > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wimip .wimip-advice-measurement-fields input {
  min-width: 0;
  width: 100%;
  min-height: 39px;
  padding: 7px 9px;
  border: 1px solid rgba(127, 127, 127, .4);
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.wimip .wimip-advice-measurement > p {
  margin: 11px 0 0;
  font-size: 12px;
}

.wimip .wimip-advice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.wimip .wimip-advice-actions .btn {
  font-size: 12px;
}

.wimip .wimip-advice-provider-link {
  border-color: color-mix(in srgb, var(--accent) 65%, transparent);
}

.wimip .wimip-advice-footnote,
.wimip .wimip-advice-notice {
  max-width: 850px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.wimip .wimip-advice-article {
  display: grid;
  min-width: 0;
  gap: 22px;
}

.wimip .wimip-advice-article > section {
  min-width: 0;
  padding: clamp(16px, 3vw, 24px);
}

.wimip .wimip-advice-article h2,
.wimip .wimip-advice-article h3 {
  margin-top: 0;
}

.wimip .wimip-advice-table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin-top: 18px;
  -webkit-overflow-scrolling: touch;
}

.wimip .wimip-advice-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13px;
}

.wimip .wimip-advice-table-wrap th,
.wimip .wimip-advice-table-wrap td {
  padding: 11px 12px;
  border-bottom: 1px solid rgba(127, 127, 127, .28);
  text-align: left;
  vertical-align: top;
}

.wimip .wimip-advice-table-wrap th {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Neon: bright recommendation console. */
.wimip[data-theme="neon"] .wimip-advice-console {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 77, 219, .07), transparent 30%),
    linear-gradient(145deg, rgba(23, 21, 40, .94), rgba(10, 9, 21, .94));
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 20px 70px rgba(0, 0, 0, .42), 0 0 34px rgba(51, 231, 255, .07);
}

.wimip[data-theme="neon"] .wimip-advice-lamp {
  box-shadow: 0 0 6px var(--accent), 0 0 18px var(--accent);
}

.wimip[data-theme="neon"] .wimip-advice-result {
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 11%, transparent);
}

.wimip[data-theme="neon"] .wimip-advice-number strong {
  text-shadow: 0 0 11px color-mix(in srgb, var(--accent) 65%, transparent);
}

/* Windows 95: grouped controls and a fixed result window. */
.wimip[data-theme="win95"] .wimip-advice-eyebrow,
.wimip[data-theme="win95"] .wimip-advice-result-label {
  color: #000080;
}

.wimip[data-theme="win95"] .wimip-advice-console {
  padding: 4px;
  border: 2px solid #fff;
  border-right-color: #000;
  border-bottom-color: #000;
  border-radius: 0;
  background: #c0c0c0;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;
}

.wimip[data-theme="win95"] .wimip-advice-toolbar {
  min-height: 36px;
  padding: 6px 8px;
  background: linear-gradient(90deg, #000080, #1084d0);
  color: #fff;
}

.wimip[data-theme="win95"] .wimip-advice-toolbar .muted {
  color: #fff;
}

.wimip[data-theme="win95"] .wimip-advice-form,
.wimip[data-theme="win95"] .wimip-advice-result {
  margin: 8px;
}

.wimip[data-theme="win95"] .wimip-advice-form legend {
  background: #efefef;
}

.wimip[data-theme="win95"] .wimip-advice-form fieldset,
.wimip[data-theme="win95"] .wimip-advice-options label > span,
.wimip[data-theme="win95"] .wimip-advice-result,
.wimip[data-theme="win95"] .wimip-advice-measurement-fields input {
  border: 2px solid #808080;
  border-right-color: #fff;
  border-bottom-color: #fff;
  border-radius: 0;
  background: #efefef;
  color: #000;
  box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #dfdfdf;
}

.wimip[data-theme="win95"] .wimip-advice-options input:checked + span {
  outline: 1px dotted #000;
  outline-offset: -5px;
  background: #000080;
  color: #fff;
}

.wimip[data-theme="win95"] .wimip-advice-options input:checked + span strong,
.wimip[data-theme="win95"] .wimip-advice-options input:checked + span small {
  color: #fff;
}

.wimip[data-theme="win95"] .wimip-advice-options label:hover > span {
  transform: none;
}

.wimip[data-theme="win95"] .wimip-advice-form legend > span {
  border-radius: 0;
  border-color: #000080;
  color: #000080;
}

.wimip[data-theme="win95"] .wimip-advice-number strong {
  color: #000080;
}

/* MS-DOS: strict terminal styling. */
.wimip[data-theme="msdos"] .wimip-advice-hero h1::before {
  content: "C:\\NET\\PLAN> ";
  color: var(--accent);
}

.wimip[data-theme="msdos"] .wimip-advice-console,
.wimip[data-theme="msdos"] .wimip-advice-form fieldset,
.wimip[data-theme="msdos"] .wimip-advice-options label > span,
.wimip[data-theme="msdos"] .wimip-advice-result,
.wimip[data-theme="msdos"] .wimip-advice-measurement-fields input {
  border: 1px dashed var(--accent);
  border-radius: 0;
  background: #000;
  box-shadow: none;
}

.wimip[data-theme="msdos"] .wimip-advice-toolbar {
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--accent);
  color: var(--accent);
}

.wimip[data-theme="msdos"] .wimip-advice-toolbar strong::before {
  content: "STATUS: ";
}

.wimip[data-theme="msdos"] .wimip-advice-lamp,
.wimip[data-theme="msdos"] .wimip-advice-form legend > span {
  border-radius: 0;
}

.wimip[data-theme="msdos"] .wimip-advice-options input:checked + span {
  background: var(--accent);
  color: #000;
}

.wimip[data-theme="msdos"] .wimip-advice-options input:checked + span strong,
.wimip[data-theme="msdos"] .wimip-advice-options input:checked + span small {
  color: #000;
}

@media (max-width: 900px) {
  .wimip .wimip-advice-layout {
    grid-template-columns: 1fr;
  }

  .wimip .wimip-advice-result {
    position: static;
  }
}

@media (max-width: 660px) {
  .wimip .wimip-advice-options--four,
  .wimip .wimip-advice-options--three,
  .wimip .wimip-advice-options--activities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wimip .wimip-advice-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .wimip .wimip-advice-toolbar .muted {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .wimip-advice-template .wimip {
    align-items: flex-start;
    padding: 6px;
  }

  .wimip-advice-template .wimip > * {
    padding: 10px;
  }

  .wimip-advice-template .wimip .wimip-main {
    padding: 8px;
  }

  .wimip-speed-template .wimip-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .wimip-speed-template .wimip-header > .row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }

  .wimip-speed-template .wimip-header > .row .btn {
    justify-content: center;
    text-align: center;
  }

  .wimip .wimip-advice-console {
    padding: 13px;
  }

  .wimip .wimip-advice-toolbar {
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 8px);
    z-index: 4;
    padding: 10px;
    border: 1px solid rgba(127, 127, 127, .3);
    border-radius: 11px;
    background: #11101f;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  }

  .wimip[data-theme="win95"] .wimip-advice-toolbar {
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #000080, #1084d0);
    box-shadow: none;
  }

  .wimip[data-theme="msdos"] .wimip-advice-toolbar {
    border: 1px dashed var(--accent);
    border-radius: 0;
    background: #000;
    box-shadow: none;
  }

  .wimip[data-theme="win95"] .wimip-advice-console {
    padding: 4px;
  }

  .wimip .wimip-advice-form fieldset {
    padding: 13px;
  }

  .wimip .wimip-advice-measurement-fields,
  .wimip .wimip-advice-options--three {
    grid-template-columns: 1fr;
  }

  .wimip .wimip-advice-options--four,
  .wimip .wimip-advice-options--activities {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wimip .wimip-advice-options label > span {
    min-height: 66px;
    padding: 9px 10px;
  }

  /* The reference table becomes scannable cards instead of a wide mini-table. */
  .wimip .wimip-advice-table-wrap {
    overflow: visible;
  }

  .wimip .wimip-advice-table-wrap table,
  .wimip .wimip-advice-table-wrap tbody,
  .wimip .wimip-advice-table-wrap tr,
  .wimip .wimip-advice-table-wrap td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .wimip .wimip-advice-table-wrap thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .wimip .wimip-advice-table-wrap tbody {
    display: grid;
    gap: 10px;
  }

  .wimip .wimip-advice-table-wrap tr {
    padding: 10px 12px;
    border: 1px solid rgba(127, 127, 127, .35);
  }

  .wimip .wimip-advice-table-wrap td {
    display: grid;
    grid-template-columns: minmax(88px, .72fr) minmax(0, 1.28fr);
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid rgba(127, 127, 127, .22);
  }

  .wimip .wimip-advice-table-wrap td:last-child {
    border-bottom: 0;
  }

  .wimip .wimip-advice-table-wrap td::before {
    color: var(--accent);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .wimip .wimip-advice-table-wrap td:nth-child(1)::before { content: "Situatie"; }
  .wimip .wimip-advice-table-wrap td:nth-child(2)::before { content: "Snelheid"; }
  .wimip .wimip-advice-table-wrap td:nth-child(3)::before { content: "Gebruik"; }

  .wimip[data-theme="win95"] .wimip-advice-table-wrap tr {
    border: 2px solid #808080;
    border-right-color: #fff;
    border-bottom-color: #fff;
    background: #efefef;
    box-shadow: inset 1px 1px 0 #000, inset -1px -1px 0 #dfdfdf;
  }

  .wimip .wimip-advice-actions {
    flex-direction: column;
  }

  .wimip .wimip-advice-actions .btn {
    justify-content: center;
    min-height: 44px;
    width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wimip .wimip-advice-options label > span {
    transition: none;
  }
}

@media (max-width: 340px) {
  .wimip .wimip-advice-options--activities {
    grid-template-columns: 1fr;
  }
}
