/* Brand-specific, semantic memory maps. All connector lines are decorative;
   the full relationships are expressed by nearby text and the figcaption. */
.mfr-brand-visual--memory {
  --mem-ink: #17304b;
  --mem-muted: #496278;
  --mem-line: #c7dce9;
  --mem-accent: #177caa;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 28px;
  padding: clamp(20px, 2.7vw, 32px);
  border: 1px solid var(--mem-line);
  border-radius: 16px;
  background: linear-gradient(150deg, #f8fcff 0%, #eef6fa 100%);
  color: var(--mem-ink);
  box-shadow: 0 15px 42px rgba(20, 51, 78, .055);
  font-family: var(--lim-font-discovery, Montserrat, "Noto Sans SC", Arial, sans-serif);
}
.mfr-brand-visual--memory *,
.mfr-brand-visual--memory *::before,
.mfr-brand-visual--memory *::after { box-sizing: border-box; }
.mfr-brand-visual--memory .mfr-memory-intro { margin-bottom: 22px; }
.mfr-brand-visual--memory .mfr-memory-eyebrow {
  margin: 0 0 7px;
  color: var(--mem-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  line-height: 1.4;
}
.mfr-brand-visual--memory .mfr-memory-intro h3 {
  margin: 0;
  color: var(--mem-ink);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 760;
  line-height: 1.28;
  letter-spacing: -.025em;
}
.mfr-brand-visual--memory figcaption {
  margin-top: 19px;
  padding-top: 15px;
  border-top: 1px solid var(--mem-line);
  color: var(--mem-muted);
  font-size: 12px;
  line-height: 1.65;
}
.mfr-brand-visual--memory b,
.mfr-brand-visual--memory strong { font-weight: 780; }
.mfr-brand-visual--memory small { display: block; font-size: 12px; line-height: 1.45; }

/* Micron: two data lifetimes; the inset package gives HBM its actual context. */
.mfr-brand-visual--micron { --mem-accent: #17699f; }
.mfr-micron-map { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); border-top: 2px solid #286f99; }
.mfr-micron-map > section { min-width: 0; padding-top: 18px; }
.mfr-micron-active { padding-right: clamp(18px, 2.5vw, 32px); border-right: 1px solid var(--mem-line); }
.mfr-micron-retained { padding-left: clamp(18px, 2.5vw, 32px); }
.mfr-memory-lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 19px; }
.mfr-memory-lane-head span { color: var(--mem-accent); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.mfr-memory-lane-head strong { color: #364e66; font-size: 13px; }
.mfr-micron-system,
.mfr-micron-package-pair,
.mfr-micron-storage { display: flex; align-items: center; min-width: 0; }
.mfr-memory-host,
.mfr-memory-device,
.mfr-micron-accelerator,
.mfr-micron-hbm {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 68px;
  padding: 11px 13px;
  border: 1px solid #b6ccda;
  background: #fff;
  color: #203a52;
  font-size: 12px;
  font-weight: 690;
  line-height: 1.35;
}
.mfr-micron-system .mfr-memory-host { flex: 0 1 45%; }
.mfr-micron-system .mfr-memory-device { flex: 0 1 46%; border-left: 3px solid #2b84b1; }
.mfr-micron-system .mfr-memory-device b { font-size: 15px; letter-spacing: .01em; }
.mfr-micron-system .mfr-memory-device small { margin-top: 3px; color: var(--mem-muted); font-weight: 500; }
.mfr-memory-link { flex: 1 1 24px; height: 1px; min-width: 20px; background: #5c8faa; }
.mfr-micron-package {
  margin-top: 18px;
  padding: 13px 15px 15px;
  border: 1px dashed #69a1bb;
  background: #e3f2f7;
}
.mfr-micron-package-label { display: block; margin-bottom: 10px; color: #2a6d8c; font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.mfr-micron-accelerator { flex: 0 1 51%; border-color: #6a95ad; background: #173d5a; color: #fff; }
.mfr-micron-hbm { flex: 0 1 42%; border: 1px solid #3c8ab1; background: #c5e9f4; }
.mfr-micron-hbm b { font-size: 18px; letter-spacing: .07em; }
.mfr-micron-hbm small { margin-top: 2px; color: #315a70; font-weight: 550; }
.mfr-micron-storage { align-items: stretch; min-height: 154px; }
.mfr-micron-storage > .mfr-memory-host { align-self: center; flex: 0 0 22%; min-height: 64px; padding-inline: 9px; }
.mfr-micron-storage-branches { position: relative; flex: 0 0 38px; align-self: stretch; }
.mfr-micron-storage-branches::before { content: ""; position: absolute; left: 0; right: 13px; top: 50%; border-top: 1px solid #5c8faa; }
.mfr-micron-storage-branches::after { content: ""; position: absolute; right: 13px; top: calc(25% - 4px); bottom: calc(25% - 4px); border-right: 1px solid #5c8faa; }
.mfr-micron-storage-options { display: grid; align-content: space-between; flex: 1 1 auto; min-width: 0; gap: 12px; }
.mfr-micron-storage-options > div { position: relative; min-height: 70px; padding: 12px 13px; border-left: 3px solid #58a0ad; background: #e9f4f4; }
.mfr-micron-storage-options > div::before { content: ""; position: absolute; left: -13px; top: 50%; width: 10px; border-top: 1px solid #5c8faa; }
.mfr-micron-storage-options b { display: block; font-size: 13px; }
.mfr-micron-storage-options small { margin-top: 4px; color: #435f6b; }

/* Winbond: three ruled rows attach to one illustrative embedded host. */
.mfr-brand-visual--winbond { --mem-accent: #146c90; background: linear-gradient(145deg, #f8fcfd, #eff7f7); }
.mfr-winbond-map { display: grid; grid-template-columns: minmax(170px, .27fr) 58px minmax(0, .73fr); align-items: center; border-top: 2px solid #2382a5; }
.mfr-winbond-host { display: flex; flex-direction: column; justify-content: center; min-height: 183px; padding: 20px; border-left: 4px solid #2e8aaa; background: #17445f; color: #fff; }
.mfr-winbond-host span { color: #a9dbe9; font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.4; }
.mfr-winbond-host strong { margin-top: 10px; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.25; }
.mfr-winbond-host small { margin-top: 12px; color: #d7eaf0; }
.mfr-winbond-spine { position: relative; align-self: stretch; }
.mfr-winbond-spine::before { content: ""; position: absolute; left: 0; width: 29px; top: 50%; border-top: 1px solid #699cb0; }
.mfr-winbond-spine::after { content: ""; position: absolute; left: 29px; top: 17%; bottom: 17%; border-left: 1px solid #699cb0; }
.mfr-winbond-roles { display: grid; gap: 0; margin: 0; padding: 15px 0; }
.mfr-winbond-role { position: relative; display: grid; grid-template-columns: minmax(115px, .44fr) minmax(0, .56fr); align-items: center; gap: 15px; min-height: 82px; padding: 13px 5px 13px 17px; border-bottom: 1px solid #d0e1e8; }
.mfr-winbond-role:last-child { border-bottom: 0; }
.mfr-winbond-role::before { content: ""; position: absolute; width: 29px; left: -29px; top: 50%; border-top: 1px solid #699cb0; }
.mfr-winbond-role::after { content: ""; position: absolute; width: 7px; height: 7px; left: -3px; top: calc(50% - 3px); border-radius: 50%; background: #2981a0; }
.mfr-winbond-role--dram::after { background: #4d8a76; }
.mfr-winbond-role--nand::after { background: #947844; }
.mfr-winbond-role dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.mfr-winbond-role dt b { font-size: 15px; line-height: 1.3; }
.mfr-winbond-role dt span { color: #477184; font-size: 11px; font-weight: 760; letter-spacing: .05em; }
.mfr-winbond-role dd { margin: 0; color: #435d6e; font-size: 13px; line-height: 1.5; }

/* GigaDevice: a controller trunk splits into two optional flash functions. */
.mfr-brand-visual--gigadevice { --mem-accent: #ad5d26; --mem-line: #e3d5c8; background: linear-gradient(145deg, #fffdf9, #f8f4ee); }
.mfr-gd-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 6%; border-top: 2px solid #c98545; }
.mfr-gd-control { display: flex; flex-direction: column; align-items: center; justify-content: center; grid-column: 1 / -1; justify-self: center; width: min(280px, 66%); min-height: 113px; padding: 16px; background: #533d31; color: #fff; text-align: center; }
.mfr-gd-control span { color: #f1c89f; font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.mfr-gd-control strong { margin: 4px 0 1px; font-size: 31px; line-height: 1.15; letter-spacing: .025em; }
.mfr-gd-control small { color: #f3e4d5; }
.mfr-gd-branches { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-column: 1 / -1; height: 34px; }
.mfr-gd-branches::before { content: ""; position: absolute; left: 50%; top: 0; height: 15px; border-left: 1px solid #bc885c; }
.mfr-gd-branches::after { content: ""; position: absolute; left: 25%; right: 25%; top: 14px; border-top: 1px solid #bc885c; }
.mfr-gd-branches span { position: relative; }
.mfr-gd-branches span::after { content: ""; position: absolute; top: 14px; bottom: 0; left: 50%; border-left: 1px solid #bc885c; }
.mfr-gd-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-column: 1 / -1; gap: clamp(16px, 3vw, 38px); margin: 0; }
.mfr-gd-option { min-width: 0; padding: 15px 17px 12px; border-top: 3px solid #c98244; background: rgba(255, 255, 255, .68); }
.mfr-gd-option--nand { border-top-color: #4a9286; }
.mfr-gd-option dt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 13px; }
.mfr-gd-option dt span { color: #9b5525; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.mfr-gd-option--nand dt span { color: #327c73; }
.mfr-gd-option dt b { color: #233f50; font-size: 17px; }
.mfr-gd-option dd { margin: 8px 0 0; color: #576777; font-size: 13px; line-height: 1.5; }

@media (max-width: 760px) {
  .mfr-micron-map { grid-template-columns: minmax(0, 1fr); }
  .mfr-micron-active { padding-right: 0; padding-bottom: 22px; border-right: 0; border-bottom: 1px solid var(--mem-line); }
  .mfr-micron-retained { padding-left: 0; }
  .mfr-micron-storage { min-height: 0; }
  .mfr-winbond-map { grid-template-columns: minmax(145px, .3fr) 45px minmax(0, .7fr); }
  .mfr-winbond-spine::after { left: 22px; }
  .mfr-winbond-spine::before { width: 22px; }
  .mfr-winbond-role::before { width: 22px; left: -22px; }
}
@media (max-width: 560px) {
  .mfr-brand-visual--memory { margin-bottom: 24px; padding: 18px 17px; border-radius: 12px; }
  .mfr-brand-visual--memory .mfr-memory-intro { margin-bottom: 17px; }
  .mfr-brand-visual--memory .mfr-memory-intro h3 { font-size: 20px; }
  .mfr-brand-visual--memory figcaption { font-size: 12px; }
  .mfr-memory-lane-head { margin-bottom: 13px; }
  .mfr-memory-lane-head strong { font-size: 12px; }
  .mfr-micron-system .mfr-memory-host,
  .mfr-micron-system .mfr-memory-device,
  .mfr-micron-accelerator,
  .mfr-micron-hbm { padding: 9px; font-size: 11px; }
  .mfr-memory-link { min-width: 12px; }
  .mfr-micron-package { padding: 11px; }
  .mfr-micron-storage > .mfr-memory-host { flex-basis: 21%; }
  .mfr-micron-storage-branches { flex-basis: 30px; }
  .mfr-micron-storage-branches::before { right: 10px; }
  .mfr-micron-storage-branches::after { right: 10px; }
  .mfr-micron-storage-options > div { padding: 10px; }
  .mfr-micron-storage-options > div::before { left: -10px; width: 7px; }
  .mfr-winbond-map { grid-template-columns: 22px minmax(0, 1fr); }
  .mfr-winbond-host { grid-column: 1 / -1; min-height: 0; padding: 15px 17px; }
  .mfr-winbond-host strong { margin-top: 5px; font-size: 19px; }
  .mfr-winbond-host small { margin-top: 5px; }
  .mfr-winbond-spine { grid-column: 1; grid-row: 2; }
  .mfr-winbond-spine::before { left: 10px; top: 0; bottom: auto; width: 0; height: 100%; border-top: 0; border-left: 1px solid #699cb0; }
  .mfr-winbond-spine::after { display: none; }
  .mfr-winbond-roles { grid-column: 2; grid-row: 2; padding: 6px 0; }
  .mfr-winbond-role { grid-template-columns: minmax(0, 1fr); gap: 4px; min-height: 71px; padding: 10px 3px 10px 12px; }
  .mfr-winbond-role::before { left: -12px; width: 12px; }
  .mfr-winbond-role::after { left: 0; }
  .mfr-winbond-role dt b { font-size: 14px; }
  .mfr-winbond-role dd { font-size: 12px; }
  .mfr-gd-map { padding-inline: 0; }
  .mfr-gd-control { width: min(250px, 75%); min-height: 96px; }
  .mfr-gd-control strong { font-size: 26px; }
  .mfr-gd-branches { height: 29px; }
  .mfr-gd-options { gap: 11px; }
  .mfr-gd-option { padding: 11px 9px 10px; }
  .mfr-gd-option dt { display: block; }
  .mfr-gd-option dt span { display: block; font-size: 11px; }
  .mfr-gd-option dt b { display: block; margin-top: 3px; font-size: 15px; }
  .mfr-gd-option dd { font-size: 12px; }
}
