<?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_54b793e9-4607-4e92-978d-34a3846b8346">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-08-13</startDate>
            <endDate>2026-08-13</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_288dc09c-60e9-4c18-b4a7-534b981794bf">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_935e5894-08de-4d3d-a4a3-f1b7aab10baa">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_afe4576e-92dd-4033-942a-87d7256b56c3">S-3</ffd:FormTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_32174632-0bd6-48f3-b064-80ace2cdd669">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_97cd7721-b0ab-4d5e-8f6a-2a5d92231bb8">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_c9de4a56-2b46-4269-b1e2-310527cd6c46">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_def51f16-eca6-4908-9d77-4b4641358535">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_57697f22-317a-485b-b654-73577234154d">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_e2654a17-9f0b-4794-8ae3-991768281541">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_54b793e9-4607-4e92-978d-34a3846b8346"
      id="F_c6fa1488-bd30-41cc-8391-2d01ce9376c9">&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;750,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_54b793e9-4607-4e92-978d-34a3846b8346"
      decimals="-3"
      id="F_5d5c50cc-2560-4cc9-a31e-f59c97b3fec3"
      unitRef="U_USD">750000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
