<?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_a18043da-9d4d-46df-85db-8c9d864246d5">
        <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>
    <dei:EntityRegistrantName
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_04c2e43d-8430-440b-ae06-5f0c70d883ab">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_fb7489e6-f01b-457b-b5e5-1de0782f394f">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_c536d98b-66f9-4314-afe6-6cfa3ff0624a">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_6346efdc-098d-4af4-9bbf-4c91c66e5ba0">0000886982</dei:EntityCentralIndexKey>
    <ffd:FeeExhibitTp
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_8fef0875-d9f2-4f6d-bdc0-1fffd0569646">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_57e78623-85f8-41ee-a75c-1602c22dffc8">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_639d854d-bdf5-41d0-90ca-3b1538753f07">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_38165b3e-7022-4672-bd06-b99ee8d0b488">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_1bb67c39-5356-4f8f-a0a9-f015eb749bdd">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_a18043da-9d4d-46df-85db-8c9d864246d5"
      id="F_13d90fd0-c5fb-4f52-94ad-5a65f8021032">&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;2,875,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_a18043da-9d4d-46df-85db-8c9d864246d5"
      decimals="-3"
      id="F_46ff0f82-0963-4b81-9f53-c56319cb8aa5"
      unitRef="U_USD">2875000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
