<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  xmlns:iso4217="http://www.xbrl.org/2003/iso4217"
  xmlns:link="http://www.xbrl.org/2003/linkbase"
  xmlns:xlink="http://www.w3.org/1999/xlink">
    <link:schemaRef
      xlink:href="https://xbrl.sec.gov/ffd/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_092cc7cb-548d-454b-96bb-688f1929f7de">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-22</startDate>
            <endDate>2026-06-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_cff9565f-9a78-455c-af8f-5515ec3578a1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OfferingTableNa
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_57007291-4298-4156-b51a-423813dcf2c0">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_1fc535d0-dce6-46ef-a516-42ecf3a6d118">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_c0949bbc-4f22-4d07-8051-c064afe016bb">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_9f3a453e-dc9f-482a-a0a1-d16ee448c144">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_86289253-4f61-4391-b6db-7580668dbb44">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_02400121-2208-4c1f-a1ce-33af93b5a263">333-284538</ffd:RegnFileNb>
    <ffd:SubmissnTp
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_0035599d-0d1b-47f3-a8c4-8b96c799cf3e">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_dd462abe-4f5e-4951-9aed-bf6493d747a6">N/A</ffd:OffsetTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      id="F_4698c9d4-e3d4-4750-8ddf-638494d2f5aa">&lt;p style="font-size:10pt;margin-top:0;font-family:Times New Roman;margin-bottom:12pt;text-align:left;"&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;The prospectus to which this Exhibit is attached is a final prospectus for the related offering.  The maximum aggregate offering price for such offering is $&lt;/span&gt;&lt;span style="font-size:12pt;font-family:Times New Roman;color:#000000;white-space:pre-wrap;font-kerning:none;min-width:fit-content;"&gt;28,805,000&lt;/span&gt;&lt;span style="color:#000000;white-space:pre-wrap;font-size:12pt;font-family:Times New Roman;font-kerning:none;min-width:fit-content;"&gt;.&lt;/span&gt;&lt;/p&gt;</ffd:NrrtvDsclsr>
    <ffd:NrrtvMaxAggtOfferingPric
      contextRef="C_092cc7cb-548d-454b-96bb-688f1929f7de"
      decimals="-3"
      id="F_ed130948-656b-4e32-a7e4-4e67394e282e"
      unitRef="U_USD">28805000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
