<?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_b782e71f-e832-4f91-8bca-89f259ca66b0">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-05-28</startDate>
            <endDate>2026-05-28</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_217f5bf3-31f3-4ecb-8d69-6f80957cec60">N/A</ffd:CombinedProspectusTableNa>
    <ffd:FormTp
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_572228af-63de-462b-a019-d79d8c61fd80">S-3</ffd:FormTp>
    <ffd:SubmissnTp
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_1a2b59f6-2305-4b01-b26a-ef9f7b14728d">424B2</ffd:SubmissnTp>
    <ffd:OfferingTableNa
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_8b88adf2-4637-4a82-85c6-77e1901e0f5b">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_d69715aa-727e-40e2-bd6c-83567c3410d0">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_08b8e4b5-3ab1-45af-aa46-338bd3eb3102">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:RegnFileNb
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_801863ed-6e65-4bc9-b9a4-2a23fb9e21ba">333-284538</ffd:RegnFileNb>
    <dei:EntityCentralIndexKey
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_b6b20dcf-29e2-4ca9-893b-88df9f518bca">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_9cea2f93-3979-4045-b3e1-2d032304f382">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_b782e71f-e832-4f91-8bca-89f259ca66b0"
      id="F_bb5a3b3c-b36b-4d74-8810-9153af469ac3">&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;508,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_b782e71f-e832-4f91-8bca-89f259ca66b0"
      decimals="0"
      id="F_016ac326-cbf9-4330-ba14-41d744e73ffe"
      unitRef="U_USD">508000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
