<?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_9f2b5664-03ed-4f70-9ad9-a2c923930a67">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-17</startDate>
            <endDate>2026-07-17</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_41e33bc7-67c2-4632-a1fc-a4fb2e18a862">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_4e4160db-b8f1-4f52-86fc-5fabb94c9c8d">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_feb8a993-0384-4c26-9bdf-dc2f131dbfe2">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_bafe7548-1c57-4c30-bc17-c11c4bbda140">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_b083652a-cfb0-4bf5-931c-09f8a754ada6">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_29fe9559-6f22-4c4a-b30f-662c5fa5f1ec">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_30b1f66c-4326-422b-ae72-c9a38c8c535b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_d5b951c8-6029-47dc-9cfd-5ac5f651114f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_40467212-37b7-415b-ac58-4fdeeef88e71">0000886982</dei:EntityCentralIndexKey>
    <ffd:NrrtvDsclsr
      contextRef="C_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      id="F_b8442610-93b7-4f5a-b8a0-418af9050d01">&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;1,512,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_9f2b5664-03ed-4f70-9ad9-a2c923930a67"
      decimals="-3"
      id="F_e57ab966-98fa-40e9-9118-d97ecdbadfdb"
      unitRef="U_USD">1512000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
