<?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_b575d8e3-4d66-45af-894d-9078ee8284e8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-07</startDate>
            <endDate>2026-07-07</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_39b41902-e464-423a-adb5-54d334032f93">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_76171e1a-34bf-4cff-bf8d-0a570ad3b3e5">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_21f25795-6b81-40f6-b710-dba6eb7fcec8">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_e3784de9-f170-4965-b132-86f3270b27c4">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_292fd578-68ba-4f77-9775-b06d2850cb7e">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_b5b35065-492f-4377-96c4-177d3a4a4d82">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_288c66e7-d2c9-4057-a1f7-3b8741359255">N/A</ffd:OfferingTableNa>
    <ffd:FormTp
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_a138558b-39a9-43b1-b674-9eb2db8ffed4">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_ae6486e6-45d9-4730-933b-e3293d38519a">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b575d8e3-4d66-45af-894d-9078ee8284e8"
      id="F_ba07675e-26da-4d2d-926b-f35dc514dbb3">&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;16,022,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_b575d8e3-4d66-45af-894d-9078ee8284e8"
      decimals="-3"
      id="F_652b75d7-a28c-4b79-942d-747da68668ba"
      unitRef="U_USD">16022000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
