<?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_b8b4187d-2e22-440c-95e7-56d9fdb07917">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-05</startDate>
            <endDate>2026-05-05</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_972dabcd-429c-42a5-acde-d149b863dbe1">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:FeeExhibitTp
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_bd06d21c-ab0a-48a0-ab8e-7683a1c7c9ad">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_0126c3b2-4640-4623-87c8-df92cc6dd68b">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_e9821aac-062c-4c49-942e-b07c1c022f98">N/A</ffd:OffsetTableNa>
    <ffd:FormTp
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_a4047343-990f-4a84-81b2-133d6b7ab5c8">S-3</ffd:FormTp>
    <ffd:OfferingTableNa
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_5bd83322-032e-440b-bc65-ddfc6f403390">N/A</ffd:OfferingTableNa>
    <ffd:RegnFileNb
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_b8a48814-7a1b-4725-b02b-e65de06e2c59">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_4fec58ea-5d3f-4d13-b61f-c64f273a5934">0000886982</dei:EntityCentralIndexKey>
    <ffd:SubmissnTp
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_79bc21a0-928a-4ef8-bbdd-9156f4db9203">424B2</ffd:SubmissnTp>
    <ffd:NrrtvDsclsr
      contextRef="C_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      id="F_0d47ea9c-0207-4d0f-82eb-008fcea989fa">&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,953,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_b8b4187d-2e22-440c-95e7-56d9fdb07917"
      decimals="0"
      id="F_f045bb25-4776-48de-92f7-27a6faed22a1"
      unitRef="U_USD">5953000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
