/* One quiet brand detail, using the existing vector flag and surface tokens. */
@media screen {
  .portal-page :is(.country-flag-button,.footer-country-flag-button,.msi-country-flag-button) {
    display:grid;place-items:center;flex-shrink:0;justify-self:end;
    min-width:44px;min-height:44px;margin:0;padding:4px;
    border:0;border-radius:var(--ks-radius-control);background:transparent;
    color:inherit;cursor:pointer;touch-action:manipulation;
  }
  .portal-page .country-flag-button {grid-column:3}
  .portal-page .country-flag-button .country-flag {grid-column:auto}
  .portal-page :is(.country-flag-button,.footer-country-flag-button,.msi-country-flag-button):hover {background:#a18a6420}
  .portal-page :is(.country-flag-button,.footer-country-flag-button,.msi-country-flag-button):focus-visible {
    outline:2px solid currentColor;outline-offset:3px;
  }
  body.brand-story-open {overflow:hidden}
  .portal-page dialog.brand-story {
    box-sizing:border-box;width:min(540px,calc(100% - 32px));max-width:540px;
    max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);
    margin:auto;padding:0;overflow:auto;overscroll-behavior:contain;
    border:1px solid #b8aa915c;border-radius:var(--ks-radius-sheet);
    background:#f6f3ed;color:#282a26;box-shadow:0 24px 90px #10120e45;
    scrollbar-width:thin;
  }
  .portal-page dialog.brand-story::backdrop {background:#10120e80;backdrop-filter:blur(7px)}
  .portal-page .brand-story-close {
    position:absolute;inset:12px 12px auto auto;z-index:1;
    display:grid;place-items:center;width:44px;height:44px;
    padding:0;border:1px solid #e6dfd173;border-radius:var(--ks-radius-pill);
    color:#282a26;background:#f6f3edeb;cursor:pointer;touch-action:manipulation;
  }
  .portal-page .brand-story-close .icon {width:21px;height:21px}
  .portal-page .brand-story-flag {padding:42px 56px 32px;background:#eeeadf}
  .portal-page .brand-story-flag img {display:block;width:100%;height:auto;box-shadow:0 10px 30px #26344918}
  .portal-page .brand-story-copy {padding:30px 36px 28px}
  .portal-page .brand-story-copy .eyebrow {margin:0 0 12px;font-size:.75rem;line-height:1.4;letter-spacing:.16em;color:#756245}
  .portal-page .brand-story h2 {margin:0 0 18px;font-size:clamp(1.85rem,5vw,2.35rem);line-height:1.14;letter-spacing:-.025em;overflow-wrap:anywhere}
  .portal-page .brand-story h2 em {color:#756245;font-weight:400}
  .portal-page .brand-story p:not(.eyebrow) {margin:0 0 16px;font-size:1.0625rem;line-height:1.6;max-width:none}
  .portal-page .brand-story .brand-story-origin {margin:22px 0 0;padding-top:18px;border-top:1px solid #b9aa902f;font-size:.9375rem;line-height:1.5;color:#645d50}
  .portal-page .brand-story-return {
    display:flex;align-items:center;justify-content:space-between;gap:18px;
    width:100%;min-height:48px;margin:22px 0 0;padding:10px 0;
    border:0;border-radius:var(--ks-radius-control);background:transparent;
    font:500 1rem/1.5 var(--sans);color:#343329;cursor:pointer;touch-action:manipulation;
  }
  .portal-page .brand-story-return .icon {width:20px;height:20px;flex-shrink:0}
  .portal-page :is(.brand-story-close,.brand-story-return):focus-visible {outline:2px solid #756245;outline-offset:4px}
  .portal-page .brand-story-backdrop {position:fixed;inset:0;z-index:160;background:#10120e80;backdrop-filter:blur(7px);touch-action:none}
  .portal-page dialog.brand-story.brand-story-fallback {position:fixed;inset:50% auto auto 50%;transform:translate(-50%,-50%);margin:0;z-index:161}
}
@media screen and (max-width:700px) {
  .portal-page .country-flag-button {grid-column:2}
}
@media screen and (max-width:480px) {
  .portal-page dialog.brand-story {width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}
  .portal-page .brand-story-flag {padding:48px 34px 27px}
  .portal-page .brand-story-copy {padding:24px 24px 18px}
}
@media screen and (forced-colors:active) {
  .portal-page :is(.country-flag-button,.footer-country-flag-button,.msi-country-flag-button,.brand-story-close,.brand-story-return) {border:1px solid ButtonText}
  .portal-page .brand-story-flag img {forced-color-adjust:none}
}
@media print {
  #brand-story,.brand-story-backdrop {display:none!important}
}
