<?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_a286df0a-3c0a-4063-b14f-6d8d412b4451">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-07-14</startDate>
            <endDate>2026-07-14</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:RegnFileNb
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_7cecd0d3-39b8-423e-845a-c5ec15c68c9e">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_6942ac9f-3cea-421f-914f-22e52675d775">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_0dcebfae-0f99-4388-8176-9166eda090ec">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_fd229390-fdbb-4297-a4ca-655396ee5a97">N/A</ffd:CombinedProspectusTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_e234e307-696f-434c-85c8-39c12123a05e">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_e225931d-fcd8-43d9-84e7-714402aa1433">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_bb2853f9-3c48-43bd-a64f-68dcd06d2630">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:SubmissnTp
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_665a5834-acc9-40d7-8eb8-487c8a204543">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_506316a6-92c1-47f1-aff2-f940f06d0a57">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      id="F_7db8fc85-766c-4b0f-9e55-a716c240fdbe">&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;732,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_a286df0a-3c0a-4063-b14f-6d8d412b4451"
      decimals="-3"
      id="F_356e9fdc-d5af-4c6e-8a3c-a774ae9df57e"
      unitRef="U_USD">732000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
