<?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_b0c9b52d-120a-470b-89a3-23bc825d34ea">
        <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>
    <ffd:CombinedProspectusTableNa
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_598fc7e0-1611-45ab-9371-2ba80e0fc240">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_ad8551d2-9673-4677-99ce-a368008327cd">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_ff2e6d2d-e086-4070-b60c-b4b079660969">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_ba6fdc9d-513d-4b12-adad-ba2431acf15e">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:OfferingTableNa
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_881dfd22-2a00-4144-9bbc-e4fa36a592d1">N/A</ffd:OfferingTableNa>
    <ffd:OffsetTableNa
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_1393c76b-fc8d-4d8f-b290-be06491fb183">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_b59ae8e1-9d18-43f9-9822-25bf582fdc95">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_60d86f45-f038-4c9c-b6c8-020d55c02dfe">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:RegnFileNb
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_1ce28935-b6ba-4c01-a139-5ec8c8c87e77">333-284538</ffd:RegnFileNb>
    <ffd:NrrtvDsclsr
      contextRef="C_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      id="F_385820b9-dc03-4751-9b65-63fe9070e49d">&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;7,863,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_b0c9b52d-120a-470b-89a3-23bc825d34ea"
      decimals="0"
      id="F_374a857f-f490-44d3-8b71-b734b8989ce0"
      unitRef="U_USD">7863000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
