@import url("/Home/Home.css");

.guide-link { color: var(--accent-text); text-decoration: underline; }

.android-demo {
    --card-inset: clamp(16px, 4vw, 24px);
    display: grid;
    gap: 16px;
    margin: 28px 0;
}

.android-demo details {
    min-width: 0;
    border: 1px solid var(--edge);
    border-radius: 12px;
    background: var(--panel);
}

.android-demo summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 60px;
    padding: 14px var(--card-inset);
    border-radius: 11px;
    font-weight: 750;
    list-style: none;
    cursor: pointer;
}

.android-demo summary::-webkit-details-marker { display: none; }

.android-demo summary::after {
    content: "";
    flex: none;
    width: 7px;
    height: 7px;
    margin-inline-end: 2px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
}

.android-demo summary:hover { background: var(--hover); }
.android-demo summary:focus-visible { outline-offset: -4px; }
.android-demo details[open] summary {
    border-bottom: 1px solid var(--edge);
    border-radius: 11px 11px 0 0;
}
.android-demo details[open] summary::after { transform: rotate(225deg); }

.android-demo details > :not(summary) { margin-inline: var(--card-inset); }
.android-demo details > summary + div {
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.65;
    text-align: justify;
}

.android-demo button { font-family: inherit; cursor: pointer; }
.download-button {
    gap: 8px;
    margin-block: 18px var(--card-inset);
    background: var(--accent);
    color: var(--text);
}
.download-button:hover { background: var(--accent-hover); }
.download-button svg { flex: none; }

#sample-label { margin-block: 18px 8px; font-size: .875rem; font-weight: 650; }
.sample-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 4px 4px 12px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: var(--bg);
}
.sample-url span { min-width: 0; overflow-wrap: anywhere; }
#sample-url { font: .875rem/1.5 ui-monospace, monospace; }
.copy-button {
    display: grid;
    place-items: center;
    flex: none;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--edge);
    border-radius: 6px;
    background: var(--panel);
    color: var(--text);
}
.copy-button:hover { background: var(--hover); }
#copy-status { margin-block: 8px 0; font-size: .875rem; }
#copy-status:empty { margin: 0; }

.key-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
    align-items: start;
    max-width: 920px;
    gap: clamp(24px, 5vw, 64px);
}
.key-guide .actions { margin-top: 24px; }
.key-guide .intro { max-width: none; }
.key-guide .intro, .key-explanation dd { text-align: justify; }
.key-explanation {
    --step-inset: clamp(14px, 3vw, 20px);
    margin: 0;
}
.key-explanation dt,
.key-explanation dd {
    margin: 0;
    border-inline: 1px solid var(--edge);
    background: var(--panel);
}
.key-explanation dt {
    padding: 12px var(--step-inset);
    border-top: 1px solid var(--edge);
    border-radius: 10px 10px 0 0;
    color: var(--accent-text);
    font-weight: 750;
}
.key-explanation dt:not(:first-child) { margin-top: 12px; }
.key-explanation dd {
    padding: 12px var(--step-inset) 16px;
    border-block: 1px solid var(--edge);
    border-radius: 0 0 10px 10px;
    color: var(--muted);
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.key-guide > div > p:not([class]) {
    margin: 20px 0 0;
    padding-inline-start: 12px;
    border-inline-start: 2px solid var(--edge);
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.55;
}
.key-preview { margin: 0; }
.key-preview img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--edge);
    border-radius: 12px;
}

@media (max-width: 680px) {
    .key-guide { grid-template-columns: 1fr; }
    .key-preview { width: min(100%, 300px); }
}
