/* =====================================================================
   ABSTRACT PAGE  (assets/abstract.css)  –  self-contained, uses site.css variables
   ===================================================================== */

/* ---------- hero ---------- */
.abs-hero {
    position: relative;
    background:
        radial-gradient(900px 400px at 85% 10%, rgba(127, 166, 245, .28), transparent 60%),
        linear-gradient(135deg, var(--navy) 0%, #14486f 55%, var(--blue) 100%);
    color: #fff;
    padding: 56px 0 96px;
    overflow: hidden;
}
.abs-hero-in {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 40px;
}
.abs-kicker {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid rgba(232, 168, 56, .6);
    border-radius: 999px;
    background: rgba(232, 168, 56, .12);
    color: var(--gold);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.abs-hero h1 {
    margin: 16px 0 14px;
    font-size: clamp(32px, 4.6vw, 52px);
    line-height: 1.12;
    font-weight: 700;
}
.abs-hero p {
    margin: 0 0 22px;
    max-width: 52ch;
    font-size: 17px;
    color: rgba(255, 255, 255, .85);
}
.abs-chips {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.abs-chips li {
    padding: 7px 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    font-size: 14px;
    backdrop-filter: blur(4px);
}
.abs-chips b { color: var(--gold) }

.abs-hero-img {
    width: 100%;
    max-width: 520px;
    height: auto;
    justify-self: center;
    animation: abs-float 6s ease-in-out infinite;
}
.abs-wave {
    position: absolute;
    left: 0; bottom: -1px;
    width: 100%; height: 56px;
    display: block;
}
.abs-wave path { fill: var(--bg) }

@keyframes abs-float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-12px) } }
@keyframes abs-up    { from { opacity: 0; transform: translateY(26px) } to { opacity: 1; transform: none } }

.abs-hero-text > * { animation: abs-up .8s cubic-bezier(.22, .8, .26, 1) both }
.abs-hero-text > :nth-child(2) { animation-delay: .08s }
.abs-hero-text > :nth-child(3) { animation-delay: .16s }
.abs-hero-text > :nth-child(4) { animation-delay: .24s }

/* ---------- layout ---------- */
.abs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    margin-top: -40px;           /* overlap the hero wave */
    padding-bottom: 60px;
    position: relative;
    z-index: 2;
}

/* ---------- form card ---------- */
.abs-form {
    background: #fff;
    border-radius: 18px;
    padding: 34px 34px 36px;
    box-shadow: var(--shadow-lg);
    border-top: 5px solid var(--blue);
    animation: abs-up .8s .15s cubic-bezier(.22, .8, .26, 1) both;
}
.abs-form h2 { margin: 0 0 4px; font-size: 24px; color: var(--navy) }
.abs-sub { margin: 0 0 22px; color: var(--muted); font-size: 14.5px }
.abs-sub i, .abs-form label i, .abs-lbl i { color: #d93025; font-style: normal }

.abs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px }
.abs-f { margin-bottom: 18px; min-width: 0 }
.abs-form label, .abs-lbl {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
}

.abs-form input:not([type=file]),
.abs-form select,
.abs-form textarea {
    width: 100%;
    padding: 12px 14px;
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    background: #f9fbfd;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
    appearance: none;
    -webkit-appearance: none;
}
.abs-form textarea { resize: vertical; min-height: 92px }
.abs-form select {
    padding-right: 40px;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%2312263f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
.abs-form ::placeholder { color: #93a3b5 }
.abs-form input:hover, .abs-form select:hover, .abs-form textarea:hover { border-color: #9db8cc }
.abs-form input:focus, .abs-form select:focus, .abs-form textarea:focus {
    outline: 0;
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(11, 134, 196, .15);
}

/* ---------- upload dropzone ---------- */
.abs-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 28px 20px;
    text-align: center;
    background: #f4f9fd;
    border: 2px dashed #9fc3d9;
    border-radius: 14px;
    cursor: pointer;
    transition: background-color .2s, border-color .2s, transform .2s;
}
.abs-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer }
.abs-drop:hover, .abs-drop.drag { background: #e9f4fb; border-color: var(--blue) }
.abs-drop.drag { transform: scale(1.01) }
.abs-drop:focus-within { box-shadow: 0 0 0 4px rgba(11, 134, 196, .15); border-color: var(--blue) }
.abs-drop-ico {
    display: grid; place-items: center;
    width: 54px; height: 54px;
    margin-bottom: 6px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 6px 16px rgba(11, 134, 196, .35);
}
.abs-drop-t { font-size: 15px; color: var(--navy); font-weight: 400 }
.abs-drop-t b { color: var(--blue) }
.abs-drop-s { font-size: 13px; color: var(--muted); word-break: break-all }
.abs-drop.has-file { background: #f1f9ec; border-color: var(--green) }
.abs-drop.has-file .abs-drop-ico { background: var(--green); box-shadow: 0 6px 16px rgba(125, 196, 31, .4) }
.abs-drop.has-file .abs-drop-s { color: var(--navy); font-weight: 600 }

/* ---------- submit + alert ---------- */
.abs-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding: 15px 24px;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(11, 134, 196, .35);
    transition: transform .2s, box-shadow .2s, filter .2s;
}
.abs-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(11, 134, 196, .45); filter: brightness(1.05) }
.abs-submit:active { transform: none }
.abs-submit:disabled { opacity: .7; cursor: progress; transform: none }

.abs-alert {
    margin: 0 0 20px;
    padding: 13px 16px;
    border-radius: 10px;
    border: 1px solid #f3b4ae;
    background: #fdecea;
    color: #a1261b;
    font-size: 14.5px;
    font-weight: 600;
}
.abs-alert.ok { border-color: #bfe3a0; background: #eef9e3; color: #3d6d0b }
.abs-alert[hidden] { display: none }

/* ---------- sidebar ---------- */
.abs-side { display: grid; gap: 20px }
.abs-card {
    background: #fff;
    border: 1px solid #e3ebf2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow);
    animation: abs-up .8s .3s cubic-bezier(.22, .8, .26, 1) both;
}
.abs-card:nth-child(2) { animation-delay: .4s }
.abs-card:nth-child(3) { animation-delay: .5s }
.abs-card h3 { margin: 0 0 16px; font-size: 18px; color: var(--navy) }

.abs-steps { list-style: none; margin: 0; padding: 0; counter-reset: s }
.abs-steps li {
    position: relative;
    padding: 0 0 20px 50px;
    counter-increment: s;
}
.abs-steps li:last-child { padding-bottom: 0 }
.abs-steps li::before {
    content: counter(s);
    position: absolute;
    left: 0; top: 0;
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 0 0 4px rgba(11, 134, 196, .15);
}
.abs-steps li::after {
    content: "";
    position: absolute;
    left: 16px; top: 38px; bottom: 4px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--line) 0 4px, transparent 4px 8px);
}
.abs-steps li:last-child::after { display: none }
.abs-steps b { display: block; color: var(--navy); font-size: 15px; line-height: 1.3 }
.abs-steps span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.5; color: var(--muted) }

