/* AEEC UNAIR — presentation only. No changes to the application logic. */
:root {
  color-scheme: light;
  --navy: #073a67;
  --navy-deep: #062d52;
  --blue: #085b9c;
  --gold: #ffcd34;
  --gold-deep: #efb91c;
  --ink: #173553;
  --muted: #6f8195;
  --border: #dce6ef;
  --surface: #f3f6fa;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface); color: var(--ink); font-size: 14px; line-height: 1.65; }
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 503px; background: radial-gradient(ellipse at 24% 90%, #0b5788 0, transparent 53%), linear-gradient(110deg, #07355e, #084a7e 75%, #0c578d); border-top: 5px solid var(--gold); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
a { color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }

/* University identity */
.container { max-width: 1180px; margin: 0 auto; padding: 0 40px 24px; }
.site-header { min-height: 128px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid #ffffff20; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 300px; height: auto; max-width: 100%; object-fit: contain; }
.product-name { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 18px; letter-spacing: -.45px; font-weight: 400; line-height: 1.5; }
.product-name strong { font-weight: 700; }
.product-name strong > span { color: var(--gold); }
.product-name small { display: block; color: #afc9df; font-size: 8px; letter-spacing: 1.85px; font-weight: 500; margin-top: 2px; }
.product-mark { width: 37px; height: 37px; border: 1px solid #ffce3460; color: var(--gold); border-radius: 11px; display: grid; place-items: center; font-size: 26px; line-height: 1; }

/* Main layout */
.main-layout { display: grid; grid-template-columns: 1fr 1.04fr; gap: 85px; align-items: start; padding: 48px 0 38px; }
.intro { position: relative; padding-top: 22px; min-width: 0; }
.eyebrow { color: #dae9f6; font-size: 8px; letter-spacing: 1.75px; font-weight: 650; display: flex; gap: 8px; align-items: center; }
.eyebrow > span { height: 5px; width: 5px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }
.intro h1 { color: white; font-size: 59px; line-height: 1.14; letter-spacing: -2.7px; font-weight: 700; margin-top: 22px; }
.intro h1 span { color: var(--gold); }
.intro > p { color: #c1d7e9; font-size: 13px; font-weight: 400; margin-top: 23px; line-height: 1.85; }
.intro-rule { height: 3px; width: 50px; background: var(--gold); border-radius: 3px; margin-top: 28px; }
.workspace { min-width: 0; }

/* Decorative link graphic, kept separate from the official logo */
.link-art { height: 235px; position: relative; width: 330px; max-width: 100%; margin-top: 53px; margin-left: 4px; }
.art-orbit { position: absolute; display: block; border: 1px solid #c5d5e2; border-radius: 50%; width: 180px; height: 180px; top: 19px; left: 55px; }
.orbit-one { transform: rotate(-30deg) scaleX(1.5); }
.orbit-two { transform: rotate(30deg) scaleX(1.5); border-style: dashed; border-color: #b9cddf; }
.art-tile { display: grid; place-items: center; position: absolute; width: 116px; height: 116px; top: 49px; left: 87px; background: linear-gradient(145deg, #0a5b94, #073b68); border: 1px solid #5385aa; border-radius: 29px; transform: rotate(-9deg); box-shadow: 0 15px 35px #14395824; color: var(--gold); }
.art-tile::after { content: ""; position: absolute; height: 5px; width: 33px; background: var(--gold); border-radius: 0 0 4px 4px; left: 19px; top: 0; }
.art-tile svg { height: 63px; width: 63px; }
.art-dot { position: absolute; height: 10px; width: 10px; background: var(--gold); border: 3px solid var(--surface); border-radius: 50%; z-index: 1; }
.dot-one { left: 20px; top: 85px; }
.dot-two { left: 260px; top: 129px; background: var(--blue); }
.art-line { display: block; position: absolute; width: 50px; height: 1px; background: #b8ccdd; left: 235px; top: 212px; }
.art-caption { position: absolute; top: 202px; left: 27px; font-size: 11px; color: #869aaf; letter-spacing: 1px; }
.art-caption b { color: var(--navy); letter-spacing: 0; }

/* Form */
.card { background: #fff; border: 1px solid #e1e8ef; border-radius: 19px; padding: 31px; box-shadow: 0 16px 45px #062e5610; position: relative; }
.card::before { content: ""; position: absolute; left: 31px; top: -1px; width: 55px; height: 4px; background: var(--gold); border-radius: 0 0 4px 4px; }
.card-heading { margin-bottom: 27px; position: relative; }
.card-label { color: #7e94ab; font-size: 8px; font-weight: 650; letter-spacing: 2px; }
.card h2 { color: var(--navy); font-size: 22px; font-weight: 700; letter-spacing: -.65px; margin-top: 3px; }
.card-accent { position: absolute; right: 0; top: 5px; width: 35px; height: 35px; border: 1px solid #e1eaf3; background: #f3f7fb; border-radius: 10px; }
.card-accent::after { content: "↗"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--blue); font-size: 23px; font-weight: 500; }
.field { margin-bottom: 23px; }
.field label { display: block; font-size: 11px; font-weight: 650; color: #294661; margin-bottom: 9px; }
.field input, .copy-row input { width: 100%; min-width: 0; min-height: 48px; padding: 12px 13px; background: #fff; color: var(--ink); border: 1px solid #d9e3ed; border-radius: 9px; font-size: 11px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #9fadc0; }
.field input:focus, .alias-wrapper:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #0759980d; }
.hint { font-size: 9px; color: #8193a8; line-height: 1.8; margin-top: 8px; overflow-wrap: anywhere; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label-row .text-button { margin-bottom: 9px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; background: transparent; color: var(--blue); font-size: 10px; font-weight: 650; text-decoration: none; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.label-row .text-button { padding: 3px 7px; background: #eef4fa; border-radius: 5px; }
.alias-wrapper { display: flex; align-items: center; background: #f6f9fc; border: 1px solid #d9e3ed; border-radius: 9px; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.alias-wrapper > span { color: #8298b0; max-width: 55%; padding-left: 13px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.alias-wrapper input { border: 0; background: transparent; padding-left: 2px; }
.alias-wrapper input:focus { box-shadow: none; }
.primary-button, .secondary-button, .copy-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 16px; border-radius: 9px; font-size: 11px; font-weight: 700; text-decoration: none; border: 0; transition: background .18s, transform .18s; }
.primary-button { width: 100%; background: var(--gold); color: var(--navy-deep); box-shadow: 0 4px 12px #d9a71e18; }
.primary-button:hover { background: #ffda61; }
.primary-button:active { transform: translateY(1px); }
.primary-button > span { font-size: 19px; line-height: 1; }
.secondary-button { background: #eaf1f8; color: var(--blue); }
.secondary-button:hover, .copy-button:hover { background: #dbe9f6; }
.error { background: #fff1f1; color: #ac3737; border: 1px solid #f5d5d5; border-radius: 8px; padding: 10px 12px; font-size: 10px; margin: 0 0 15px; }

/* Results and existing publishing controls */
.result { margin-top: 25px; border-top: 1px solid #e2eaf2; padding-top: 20px; outline: none; }
.result-heading { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.result h3 { font-size: 12px; font-weight: 650; color: var(--navy); }
.check { width: 18px; height: 18px; background: #e9f8f0; color: #17815f; border-radius: 50%; text-align: center; font-size: 11px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { background: #f5f8fc; color: var(--blue); font-size: 11px; min-height: 43px; }
.copy-button { background: var(--navy); color: #fff; min-height: 43px; padding: 10px 16px; font-size: 10px; }
.copy-button:hover { color: var(--navy); }
.copy-message { font-size: 10px; color: #168363; line-height: 1.6; margin-top: 6px; min-height: 16px; }
.result > .text-button { font-size: 10px; margin-top: 9px; }
.storage-note { text-align: center; font-size: 9px; color: #8295aa; margin: 13px 5px 20px; }
.publish-options { border-top: 1px solid #dbe4ef; border-bottom: 1px solid #dbe4ef; color: #75879d; font-size: 11px; }
.publish-options > summary { cursor: pointer; padding: 14px 2px; color: #6e859e; font-size: 9px; }
.publish-content { padding: 0 4px 17px; }
.publish-content > p:first-child { font-size: 10px; line-height: 1.85; margin-bottom: 16px; }
.publish-content .field { margin-bottom: 14px; }
.publish-content .field label { font-size: 10px; color: #566e89; }
.publish-content .field input { min-height: 42px; background: #fff; }
.publish-content .secondary-button { font-size: 10px; min-height: 41px; }

/* Footer / author credit */
.site-footer { display: flex; align-items: center; gap: 20px; border-top: 1px solid #dce5ee; padding: 22px 0 6px; font-size: 9px; color: #97a6b7; }
.footer-name { font-size: 11px; color: var(--navy); font-weight: 500; letter-spacing: .3px; }
.footer-name strong { font-weight: 750; }
.footer-name::before { content: ""; display: inline-block; height: 9px; width: 3px; border-radius: 2px; background: var(--gold-deep); margin-right: 7px; }
.credit { margin-left: auto; }
.credit strong { font-weight: 500; color: #6f859c; }

/* Redirect screen */
.redirect-view { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.redirect-view .card { width: min(460px, 100%); text-align: center; padding: 0 30px 30px; overflow: hidden; }
.redirect-view .card::before { z-index: 1; top: 0; left: 0; width: 100%; border-radius: 0; height: 4px; }
.redirect-brand { margin: 0 -30px 27px; background: var(--navy); padding: 26px 32px 22px; }
.redirect-brand img { display: block; width: 245px; max-width: 100%; height: auto; margin: 0 auto; }
.redirect-view h1 { font-size: 23px; line-height: 1.3; letter-spacing: -.5px; color: var(--navy); }
.redirect-view p { color: var(--muted); font-size: 12px; margin: 15px 0 22px; overflow-wrap: anywhere; }
.redirect-view .secondary-button { margin-top: 11px; width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.noscript { position: fixed; inset: 0; display: grid; place-items: center; padding: 25px; background: var(--surface); }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #6fa8d4; outline-offset: 4px; }

@media (min-width: 1400px) {
  .container { max-width: 1230px; }
  .main-layout { gap: 110px; }
}
@media (max-width: 1000px) {
  .container { padding-inline: 30px; }
  .main-layout { gap: 40px; }
  .intro h1 { font-size: 49px; letter-spacing: -2px; }
  .eyebrow { font-size: 7px; letter-spacing: 1.1px; }
  .intro > p { font-size: 11px; }
  .brand img { width: 265px; }
  .card { padding: 25px; }
  .card::before { left: 25px; }
  .card h2 { font-size: 20px; }
  .card-accent { width: 30px; height: 30px; }
}
@media (max-width: 740px) {
  body::before { height: 470px; }
  .container { max-width: 570px; padding: 0 22px 20px; }
  .site-header { min-height: 101px; gap: 16px; }
  .brand img { width: 228px; }
  .product-name { font-size: 12px; gap: 0; white-space: nowrap; }
  .product-name small { font-size: 5px; letter-spacing: .9px; }
  .product-mark { display: none; }
  .main-layout { grid-template-columns: 1fr; gap: 30px; padding: 25px 0 30px; }
  .intro { text-align: center; padding-top: 8px; }
  .eyebrow { justify-content: center; font-size: 7px; letter-spacing: 1.2px; }
  .intro h1 { font-size: 45px; line-height: 1.13; letter-spacing: -1.8px; margin-top: 15px; }
  .intro > p { font-size: 11px; margin-top: 14px; }
  .intro-rule { width: 35px; height: 2px; margin: 19px auto 0; }
  .link-art { display: none; }
  .card { padding: 26px; border-radius: 17px; }
  .card h2 { font-size: 21px; }
  .card-heading { margin-bottom: 23px; }
  .field input, .copy-row input { font-size: 11px; }
  .hint { font-size: 9px; }
  .site-footer { gap: 12px; flex-wrap: wrap; justify-content: center; padding-top: 19px; }
  .credit { flex-basis: 100%; text-align: center; margin: -3px 0 0; font-size: 8px; }
}
@media (max-width: 390px) {
  .container { padding-inline: 17px; }
  .brand img { width: 200px; }
  .product-name { font-size: 10px; }
  .product-name small { font-size: 4px; letter-spacing: .8px; }
  .intro h1 { font-size: 39px; }
  .eyebrow { font-size: 6px; letter-spacing: 1px; }
  .card { padding: 22px; }
  .card h2 { font-size: 19px; }
  .alias-wrapper > span { max-width: 49%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
