<?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_d0a2c080-e402-475d-a4eb-4e2263369b5e">
        <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:FeeExhibitTp
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_f7cca90c-904e-4dda-977e-e2bc7d93f9f5">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_6f04d848-2f4d-4a19-ba36-23ff6b7b3a63">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_9f90f22e-6d8a-4e33-b6b3-9657f7bbc6cf">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_fa98227f-1337-4dd8-8722-a35895deada0">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_5fa1a62a-74bb-4068-b470-7e24836fd1fc">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_7b057771-ee70-46a9-8aaf-1a56929b9af7">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_bff175fe-14ce-476f-8295-00e3b9a9d8f7">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_d273132d-ef18-4dea-b749-653e3aa06583">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_3ba5434e-39fa-40e9-8e4c-a7bd549ff962">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      id="F_afd2a88c-7a52-4247-b59e-6580a0f8d49b">&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;9,000,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_d0a2c080-e402-475d-a4eb-4e2263369b5e"
      decimals="-6"
      id="F_6d0f341b-0403-4bd1-88e5-187ea4b8fd86"
      unitRef="U_USD">9000000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