.abs-links { list-style: none; margin: 0; padding: 0 }
.abs-links li + li { border-top: 1px solid #edf1f5 }
.abs-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy);
    transition: color .2s, padding .2s;
}
.abs-links a::after { content: "→"; color: var(--blue); transition: transform .2s }
.abs-links a:hover { color: var(--blue); padding-left: 4px }
.abs-links a:hover::after { transform: translateX(4px) }

.abs-help {
    background: linear-gradient(135deg, var(--navy), var(--blue));
    border: 0;
    color: #fff;
}
.abs-help h3 { color: #fff; margin-bottom: 8px }
.abs-help p { margin: 0 0 12px; font-size: 14.5px; color: rgba(255, 255, 255, .85) }
.abs-help a { color: var(--gold); font-weight: 700; word-break: break-all }
.abs-help a:hover { text-decoration: underline }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
    .abs-grid { grid-template-columns: 1fr }
    .abs-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) }
}
@media (max-width: 800px) {
    .abs-hero { padding: 40px 0 84px }
    .abs-hero-in { grid-template-columns: 1fr; text-align: center }
    .abs-hero p { margin-left: auto; margin-right: auto }
    .abs-chips { justify-content: center }
    .abs-hero-img { max-width: 340px; order: -1 }
}
@media (max-width: 600px) {
    .abs-form { padding: 24px 18px 26px }
    .abs-row { grid-template-columns: 1fr; gap: 0 }
    .abs-grid { margin-top: -30px }
}

@media (prefers-reduced-motion: reduce) {
    .abs-hero-img, .abs-hero-text > *, .abs-form, .abs-card { animation: none !important }
    .abs-submit, .abs-drop { transition: none }
}

/* ---------- sample abstract card ---------- */
.abs-card:nth-child(4) { animation-delay: .6s }
.abs-side { position: static }          /* sample preview can be tall, so no sticky sidebar */

.abs-sample-intro { margin: -6px 0 14px; font-size: 14px; color: var(--muted) }

.abs-sample-box {
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #f9fbfd;
    overflow: hidden;
}
.abs-sample-box summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    user-select: none;
}
.abs-sample-box summary::-webkit-details-marker { display: none }
.abs-sample-box summary::after {
    content: "";
    width: 8px; height: 8px;
    border-right: 2px solid var(--blue);
    border-bottom: 2px solid var(--blue);
    transform: rotate(45deg) translateY(-2px);
    transition: transform .25s;
}
.abs-sample-box[open] summary::after { transform: rotate(225deg) }
.abs-sample-box summary:hover { color: var(--blue) }

.abs-sample-doc {
    max-height: 340px;
    overflow-y: auto;
    padding: 4px 16px 16px;
    border-top: 1px solid var(--line);
    background: #fff;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ink);
}
.abs-sample-top { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding-bottom: 12px; border-bottom: 1px dashed var(--line) }
.abs-sample-photo {
    flex: 0 0 74px;
    height: 88px;
    display: grid;
    place-items: center;
    padding: 6px;
    border: 2px dashed #9fc3d9;
    border-radius: 8px;
    background: #f4f9fd;
    font-size: 10.5px;
    line-height: 1.3;
    text-align: center;
    color: var(--muted);
}
.abs-sample-meta { min-width: 0; font-size: 12.5px; line-height: 1.55 }
.abs-sample-meta b { color: var(--navy) }
.abs-sample-aff { font-style: italic; color: var(--muted) }
.abs-sample-doc h5 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 14px 0 4px;
    font-size: 14px;
    color: var(--blue);
}
.abs-limit {
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    color: #8a5a00;
    background: #fff6e3;
    border: 1px solid var(--gold);
    border-radius: 999px;
    white-space: nowrap;
}
.abs-sample-doc p { margin: 0; text-align: justify }

.abs-dl {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding: 11px 16px;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--navy);
    background: #fff6e3;
    border: 1.5px solid var(--gold);
    border-radius: 10px;
    transition: background-color .2s, transform .2s, box-shadow .2s;
}
.abs-dl:hover { background: var(--gold); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(232, 168, 56, .4) }