<?xml version="1.0" encoding="utf-8"?>
<xbrl
  xmlns="http://www.xbrl.org/2003/instance"
  xmlns:dei="http://xbrl.sec.gov/dei/2026"
  xmlns:ffd="http://xbrl.sec.gov/ffd/2026"
  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/2026/ffd-2026.xsd"
      xlink:type="simple"/>
    <context id="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2026-06-01</startDate>
            <endDate>2026-06-01</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <dei:EntityRegistrantName
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_0f0a4a66-bfd5-4dda-86eb-34137cc890dd">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:OffsetTableNa
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_9d1abc98-cba4-46b5-801e-8a7acde78fd9">N/A</ffd:OffsetTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_8283c577-a355-4dd7-a875-4e6ad13dea59">0000886982</dei:EntityCentralIndexKey>
    <ffd:RegnFileNb
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_62f1da9c-aa22-4d63-9451-8dd5dc22dec6">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_65891c21-d792-477d-997a-5209f039962f">N/A</ffd:OfferingTableNa>
    <ffd:SubmissnTp
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_f0c5c533-3dba-470e-92ed-74571fcd338a">424B2</ffd:SubmissnTp>
    <ffd:FormTp
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_d784abf4-319e-4f34-ab13-b68fe94c80d1">S-3</ffd:FormTp>
    <ffd:FeeExhibitTp
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_03b61010-06e5-4971-92b9-1b4bef7e115b">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:CombinedProspectusTableNa
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_539d1e63-cee7-4aee-b0df-8a1c77aa1422">N/A</ffd:CombinedProspectusTableNa>
    <ffd:NrrtvDsclsr
      contextRef="C_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      id="F_8b8c3441-21e9-4ee7-8ccd-191d44cfdb40">&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;1,661,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_1a280cf6-f9d2-4cd0-a81b-70797919b63d"
      decimals="-3"
      id="F_8aedf72a-f5d2-4eeb-8e6b-628300f4fdb9"
      unitRef="U_USD">1661000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
