* { box-sizing: border-box; }
html, body { margin: 0; color: #292639; background: #f6f4f8; font: 16px/1.45 Arial, sans-serif; }
.arch-portal {
  position: relative;
  min-height: max(39rem, 100svh);
  background: #f6f4f8 url('/v4-arch.webp') center center / cover no-repeat;
}
header { position: absolute; z-index: 1; inset: 0 5% auto; padding-top: clamp(1.25rem, 3.8vh, 2.5rem); display: flex; align-items: center; justify-content: space-between; }
.brand-entry { display:flex; align-items:center; gap:1.25rem; flex-wrap:wrap; }
.brand { display:flex; align-items:center; gap:.7rem; color:#292639; text-decoration:none; }
.brand-name { font-size:clamp(1.5rem,2.5vw,2.25rem); font-weight:700; line-height:1.2; }
.brand-mark { color:#7165ab; font-size:2.5rem; font-weight:700; line-height:1; }
.member-login { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:.65rem 1.1rem; border:1px solid #b79a4b; border-radius:.7rem; background:#203f4b; color:#fff; text-decoration:none; font-size:1rem; font-weight:700; }
.member-login:hover { background:#2c5361; }
.member-login:focus-visible,.brand:focus-visible { outline:3px solid #7963c9; outline-offset:4px; }
select, button { font: inherit; }
select { min-height: 44px; padding: .45rem .85rem; border-radius: 1.5rem; border: 1px solid #dcd5e6; background: #fffc; color: #514966; }
main { display: flex; flex-direction: column; align-items: center; justify-content: space-between; min-height: inherit; padding: max(6.2rem, 13vh) 1rem max(.8rem, env(safe-area-inset-bottom)); text-align: center; }
.caption h1 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.18; font-weight: 600; letter-spacing: -.04em; }
.caption p { margin: 1.15rem 0 0; font-size: 1rem; color: #635c70; }
.actions { width: min(17.5rem, 85vw); margin-top: 8rem; }
.button { display: block; padding: .95rem 1.25rem; border-radius: .94rem; background: #8370d5; color: white; font: 600 1.19rem/1.45 Arial, sans-serif; text-decoration: none; box-shadow: 0 .5rem 1.5rem #7660ba26; }
.button:hover { background: #725fc6; }
.actions p { margin: .72rem 0 0; color: #61596b; font-size: .875rem; }
.actions p a { display: inline-block; padding: .4rem; color: #634f9f; font-weight: 600; text-decoration: none; }
.with-education { gap: clamp(1rem, 3vh, 2rem); padding-bottom: max(1.5rem, env(safe-area-inset-bottom)); }
.with-education .actions { margin-top: 0; }
.education-card { width: min(100%, 34rem); padding: clamp(1.25rem, 4vw, 2.25rem); border: 2px solid #dfbd66; border-radius: 1rem; background: linear-gradient(150deg, #203476, #131d49); color: #fff9e8; text-align: left; overflow-wrap: anywhere; word-break: keep-all; }
.education-card .education-label { margin: 0 0 .65rem; color: #f1d686; font-weight: 700; letter-spacing: .08em; }
.education-card h2 { margin: 0; font-size: clamp(1.65rem, 4.5vw, 2.4rem); line-height: 1.28; }
.education-card h2 strong { color: #f1d686; }
.education-card p { margin: .85rem 0 0; color: #f0f3ff; font-size: 1rem; }
.education-highlights { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; list-style: none; margin: 1rem 0 0; padding: .7rem 0 0; border-top: 1px solid #8294c8; color: #f0f3ff; }
.education-card .education-preview-note { font-size: .875rem; color: #f1d686; }
a:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid #49308d; outline-offset: 4px; }
@media (max-width: 600px) {
  header { inset-inline: 6%; }
  main { padding-top: max(6.5rem, 15svh); }
  .arch-portal { min-height: max(32rem, 100svh); }
}
@media (max-height: 600px) and (min-aspect-ratio: 1/1) {
  .arch-portal { min-height: max(23rem, 100svh); }
  main { padding-top: 4.5rem; }
  .caption p { margin-top: .4rem; }
  .actions { margin-top: 2.5rem; }
}

.home-ad { position:absolute; left:3%; top:26%; width:29%; height:61%; border:1px solid #b39956; border-radius:12px; background:#0b0b0f; }
@media (min-width:901px) {
  main:has(.home-ad) .education-card { position:absolute; right:3%; width:29%; top:30%; }
}
@media (max-width:900px) {
  main:has(.home-ad) { gap:1.25rem; }
  .home-ad { position:static; width:min(100%,38rem); height:clamp(13rem,31svh,22rem); margin-top:12svh; }
  main:has(.home-ad) .actions { margin-top:0; }
}

.market-preview .market-label { display:inline-block; margin-top:.7rem; padding:.28rem .75rem; border-radius:1rem; background:#fffdf5; color:#51436e; font-size:.875rem; }
.market-adverts { display:grid; gap:1rem; width:min(100%,45rem); text-align:start; }
.market-card { min-width:0; padding:1.05rem 1.25rem; color:#f4f2ff; background:linear-gradient(145deg,#203476,#131d49); border:1px solid #bd9c54; border-radius:.85rem; box-shadow:0 .35rem 1.1rem #14193922; overflow-wrap:anywhere; }
.market-card h2 { margin:0; color:#fff9ed; font-size:1.22rem; line-height:1.32; }
.market-card p { margin:.45rem 0 0; line-height:1.46; }
.market-icon { display:block; margin-bottom:.25rem; color:#f1d686; font-size:1.3rem; line-height:1; }
@media (width >= 1100px) and (height >= 730px) and (aspect-ratio >= 4/3) {
  .market-adverts { position:absolute; z-index:1; inset:34% 4% auto; width:auto; grid-template-columns:repeat(2,minmax(0,min(21rem,26vw))); justify-content:space-between; }
  .market-adverts > :nth-child(1) { grid-area:1 / 1; }
  .market-adverts > :nth-child(2) { grid-area:2 / 1; }
  .market-adverts > :nth-child(3) { grid-area:1 / 2; }
  .market-adverts > :nth-child(4) { grid-area:2 / 2; }
  .market-preview .actions { position:relative; z-index:2; }
}
@media (width < 1100px), (height < 730px), (aspect-ratio < 4/3) {
  .market-preview { background:#f6f4f8; --market-hero:clamp(29rem,82svh,44rem); }
  .market-preview::before { content:""; position:absolute; inset:0 0 auto; height:var(--market-hero); background:#f6f4f8 url('/v4-arch.webp') center center / cover no-repeat; pointer-events:none; }
  .market-preview main { position:relative; z-index:0; display:grid; width:100%; min-height:0; grid-template-rows:minmax(calc(var(--market-hero) - 11rem),auto) auto auto; justify-items:center; justify-content:stretch; align-items:start; padding:6.5rem 1rem 1.5rem; }
  .market-preview .actions { margin:0; }
  .market-adverts { margin-top:2rem; padding-top:1rem; }
}
@media (width >= 600px) and ((width < 1100px) or (height < 730px) or (aspect-ratio < 4/3)) {
  .market-adverts { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

.market-ad-guide-teasers { align-items:start; }
.market-ad-teaser { display:grid; width:100%; gap:.6rem; text-align:start; cursor:pointer; }
.market-ad-teaser:hover { border-color:#ffe3a0; box-shadow:0 .5rem 1.2rem #14193944; }
.market-ad-business { background:#0b0b0f; }
.market-ad-training { background:linear-gradient(160deg,#1b2f7a,#121e52); }
.market-ad-kicker { color:#f4d98c; font-size:.875rem; letter-spacing:.05em; }
.market-ad-heading { color:#fff5e8; font-family:'Noto Serif KR',Georgia,serif; font-size:clamp(1.2rem,2vw,1.85rem); font-weight:700; line-height:1.25; }
.market-ad-gold { color:#e2c277; font-size:1rem; line-height:1.45; font-weight:700; }
.market-ad-open-label { justify-self:start; border:1px solid #e2c277; border-radius:.4rem; color:#fff1c6; padding:.25rem .6rem; }
.market-ad-dialog { width:min(70rem,calc(100% - 1rem)); max-width:none; max-height:calc(100dvh - 1rem); padding:0; border:1px solid #b99954; border-radius:.9rem; background:#0b0b0f; color:#f3eee2; }
.market-ad-dialog::backdrop { background:#101121b8; }
.market-ad-deck { display:grid; grid-template-rows:auto minmax(0,1fr) auto; height:min(50rem,calc(100dvh - 1.25rem)); }
.market-ad-toolbar { display:flex; align-items:center; justify-content:space-between; gap:.75rem; padding:.65rem clamp(.65rem,3vw,1.4rem); background:#171729; border-block-end:1px solid #4a4259; }
.market-ad-toolbar h2 { font-size:1.15rem; margin:0; }
.market-ad-toolbar p { font-size:.875rem; color:#f0d68d; margin:.2rem 0 0; }
.market-ad-toolbar button { min-height:44px; padding:.45rem .85rem; border:1px solid #c9a24b; border-radius:.4rem; color:#fff1c6; background:#202a55; cursor:pointer; }
.market-ad-toolbar button:disabled { opacity:.38; cursor:default; }
.market-ad-dialog button:focus-visible, .market-ad-scroll:focus-visible { outline:3px solid #f1d686; outline-offset:-3px; }
.market-ad-scroll { min-height:0; overflow:auto; overflow-wrap:anywhere; overscroll-behavior:contain; }
.market-ad-scroll section { box-sizing:border-box; }
.market-ad-scroll #top { padding:clamp(1rem,3vw,2.5rem)!important; gap:clamp(1.2rem,3vw,2.5rem)!important; align-items:start!important; }
.market-ad-scroll #top > div:nth-child(2) { padding:clamp(1rem,2.5vw,2rem)!important; gap:.8rem!important; }
.market-ad-scroll #top h1, .market-ad-scroll #top > div:nth-child(2) > div[style*="font-weight: 700"] { font-size:clamp(1.9rem,3.2vw,3.25rem)!important; line-height:1.18!important; word-break:keep-all; }
.market-ad-scroll #top p[style*="color: #E2C277"] { font-size:1.125rem!important; line-height:1.5!important; }
.market-ad-scroll [data-ad-jump] { background:#171729; cursor:pointer; }
.market-ad-scroll [data-ad-panel][hidden] { display:none; }
.market-ad-navigation { border-block-start:1px solid #4a4259; border-block-end:0; }
.market-ad-navigation [data-ad-position] { color:#f1d686; font-variant-numeric:tabular-nums; }
@media (width >= 1100px) and (height >= 730px) and (aspect-ratio >= 4/3) {
  .market-ad-guide-teasers > .market-ad-training { grid-area:1 / 2; }
  .market-ad-guide-teasers { inset-block-start:31%; }
}
@media (max-width:760px) {
  .market-ad-scroll #top, .market-ad-scroll div[style*="grid-template-columns"] { grid-template-columns:minmax(0,1fr)!important; }
  .market-ad-scroll #top { padding:1.3rem!important; gap:1.3rem!important; }
  .market-ad-scroll section[id] > div { max-width:100%; }
  .market-ad-scroll section:not(#top) { padding:1.3rem!important; }
  .market-ad-scroll section:not(#top) > div { padding:1rem 0!important; }
}

/* Owner-requested landing typography only; existing bundled font, no external font calls. */
@font-face { font-family:"RC Landing Sans"; src:url('/fonts/GF-notosanskr-variable.woff') format('woff'); font-weight:100 900; font-style:normal; font-display:swap; }
.root-ad-portal { font-family:"RC Landing Sans","Noto Sans",system-ui,sans-serif; font-weight:400; line-height:1.5; }
.root-ad-portal .brand-name, .root-ad-portal .member-login { font-weight:600; }
.root-ad-portal .member-login { min-height:40px; height:40px; padding-block:0; }
.root-ad-portal .root-ad-sign { display:inline-block; max-width:100%; padding:.55rem .8rem; border:1px solid #e8c872; border-radius:.65rem; background:linear-gradient(135deg,#41325d,#252542); color:#fff4d9; box-shadow:inset 0 1px 0 #ffffff24,0 .3rem .8rem #30274626; }
.root-ad-portal .caption h1 { font-size:clamp(1rem,1.5vw,1.5rem); font-weight:600; line-height:1.4; letter-spacing:-.02em; }
.root-ad-portal .caption .root-ad-sign-support { margin:.25rem 0 0; font-size:clamp(.875rem,1vw,1rem); font-weight:400; line-height:1.5; color:#eee5fa; }
.root-ad-portal:lang(en) .caption h1 { white-space:nowrap; }
.root-ad-portal .caption p { font-size:1rem; line-height:1.5; }
.root-ad-portal .button { font-family:inherit; font-size:1rem; font-weight:600; }
.root-ad-card .root-ad-notice { margin:.65rem 0 0; }
.root-ad-overview { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; width:min(100%,60rem); padding:0; text-align:start; }
.root-ad-group { display:grid; align-content:start; align-self:start; min-width:0; gap:.7rem; }
.root-ad-card { position:relative; min-width:0; padding:.9rem 1.05rem; border-radius:.75rem; border:1px solid #b89a63; background:#161c36; color:#f4f0fb; box-shadow:0 .2rem .7rem #17132a2b; overflow-wrap:anywhere; }
.root-ad-card h2 { margin:0 0 .4rem; font-size:1.25rem; font-weight:600; line-height:1.4; letter-spacing:-.01em; color:#e8c872; }
.root-ad-card p, .root-ad-highlights { margin:0; font-size:1rem; line-height:1.5; }
.root-ad-card.root-ad-assistant { background:#2c2444; border:2px solid #e2c277; }
.root-ad-assistant h2 { color:#e8c872; font-size:clamp(1.25rem,1.5vw,1.375rem); }
.root-ad-highlights { padding-inline-start:1.2rem; margin:.55rem 0; color:#fff4d9; }
.root-ad-education { background:linear-gradient(160deg,#1b2f7a,#121e52); }
.root-ad-education .root-ad-kicker { color:#e8c872; margin-bottom:.25rem; font-size:.9rem; font-weight:650; }
.root-ad-original-education .root-ad-education-notice { color:#f7e9bf; font-size:.875rem; margin:0 0 .45rem; }
.root-ad-original-education .root-ad-education-gold { color:#e8c872; margin:.35rem 0 0; }
.root-ad-original-education ul { display:flex; gap:.25rem .65rem; flex-wrap:wrap; margin:.4rem 0 0; padding:0; list-style:none; }
.root-ad-sheet-body .root-ad-original-education h2 { margin:.45rem 0; color:#ffe0a0; }
.root-ad-card .root-ad-condition { color:#e8c872; font-size:.875rem; }
.root-ad-more { min-height:42px; margin-top:.65rem; padding:.35rem .7rem; background:#ffffff12; border:1px solid #dab86c; border-radius:.4rem; color:#fff4d9; font-size:.95rem; font-weight:650; cursor:pointer; }
.root-ad-more::after { content:""; position:absolute; inset:0; border-radius:.75rem; }
.root-ad-card:focus-within { outline:3px solid #ffe3a4; outline-offset:2px; }
.root-ad-portal .actions { margin-top:1rem; }
.root-ad-sheet { width:min(55rem,calc(100% - 1.5rem)); max-height:calc(100% - 1.5rem); max-height:calc(100dvh - 1.5rem); padding:0; border:1px solid #b89a63; border-radius:.9rem; background:#171f36; color:#f4f0fb; overflow:hidden; }
.root-ad-sheet[open] { display:flex; flex-direction:column; }
.root-ad-sheet::backdrop { background:#110e28b8; }
.root-ad-sheet-head { display:flex; align-items:center; justify-content:space-between; gap:.75rem; flex:none; padding:.9rem 1.2rem; border-bottom:1px solid #ffffff35; }
.root-ad-sheet-head h2 { margin:0; color:#ffe0a0; font-size:clamp(1.22rem,3vw,1.8rem); line-height:1.2; }
.root-ad-sheet-head button { min-height:42px; padding:.35rem .75rem; background:#ffffff12; color:#fff4d9; border:1px solid #dab86c; border-radius:.4rem; font-size:1rem; white-space:nowrap; cursor:pointer; }
.root-ad-sheet-body { min-height:0; overflow:auto; padding:1rem 1.2rem 1.2rem; overscroll-behavior:contain; line-height:1.48; }
.root-ad-sheet-body > p { margin:0 0 .9rem; }
.root-ad-sheet-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.8rem 1.5rem; }
.root-ad-sheet-sections section { border-top:1px solid #ffffff35; padding-top:.65rem; }
.root-ad-sheet-sections h3 { font-size:1.085rem; color:#ffe0a0; margin:0 0 .25rem; }
.root-ad-sheet-sections p { margin:0; }
.root-ad-sheet-sections .root-ad-condition { margin-top:.35rem; color:#f1d686; font-size:.9rem; }
@media (width >= 1100px) and (aspect-ratio >= 4/3) {
  .root-ad-portal { min-height:max(39rem,100svh); background:#f6f4f8 url('/v4-arch.webp') center center / cover no-repeat; }
  .root-ad-portal::before { content:none; }
  .root-ad-portal main { display:flex; align-items:center; justify-content:space-between; min-height:inherit; padding:max(6.2rem,13vh) 1rem max(.8rem,env(safe-area-inset-bottom)); }
  .root-ad-portal .caption { width:min(33vw,34rem); transform:translateY(-20px); }
  .root-ad-overview { position:absolute; z-index:1; inset:29% 3% auto; width:auto; grid-template-columns:repeat(2,minmax(0,min(29vw,34rem))); justify-content:space-between; }
}
@media (width >= 1100px) and (height < 840px) and (aspect-ratio >= 4/3) {
  .root-ad-overview { inset-block-start:21%; }
  .root-ad-group { gap:.55rem; }
  .root-ad-card { padding:.7rem .8rem; }
}
@media (width < 1100px), (aspect-ratio < 4/3) {
  .root-ad-portal main { grid-template-rows:minmax(calc(var(--market-hero) - 7rem),auto) auto auto; }
  .root-ad-overview { gap:.75rem; }
}
@media (max-width:760px) {
  .root-ad-overview { grid-template-columns:minmax(0,1fr); }
}
@media (max-width:565px) {
  .root-ad-sheet-sections { grid-template-columns:minmax(0,1fr); }
}

/* Keep the complete company name and member entry together on narrow screens. */
@media (max-width:850px) {
 .arch-portal header { position:relative; inset:auto; padding:1rem; gap:1rem; align-items:flex-start; flex-wrap:wrap; }
 .brand-entry { gap:.75rem; }
 .brand-name { font-size:clamp(1.35rem,4.5vw,1.85rem); }
 .brand-mark { font-size:2rem; }
 .arch-portal main { padding-top:1.5rem; }
}
