/* Shared style for all resource documents */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Merriweather:wght@700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: #1e293b; background: #f8fafc; line-height: 1.7; }

.doc {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
  overflow: hidden;
}

.doc-header {
  padding: 48px 56px 36px;
  color: #fff;
}
.doc-header .org { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.8; margin-bottom: 12px; }
.doc-header h1 { font-family: 'Merriweather', serif; font-size: 2rem; line-height: 1.25; margin-bottom: 12px; }
.doc-header p { font-size: 0.95rem; opacity: 0.85; max-width: 520px; }

.doc-body { padding: 48px 56px; }

h2 { font-size: 1.2rem; font-weight: 800; color: #1e293b; margin: 32px 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; }
h2:first-child { margin-top: 0; }
h3 { font-size: 1rem; font-weight: 700; color: #334155; margin: 20px 0 8px; }
p { color: #475569; font-size: 0.93rem; margin-bottom: 12px; }
ul, ol { padding-left: 20px; color: #475569; font-size: 0.93rem; margin-bottom: 16px; }
li { margin-bottom: 7px; }
strong { color: #1e293b; }

.highlight-box {
  background: #f0f7ff;
  border-left: 4px solid #4f46e5;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: #1e40af;
}

.tip-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: #15803d;
}

.warning-box {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: #c2410c;
}

table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.88rem; }
th { background: #f1f5f9; color: #334155; font-weight: 700; padding: 10px 14px; text-align: left; border: 1px solid #e2e8f0; }
td { padding: 10px 14px; border: 1px solid #e2e8f0; color: #475569; vertical-align: top; }
tr:nth-child(even) td { background: #f8fafc; }

.doc-footer {
  padding: 24px 56px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #94a3b8;
}
.doc-footer a { color: #4f46e5; text-decoration: none; font-weight: 600; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px 56px 0;
  padding: 10px 20px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 0.2s;
}
.back-btn:hover { background: #e2e8f0; }

@media print {
  body { background: #fff; }
  .doc { box-shadow: none; border-radius: 0; margin: 0; }
  .back-btn { display: none; }
}

@media (max-width: 640px) {
  .doc-header, .doc-body, .doc-footer, .back-btn { padding-left: 24px; padding-right: 24px; }
}
