<?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_513c6b07-117f-4ee0-ba6d-84bf5b50935c">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-15</startDate>
            <endDate>2026-05-15</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OfferingTableNa
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_ae8e3a6f-a9ee-4a5d-82f7-88e2fa1e0356">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_22b25665-4157-4c6c-92af-ad33001d4900">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_8fa22fbc-7663-47b6-94f6-f7a6fe80cede">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_a6cad00e-4743-4d47-b81b-9f142e1e6aea">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_c31b59aa-256b-40fd-9bd7-e2575d73de4d">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_544626e4-de5c-4413-84ef-177dc4737a63">424B2</ffd:SubmissnTp>
    <dei:EntityRegistrantName
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_782b3d75-ed0e-4125-9b20-0b276c8667cc">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_58a30b75-7880-4a9a-883c-c7f4b30bc738">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_f58154f6-017a-4c29-b5d3-acb4478f9149">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      id="F_bdab8109-2711-4bcb-9116-6acff59bbd7a">&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;70,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_513c6b07-117f-4ee0-ba6d-84bf5b50935c"
      decimals="0"
      id="F_9879ce07-c78d-45f2-8f3b-2a26a06e9a3b"
      unitRef="U_USD">70000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
