<?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_7a7371e3-1d6f-4fa0-b653-9cf72363001f">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-26</startDate>
            <endDate>2026-05-26</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:OffsetTableNa
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_30a01184-4330-4c1e-b5b8-d65171f32e40">N/A</ffd:OffsetTableNa>
    <ffd:SubmissnTp
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_8364eca1-b3f0-4de1-b116-254a8fe73bad">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_73f7c3dd-7fc4-4e24-b5b5-e65c95cd26bb">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_c6864312-9ff1-4e6f-acf8-f9251f7e99ed">333-284538</ffd:RegnFileNb>
    <ffd:FeeExhibitTp
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_9fd2cdc6-7d7c-40ef-a2a7-0a4239ae8341">EX-FILING FEES</ffd:FeeExhibitTp>
    <dei:EntityCentralIndexKey
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_de1b64a0-967a-4ded-bc5b-b8d6554ed34c">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_0fd2eb3b-4cca-4dcb-98ea-3299071a240b">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:CombinedProspectusTableNa
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_e3cd0ca5-cece-4c8b-adcd-7948c47fa82d">N/A</ffd:CombinedProspectusTableNa>
    <ffd:OfferingTableNa
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_99072a1e-7252-416b-9795-a2dc575462f9">N/A</ffd:OfferingTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      id="F_1929d6ae-d0b4-404c-bc77-a02631532eeb">&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;500,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_7a7371e3-1d6f-4fa0-b653-9cf72363001f"
      decimals="0"
      id="F_c9c86e31-338f-4d7f-8447-20ae2e158026"
      unitRef="U_USD">500000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
