/* Panduan Google Workspace PTMA — Stylesheet Bersama */

:root {
  --bg: #f6f8fd;
  --surface: #ffffff;
  --surface-2: #eef2fb;
  --text: #16203a;
  --text-muted: #5a6784;
  --border: #dbe3f4;
  --accent: #2f6fed;
  --accent-deep: #1d4fc4;
  --accent-ink: #ffffff;
  --accent-soft: #e2ebff;
  --accent-soft-border: #b9cdfb;
  --amber: #f2960c;
  --amber-soft: #fef2df;
  --amber-soft-border: #f8dba0;
  --sky: #0891b2;
  --sky-soft: #e0f6fa;
  --tip: #b0700a;
  --tip-soft: #fef2df;
  --tip-soft-border: #f5d99a;
  --warn: #d6432a;
  --warn-soft: #fdeae5;
  --warn-soft-border: #f4c3b3;
  --chip-bg: #eef2fb;
  --shadow-sm: 0 1px 2px rgba(22, 32, 58, 0.06);
  --shadow-md: 0 10px 28px -12px rgba(22, 32, 58, 0.22);
  --focus: #1d4fc4;

  --font-display: Georgia, "Iowan Old Style", "Noto Serif", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --ic-drive: url("../images/icons/drive.png");
  --ic-docs: url("../images/icons/docs.png");
  --ic-sheets: url("../images/icons/sheets.png");
  --ic-slides: url("../images/icons/slides.png");
  --ic-forms: url("../images/icons/forms.png");
  --ic-meet: url("../images/icons/meet.png");
  --ic-gmail: url("../images/icons/gmail.png");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1220;
    --surface: #121a2e;
    --surface-2: #182338;
    --text: #e9edfb;
    --text-muted: #9fabcc;
    --border: #253254;
    --accent: #6f9dff;
    --accent-deep: #9dbeff;
    --accent-ink: #0b1220;
    --accent-soft: #182a4d;
    --accent-soft-border: #2c477c;
    --amber: #f7bb4c;
    --amber-soft: #2c220f;
    --amber-soft-border: #4d3a17;
    --sky: #4fd3ec;
    --sky-soft: #133445;
    --tip: #f7bb4c;
    --tip-soft: #2c220f;
    --tip-soft-border: #4d3a17;
    --warn: #ef8a72;
    --warn-soft: #2d1a15;
    --warn-soft-border: #4c2c23;
    --chip-bg: #182338;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 32px -14px rgba(0, 0, 0, 0.55);
    --focus: #6f9dff;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1220; --surface: #121a2e; --surface-2: #182338; --text: #e9edfb; --text-muted: #9fabcc;
  --border: #253254; --accent: #6f9dff; --accent-deep: #9dbeff; --accent-ink: #0b1220;
  --accent-soft: #182a4d; --accent-soft-border: #2c477c; --amber: #f7bb4c; --amber-soft: #2c220f;
  --amber-soft-border: #4d3a17; --sky: #4fd3ec; --sky-soft: #133445;
  --tip: #f7bb4c; --tip-soft: #2c220f; --tip-soft-border: #4d3a17;
  --warn: #ef8a72; --warn-soft: #2d1a15; --warn-soft-border: #4c2c23; --chip-bg: #182338;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35); --shadow-md: 0 14px 32px -14px rgba(0, 0, 0, 0.55); --focus: #6f9dff;
}
:root[data-theme="light"] {
  --bg: #f6f8fd; --surface: #ffffff; --surface-2: #eef2fb; --text: #16203a; --text-muted: #5a6784;
  --border: #dbe3f4; --accent: #2f6fed; --accent-deep: #1d4fc4; --accent-ink: #ffffff;
  --accent-soft: #e2ebff; --accent-soft-border: #b9cdfb; --amber: #f2960c; --amber-soft: #fef2df;
  --amber-soft-border: #f8dba0; --sky: #0891b2; --sky-soft: #e0f6fa;
  --tip: #b0700a; --tip-soft: #fef2df; --tip-soft-border: #f5d99a;
  --warn: #d6432a; --warn-soft: #fdeae5; --warn-soft-border: #f4c3b3; --chip-bg: #eef2fb;
  --shadow-sm: 0 1px 2px rgba(22, 32, 58, 0.06); --shadow-md: 0 10px 28px -12px rgba(22, 32, 58, 0.22); --focus: #1d4fc4;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-deep); text-underline-offset: 2px; }
@media (prefers-color-scheme: dark) { a { color: var(--accent); } }
:root[data-theme="dark"] a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  flex-shrink: 0;
  background-image: var(--ic-drive);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.icon-img {
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.crumb {
  display: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (min-width: 640px) { .crumb { display: block; } }
.menu-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  border-radius: 0.55rem;
  cursor: pointer;
}
.menu-btn:hover { background: var(--accent-soft); border-color: var(--accent-soft-border); }

.progress-rail { height: 3px; background: var(--border); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--sky)); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 90% at 85% -10%, color-mix(in srgb, var(--amber) 18%, transparent), transparent 70%),
    radial-gradient(70% 100% at 5% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 65%);
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2.4rem 1.25rem 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
  align-items: center;
}
@media (min-width: 700px) { .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 1.5rem; } }

.module-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface);
  border: 1px solid var(--accent-soft-border);
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 5.2vw, 2.35rem);
  line-height: 1.16;
  text-wrap: balance;
  margin: 0.7rem 0 0.6rem;
}
.dek { font-size: 1.08rem; color: var(--text-muted); max-width: 46ch; margin: 0; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-top: 1.1rem;
}
.meta-row span { display: inline-flex; align-items: center; gap: 0.4rem; }

