<?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_949baecf-8d94-414b-b1ff-6a41ed2a72d8">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-29</startDate>
            <endDate>2026-05-29</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_80c36bd4-ac3e-420a-a2dd-bd2e2f3459d3">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_88301f32-1cce-4349-a1d9-b3e06ba3053f">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_06cbbcb6-1e57-4dd1-a93c-59d8f7c4884b">S-3</ffd:FormTp>
    <dei:EntityCentralIndexKey
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_7f04c2c2-3ac4-4665-aa46-997c80756e66">0000886982</dei:EntityCentralIndexKey>
    <ffd:CombinedProspectusTableNa
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_57e11d2d-f686-43ac-9507-dd2617b9f162">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_ea79a311-8cd8-44a5-8897-3ee86a9c3eb5">333-284538</ffd:RegnFileNb>
    <ffd:OffsetTableNa
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_3524e12b-3ad4-4e08-9c02-3ac6c079f0a4">N/A</ffd:OffsetTableNa>
    <ffd:OfferingTableNa
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_a7fdaef0-12bb-4555-8e11-fdc4fdfc87ac">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_d370642f-f339-44bd-88fa-a8dea589ce84">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:NrrtvDsclsr
      contextRef="C_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      id="F_4656c585-ffc6-4802-a48c-f06c1af569d8">&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,335,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_949baecf-8d94-414b-b1ff-6a41ed2a72d8"
      decimals="0"
      id="F_6ce20c59-a49a-4c6b-ac99-e2415d303a3e"
      unitRef="U_USD">5335000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
