<?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_20780615-da8f-4926-a505-7ba0e5e0b349">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-02</startDate>
            <endDate>2026-07-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_cd212b0c-6fc8-4d00-9494-42672e992052">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_ff2945ae-5e03-421a-9ecf-40c5672f2d0f">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_33bd2eb8-24ec-4cf2-b7f6-1d833ffb25c3">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_4b061a54-51c3-442e-a3b7-25a168b750ca">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_6f189d7a-005f-4ee1-ae40-4fabf1a6b80f">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_bad05ffd-eef8-4fe6-90a7-20cff99b640f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_1212c4e0-1c02-4286-a564-3c08ce1d3b78">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_5ad833ae-54cd-4a0d-973d-16a76205a45b">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_eda94002-52b6-494e-8dc3-576bc987b6ec">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_20780615-da8f-4926-a505-7ba0e5e0b349"
      id="F_a69fc2a5-6b51-4445-9154-3f0eab56a3d9">&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;894,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_20780615-da8f-4926-a505-7ba0e5e0b349"
      decimals="-3"
      id="F_c58fc8d3-e578-4a8f-8772-8ba356e07c96"
      unitRef="U_USD">894000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