.hero-art { display: flex; justify-content: center; position: relative; }
.hero-art svg { width: 100%; max-width: 15rem; height: auto; }
.hero-art .badge-drive {
  position: absolute;
  left: calc(50% - 6.6rem);
  top: 1.55rem;
  width: 1.5rem;
  height: 1.5rem;
  background-image: var(--ic-drive);
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.18));
}

/* ---------- Main column ---------- */
main { max-width: 44rem; margin: 0 auto; padding: 2.4rem 1.25rem 5rem; }
section { margin-bottom: 2.8rem; }
section:last-of-type { margin-bottom: 1.5rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.eyebrow .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; margin: 0 0 0.9rem; text-wrap: balance; }
p { margin: 0 0 1rem; max-width: 64ch; }

/* ---------- Context box ---------- */
.context-box {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--sky);
  border-radius: 0.9rem;
  padding: 1.15rem 1.3rem;
  font-size: 1rem;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.context-box strong { color: var(--text); }

/* ---------- Analogy callout ---------- */
.analogy {
  background: linear-gradient(165deg, var(--accent-soft) 0%, color-mix(in srgb, var(--accent-soft) 55%, var(--surface)) 100%);
  border: 1px solid var(--accent-soft-border);
  border-radius: 1.1rem;
  padding: 1.35rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
.analogy .icon {
  flex-shrink: 0;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 0.85rem;
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  box-shadow: var(--shadow-sm);
}
.analogy .label {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-deep);
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.analogy p { margin: 0; max-width: none; }
.analogy p + p { margin-top: 0.65rem; }

/* ---------- Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 1.3rem; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.3rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-md);
}
.steps .step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 2.55rem;
  top: 100%;
  width: 2px;
  height: 1.3rem;
  background: var(--border);
}
.step-num {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.8rem;
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-sm);
}
.step-title { font-weight: 700; font-size: 1.08rem; margin: 0.15rem 0 0.4rem; }
.step p { margin: 0 0 0.75rem; }
.step p:last-of-type { margin-bottom: 0; }

.shot {
  margin-top: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.shot svg, .shot img { display: block; width: 100%; height: auto; }
.shot-caption {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  padding: 0.55rem 0.8rem;
  border-top: 1px solid var(--border);
}

kbd, .ui {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--chip-bg);
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  padding: 0.08rem 0.45rem;
}

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 0.85rem; margin-top: 0.5rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; font-size: 0.94rem; }
th, td { text-align: left; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); }
thead th { background: var(--surface-2); font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); font-weight: 600; }
tbody tr:last-child td { border-bottom: none; }
td:first-child { font-weight: 700; white-space: nowrap; }
tbody tr:hover { background: var(--surface-2); }

/* ---------- Callouts ---------- */
.callout {
  border-radius: 0.95rem;
  padding: 1.1rem 1.3rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.98rem;
  box-shadow: var(--shadow-sm);
}
.callout .icon { flex-shrink: 0; width: 2.3rem; height: 2.3rem; border-radius: 0.65rem; display: grid; place-items: center; font-size: 1.2rem; }
.callout p { margin: 0; }
.callout .label { display: block; font-weight: 700; margin-bottom: 0.2rem; }
.callout.tip { background: var(--tip-soft); border: 1px solid var(--tip-soft-border); }
.callout.tip .icon { background: var(--amber-soft-border); }
.callout.tip .label { color: var(--tip); }
.callout.warn { background: var(--warn-soft); border: 1px solid var(--warn-soft-border); }
.callout.warn .icon { background: var(--warn-soft-border); }
.callout.warn .label { color: var(--warn); }

/* ---------- Troubleshoot accordion ---------- */
.trouble { border: 1px solid var(--border); border-radius: 0.95rem; overflow: hidden; box-shadow: var(--shadow-sm); }
details { border-bottom: 1px solid var(--border); }
details:last-child { border-bottom: none; }
summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
}
summary:hover { background: var(--surface-2); }
summary::-webkit-details-marker { display: none; }
summary .chev { color: var(--accent-deep); transition: transform 0.18s ease; flex-shrink: 0; font-size: 0.85rem; }
details[open] summary .chev { transform: rotate(180deg); }
details p { margin: 0; padding: 0 1.2rem 1.15rem; color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Related links ---------- */
.related { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
@media (min-width: 560px) { .related { grid-template-columns: 1fr 1fr; } }
.related a {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.related a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.related a .eyebrow2 {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-deep);
  text-transform: uppercase; letter-spacing: 0.05em; margin: 0;
  display: flex; align-items: center; gap: 0.4rem;
}
.related a .eyebrow2 .icon-img { width: 1.1rem; height: 1.1rem; }
.related a .title { display: block; font-weight: 700; margin-top: 0.3rem; font-size: 1.02rem; }

.pagefoot { text-align: center; color: var(--text-muted); font-size: 0.84rem; margin-top: 3.2rem; }

/* ---------- Home page ---------- */
.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 620px) { .module-grid { grid-template-columns: 1fr 1fr; } }
.module-card {
  display: block;
  text-decoration: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.module-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module-card .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 0.7rem;
  background: linear-gradient(155deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 0.7rem;
}
.module-card h3 { margin: 0 0 0.35rem; font-family: var(--font-display); font-size: 1.15rem; }
.module-card p { margin: 0; font-size: 0.92rem; color: var(--text-muted); max-width: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
