<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2025"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2025"
  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/2025/ffd-2025.xsd"
      xlink:type="simple"/>
    <context id="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-22</startDate>
            <endDate>2026-05-22</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_30b7b4c4-f587-41c9-96cb-4bc73fe2a462">N/A</ffd:OffsetTableNa>
    <ffd:CombinedProspectusTableNa
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_d18fa4f1-6eed-4611-8954-fe24a4ba0eee">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_fedb370f-4807-4d85-a217-bce5be3b394f">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_6118505c-132b-4524-baf0-16128e2e2c97">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_96ba6135-204b-4a34-a901-11676bae48f9">424B2</ffd:SubmissnTp>
    <ffd:RegnFileNb
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_42c09a1e-21b4-4175-9961-948ae8f7fe3f">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_ea6dd278-252d-4cc8-8d63-308faa6b2119">N/A</ffd:OfferingTableNa>
    <dei:EntityRegistrantName
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_baadd251-709c-4943-b608-01ba09fd6da2">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_cd3b785b-65d8-480d-a0da-e208e09732b8">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      id="F_5e26c15e-65f6-4111-a648-d01feae40d8e">&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;5,431,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_efc5649e-1b41-4f99-a249-9f5a0c63f6be"
      decimals="0"
      id="F_8e7661f7-a70a-41db-8ea6-64c30d0403c1"
      unitRef="U_USD">5431000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
