<?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_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191">
        <entity>
            <identifier scheme="http://www.sec.gov/CIK">0000886982</identifier>
        </entity>
        <period>
            <startDate>2025-11-18</startDate>
            <endDate>2025-11-18</endDate>
        </period>
    </context>
    <unit id="U_USD">
        <measure>iso4217:USD</measure>
    </unit>
    <ffd:CombinedProspectusTableNa
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_98b006ff-6ee3-41de-8534-6e13f46b1f8a">N/A</ffd:CombinedProspectusTableNa>
    <ffd:SubmissnTp
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_e3dd1494-cf4b-4d63-bf0d-22c440976168">424B2</ffd:SubmissnTp>
    <ffd:OffsetTableNa
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_8e53c4ed-17c2-45bc-abac-3786747f11a4">N/A</ffd:OffsetTableNa>
    <ffd:FeeExhibitTp
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_27366b5d-a54a-496f-ae3c-2442a0a99300">EX-FILING FEES</ffd:FeeExhibitTp>
    <ffd:FormTp
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_cccb9656-abca-4e42-ab4b-b952a13ea0ef">S-3</ffd:FormTp>
    <ffd:RegnFileNb
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_58b41c90-3964-4b0e-b591-b4d17326bf2d">333-284538</ffd:RegnFileNb>
    <ffd:OfferingTableNa
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_96c6e039-dd66-49ba-a303-2ea5cb0501c2">N/A</ffd:OfferingTableNa>
    <dei:EntityCentralIndexKey
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_e6cda454-3d21-4d73-b412-6d927ebb066e">0000886982</dei:EntityCentralIndexKey>
    <dei:EntityRegistrantName
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_98656fee-3f47-4bf7-8d73-bdc89f85d939">The Goldman Sachs Group, Inc.</dei:EntityRegistrantName>
    <ffd:NrrtvDsclsr
      contextRef="C_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      id="F_1e35247d-dc55-4acd-91d0-f9076ce643ba">&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;35,962,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_9d49ef2a-e57f-4b82-9e67-13ff4e7fd191"
      decimals="0"
      id="F_e522eefa-cab7-49e7-a967-1f24cc3b8bfe"
      unitRef="U_USD">35962000</ffd:NrrtvMaxAggtOfferingPric>
</xbrl>
