<?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_9398b4fd-c6af-46db-aa82-e91197ff9c4a">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-12</startDate>
            <endDate>2026-05-12</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:SubmissnTp
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_2bac7a85-0f69-414a-a302-1c591e1278f3">424B2</ffd:SubmissnTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_15cf9fd2-adf8-47b0-9c4e-677871e7a3ea">N/A</ffd:CombinedProspectusTableNa>
    <ffd:RegnFileNb
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_ad97f98e-0c2c-4f8d-a190-5760f0a2effb">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_cd9d72ba-295f-404f-9ec8-65210f2411e2">N/A</ffd:OfferingTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_ad22512c-7dae-45bc-b4d1-4d9f67123b80">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_069d9f18-e245-47d9-b88e-97357e3d7fb5">0000886982</dei:EntityCentralIndexKey>
    <ffd:OffsetTableNa
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_86c0963d-8513-4902-9548-fb36515db7a5">N/A</ffd:OffsetTableNa>
    <dei:EntityRegistrantName
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_55f03901-f188-4736-8f1c-15de14ecc9c9">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FormTp
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_a1330395-f746-4f00-a6ee-05d86077f6f9">S-3</ffd:FormTp>
    <ffd:NrrtvDsclsr
      contextRef="C_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      id="F_e6a73125-4453-4b53-a9d4-a7bd76eb74e8">&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,392,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_9398b4fd-c6af-46db-aa82-e91197ff9c4a"
      decimals="0"
      id="F_66c6ea69-f996-42cd-81d7-0ad4a1f4c644"
      unitRef="U_USD">5392000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
