[data-logo] { --company-symbol: url("/assets/atlantic/atlantic-as.svg"); }
[data-logo="keystone"] { --company-symbol: url("/assets/atlantic/keystone.svg"); }
[data-logo="tideline"] { --company-symbol: url("/assets/atlantic/tideline.svg"); }
[data-logo="meridian"] { --company-symbol: url("/assets/atlantic/meridian.svg"); }
[data-logo="exchange"] { --company-symbol: url("/assets/atlantic/exchange.svg"); }
[data-logo="quayside"] { --company-symbol: url("/assets/atlantic/quayside.svg"); }

.atlantic-mark,
.identity-card .identity-mark.atlantic-mark {
  display: inline-block;
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
  border: 0;
  background: currentColor;
  border-radius: 0;
  -webkit-mask: var(--company-symbol) center / contain no-repeat;
  mask: var(--company-symbol) center / contain no-repeat;
}
.brand .brand-words[data-atlantic] { display: grid; align-content: center; justify-items: start; gap: .19rem; }
.brand-words[data-atlantic] strong {
  font: 500 1.375rem/1 Georgia, 'Times New Roman', serif;
  letter-spacing: .095em;
  overflow-wrap: normal;
}
.brand-words[data-atlantic] small {
  font: 650 .65rem/1 'DM Sans', Arial, sans-serif;
  letter-spacing: .25em;
  white-space: nowrap;
  margin: 0;
}
.footer-brand-signature { flex: 0 0 auto; max-width: 100%; }
.footer-identity .brand { gap: .7rem; }
.footer-identity .atlantic-mark { color: #dfc491; }
.footer-identity .brand-words[data-atlantic] small { color: #d9ddca; }
.footer-identity .brand-since { margin: .85rem 0 0; color: #d4c5a8; font: italic .975rem/1.3 Georgia, serif; }
.footer-identity .brand-since[hidden] { display: none; }

.rail .atlantic-mark, .auth-box .atlantic-mark { color: #e5cb99; }
.rail .brand-name, .auth-box .brand-name {
  font: 500 1rem/1.25 Georgia, serif;
  letter-spacing: .065em;
}
.identity-card .identity-mark.atlantic-mark { width: 3.125rem; height: 3.125rem; color: #e5cb99; clip-path: none; }
fieldset.identity-options {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,6.2rem),1fr));
  gap: .55rem;
  padding: 0;
  margin: 0;
  border: 0;
  min-inline-size: 0;
}
.logo-legend, .identity-option > input[type="radio"] {
  width: 1px;
  height: 1px;
  position: absolute;
  clip-path: inset(50%);
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.identity-option {
  display: grid;
  min-height: 5.9rem;
  place-content: center;
  justify-items: center;
  position: relative;
  gap: .55rem;
  padding: .8rem .25rem;
  border: 1px solid #486064;
  border-radius: .45rem;
  background: #17272b;
  color: #dce6df;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 600;
}
.identity-option .atlantic-mark { width: 1.95rem; height: 1.95rem; }
.identity-option:hover { border-color: #d2be91; }
.identity-option:has(input:checked) { color: #f4ddb1; border-color: #ddc28b; background: #324040; box-shadow: inset 0 0 0 1px #ddc28b; }
.identity-option:has(input:focus-visible) { outline: 3px solid #fff1d1; outline-offset: 2px; }
@media (min-width:701px) and (max-width:950px) {
  .footer-identity { flex-wrap:wrap; }
}
@media (max-width: 700px) {
  .footer-identity .brand-since { margin-block: .4rem .15rem; }
}
/* Keep the gold mark legible against the light masthead on every brand choice. */
.masthead .brand {
  --brand-type:clamp(1.42rem,1.65vw,1.78rem);
  gap:clamp(.58rem,.9vw,.88rem);
  min-width:0;
  padding-block:.3rem;
  color:#15382e;
}
.masthead .atlantic-mark {
  position:relative;
  width:2.85rem;
  height:2.85rem;
  background:#10281f;
  color:#dfc491;
  -webkit-mask:none;
  mask:none;
  clip-path:polygon(12% 0,88% 0,100% 12%,100% 88%,88% 100%,12% 100%,0 88%,0 12%);
}
.masthead .atlantic-mark::before {
  content:"";
  position:absolute;
  inset:7%;
  background:currentColor;
  -webkit-mask:var(--company-symbol) center / contain no-repeat;
  mask:var(--company-symbol) center / contain no-repeat;
}
.masthead .brand .brand-words {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  justify-items:stretch;
  align-content:center;
  gap:.27rem;
}
.masthead .brand .brand-words strong {
  font:500 var(--brand-type)/1.04 Georgia,'Times New Roman',serif;
  font-variant-caps:small-caps;
  letter-spacing:.075em;
  text-wrap:balance;
  overflow-wrap:anywhere;
}
.masthead .brand .brand-words small {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.55em;
  margin:0;
  color:#645237;
  font:650 .65rem/1.15 'DM Sans',Arial,sans-serif;
  letter-spacing:.21em;
  white-space:normal;
  overflow-wrap:anywhere;
}
.masthead .brand-words small::before,.masthead .brand-words small::after {
  content:"";
  flex:1 1 0;
  height:1px;
  background:#baa575;
}
.masthead .brand-words small:empty { display:none; }
.masthead .brand .brand-words[data-long-name] strong {
  font-size:min(var(--brand-type),1.25rem);
  letter-spacing:.022em;
}
@media (min-width:1181px) {
  .mast-inner > .brand { flex:0 1 auto; }
}
@media (min-width:1181px) and (max-width:1320px) {
  .masthead .brand { --brand-type:1.36rem; gap:.58rem; }
  .masthead .atlantic-mark { width:2.52rem; height:2.52rem; }
}
@media (max-width:420px) {
  .masthead .brand { --brand-type:1.19rem; gap:.45rem; }
  .masthead .atlantic-mark { width:2.32rem; height:2.32rem; }
  .masthead .brand .brand-words { gap:.2rem; }
  .masthead .brand .brand-words small { font-size:.58rem; letter-spacing:.17em; }
}
@media (forced-colors: active) {
  .atlantic-mark, .identity-card .identity-mark.atlantic-mark { background-color: CanvasText; forced-color-adjust: none; }
  .masthead .atlantic-mark { background:Canvas; color:CanvasText; }
}
@media (min-width:981px) and (max-width:1090px) {
  .mast-inner { width:calc(100% - 2rem); gap:.65rem; }
  .mast-inner .primary-nav { gap:.65rem; }
  .mast-inner .mast-actions { gap:.5rem; }
}
@media (max-width:350px) {
  .mast-inner { width:calc(100% - 1.25rem); }
}
