<?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_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-02</startDate>
            <endDate>2026-06-02</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_80db940b-bc7a-4c24-ae5e-ddd371ab200c">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_271e60f7-4fed-49f5-ba84-9239838b954b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_3edc0149-8e35-4d18-bd23-091fd749e175">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_e6453483-4c59-4389-a72c-cc9d14103a47">0000886982</dei:EntityCentralIndexKey>
    <ffd:FormTp
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_97c4f66c-9db7-4f6e-8ca6-d7a3ae32faa5">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_70afcc90-108f-4b0d-9445-8c16d1f8c936">N/A</ffd:OfferingTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_d7b6b227-5a49-428d-842c-298d2197d876">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_13d1c0c8-76a6-4528-a9e0-b3ffd314fc0c">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_bbda2184-8403-483c-b1b6-3c22e9a8a874">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      id="F_45fb322e-061b-43be-906c-a27393ade419">&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,167,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_d8cbdc63-d3d9-4bb5-8eee-9bda932a1ac5"
      decimals="-3"
      id="F_a74af3ec-e2f6-462d-b844-5fb6836dee13"
      unitRef="U_USD">1167000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
